Home
last modified time | relevance | path

Searched refs:SYS_fcntl (Results 1 – 25 of 27) sorted by relevance

12

/third_party/musl/porting/liteos_a/user/src/fcntl/
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, fd, cmd, arg); in fcntl()
/third_party/musl/src/fcntl/
Dfcntl.c15 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()
Dopen.c18 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in open()
/third_party/musl/src/unistd/
Dpipe2.c14 __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()
Dfchdir.c9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchdir()
Ddup2.c13 r = __syscall(SYS_fcntl, old, F_GETFD); in dup2()
Dfchown.c9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchown()
Ddup3.c17 if (flags & O_CLOEXEC) __syscall(SYS_fcntl, new, F_SETFD, FD_CLOEXEC); in __dup3()
/third_party/musl/porting/liteos_a/user/src/unistd/
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/network/
Dsocketpair.c16 __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()
Daccept4.c15 __syscall(SYS_fcntl, ret, F_SETFD, FD_CLOEXEC); in accept4()
17 __syscall(SYS_fcntl, ret, F_SETFL, O_NONBLOCK); in accept4()
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/stdio/
D__fdopen.c30 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()
Dfreopen.c24 __syscall(SYS_fcntl, f->fd, F_SETFD, FD_CLOEXEC); in freopen()
26 if (syscall(SYS_fcntl, f->fd, F_SETFL, fl) < 0) in freopen()
Dfopen.c24 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in fopen()
D__fopen_rb_ca.c11 __syscall(SYS_fcntl, f->fd, F_SETFD, FD_CLOEXEC); in __fopen_rb_ca()
/third_party/musl/porting/linux/user/src/stdio/
D__fdopen.c70 __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/
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/
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/process/
Dposix_spawn.c113 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/
Dposix_spawn.c112 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/
Dfchmod.c9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchmod()
/third_party/musl/src/internal/
Dsyscall.h117 #undef SYS_fcntl
118 #define SYS_fcntl SYS_fcntl64 macro
/third_party/musl/porting/liteos_m/user/src/internal/
Dsyscall.h117 #undef SYS_fcntl
118 #define SYS_fcntl SYS_fcntl64 macro
/third_party/musl/porting/linux/user/src/internal/
Dsyscall.h117 #undef SYS_fcntl
118 #define SYS_fcntl SYS_fcntl64 macro

12