| ... | ... | @@ -933,33 +933,6 @@ pub const libc = struct { |
| 933 | 933 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/exit.html |
| 934 | 934 | pub extern fn exit(status: c_int) noreturn; |
| 935 | 935 | |
| 936 | | /// char *getenv(const char *name); |
| 937 | | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getenv.html |
| 938 | | pub extern fn getenv(name: [*:0]const u8) ?[*:0]u8; |
| 939 | | /// pid_t getpid(void); |
| 940 | | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpid.html |
| 941 | | pub extern fn getpid() pid_t; |
| 942 | | /// pthread_t pthread_self(void); |
| 943 | | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_self.html |
| 944 | | pub extern fn pthread_self() pthread_t; |
| 945 | | /// int fstat(int fildes, struct stat *buf); |
| 946 | | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fstat.html |
| 947 | | pub extern fn fstat(fd: c_int, buf: *struct_stat) c_int; |
| 948 | | /// int mkdirat(int fd, const char *path, mode_t mode); |
| 949 | | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkdirat.html |
| 950 | | pub extern fn mkdirat(fd: c_int, path: [*:0]const u8, mode: mode_t) c_int; |
| 951 | | /// ssize_t readv(int fildes, const struct iovec *iov, int iovcnt); |
| 952 | | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/readv.html |
| 953 | | pub extern fn readv(fd: c_int, iovec: [*]const struct_iovec, count: c_int) isize; |
| 954 | | /// ssize_t read(int fildes, void *buf, size_t nbyte); |
| 955 | | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/read.html |
| 956 | | pub extern fn read(fd: c_int, buf: [*]u8, count: usize) isize; |
| 957 | | /// int openat(int fd, const char *path, int oflag, ...); |
| 958 | | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/openat.html |
| 959 | | pub extern fn openat(fd: c_int, file: [*:0]const u8, oflag: c_int, ...) c_int; |
| 960 | | /// int fstat(int fildes, struct stat *buf); |
| 961 | | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fstat.html |
| 962 | | pub extern fn fstat(fd: c_int, buf: *struct_stat) c_int; |
| 963 | 936 | |
| 964 | 937 | |
| 965 | 938 | |