Lines Matching refs:ret
14 int ret = syscall(__NR_fchmodat2, dfd, filename, mode, flags);
16 return ret >= 0 ? ret : -errno;
21 int dfd, ret;
32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644);
33 if (ret < 0)
36 close(ret);
38 ret = symlinkat("regfile", dfd, "symlink");
39 if (ret < 0)
49 int ret = fstatat(dfd, filename, &st, AT_SYMLINK_NOFOLLOW);
51 if (ret)
60 int dfd, ret;
64 ret = sys_fchmodat2(dfd, "regfile", 0640, 0);
66 if (ret < 0)
73 ret = sys_fchmodat2(dfd, "regfile", 0600, AT_SYMLINK_NOFOLLOW);
75 if (ret < 0)
88 int dfd, ret;
92 ret = sys_fchmodat2(dfd, "symlink", 0640, 0);
94 if (ret < 0)
105 ret = sys_fchmodat2(dfd, "symlink", 0600, AT_SYMLINK_NOFOLLOW);
114 if (ret == 0 && !expect_mode(dfd, "symlink", 0120600))
122 if (ret != 0)