Lines Matching defs:fd
41 int fd;
60 fd = -1;
67 if (fd != -1) {
68 ret = close(fd);
82 ret = check_and_open_readonly("/bla/bla/bla", &fd,
86 fail_unless(fd == -1, "check_and_open_readonly file descriptor not -1");
148 ret = check_and_open_readonly("/dev/null", &fd, uid, gid, S_IFREG|mode, 0);
151 fail_unless(fd == -1, "check_and_open_readonly file descriptor not -1");
159 ret = check_and_open_readonly(filename, &fd, uid+1, gid, S_IFREG|mode, 0);
162 fail_unless(fd == -1, "check_and_open_readonly file descriptor not -1");
170 ret = check_and_open_readonly(filename, &fd, uid, gid+1, S_IFREG|mode, 0);
173 fail_unless(fd == -1, "check_and_open_readonly file descriptor not -1");
181 ret = check_and_open_readonly(filename, &fd,
185 fail_unless(fd == -1, "check_and_open_readonly file descriptor not -1");
193 ret = check_and_open_readonly(filename, &fd, uid, gid, S_IFREG|mode, 0);
196 fail_unless(fd >= 0,
207 ret = check_and_open_readonly(filename, &fd, uid, gid, S_IFREG|mode, 0);
210 fail_unless(fd >= 0,
213 size = write(fd, "abc", 3);