diff options
-rw-r--r-- | Userland/Libraries/LibCore/System.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibCore/System.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/System.cpp b/Userland/Libraries/LibCore/System.cpp index 3bb1c698fd..244a09a821 100644 --- a/Userland/Libraries/LibCore/System.cpp +++ b/Userland/Libraries/LibCore/System.cpp @@ -945,4 +945,9 @@ ErrorOr<void> mknod(StringView pathname, mode_t mode, dev_t dev) #endif } +ErrorOr<void> mkfifo(StringView pathname, mode_t mode) +{ + return mknod(pathname, mode | S_IFIFO, 0); +} + } diff --git a/Userland/Libraries/LibCore/System.h b/Userland/Libraries/LibCore/System.h index fb6ba508ed..1583e76fb8 100644 --- a/Userland/Libraries/LibCore/System.h +++ b/Userland/Libraries/LibCore/System.h @@ -136,5 +136,6 @@ ErrorOr<void> getpeername(int sockfd, struct sockaddr*, socklen_t*); ErrorOr<void> socketpair(int domain, int type, int protocol, int sv[2]); ErrorOr<Vector<gid_t>> getgroups(); ErrorOr<void> mknod(StringView pathname, mode_t mode, dev_t dev); +ErrorOr<void> mkfifo(StringView pathname, mode_t mode); } |