Lines Matching refs:fd
88 int fd;
92 fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0700);
93 fail_if(fd == -1, "Cannot create simple file\n");
95 size = write(fd, "abc", 3);
98 ret = fsync(fd);
101 ret = close(fd);
213 int fd = -1;
251 ret = check_and_open_readonly(tmp, &fd, uid, gid, S_IFREG|S_IRWXU, 0);
253 close(fd);
265 int fd = -1;
294 ret = check_and_open_readonly(bar_path, &fd, uid, gid, S_IFREG|S_IRWXU, 0);
296 close(fd);