@@ -1302,7 +1302,7 @@ fn dirStatPathLinux(
13021302 linux .STATX_INO | linux .STATX_SIZE | linux .STATX_TYPE | linux .STATX_MODE | linux .STATX_ATIME | linux .STATX_MTIME | linux .STATX_CTIME ,
13031303 & statx ,
13041304 );
1305- switch (linux .E . init (rc )) {
1305+ switch (linux .errno (rc )) {
13061306 .SUCCESS = > return statFromLinux (& statx ),
13071307 .INTR = > continue ,
13081308 .CANCELED = > return error .Canceled ,
@@ -1449,7 +1449,7 @@ fn fileStatLinux(userdata: ?*anyopaque, file: Io.File) Io.File.StatError!Io.File
14491449 linux .STATX_INO | linux .STATX_SIZE | linux .STATX_TYPE | linux .STATX_MODE | linux .STATX_ATIME | linux .STATX_MTIME | linux .STATX_CTIME ,
14501450 & statx ,
14511451 );
1452- switch (linux .E . init (rc )) {
1452+ switch (linux .errno (rc )) {
14531453 .SUCCESS = > return statFromLinux (& statx ),
14541454 .INTR = > continue ,
14551455 .CANCELED = > return error .Canceled ,
@@ -2931,7 +2931,7 @@ fn sleepLinux(userdata: ?*anyopaque, timeout: Io.Timeout) Io.SleepError!void {
29312931 var timespec : posix.timespec = timestampToPosix (deadline_nanoseconds );
29322932 while (true ) {
29332933 try t .checkCancel ();
2934- switch (std .os .linux .E . init (std .os .linux .clock_nanosleep (clock_id , .{ .ABSTIME = switch (timeout ) {
2934+ switch (std .os .linux .errno (std .os .linux .clock_nanosleep (clock_id , .{ .ABSTIME = switch (timeout ) {
29352935 .none , .duration = > false ,
29362936 .deadline = > true ,
29372937 } }, & timespec , & timespec ))) {
@@ -5677,7 +5677,7 @@ fn futexWait(t: *Threaded, ptr: *const std.atomic.Value(u32), expect: u32) Io.Ca
56775677 const linux = std .os .linux ;
56785678 try t .checkCancel ();
56795679 const rc = linux .futex_4arg (ptr , .{ .cmd = .WAIT , .private = true }, expect , null );
5680- if (is_debug ) switch (linux .E . init (rc )) {
5680+ if (is_debug ) switch (linux .errno (rc )) {
56815681 .SUCCESS = > {}, // notified by `wake()`
56825682 .INTR = > {}, // gives caller a chance to check cancellation
56835683 .AGAIN = > {}, // ptr.* != expect
@@ -5764,7 +5764,7 @@ pub fn futexWaitUncancelable(ptr: *const std.atomic.Value(u32), expect: u32) voi
57645764 .linux = > {
57655765 const linux = std .os .linux ;
57665766 const rc = linux .futex_4arg (ptr , .{ .cmd = .WAIT , .private = true }, expect , null );
5767- switch (linux .E . init (rc )) {
5767+ switch (linux .errno (rc )) {
57685768 .SUCCESS = > {}, // notified by `wake()`
57695769 .INTR = > {}, // gives caller a chance to check cancellation
57705770 .AGAIN = > {}, // ptr.* != expect
@@ -5827,7 +5827,7 @@ pub fn futexWaitDurationUncancelable(ptr: *const std.atomic.Value(u32), expect:
58275827 const linux = std .os .linux ;
58285828 var ts = timestampToPosix (timeout .toNanoseconds ());
58295829 const rc = linux .futex_4arg (ptr , .{ .cmd = .WAIT , .private = true }, expect , & ts );
5830- if (is_debug ) switch (linux .E . init (rc )) {
5830+ if (is_debug ) switch (linux .errno (rc )) {
58315831 .SUCCESS = > {}, // notified by `wake()`
58325832 .INTR = > {}, // gives caller a chance to check cancellation
58335833 .AGAIN = > {}, // ptr.* != expect
@@ -5861,7 +5861,7 @@ pub fn futexWake(ptr: *const std.atomic.Value(u32), max_waiters: u32) void {
58615861 } else switch (native_os ) {
58625862 .linux = > {
58635863 const linux = std .os .linux ;
5864- switch (linux .E . init (linux .futex_3arg (
5864+ switch (linux .errno (linux .futex_3arg (
58655865 & ptr .raw ,
58665866 .{ .cmd = .WAKE , .private = true },
58675867 @min (max_waiters , std .math .maxInt (i32 )),
0 commit comments