mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
LibC: Implement mkfifoat(2)
This commit is contained in:
parent
4574a8c334
commit
c44a8fa57c
Notes:
sideshowbarker
2024-07-17 10:08:28 +09:00
Author: https://github.com/implicitfield Commit: https://github.com/SerenityOS/serenity/commit/c44a8fa57c Pull-request: https://github.com/SerenityOS/serenity/pull/23099 Reviewed-by: https://github.com/timschumi ✅
@ -81,6 +81,12 @@ int mkfifo(char const* pathname, mode_t mode)
|
||||
return mknod(pathname, mode | S_IFIFO, 0);
|
||||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkfifoat.html
|
||||
int mkfifoat(int dirfd, char const* pathname, mode_t mode)
|
||||
{
|
||||
return mknodat(dirfd, pathname, mode | S_IFIFO, 0);
|
||||
}
|
||||
|
||||
static int do_stat(int dirfd, char const* path, struct stat* statbuf, bool follow_symlinks)
|
||||
{
|
||||
if (!path) {
|
||||
|
@ -20,6 +20,7 @@ int fchmod(int fd, mode_t);
|
||||
int mkdir(char const* pathname, mode_t);
|
||||
int mkdirat(int dirfd, char const* pathname, mode_t);
|
||||
int mkfifo(char const* pathname, mode_t);
|
||||
int mkfifoat(int dirfd, char const* pathname, mode_t);
|
||||
int fstat(int fd, struct stat* statbuf);
|
||||
int lstat(char const* path, struct stat* statbuf);
|
||||
int stat(char const* path, struct stat* statbuf);
|
||||
|
Loading…
Reference in New Issue
Block a user