Lines Matching defs:read
46 * the standard read() interface except:
59 * The positive non-zero number of bytes read on success, 0 on if an
73 /* Was this file opened for read access? */
77 /* No.. File is not read-able */
82 /* Is a driver or mountpoint registered? If so, does it support the read
86 else if (filep->ops && filep->ops->read)
88 /* Yes.. then let it perform the read. NOTE that for the case of the
89 * mountpoint, we depend on the read methods being identical in
93 ret = (int)filep->ops->read(filep, (char *)buf, (size_t)nbytes);
104 /* Otherwise, return the number of bytes read */
110 * Name: read
113 * The standard, POSIX read interface.
116 * fd - File descriptor to read from
121 * The positive non-zero number of bytes read on success, 0 on if an
126 ssize_t read(int fd, void *buf, size_t nbytes)
141 /* No.. If networking is enabled, read() is the same as recv() with
197 * read. First, get the file structure.