Lines Matching defs:fd
92 int fd = -1;
105 if ((fd = open(LOGINDEVPERM, O_RDONLY)) == -1)
107 if (fstat(fd, &f_stat) != 0) {
108 (void) close(fd);
113 (void) close(fd);
116 if ((fp = fdopen(fd, "rF")) == NULL) {
118 (void) close(fd);
196 int fd = -1;
223 if ((fd = open(fname, O_RDONLY)) == -1) {
233 (void) close(fd);
236 if (read(fd, *fbuf, fsize) < fsize) {
239 (void) close(fd);
248 (void) close(fd);
254 (void) close(fd);
260 (void) close(fd);
866 * (or sr, fd for unlabeled)
1223 * closing the fd of the lock file, or it expires automatically at process
1225 * returns fd of the lock file or -1 on error.
1288 * caller by closing the lock file fd, or it expires automatically at
1291 * returns fd of the lock file on success, -2 if database file does not
1991 else if (strstr(link, "fd") || strstr(link, "rfd") ||