Lines Matching refs:r
46 int r, fd; in mfd_assert_new() local
55 r = ftruncate(fd, sz); in mfd_assert_new()
56 if (r < 0) { in mfd_assert_new()
66 long r; in mfd_assert_get_seals() local
68 r = fcntl(fd, F_GET_SEALS); in mfd_assert_get_seals()
69 if (r < 0) { in mfd_assert_get_seals()
74 return r; in mfd_assert_get_seals()
91 long r; in mfd_assert_add_seals() local
95 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_assert_add_seals()
96 if (r < 0) { in mfd_assert_add_seals()
105 long r; in mfd_busy_add_seals() local
108 r = fcntl(fd, F_GET_SEALS); in mfd_busy_add_seals()
109 if (r < 0) in mfd_busy_add_seals()
112 s = r; in mfd_busy_add_seals()
114 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_busy_add_seals()
115 if (r < 0 && errno != EBUSY) { in mfd_busy_add_seals()
121 return r; in mfd_busy_add_seals()
165 int sig, r; in sealing_thread_fn() local
186 r = mfd_busy_add_seals(global_mfd, F_SEAL_WRITE); in sealing_thread_fn()
187 if (r >= 0) { in sealing_thread_fn()
231 int fd, mfd, r; in main() local
289 r = read(fd, p, mfd_def_size); in main()
290 if (r < 0) { in main()
293 } else if (!r) { in main()