diff options
author | stolz <unknown> | 2003-01-17 17:01:14 +0000 |
---|---|---|
committer | stolz <unknown> | 2003-01-17 17:01:14 +0000 |
commit | c1d6305e651ae09a8d5d15ca025d1050700d2e16 (patch) | |
tree | 37edad3dee0a62b0e0875e556b4ab7f945fc03ea /include | |
parent | 8ebecebbae8ae729f146c67b1632af0c2d1bdaf8 (diff) |
[project @ 2003-01-17 17:01:14 by stolz]
- Add sendfile-API for pumping out data via sendfile(2)
Currently supported are Linux (tested) & FreeBSD (not tested yet), others
will throw a runtime error until I get around to implement a fallback.
Diffstat (limited to 'include')
-rw-r--r-- | include/HsUnix.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/HsUnix.h b/include/HsUnix.h index 914151c..5488f71 100644 --- a/include/HsUnix.h +++ b/include/HsUnix.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: HsUnix.h,v 1.3 2002/12/19 13:52:55 simonmar Exp $ + * $Id: HsUnix.h,v 1.4 2003/01/17 17:01:14 stolz Exp $ * * (c) The University of Glasgow 2002 * @@ -52,6 +52,15 @@ #include <grp.h> #endif +#ifdef HAVE_BSD_SENDFILE +#include <sys/types.h> +#include <sys/socket.h> +#include <sys/uio.h> +#endif +#ifdef HAVE_LINUX_SENDFILE +#include <sys/sendfile.h> +#endif + extern int execvpe(char *name, char **argv, char **envp); extern void pPrPr_disableITimers (void); |