diff options
| author | Jakob Kaivo <jkk@ung.org> | 2020-08-13 10:57:23 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2020-08-13 10:57:23 -0400 |
| commit | f7b930d5218b09c7fcd61436dc815ca4987f9d7b (patch) | |
| tree | ab7b7ced42ab6016d8c165e0860f96ad27edc36b | |
| parent | e990e08823bf1d78071f9dc0306d3796928a8039 (diff) | |
implement as syscall
| -rw-r--r-- | src/sys/stat/mkfifo.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sys/stat/mkfifo.c b/src/sys/stat/mkfifo.c index 2d475258..e34079e7 100644 --- a/src/sys/stat/mkfifo.c +++ b/src/sys/stat/mkfifo.c @@ -1,10 +1,14 @@ #include "sys/types.h" #include <sys/stat.h> +#include "../../_syscall.h" + +#ifndef S_IFIFO +#include "S_IFIFO.c" +#endif int mkfifo(const char *path, mode_t mode) { - (void)path; (void)mode; - return 0; + SYSCALL(mknod, int, -1, path, mode, S_IFIFO, 0, 0, 0); } /* POSIX(1) |
