aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar stolz <unknown>2003-01-17 17:01:14 +0000
committerGravatar stolz <unknown>2003-01-17 17:01:14 +0000
commitc1d6305e651ae09a8d5d15ca025d1050700d2e16 (patch)
tree37edad3dee0a62b0e0875e556b4ab7f945fc03ea /include
parent8ebecebbae8ae729f146c67b1632af0c2d1bdaf8 (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.h11
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);