Implement mkfifoat(2)

This commit is contained in:
Connor-GH
2026-01-12 19:37:25 -06:00
committed by Landon Propes
parent 5265b732cc
commit da140913bc
4 changed files with 34 additions and 2 deletions
+4
View File
@@ -527,6 +527,10 @@ impl Pal for Sys {
Sys::mknodat(AT_FDCWD, path, mode, dev)
}
fn mkfifoat(dir_fd: c_int, path: CStr, mode: mode_t) -> Result<()> {
Sys::mknodat(dir_fd, path, mode | S_IFIFO, 0)
}
fn mkfifo(path: CStr, mode: mode_t) -> Result<()> {
Sys::mknod(path, mode | S_IFIFO, 0)
}