authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-02 19:12:57 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-02 19:12:57 -08:00
log1167b69d98220fd017d1721a85a5cc6a0fca8774
tree6ca78fb50c2142f9c4d78cbea6d80df2fa730d98
parentc83d15653230c3a66f2c0652ac6138f6ec6a2f1c

more libc


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

mod.zig+28
...@@ -1070,10 +1070,34 @@ pub const libc = struct {...@@ -1070,10 +1070,34 @@ pub const libc = struct {
1070 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ceill.html1070 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ceill.html
1071 pub extern fn ceill(x: c_longdouble) c_longdouble;1071 pub extern fn ceill(x: c_longdouble) c_longdouble;
10721072
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 /// clock_t clock(void);1085 /// clock_t clock(void);
1074 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock.html1086 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock.html
1075 pub extern fn clock() clock_t;1087 pub extern fn clock() clock_t;
10761088
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 /// int close(int fildes);1101 /// int close(int fildes);
1078 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/close.html1102 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/close.html
1079 pub extern fn close(fildes: c_int) c_int;1103 pub extern fn close(fildes: c_int) c_int;
...@@ -2514,6 +2538,10 @@ pub const libc = struct {...@@ -2514,6 +2538,10 @@ pub const libc = struct {
2514 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcwidth.html2538 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcwidth.html
2515 pub extern fn wcwidth(wc: wchar_t) c_int;2539 pub extern fn wcwidth(wc: wchar_t) c_int;
25162540
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 /// double y0(double x);2545 /// double y0(double x);
2518 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/y0.html2546 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/y0.html
2519 pub extern fn y0(x: f64) f64;2547 pub extern fn y0(x: f64) f64;