diff options
author | Kuba Sejdak <jakub.sejdak@phoesys.com> | 2016-06-24 14:14:47 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-06-27 13:23:34 +0200 |
commit | 4473035feb12709985c1810d4760e959474e0807 (patch) | |
tree | 5f12191fa00080e0d0f38091066d7d684adf3a97 | |
parent | 084253081a1b772dde291bb51d6faa7c5e115f1c (diff) | |
download | cygnal-4473035feb12709985c1810d4760e959474e0807.tar.gz cygnal-4473035feb12709985c1810d4760e959474e0807.tar.bz2 cygnal-4473035feb12709985c1810d4760e959474e0807.zip |
Phoenix-RTOS: Provide daemon() and fdatasync() syscalls in <sys/unistd.h>.
-rw-r--r-- | newlib/libc/sys/phoenix/sys/unistd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/sys/phoenix/sys/unistd.h b/newlib/libc/sys/phoenix/sys/unistd.h index 6e171449c..bdf5bd529 100644 --- a/newlib/libc/sys/phoenix/sys/unistd.h +++ b/newlib/libc/sys/phoenix/sys/unistd.h @@ -31,6 +31,7 @@ #define __need_size_t #define __need_ptrdiff_t #include <stddef.h> +#include <sys/select.h> extern char **environ; @@ -46,6 +47,7 @@ int close(int fd); int _close(int fd); char *ctermid(char *s); char *cuserid(char *string); +int daemon(int nochdir, int noclose); int dup(int oldfd); int dup2(int olffd, int newfd); int execl(const char *path, const char *arg, ...); @@ -59,6 +61,7 @@ int execvpe(const char *file, char *const argv[], char *const envp[]); int fchdir(int fd); int fchmod(int fd, mode_t mode); int fchown(int fd, uid_t owner, gid_t group); +int fdatasync(int fd); pid_t fork(); long fpathconf(int fd, int name); int fsync(int fd); |