Lines Matching defs:fd
41 int fd = fileno(file);
44 if (fstat(fd, &sb) == 0 && sb.st_size > 0) {
47 if (length == read(fd, (void*) bytes, length)) {
63 int fd = fileno(file);
66 if (fstat(fd, &sb) == 0 && sb.st_size > 0) {
69 if (length != read(fd, (void*) *buffer, length)) {
83 int fd = fileno(file);
86 if (FAILURE != ftruncate(fd, size)) {
87 if (size != write(fd, data.string(), size)) {
100 int fd = fileno(file);
103 if (size != write(fd, data.string(), size)) {