Lines Matching refs:fd
53 writeFile(int fd, const void * data, size_t length)
57 if (length != (size_t)write(fd, data, length)) {
74 int fd;
81 if ((fd = open(path, O_RDONLY)) == -1) {
85 if (fstat(fd, &stat_buf) == -1) {
102 fd, 0 /* offset */);
114 if (-1 != fd) {
115 close(fd);
238 int fd = open(output_name, O_WRONLY|O_CREAT|O_TRUNC, 0755);
239 if (-1 == fd) {
242 error = writeFile(fd, (const void *) input, input_size);
243 close(fd);