Lines Matching defs:fd
13 static int dump_record(int fd)
20 offset = lseek(fd, 0, SEEK_CUR);
22 ret = read(fd, &rec, sizeof(rec));
62 int fd, ret;
64 fd = open(argv[1], O_RDONLY);
65 if (fd < 0)
70 ret = dump_record(fd);
73 i_close_fd(&fd);
79 int fd;
87 fd = open(path, O_RDONLY);
88 if (fd == -1)
91 if (read(fd, &rec, sizeof(rec)) == sizeof(rec) &&
105 i_close_fd(&fd);