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 {
13301330 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fpathconf.html
13311331 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
13331337 /// int getchar(void);
13341338 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getchar.html
13351339 pub extern fn getchar() c_int;
......@@ -1378,16 +1382,17 @@ pub const libc = struct {
13781382 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getuid.html
13791383 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
1383
1384
1385
1386
1387
1388
1389
1390
1393 /// ssize_t read(int fildes, void *buf, size_t nbyte);
1394 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/read.html
1395 pub extern fn read(fd: c_int, buf: [*]u8, count: usize) isize;
13911396
13921397 //
13931398 //