mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00: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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue