| ... | ... | @@ -1070,10 +1070,34 @@ pub const libc = struct { |
| 1070 | 1070 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ceill.html |
| 1071 | 1071 | pub extern fn ceill(x: c_longdouble) c_longdouble; |
| 1072 | 1072 | |
| 1073 | /// int chdir(const char *path); |
| 1074 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/chdir.html |
| 1075 | pub extern fn chdir(path: [*:0]const u8) c_int; |
| 1076 | |
| 1077 | /// int chmod(const char *path, mode_t mode); |
| 1078 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/chmod.html |
| 1079 | pub extern fn chmod(path: [*:0]const u8, mode: mode_t) c_int; |
| 1080 | |
| 1081 | /// int chown(const char *path, uid_t owner, gid_t group); |
| 1082 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/chown.html |
| 1083 | pub extern fn chown(path: [*:0]const u8, owner: uid_t, group: gid_t) c_int; |
| 1084 | |
| 1073 | 1085 | /// clock_t clock(void); |
| 1074 | 1086 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock.html |
| 1075 | 1087 | pub extern fn clock() clock_t; |
| 1076 | 1088 | |
| 1089 | /// int clock_getcpuclockid(pid_t pid, clockid_t *clock_id); |
| 1090 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock_getcpuclockid.html |
| 1091 | pub extern fn clock_getcpuclockid(pid: pid_t, clock_id: *clockid_t) c_int; |
| 1092 | |
| 1093 | /// int clock_getres(clockid_t clock_id, struct timespec *res); |
| 1094 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock_getres.html |
| 1095 | pub extern fn clock_getres(clock_id: clockid_t, res: ?*struct_timespec) c_int; |
| 1096 | |
| 1097 | /// int clock_gettime(clockid_t clock_id, struct timespec *tp); |
| 1098 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock_gettime.html |
| 1099 | pub extern fn clock_gettime(clock_id: clockid_t, tp: *struct_timespec) c_int; |
| 1100 | |
| 1077 | 1101 | /// int close(int fildes); |
| 1078 | 1102 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/close.html |
| 1079 | 1103 | pub extern fn close(fildes: c_int) c_int; |
| ... | ... | @@ -2514,6 +2538,10 @@ pub const libc = struct { |
| 2514 | 2538 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcwidth.html |
| 2515 | 2539 | pub extern fn wcwidth(wc: wchar_t) c_int; |
| 2516 | 2540 | |
| 2541 | /// ssize_t write(int fildes, const void *buf, size_t nbyte); |
| 2542 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/write.html |
| 2543 | pub extern fn write(fd: c_int, buf: *const anyopaque, n: usize) isize; |
| 2544 | |
| 2517 | 2545 | /// double y0(double x); |
| 2518 | 2546 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/y0.html |
| 2519 | 2547 | pub extern fn y0(x: f64) f64; |