Back to index

glibc  2.9
sendfile.c File Reference
#include <sys/sendfile.h>
#include <stddef.h>

Go to the source code of this file.


ssize_t sendfile (int out_fd, int in_fd, off_t *offset, size_t count)

Function Documentation

ssize_t sendfile ( int  out_fd,
int  in_fd,
off_t offset,
size_t  count 

Definition at line 26 of file sendfile.c.

  if (offset == NULL || sizeof (off_t) == sizeof (off64_t))
    return sendfile64 (out_fd, in_fd, (off64_t *) offset, count);
      off64_t ofs = *offset;
      ssize_t ret = sendfile64 (out_fd, in_fd, &ofs, count);
      *offset = ofs;
      return ret;

Here is the call graph for this function: