Lines Matching refs:dirfd
62 fd = openat(dirfd(d), filename, O_CREAT | O_RDWR);
113 fbl::unique_fd fd = fbl::unique_fd(openat(dirfd(d), filename, O_CREAT | O_RDWR));
132 int fd_another = openat(dirfd(d), filename_another, O_CREAT | O_RDWR);
136 ASSERT_EQ(unlinkat(dirfd(d), filename_another, 0), 0);
156 ASSERT_EQ(unlinkat(dirfd(d), "file-a", 0), 0);
157 fd = fbl::unique_fd(openat(dirfd(d), filename, O_CREAT | O_RDWR));
186 fd = openat(dirfd(d), filename, O_CREAT | O_RDWR);
244 int fd = openat(dirfd(d), "foo", O_CREAT | O_RDWR);
250 if ((fd = openat(dirfd(d), "foo", O_RDWR)) < 0) {
269 ASSERT_LT(openat(dirfd(d), "foo", O_CREAT | O_RDWR), 0);