Lines Matching defs:ret
19 int ret = __syscall(SYS_fcntl, fd, F_GETOWN_EX, &ex);
20 if (ret == -EINVAL) return __syscall(SYS_fcntl, fd, cmd, (void *)arg);
21 if (ret) return __syscall_ret(ret);
25 int ret = __syscall(SYS_fcntl, fd, F_DUPFD_CLOEXEC, arg);
26 if (ret != -EINVAL) {
27 if (ret >= 0)
28 __syscall(SYS_fcntl, ret, F_SETFD, FD_CLOEXEC);
29 return __syscall_ret(ret);
31 ret = __syscall(SYS_fcntl, fd, F_DUPFD_CLOEXEC, 0);
32 if (ret != -EINVAL) {
33 if (ret >= 0) __syscall(SYS_close, ret);
36 ret = __syscall(SYS_fcntl, fd, F_DUPFD, arg);
37 if (ret >= 0) __syscall(SYS_fcntl, ret, F_SETFD, FD_CLOEXEC);
38 return __syscall_ret(ret);