Home
last modified time | relevance | path

Searched refs:SYS_fcntl (Results 1 - 25 of 66) sorted by relevance

123

/third_party/musl/src/fcntl/
H A Dfcntl.c17 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 Dopen.c22 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in open()
/third_party/musl/porting/liteos_a/user/src/fcntl/
H A Dfcntl.c14 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 Dpipe2.c16 __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 Dpipe2.c17 __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 Dfchdir.c9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchdir()
H A Ddup2.c13 r = __syscall(SYS_fcntl, old, F_GETFD); in dup2()
H A Ddup3.c19 __syscall(SYS_fcntl, new, F_SETFD, FD_CLOEXEC); in __dup3()
H A Dfchown.c9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchown()
/third_party/musl/src/network/
H A Dsocketpair.c19 __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 Daccept4.c15 __syscall(SYS_fcntl, ret, F_SETFD, FD_CLOEXEC); in accept4()
17 __syscall(SYS_fcntl, ret, F_SETFL, O_NONBLOCK); in accept4()
H A Dsocket.c64 __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.c73 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 Dfreopen.c25 __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 Dfopen.c22 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in fopen()
/third_party/musl/src/stdio/
H A D__fdopen.c73 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 Dfreopen.c25 __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 Dfopen.c22 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in fopen()
H A D__fopen_rb_ca.c11 __syscall(SYS_fcntl, f->fd, F_SETFD, FD_CLOEXEC); in __fopen_rb_ca()
/third_party/musl/src/linux/
H A Dsignalfd.c15 __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 Dsocket.c62 __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 Dsocket.c57 __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 Dposix_spawn.c115 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 Dposix_spawn.c114 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 Dfchmod.c9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchmod()

Completed in 5 milliseconds

123