Lines Matching refs:descriptor
62 simple_object_internal_read (int descriptor, off_t offset, in simple_object_internal_read() argument
66 if (lseek (descriptor, offset, SEEK_SET) < 0) in simple_object_internal_read()
75 ssize_t got = read (descriptor, buffer, size); in simple_object_internal_read()
106 simple_object_internal_write (int descriptor, off_t offset, in simple_object_internal_write() argument
110 if (lseek (descriptor, offset, SEEK_SET) < 0) in simple_object_internal_write()
119 ssize_t wrote = write (descriptor, buffer, size); in simple_object_internal_write()
149 simple_object_start_read (int descriptor, off_t offset, in simple_object_start_read() argument
156 if (!simple_object_internal_read (descriptor, offset, header, in simple_object_start_read()
166 data = format_functions[i]->match (header, descriptor, offset, in simple_object_start_read()
173 ret->descriptor = descriptor; in simple_object_start_read()
400 simple_object_write_to_file (simple_object_write *sobj, int descriptor, in simple_object_write_to_file() argument
403 return sobj->functions->write_to_file (sobj, descriptor, err); in simple_object_write_to_file()