Lines Matching defs:fd
4649 int fd = -1;
4694 fd = open(fullpath, O_CREAT|O_TRUNC|O_RDWR, 0400);
4695 if (fd == -1) {
4762 (void) write(fd, (const void *) rkey->keydata.val, rkey->keydata.len);
4771 if (fd != -1)
4772 (void) close(fd);
4890 int fd;
4896 fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, mode);
4897 if (fd == -1 && errno == EEXIST)
4899 else if (fd == -1) /* some other error */
4903 (void) close(fd);