Lines Matching defs:fd
82 int fd;
91 if ((fd = mkstemp(tmpname)) == -1) {
98 if ((tmpfp[tmpfp_idx] = fdopen(fd, "w+F")) == NULL) {
101 (void) close(fd);
110 (void) close(fd);
229 int fd;
234 if ((fd = open(fname, O_RDONLY)) == -1) {
240 if (fstat(fd, &statbuf) == -1) {
243 (void) close(fd);
251 n = read(fd, buf, statbuf.st_size);
271 (void) close(fd);