| ... | @@ -1482,6 +1482,10 @@ pub const libc = struct { | ... | @@ -1482,6 +1482,10 @@ pub const libc = struct { |
| 1482 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fsync.html | 1482 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fsync.html |
| 1483 | pub extern fn fsync(fd: c_int) c_int; | 1483 | pub extern fn fsync(fd: c_int) c_int; |
| 1484 | | 1484 | |
| | 1485 | /// int futimens(int fd, const struct timespec times[2]); |
| | 1486 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/futimens.html |
| | 1487 | pub extern fn futimens(fd: c_int, times: *const [2]struct_timespec) c_int; |
| | 1488 | |
| 1485 | /// int getaddrinfo(const char *restrict nodename, const char *restrict servname, const struct addrinfo *restrict hints, struct addrinfo **restrict res); | 1489 | /// int getaddrinfo(const char *restrict nodename, const char *restrict servname, const struct addrinfo *restrict hints, struct addrinfo **restrict res); |
| 1486 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getaddrinfo.html | 1490 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getaddrinfo.html |
| 1487 | pub extern fn getaddrinfo(noalias nodename: ?[*:0]const u8, noalias servname: ?[*:0]const u8, noalias req: ?*const struct_addrinfo, noalias pai: **const struct_addrinfo) c_int; | 1491 | pub extern fn getaddrinfo(noalias nodename: ?[*:0]const u8, noalias servname: ?[*:0]const u8, noalias req: ?*const struct_addrinfo, noalias pai: **const struct_addrinfo) c_int; |
| ... | @@ -2778,7 +2782,6 @@ pub const libc = struct { | ... | @@ -2778,7 +2782,6 @@ pub const libc = struct { |
| 2778 | pub extern fn sched_getaffinity(pid: pid_t, cpusetsize: usize, mask: *cpu_set_t) c_int; | 2782 | pub extern fn sched_getaffinity(pid: pid_t, cpusetsize: usize, mask: *cpu_set_t) c_int; |
| 2779 | pub extern fn getrandom(buf: [*]u8, size: usize, flags: c_uint) isize; | 2783 | pub extern fn getrandom(buf: [*]u8, size: usize, flags: c_uint) isize; |
| 2780 | pub extern fn flock(fd: c_int, op: c_int) c_int; | 2784 | pub extern fn flock(fd: c_int, op: c_int) c_int; |
| 2781 | pub extern fn futimens(fd: c_int, times: *const [2]struct_timespec) c_int; | | |
| 2782 | }; | 2785 | }; |
| 2783 | | 2786 | |
| 2784 | comptime { | 2787 | comptime { |