Back to index

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

Go to the source code of this file.


ssize_t __libc_pread64 (int fd, void *buf, size_t nbytes, off64_t offset)

Function Documentation

ssize_t __libc_pread64 ( int  fd,
void *  buf,
size_t  nbytes,
off64_t  offset 

Definition at line 26 of file pread64.c.

  error_t err;
  if (offset < 0)
    err = EINVAL;
    err = HURD_FD_USE (fd, _hurd_fd_read (descriptor, buf, &nbytes, offset));
  return err ? __hurd_dfail (fd, err) : nbytes;

Here is the call graph for this function: