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

int write ( int  desc,
void const *  buf,
size_t  count 
)

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

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

Definition at line 18 of file write.c.

References write().

Referenced by write(), and xvid_encode_init().

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


Generated by  Doxygen 1.6.0   Back to index