authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-12-28 22:20:08 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-12-28 22:20:08 -08:00
logf76570ebf6f442577256c154bd712637216ecd76
treea14c5183f1cb6036bd491cbbcfa8762da1ee8dd7
parentf902964546f8184e84e15e4100c27770bec15d8b

add missing libc methods


1 files changed, 13 insertions(+), 8 deletions(-)

mod.zig+13-8
...@@ -1330,6 +1330,10 @@ pub const libc = struct {...@@ -1330,6 +1330,10 @@ pub const libc = struct {
1330 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fpathconf.html1330 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fpathconf.html
1331 pub extern fn fpathconf(fildes: c_int, name: c_int) c_long;1331 pub extern fn fpathconf(fildes: c_int, name: c_int) c_long;
13321332
1333 /// int fstat(int fildes, struct stat *buf);
1334 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fstat.html
1335 pub extern fn fstat(fd: c_int, buf: *struct_stat) c_int;
1336
1333 /// int getchar(void);1337 /// int getchar(void);
1334 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getchar.html1338 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getchar.html
1335 pub extern fn getchar() c_int;1339 pub extern fn getchar() c_int;
...@@ -1378,16 +1382,17 @@ pub const libc = struct {...@@ -1378,16 +1382,17 @@ pub const libc = struct {
1378 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getuid.html1382 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getuid.html
1379 pub extern fn getuid() uid_t;1383 pub extern fn getuid() uid_t;
13801384
1385 /// int mkdirat(int fd, const char *path, mode_t mode);
1386 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkdirat.html
1387 pub extern fn mkdirat(fd: c_int, path: [*:0]const u8, mode: mode_t) c_int;
13811388
1389 /// int openat(int fd, const char *path, int oflag, ...);
1390 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/openat.html
1391 pub extern fn openat(fd: c_int, file: [*:0]const u8, oflag: c_int, ...) c_int;
13821392
13831393 /// ssize_t read(int fildes, void *buf, size_t nbyte);
13841394 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/read.html
13851395 pub extern fn read(fd: c_int, buf: [*]u8, count: usize) isize;
1386
1387
1388
1389
1390
13911396
1392 //1397 //
1393 //1398 //