sendfile.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <ctype.h>
#include <math.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include "common.h"

Include dependency graph for sendfile.c:

Go to the source code of this file.

Defines

#define BSIZE   8192

Functions

int SendFile (int fdout, int fdin, int len)
 transfer data between file descriptors.


Define Documentation

#define BSIZE   8192

Referenced by SendFile().


Function Documentation

int SendFile ( int  fdout,
int  fdin,
int  len 
)

transfer data between file descriptors.

Parameters:
the destination file descriptor
the source file descriptor
len the length of the file If len is <0, then up to 2*BSIZE are sent
Returns:
the number of byte sent

Definition at line 48 of file sendfile.c.

References BSIZE, and PrintError.

Referenced by Rename().


Generated on Tue Jul 22 23:11:57 2008 for Titan2Reader by  doxygen 1.5.6