mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibCore: Add mkfifo() syscall wrapper
This commit is contained in:
parent
3af7a5dd61
commit
c10abd6be2
Notes:
sideshowbarker
2024-07-17 20:19:26 +09:00
Author: https://github.com/kennethmyhra
Commit: c10abd6be2
Pull-request: https://github.com/SerenityOS/serenity/pull/11896
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bgianfo ✅
Reviewed-by: https://github.com/linusg
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue