Lines Matching defs:fd
151 int fd;
304 if ((fd = file_creat(arcn)) < 0) {
313 res = (*frmt->rd_data)(arcn, fd, &cnt);
314 file_close(arcn, fd);
357 int fd = -1;
400 fd = -1;
428 if ((fd = open(arcn->org_name, O_RDONLY, 0)) < 0) {
444 rdfile_close(arcn, &fd);
449 if ((res > 0) || (docrc && (set_crc(arcn, fd) < 0))) {
454 rdfile_close(arcn, &fd);
474 rdfile_close(arcn, &fd);
487 rdfile_close(arcn, &fd);
499 res = (*frmt->wr_data)(arcn, fd, &cnt);
500 rdfile_close(arcn, &fd);