authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-12-28 22:42:13 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-12-28 22:42:13 -08:00
log149f2a06519fc8678aebfc761134e0444d6d1342
tree6565981bc6a9ce26eb1317e4d2cd3b3167aa8b55
parent1801d0cdde61ac06001a9722cb61e0214d937305

more libc


1 files changed, 56 insertions(+), 0 deletions(-)

mod.zig+56
...@@ -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.html978 /// 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;
980980
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.html986 /// 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.html1118 /// 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;
11161120
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.html1126 /// 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.html1162 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/endutxent.html
1155 pub extern fn endutxent() void;1163 pub extern fn endutxent() void;
11561164
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.html1170 /// 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.html1242 /// 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;
12321244
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.html1250 /// 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.html1254 /// 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;
12401256
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.html1262 /// 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;
12441264
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.html1270 /// 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.html1310 /// 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;
12881312
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.html1326 /// 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.html1398 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgid.html
1363 pub extern fn getgid() gid_t;1399 pub extern fn getgid() gid_t;
13641400
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.html1406 /// 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.html1422 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getppid.html
1383 pub extern fn getppid() pid_t;1423 pub extern fn getppid() pid_t;
13841424
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.html1442 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getuid.html
1387 pub extern fn getuid() uid_t;1443 pub extern fn getuid() uid_t;