Lines Matching defs:fd
68 writeFile(int fd, const void * data, size_t length);
79 writeFile(int fd, const void * data, size_t length)
83 if (length != (size_t)write(fd, data, length))
100 int fd;
108 if((fd = open(path, O_RDONLY)) == -1)
111 if(fstat(fd, &stat_buf) == -1)
129 fd, 0 /* offset */);
141 if (-1 != fd)
143 close(fd);
457 int i, fd;
699 fd = open(output_name, O_WRONLY|O_CREAT|O_TRUNC, 0755);
700 if (-1 == fd)
737 err = writeFile(fd, &hdr, sizeof(hdr));
756 err = writeFile(fd, &hdr, sizeof(hdr));
766 err = writeFile(fd, &symcmd, sizeof(symcmd));
769 err = writeFile(fd, &uuidcmd, sizeof(uuidcmd));
826 err = writeFile(fd, &nl, sizeof(nl));
856 err = writeFile(fd, &nl, sizeof(nl));
865 err = writeFile(fd, &zero, strx);
876 err = writeFile(fd, export_symbols[export_idx].list[import_idx].name,
882 err = writeFile(fd, export_symbols[export_idx].list[import_idx].indirect,
890 err = writeFile(fd, &zero, strtabpad - strtabsize);
894 close(fd);