Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

int read ( int  desc,
void *  buf,
size_t  count 

Reads count bytes from the resource designated by desc into the buffer pointed to by buf.

desc The file descriptor to be read from
buf Where the read data is to be written
count The number of bytes to be read
On success, read returns the number of bytes read. On failure, returns -1 and sets errno appropriately.

Definition at line 18 of file read.c.

References read().

Referenced by evdns_resolv_conf_parse(), read(), and u_file_read().

  int retval = NACL_SYSCALL(read)(desc, buf, count);
  if (retval < 0) {
    errno = -retval;
    return -1;
  return retval;

Generated by  Doxygen 1.6.0   Back to index