/third_party/musl/porting/liteos_a/user/src/fcntl/ |
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, fd, cmd, arg); in fcntl()
|
/third_party/musl/src/fcntl/ |
D | fcntl.c | 15 if (cmd == F_SETLKW) return syscall_cp(SYS_fcntl, fd, cmd, (void *)arg); in fcntl() 18 int ret = __syscall(SYS_fcntl, fd, F_GETOWN_EX, &ex); in fcntl() 19 if (ret == -EINVAL) return __syscall(SYS_fcntl, fd, cmd, (void *)arg); in fcntl() 24 int ret = __syscall(SYS_fcntl, fd, F_DUPFD_CLOEXEC, arg); in fcntl() 27 __syscall(SYS_fcntl, ret, F_SETFD, FD_CLOEXEC); in fcntl() 30 ret = __syscall(SYS_fcntl, fd, F_DUPFD_CLOEXEC, 0); in fcntl() 35 ret = __syscall(SYS_fcntl, fd, F_DUPFD, arg); in fcntl() 36 if (ret >= 0) __syscall(SYS_fcntl, ret, F_SETFD, FD_CLOEXEC); in fcntl() 44 return syscall(SYS_fcntl, fd, cmd, (void *)arg); in fcntl() 46 return syscall(SYS_fcntl, fd, cmd, arg); in fcntl()
|
D | open.c | 18 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in open()
|
/third_party/musl/src/unistd/ |
D | pipe2.c | 14 __syscall(SYS_fcntl, fd[0], F_SETFD, FD_CLOEXEC); in pipe2() 15 __syscall(SYS_fcntl, fd[1], F_SETFD, FD_CLOEXEC); in pipe2() 18 __syscall(SYS_fcntl, fd[0], F_SETFL, O_NONBLOCK); in pipe2() 19 __syscall(SYS_fcntl, fd[1], F_SETFL, O_NONBLOCK); in pipe2()
|
D | fchdir.c | 9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchdir()
|
D | dup2.c | 13 r = __syscall(SYS_fcntl, old, F_GETFD); in dup2()
|
D | fchown.c | 9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchown()
|
D | dup3.c | 17 if (flags & O_CLOEXEC) __syscall(SYS_fcntl, new, F_SETFD, FD_CLOEXEC); in __dup3()
|
/third_party/musl/porting/liteos_a/user/src/unistd/ |
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/network/ |
D | socketpair.c | 16 __syscall(SYS_fcntl, fd[0], F_SETFD, FD_CLOEXEC); in socketpair() 17 __syscall(SYS_fcntl, fd[1], F_SETFD, FD_CLOEXEC); in socketpair() 20 __syscall(SYS_fcntl, fd[0], F_SETFL, O_NONBLOCK); in socketpair() 21 __syscall(SYS_fcntl, fd[1], F_SETFL, O_NONBLOCK); in socketpair()
|
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()
|
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/stdio/ |
D | __fdopen.c | 30 if (strchr(mode, 'e')) __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in __fdopen() 34 int flags = __syscall(SYS_fcntl, fd, F_GETFL); in __fdopen() 36 __syscall(SYS_fcntl, fd, F_SETFL, flags | O_APPEND); in __fdopen()
|
D | freopen.c | 24 __syscall(SYS_fcntl, f->fd, F_SETFD, FD_CLOEXEC); in freopen() 26 if (syscall(SYS_fcntl, f->fd, F_SETFL, fl) < 0) in freopen()
|
D | fopen.c | 24 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in fopen()
|
D | __fopen_rb_ca.c | 11 __syscall(SYS_fcntl, f->fd, F_SETFD, FD_CLOEXEC); in __fopen_rb_ca()
|
/third_party/musl/porting/linux/user/src/stdio/ |
D | __fdopen.c | 70 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in __fdopen() 75 int flags = __syscall(SYS_fcntl, fd, F_GETFL); in __fdopen() 77 __syscall(SYS_fcntl, fd, F_SETFL, flags | O_APPEND); in __fdopen()
|
/third_party/musl/src/linux/ |
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/ |
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/process/ |
D | posix_spawn.c | 113 ret = __syscall(SYS_fcntl, fd, F_GETFD); in child() 114 ret = __syscall(SYS_fcntl, fd, F_SETFD, in child() 145 __syscall(SYS_fcntl, p, F_SETFD, FD_CLOEXEC); in child()
|
/third_party/musl/src/process/ |
D | posix_spawn.c | 112 ret = __syscall(SYS_fcntl, fd, F_GETFD); in child() 113 ret = __syscall(SYS_fcntl, fd, F_SETFD, in child() 144 __syscall(SYS_fcntl, p, F_SETFD, FD_CLOEXEC); in child()
|
/third_party/musl/src/stat/ |
D | fchmod.c | 9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchmod()
|
/third_party/musl/src/internal/ |
D | syscall.h | 117 #undef SYS_fcntl 118 #define SYS_fcntl SYS_fcntl64 macro
|
/third_party/musl/porting/liteos_m/user/src/internal/ |
D | syscall.h | 117 #undef SYS_fcntl 118 #define SYS_fcntl SYS_fcntl64 macro
|
/third_party/musl/porting/linux/user/src/internal/ |
D | syscall.h | 117 #undef SYS_fcntl 118 #define SYS_fcntl SYS_fcntl64 macro
|