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