hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 29f1637fa6a300c4e17dca352d709ad9ec0274d3
parent d061d1b8f04e9b1554c7dd85ceb9358fbc6f4bff
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 17 May 2021 18:38:18 -0400

linux::io_uring: rewrite non-complaint code

The sqe type contains several unions which do not have default values.

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mlinux/io_uring/sqe.ha | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/linux/io_uring/sqe.ha b/linux/io_uring/sqe.ha @@ -2,8 +2,8 @@ use rt; use types; fn prep(sq: *sqe, op: op, flags: sqe_flags...) void = { - // XXX: Is this compatible with the spec? - *sq = sqe { opcode = op, ... }; + rt::memset(sq, 0, size(sqe)); + sq.opcode = op; for (let i = 0z; i < len(flags); i += 1) { sq.flags |= flags[i]; };