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 {
978978 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/acosl.html
979979 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
981985 /// double asin(double x);
982986 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/asin.html
983987 pub extern fn asin(x: f64) f64;
......@@ -1114,6 +1118,10 @@ pub const libc = struct {
11141118 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/div.html
11151119 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
11171125 /// double drand48(void);
11181126 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/drand48.html
11191127 pub extern fn drand48() f64;
......@@ -1154,6 +1162,10 @@ pub const libc = struct {
11541162 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/endutxent.html
11551163 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
11571169 /// double erf(double x);
11581170 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/erf.html
11591171 pub extern fn erf(x: f64) f64;
......@@ -1230,6 +1242,10 @@ pub const libc = struct {
12301242 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fabsl.html
12311243 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
12331249 /// int fchdir(int fildes);
12341250 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchdir.html
12351251 pub extern fn fchdir(fildes: c_int) c_int;
......@@ -1238,10 +1254,18 @@ pub const libc = struct {
12381254 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchmod.html
12391255 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
12411261 /// int fchown(int fildes, uid_t owner, gid_t group);
12421262 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchown.html
12431263 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
12451269 /// int fdatasync(int fildes);
12461270 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdatasync.html
12471271 pub extern fn fdatasync(fildes: c_int) c_int;
......@@ -1286,6 +1310,18 @@ pub const libc = struct {
12861310 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/floorl.html
12871311 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
12891325 /// double fmax(double x, double y);
12901326 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmax.html
12911327 pub extern fn fmax(x: f64, y: f64) f64;
......@@ -1362,6 +1398,10 @@ pub const libc = struct {
13621398 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgid.html
13631399 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
13651405 /// long gethostid(void);
13661406 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gethostid.html
13671407 pub extern fn gethostid() c_long;
......@@ -1382,6 +1422,22 @@ pub const libc = struct {
13821422 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getppid.html
13831423 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
13851441 /// uid_t getuid(void);
13861442 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getuid.html
13871443 pub extern fn getuid() uid_t;