authorgravatar for vincent@rischmann.frVincent Rischmann <vincent@rischmann.fr> 2020-05-30 16:05:46+02:00
committergravatar for vincent@rischmann.frVincent Rischmann <vincent@rischmann.fr> 2020-05-30 16:05:46+02:00
log636d3ba780aa305ca79066e7e746dd5c64f1efd1
tree7c2eb302ed037e25de919125973bd13b52871d9a
parent51682717d773aa4bdee89bc67cab08dc9b4bcc15
signature Commit is signed but in an unrecognized format.

linux: fix IOSQE_BIT decl and io_uring_sqe flags


1 files changed, 5 insertions(+), 5 deletions(-)

lib/std/os/bits/linux.zig+5-5
...@@ -1270,7 +1270,7 @@ pub const io_uring_sqe = extern struct {...@@ -1270,7 +1270,7 @@ pub const io_uring_sqe = extern struct {
1270 union3: union3,1270 union3: union3,
1271};1271};
12721272
1273pub const IOSQE_BIT = extern enum {1273pub const IOSQE_BIT = extern enum(u8) {
1274 FIXED_FILE,1274 FIXED_FILE,
1275 IO_DRAIN,1275 IO_DRAIN,
1276 IO_LINK,1276 IO_LINK,
...@@ -1283,16 +1283,16 @@ pub const IOSQE_BIT = extern enum {...@@ -1283,16 +1283,16 @@ pub const IOSQE_BIT = extern enum {
1283// io_uring_sqe.flags1283// io_uring_sqe.flags
12841284
1285/// use fixed fileset1285/// use fixed fileset
1286pub const IOSQE_FIXED_FILE = 1 << IOSQE_BIT.FIXED_FILE;1286pub const IOSQE_FIXED_FILE = 1 << @enumToInt(IOSQE_BIT.FIXED_FILE);
12871287
1288/// issue after inflight IO1288/// issue after inflight IO
1289pub const IOSQE_IO_DRAIN = 1 << IOSQE_BIT.IO_DRAIN;1289pub const IOSQE_IO_DRAIN = 1 << @enumToInt(IOSQE_BIT.IO_DRAIN);
12901290
1291/// links next sqe1291/// links next sqe
1292pub const IOSQE_IO_LINK = 1 << IOSQE_BIT.IO_LINK;1292pub const IOSQE_IO_LINK = 1 << @enumToInt(IOSQE_BIT.IO_LINK);
12931293
1294/// like LINK, but stronger1294/// like LINK, but stronger
1295pub const IOSQE_IO_HARDLINK = 1 << IOSQE_BIT.IO_HARDLINK;1295pub const IOSQE_IO_HARDLINK = 1 << @enumToInt(IOSQE_BIT.IO_HARDLINK);
12961296
1297/// always go async1297/// always go async
1298pub const IOSQE_ASYNC = 1 << IOSQE_BIT.ASYNC;1298pub const IOSQE_ASYNC = 1 << IOSQE_BIT.ASYNC;