From aef9bd635745ef4414b65b81918ad514463ba151 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 7 Aug 2025 01:15:58 +0300 Subject: [PATCH] LibC: Add mk{nod,fifo}{,at} stubs These are needed for our tcl port --- userspace/libraries/LibC/sys/stat.cpp | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/userspace/libraries/LibC/sys/stat.cpp b/userspace/libraries/LibC/sys/stat.cpp index ef82df56..4a4f7c14 100644 --- a/userspace/libraries/LibC/sys/stat.cpp +++ b/userspace/libraries/LibC/sys/stat.cpp @@ -1,4 +1,5 @@ #include +#include #include #include @@ -54,6 +55,34 @@ int mkdir(const char* path, mode_t mode) return syscall(SYS_CREATE_DIR, path, __UMASKED_MODE(mode)); } +int mkfifo(const char* path, mode_t mode) +{ + (void)path; (void)mode; + dwarnln("TODO: mkfifo"); + return -1; +} + +int mkfifoat(int fd, const char* path, mode_t mode) +{ + (void)fd; (void)path; (void)mode; + dwarnln("TODO: mkfifoat"); + return -1; +} + +int mknod(const char* path, mode_t mode, dev_t dev) +{ + (void)path; (void)mode; (void)dev; + dwarnln("TODO: mknod"); + return -1; +} + +int mknodat(int fd, const char* path, mode_t mode, dev_t dev) +{ + (void)fd; (void)path; (void)mode; (void)dev; + dwarnln("TODO: mknodat"); + return -1; +} + int futimens(int fd, const struct timespec times[2]) { return utimensat(fd, nullptr, times, 0);