@@ -9,31 +9,31 @@ pub const Unique = extern struct {
99 pub const reqGet = os .IOCTL .IOWR (0x1 , Unique );
1010 pub const reqSet = os .IOCTL .IOWR (0x10 , Unique );
1111
12- pub fn get (self : * Unique , fd : std.os .fd_t ) ! void {
13- return switch (std .os .errno (os .ioctl (fd , reqGet , @intFromPtr (self )))) {
12+ pub fn get (self : * Unique , fd : std.posix .fd_t ) ! void {
13+ return switch (std .posix .errno (os .ioctl (fd , reqGet , @intFromPtr (self )))) {
1414 .SUCCESS = > {},
1515 .BADF = > error .NotOpenForWriting ,
1616 .NOENT = > error .NotFound ,
1717 .FAULT = > unreachable ,
1818 .INVAL = > unreachable ,
1919 .NOTTY = > error .NotATerminal ,
20- else = > | e | std .os .unexpectedErrno (e ),
20+ else = > | e | std .posix .unexpectedErrno (e ),
2121 };
2222 }
2323
24- pub fn set (self : * Unique , fd : std.os .fd_t ) ! void {
25- return switch (std .os .errno (os .ioctl (fd , reqSet , @intFromPtr (self )))) {
24+ pub fn set (self : * Unique , fd : std.posix .fd_t ) ! void {
25+ return switch (std .posix .errno (os .ioctl (fd , reqSet , @intFromPtr (self )))) {
2626 .SUCCESS = > {},
2727 .BADF = > error .NotOpenForWriting ,
2828 .NOENT = > error .NotFound ,
2929 .FAULT = > unreachable ,
3030 .INVAL = > unreachable ,
3131 .NOTTY = > error .NotATerminal ,
32- else = > | e | std .os .unexpectedErrno (e ),
32+ else = > | e | std .posix .unexpectedErrno (e ),
3333 };
3434 }
3535
36- pub fn getAllocated (self : * Unique , fd : std.os .fd_t , alloc : Allocator ) ! void {
36+ pub fn getAllocated (self : * Unique , fd : std.posix .fd_t , alloc : Allocator ) ! void {
3737 try self .get (fd );
3838
3939 errdefer self .deinit (alloc );
@@ -63,15 +63,15 @@ pub const SetVersion = extern struct {
6363
6464 pub const req = os .IOCTL .IOWR (0x7 , SetVersion );
6565
66- pub fn set (self : * Version , fd : std.os .fd_t ) ! void {
67- return switch (std .os .errno (os .ioctl (fd , req , @intFromPtr (self )))) {
66+ pub fn set (self : * Version , fd : std.posix .fd_t ) ! void {
67+ return switch (std .posix .errno (os .ioctl (fd , req , @intFromPtr (self )))) {
6868 .SUCCESS = > {},
6969 .BADF = > error .NotOpenForWriting ,
7070 .NOENT = > error .NotFound ,
7171 .FAULT = > unreachable ,
7272 .INVAL = > unreachable ,
7373 .NOTTY = > error .NotATerminal ,
74- else = > | e | std .os .unexpectedErrno (e ),
74+ else = > | e | std .posix .unexpectedErrno (e ),
7575 };
7676 }
7777};
@@ -89,19 +89,19 @@ pub const Version = extern struct {
8989
9090 pub const req = os .IOCTL .IOWR (0 , Version );
9191
92- pub fn get (self : * Version , fd : std.os .fd_t ) ! void {
93- return switch (std .os .errno (os .ioctl (fd , req , @intFromPtr (self )))) {
92+ pub fn get (self : * Version , fd : std.posix .fd_t ) ! void {
93+ return switch (std .posix .errno (os .ioctl (fd , req , @intFromPtr (self )))) {
9494 .SUCCESS = > {},
9595 .BADF = > error .NotOpenForWriting ,
9696 .NOENT = > error .NotFound ,
9797 .FAULT = > unreachable ,
9898 .INVAL = > unreachable ,
9999 .NOTTY = > error .NotATerminal ,
100- else = > | e | std .os .unexpectedErrno (e ),
100+ else = > | e | std .posix .unexpectedErrno (e ),
101101 };
102102 }
103103
104- pub fn getAllocated (self : * Version , fd : std.os .fd_t , alloc : Allocator ) ! void {
104+ pub fn getAllocated (self : * Version , fd : std.posix .fd_t , alloc : Allocator ) ! void {
105105 try self .get (fd );
106106
107107 errdefer self .deinit (alloc );
0 commit comments