1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

LibCore: Add mkfifo() syscall wrapper

This commit is contained in:
Kenneth Myhra 2022-01-17 10:04:00 +01:00 committed by Ali Mohammad Pur
parent 3af7a5dd61
commit c10abd6be2
2 changed files with 6 additions and 0 deletions

View file

@ -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);
}
}