/third_party/musl/src/fcntl/ |
H A D | fcntl.c | 17 if (cmd == F_SETLKW) return syscall_cp(SYS_fcntl, fd, cmd, (void *)arg); in fcntl() 20 int ret = __syscall(SYS_fcntl, fd, F_GETOWN_EX, &ex); in fcntl() 21 if (ret == -EINVAL) return __syscall(SYS_fcntl, fd, cmd, (void *)arg); in fcntl() 26 int ret = __syscall(SYS_fcntl, fd, F_DUPFD_CLOEXEC, arg); in fcntl() 29 __syscall(SYS_fcntl, ret, F_SETFD, FD_CLOEXEC); in fcntl() 32 ret = __syscall(SYS_fcntl, fd, F_DUPFD_CLOEXEC, 0); in fcntl() 37 ret = __syscall(SYS_fcntl, fd, F_DUPFD, arg); in fcntl() 38 if (ret >= 0) __syscall(SYS_fcntl, ret, F_SETFD, FD_CLOEXEC); in fcntl() 46 return syscall(SYS_fcntl, fd, cmd, (void *)arg); in fcntl() 48 return syscall(SYS_fcntl, f in fcntl() [all...] |
H A D | open.c | 22 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in open()
|
/third_party/musl/porting/liteos_a/user/src/fcntl/ |
H A D | fcntl.c | 14 if (cmd == F_SETLKW) return syscall_cp(SYS_fcntl, fd, cmd, (void *)arg); in fcntl() 17 int ret = __syscall(SYS_fcntl, fd, F_GETOWN_EX, &ex); in fcntl() 18 if (ret == -EINVAL) return __syscall(SYS_fcntl, fd, cmd, (void *)arg); in fcntl() 23 int ret = __syscall(SYS_fcntl, fd, F_DUPFD_CLOEXEC, arg); in fcntl() 26 __syscall(SYS_fcntl, ret, F_SETFD, FD_CLOEXEC); in fcntl() 29 ret = __syscall(SYS_fcntl, fd, F_DUPFD_CLOEXEC, 0); in fcntl() 34 ret = __syscall(SYS_fcntl, fd, F_DUPFD, arg); in fcntl() 35 if (ret >= 0) __syscall(SYS_fcntl, ret, F_SETFD, FD_CLOEXEC); in fcntl() 43 return syscall(SYS_fcntl, fd, cmd, (void *)arg); in fcntl() 45 return syscall(SYS_fcntl, f in fcntl() [all...] |
/third_party/musl/porting/liteos_a/user/src/unistd/ |
H A D | pipe2.c | 16 __syscall(SYS_fcntl, fd[0], F_SETFD, FD_CLOEXEC); in pipe2() 17 __syscall(SYS_fcntl, fd[1], F_SETFD, FD_CLOEXEC); in pipe2() 20 __syscall(SYS_fcntl, fd[0], F_SETFL, O_NONBLOCK); in pipe2() 21 __syscall(SYS_fcntl, fd[1], F_SETFL, O_NONBLOCK); in pipe2()
|
/third_party/musl/src/unistd/ |
H A D | pipe2.c | 17 __syscall(SYS_fcntl, fd[0], F_SETFD, FD_CLOEXEC); in pipe2() 18 __syscall(SYS_fcntl, fd[1], F_SETFD, FD_CLOEXEC); in pipe2() 21 __syscall(SYS_fcntl, fd[0], F_SETFL, O_NONBLOCK); in pipe2() 22 __syscall(SYS_fcntl, fd[1], F_SETFL, O_NONBLOCK); in pipe2()
|
H A D | fchdir.c | 9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchdir()
|
H A D | dup2.c | 13 r = __syscall(SYS_fcntl, old, F_GETFD); in dup2()
|
H A D | dup3.c | 19 __syscall(SYS_fcntl, new, F_SETFD, FD_CLOEXEC); in __dup3()
|
H A D | fchown.c | 9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchown()
|
/third_party/musl/src/network/ |
H A D | socketpair.c | 19 __syscall(SYS_fcntl, fd[0], F_SETFD, FD_CLOEXEC); in socketpair() 20 __syscall(SYS_fcntl, fd[1], F_SETFD, FD_CLOEXEC); in socketpair() 23 __syscall(SYS_fcntl, fd[0], F_SETFL, O_NONBLOCK); in socketpair() 24 __syscall(SYS_fcntl, fd[1], F_SETFL, O_NONBLOCK); in socketpair()
|
H A D | accept4.c | 15 __syscall(SYS_fcntl, ret, F_SETFD, FD_CLOEXEC); in accept4() 17 __syscall(SYS_fcntl, ret, F_SETFL, O_NONBLOCK); in accept4()
|
H A D | socket.c | 64 __syscall(SYS_fcntl, s, F_SETFD, FD_CLOEXEC); in __libc_socket() 66 __syscall(SYS_fcntl, s, F_SETFL, O_NONBLOCK); in __libc_socket()
|
/third_party/musl/porting/linux/user/src/stdio/ |
H A D | __fdopen.c | 73 int flags = syscall(SYS_fcntl, fd, F_GETFL, 0); in __fdopen() 85 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in __fdopen() 89 flags = __syscall(SYS_fcntl, fd, F_GETFL); in __fdopen() 91 __syscall(SYS_fcntl, fd, F_SETFL, flags | O_APPEND); in __fdopen()
|
H A D | freopen.c | 25 __syscall(SYS_fcntl, f->fd, F_SETFD, FD_CLOEXEC); in freopen() 27 if (syscall(SYS_fcntl, f->fd, F_SETFL, fl) < 0) { in freopen()
|
H A D | fopen.c | 22 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in fopen()
|
/third_party/musl/src/stdio/ |
H A D | __fdopen.c | 73 int flags = syscall(SYS_fcntl, fd, F_GETFL, 0); in __fdopen() 85 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in __fdopen() 89 flags = __syscall(SYS_fcntl, fd, F_GETFL); in __fdopen() 91 __syscall(SYS_fcntl, fd, F_SETFL, flags | O_APPEND); in __fdopen()
|
H A D | freopen.c | 25 __syscall(SYS_fcntl, f->fd, F_SETFD, FD_CLOEXEC); in freopen() 27 if (syscall(SYS_fcntl, f->fd, F_SETFL, fl) < 0) in freopen()
|
H A D | fopen.c | 22 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in fopen()
|
H A D | __fopen_rb_ca.c | 11 __syscall(SYS_fcntl, f->fd, F_SETFD, FD_CLOEXEC); in __fopen_rb_ca()
|
/third_party/musl/src/linux/ |
H A D | signalfd.c | 15 __syscall(SYS_fcntl, ret, F_SETFD, FD_CLOEXEC); in signalfd() 17 __syscall(SYS_fcntl, ret, F_SETFL, O_NONBLOCK); in signalfd()
|
/third_party/musl/porting/linux/user/src/network/ |
H A D | socket.c | 62 __syscall(SYS_fcntl, s, F_SETFD, FD_CLOEXEC); in __libc_socket() 65 __syscall(SYS_fcntl, s, F_SETFL, O_NONBLOCK); in __libc_socket()
|
/third_party/musl/porting/liteos_a/user/src/network/ |
H A D | socket.c | 57 __syscall(SYS_fcntl, s, F_SETFD, FD_CLOEXEC); in socket() 59 __syscall(SYS_fcntl, s, F_SETFL, O_NONBLOCK); in socket()
|
/third_party/musl/src/process/ |
H A D | posix_spawn.c | 115 ret = __syscall(SYS_fcntl, fd, F_GETFD); in child() 116 ret = __syscall(SYS_fcntl, fd, F_SETFD, in child() 147 __syscall(SYS_fcntl, p, F_SETFD, FD_CLOEXEC); in child()
|
/third_party/musl/porting/liteos_a/user/src/process/ |
H A D | posix_spawn.c | 114 ret = __syscall(SYS_fcntl, fd, F_GETFD); in child() 115 ret = __syscall(SYS_fcntl, fd, F_SETFD, in child() 146 __syscall(SYS_fcntl, p, F_SETFD, FD_CLOEXEC); in child()
|
/third_party/musl/src/stat/ |
H A D | fchmod.c | 9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchmod()
|