Back to index

glibc  2.9
Functions
write.c File Reference
#include <sysdep.h>
#include <errno.h>
#include <unistd.h>
#include <stddef.h>
#include <stub-tag.h>

Go to the source code of this file.

Functions

ssize_t __libc_write (int fd, const void *buf, size_t nbytes)

Function Documentation

ssize_t __libc_write ( int  fd,
const void *  buf,
size_t  nbytes 
)

Definition at line 26 of file write.c.

{
  if (nbytes == 0)
    return 0;
  if (fd < 0)
    {
      __set_errno (EBADF);
      return -1;
    }
  if (buf == NULL)
    {
      __set_errno (EINVAL);
      return -1;
    }

  __set_errno (ENOSYS);
  return -1;
}

Here is the caller graph for this function: