| ... | @@ -1330,6 +1330,10 @@ pub const libc = struct { | ... | @@ -1330,6 +1330,10 @@ pub const libc = struct { |
| 1330 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fpathconf.html | 1330 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fpathconf.html |
| 1331 | pub extern fn fpathconf(fildes: c_int, name: c_int) c_long; | 1331 | pub extern fn fpathconf(fildes: c_int, name: c_int) c_long; |
| 1332 | | 1332 | |
| | 1333 | /// int fstat(int fildes, struct stat *buf); |
| | 1334 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fstat.html |
| | 1335 | pub extern fn fstat(fd: c_int, buf: *struct_stat) c_int; |
| | 1336 | |
| 1333 | /// int getchar(void); | 1337 | /// int getchar(void); |
| 1334 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getchar.html | 1338 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getchar.html |
| 1335 | pub extern fn getchar() c_int; | 1339 | pub extern fn getchar() c_int; |
| ... | @@ -1378,16 +1382,17 @@ pub const libc = struct { | ... | @@ -1378,16 +1382,17 @@ pub const libc = struct { |
| 1378 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getuid.html | 1382 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getuid.html |
| 1379 | pub extern fn getuid() uid_t; | 1383 | pub extern fn getuid() uid_t; |
| 1380 | | 1384 | |
| | 1385 | /// int mkdirat(int fd, const char *path, mode_t mode); |
| | 1386 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkdirat.html |
| | 1387 | pub extern fn mkdirat(fd: c_int, path: [*:0]const u8, mode: mode_t) c_int; |
| 1381 | | 1388 | |
| | 1389 | /// int openat(int fd, const char *path, int oflag, ...); |
| | 1390 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/openat.html |
| | 1391 | pub extern fn openat(fd: c_int, file: [*:0]const u8, oflag: c_int, ...) c_int; |
| 1382 | | 1392 | |
| 1383 | | 1393 | /// ssize_t read(int fildes, void *buf, size_t nbyte); |
| 1384 | | 1394 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/read.html |
| 1385 | | 1395 | pub extern fn read(fd: c_int, buf: [*]u8, count: usize) isize; |
| 1386 | | | |
| 1387 | | | |
| 1388 | | | |
| 1389 | | | |
| 1390 | | | |
| 1391 | | 1396 | |
| 1392 | // | 1397 | // |
| 1393 | // | 1398 | // |