Back to index

glibc  2.9
Functions
fd-write.c File Reference
#include <errno.h>
#include <unistd.h>
#include <hurd.h>
#include <hurd/fd.h>

Go to the source code of this file.

Functions

error_t _hurd_fd_write (struct hurd_fd *fd, const void *buf, size_t *nbytes, loff_t offset)

Function Documentation

error_t _hurd_fd_write ( struct hurd_fd fd,
const void *  buf,
size_t nbytes,
loff_t  offset 
)

Definition at line 26 of file fd-write.c.

{
  error_t err;
  mach_msg_type_number_t wrote;

  error_t writefd (io_t port)
    {
      return __io_write (port, buf, *nbytes, offset, &wrote);
    }

  err = HURD_FD_PORT_USE (fd, _hurd_ctty_output (port, ctty, writefd));

  if (! err)
    *nbytes = wrote;

  return err;
}

Here is the call graph for this function:

Here is the caller graph for this function: