kernel/libroot: add pipe2() from POSIX.1-2024
this adds a parameter to the create_pipe syscall. Adjust strace. Change-Id: I83e9f039eb28c862458654b66c03e2e21a258822 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8513 Reviewed-by: waddlesplash <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
30179dd326
commit
11cd4af6e1
@@ -341,6 +341,7 @@ extern int fchdir(int fd);
|
||||
extern char *getcwd(char *buffer, size_t size);
|
||||
|
||||
extern int pipe(int fildes[2]);
|
||||
extern int pipe2(int fildes[2], int flags);
|
||||
extern int dup(int fd);
|
||||
extern int dup2(int fd1, int fd2);
|
||||
extern int close(int fd);
|
||||
|
||||
@@ -206,7 +206,7 @@ status_t _user_unlink(int fd, const char *path);
|
||||
status_t _user_rename(int oldFD, const char *oldpath, int newFD,
|
||||
const char *newpath);
|
||||
status_t _user_create_fifo(int fd, const char *path, mode_t perms);
|
||||
status_t _user_create_pipe(int *fds);
|
||||
status_t _user_create_pipe(int *fds, int flags);
|
||||
status_t _user_access(int fd, const char *path, int mode,
|
||||
bool effectiveUserGroup);
|
||||
ssize_t _user_select(int numfds, fd_set *readSet, fd_set *writeSet,
|
||||
|
||||
@@ -295,7 +295,7 @@ extern status_t _kern_unlink(int fd, const char *path);
|
||||
extern status_t _kern_rename(int oldDir, const char *oldpath, int newDir,
|
||||
const char *newpath);
|
||||
extern status_t _kern_create_fifo(int fd, const char *path, mode_t perms);
|
||||
extern status_t _kern_create_pipe(int *fds);
|
||||
extern status_t _kern_create_pipe(int *fds, int flags);
|
||||
extern status_t _kern_access(int fd, const char *path, int mode,
|
||||
bool effectiveUserGroup);
|
||||
extern ssize_t _kern_select(int numfds, struct fd_set *readSet,
|
||||
|
||||
Reference in New Issue
Block a user