mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-02 16:00:30 +00:00
Add mkfifo()
This commit is contained in:
parent
38930de8e0
commit
43d8d4bc12
2 changed files with 8 additions and 0 deletions
|
@ -130,6 +130,7 @@ int mincore(void *, size_t, unsigned char *) libcesque __read_only(1) __write_on
|
||||||
int mkdir(const char *, unsigned) libcesque __read_only(1);
|
int mkdir(const char *, unsigned) libcesque __read_only(1);
|
||||||
int mkdirat(int, const char *, unsigned) libcesque __read_only(2);
|
int mkdirat(int, const char *, unsigned) libcesque __read_only(2);
|
||||||
int mknod(const char *, unsigned, uint64_t) libcesque __read_only(1);
|
int mknod(const char *, unsigned, uint64_t) libcesque __read_only(1);
|
||||||
|
int mkfifo(const char *, uint32_t) libcesque __read_only(1);
|
||||||
int nice(int) libcesque;
|
int nice(int) libcesque;
|
||||||
int open(const char *, int, ...) libcesque __read_only(1);
|
int open(const char *, int, ...) libcesque __read_only(1);
|
||||||
int openat(int, const char *, int, ...) libcesque __read_only(2);
|
int openat(int, const char *, int, ...) libcesque __read_only(2);
|
||||||
|
|
7
libc/calls/mkfifo.c
Normal file
7
libc/calls/mkfifo.c
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#include "libc/calls/calls.h"
|
||||||
|
#include "libc/sysv/consts/s.h"
|
||||||
|
|
||||||
|
int mkfifo(const char *path, uint32_t mode)
|
||||||
|
{
|
||||||
|
return mknod(path, mode | S_IFIFO, 0);
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue