mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-01 13:44:21 +00:00
LibC: Implement mkfifoat(2)
This commit is contained in:
parent
4574a8c334
commit
c44a8fa57c
|
@ -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 a new issue