| ... | @@ -978,6 +978,10 @@ pub const libc = struct { | ... | @@ -978,6 +978,10 @@ pub const libc = struct { |
| 978 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/acosl.html | 978 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/acosl.html |
| 979 | pub extern fn acosl(x: c_longdouble) c_longdouble; | 979 | pub extern fn acosl(x: c_longdouble) c_longdouble; |
| 980 | | 980 | |
| | 981 | /// unsigned alarm(unsigned seconds); |
| | 982 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/alarm.html |
| | 983 | pub extern fn alarm(seconds: c_uint) c_uint; |
| | 984 | |
| 981 | /// double asin(double x); | 985 | /// double asin(double x); |
| 982 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/asin.html | 986 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/asin.html |
| 983 | pub extern fn asin(x: f64) f64; | 987 | pub extern fn asin(x: f64) f64; |
| ... | @@ -1114,6 +1118,10 @@ pub const libc = struct { | ... | @@ -1114,6 +1118,10 @@ pub const libc = struct { |
| 1114 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/div.html | 1118 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/div.html |
| 1115 | pub extern fn div(numer: c_int, denom: c_int) div_t; | 1119 | pub extern fn div(numer: c_int, denom: c_int) div_t; |
| 1116 | | 1120 | |
| | 1121 | /// char *dlerror(void); |
| | 1122 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dlerror.html |
| | 1123 | pub extern fn dlerror() ?[*:0]u8; |
| | 1124 | |
| 1117 | /// double drand48(void); | 1125 | /// double drand48(void); |
| 1118 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/drand48.html | 1126 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/drand48.html |
| 1119 | pub extern fn drand48() f64; | 1127 | pub extern fn drand48() f64; |
| ... | @@ -1154,6 +1162,10 @@ pub const libc = struct { | ... | @@ -1154,6 +1162,10 @@ pub const libc = struct { |
| 1154 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/endutxent.html | 1162 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/endutxent.html |
| 1155 | pub extern fn endutxent() void; | 1163 | pub extern fn endutxent() void; |
| 1156 | | 1164 | |
| | 1165 | /// double erand48(unsigned short xsubi[3]); |
| | 1166 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/erand48.html |
| | 1167 | pub extern fn erand48(xsubi: *[3]c_ushort) f64; |
| | 1168 | |
| 1157 | /// double erf(double x); | 1169 | /// double erf(double x); |
| 1158 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/erf.html | 1170 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/erf.html |
| 1159 | pub extern fn erf(x: f64) f64; | 1171 | pub extern fn erf(x: f64) f64; |
| ... | @@ -1230,6 +1242,10 @@ pub const libc = struct { | ... | @@ -1230,6 +1242,10 @@ pub const libc = struct { |
| 1230 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fabsl.html | 1242 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fabsl.html |
| 1231 | pub extern fn fabsl(x: c_longdouble) c_longdouble; | 1243 | pub extern fn fabsl(x: c_longdouble) c_longdouble; |
| 1232 | | 1244 | |
| | 1245 | /// int faccessat(int fd, const char *path, int amode, int flag); |
| | 1246 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/faccessat.html |
| | 1247 | pub extern fn faccessat(fd: c_int, path: [*:0]const u8, amode: c_int, flag: c_int) c_int; |
| | 1248 | |
| 1233 | /// int fchdir(int fildes); | 1249 | /// int fchdir(int fildes); |
| 1234 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchdir.html | 1250 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchdir.html |
| 1235 | pub extern fn fchdir(fildes: c_int) c_int; | 1251 | pub extern fn fchdir(fildes: c_int) c_int; |
| ... | @@ -1238,10 +1254,18 @@ pub const libc = struct { | ... | @@ -1238,10 +1254,18 @@ pub const libc = struct { |
| 1238 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchmod.html | 1254 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchmod.html |
| 1239 | pub extern fn fchmod(fildes: c_int, mode: mode_t) c_int; | 1255 | pub extern fn fchmod(fildes: c_int, mode: mode_t) c_int; |
| 1240 | | 1256 | |
| | 1257 | /// int fchmodat(int fd, const char *path, mode_t mode, int flag); |
| | 1258 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchmodat.html |
| | 1259 | pub extern fn fchmodat(fd: c_int, path: [*:0]const u8, mode: mode_t, flag: c_int) c_int; |
| | 1260 | |
| 1241 | /// int fchown(int fildes, uid_t owner, gid_t group); | 1261 | /// int fchown(int fildes, uid_t owner, gid_t group); |
| 1242 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchown.html | 1262 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchown.html |
| 1243 | pub extern fn fchown(fildes: c_int, owner: uid_t, group: gid_t) c_int; | 1263 | pub extern fn fchown(fildes: c_int, owner: uid_t, group: gid_t) c_int; |
| 1244 | | 1264 | |
| | 1265 | /// int fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag); |
| | 1266 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchownat.html |
| | 1267 | pub extern fn fchownat(fd: c_int, path: [*:0]const u8, owner: uid_t, group: gid_t, flag: c_int) c_int; |
| | 1268 | |
| 1245 | /// int fdatasync(int fildes); | 1269 | /// int fdatasync(int fildes); |
| 1246 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdatasync.html | 1270 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdatasync.html |
| 1247 | pub extern fn fdatasync(fildes: c_int) c_int; | 1271 | pub extern fn fdatasync(fildes: c_int) c_int; |
| ... | @@ -1286,6 +1310,18 @@ pub const libc = struct { | ... | @@ -1286,6 +1310,18 @@ pub const libc = struct { |
| 1286 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/floorl.html | 1310 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/floorl.html |
| 1287 | pub extern fn floorl(x: c_longdouble) c_longdouble; | 1311 | pub extern fn floorl(x: c_longdouble) c_longdouble; |
| 1288 | | 1312 | |
| | 1313 | /// double fma(double x, double y, double z); |
| | 1314 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fma.html |
| | 1315 | pub extern fn fma(x: f64, y: f64, z: f64) f64; |
| | 1316 | |
| | 1317 | /// float fmaf(float x, float y, float z); |
| | 1318 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmaf.html |
| | 1319 | pub extern fn fmaf(x: f32, y: f32, z: f32) f32; |
| | 1320 | |
| | 1321 | /// long double fmal(long double x, long double y, long double z); |
| | 1322 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmal.html |
| | 1323 | pub extern fn fmal(x: c_longdouble, y: c_longdouble, z: c_longdouble) c_longdouble; |
| | 1324 | |
| 1289 | /// double fmax(double x, double y); | 1325 | /// double fmax(double x, double y); |
| 1290 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmax.html | 1326 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmax.html |
| 1291 | pub extern fn fmax(x: f64, y: f64) f64; | 1327 | pub extern fn fmax(x: f64, y: f64) f64; |
| ... | @@ -1362,6 +1398,10 @@ pub const libc = struct { | ... | @@ -1362,6 +1398,10 @@ pub const libc = struct { |
| 1362 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgid.html | 1398 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgid.html |
| 1363 | pub extern fn getgid() gid_t; | 1399 | pub extern fn getgid() gid_t; |
| 1364 | | 1400 | |
| | 1401 | /// struct group *getgrent(void); |
| | 1402 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgrent.html |
| | 1403 | pub extern fn getgrent() ?*struct_group; |
| | 1404 | |
| 1365 | /// long gethostid(void); | 1405 | /// long gethostid(void); |
| 1366 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gethostid.html | 1406 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gethostid.html |
| 1367 | pub extern fn gethostid() c_long; | 1407 | pub extern fn gethostid() c_long; |
| ... | @@ -1382,6 +1422,22 @@ pub const libc = struct { | ... | @@ -1382,6 +1422,22 @@ pub const libc = struct { |
| 1382 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getppid.html | 1422 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getppid.html |
| 1383 | pub extern fn getppid() pid_t; | 1423 | pub extern fn getppid() pid_t; |
| 1384 | | 1424 | |
| | 1425 | /// struct protoent *getprotoent(void); |
| | 1426 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getprotoent.html |
| | 1427 | pub extern fn getprotoent() ?*struct_protoent; |
| | 1428 | |
| | 1429 | /// struct passwd *getpwent(void); |
| | 1430 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpwent.html |
| | 1431 | pub extern fn getpwent() ?*struct_passwd; |
| | 1432 | |
| | 1433 | /// struct servent *getservent(void); |
| | 1434 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getservent.html |
| | 1435 | pub extern fn getservent() ?*struct_servent; |
| | 1436 | |
| | 1437 | /// pid_t getsid(pid_t pid); |
| | 1438 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getsid.html |
| | 1439 | pub extern fn getsid(pid: pid_t) pid_t; |
| | 1440 | |
| 1385 | /// uid_t getuid(void); | 1441 | /// uid_t getuid(void); |
| 1386 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getuid.html | 1442 | /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getuid.html |
| 1387 | pub extern fn getuid() uid_t; | 1443 | pub extern fn getuid() uid_t; |