]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/adouble/ad_sendfile.c
simplify fork mapping, always map ADFLAGS_SETSHRMD | ADFLAGS_CHECK_OF to ADFLAGS_DF
[netatalk.git] / libatalk / adouble / ad_sendfile.c
index c8cba8cca31f3ea96a6d228b9e238c07d9f0c170..8c50dcf804cf0f3ea304bc84c55a2d3610cfe579 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id: ad_sendfile.c,v 1.11 2010-01-21 14:14:49 didg Exp $
- *
  * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
  * All rights reserved. See COPYRIGHT.
  *
 #endif /* HAVE_CONFIG_H */
 
 #ifdef WITH_SENDFILE
-
-#include <atalk/adouble.h>
-
 #include <stdio.h>
-
 #include <sys/socket.h>
 #include <sys/uio.h>
-
 #include <errno.h>  
 
+#include <atalk/adouble.h>
 #include <atalk/logger.h>
-#include "ad_private.h"
+
+#include "ad_lock.h"
 
 #if defined(SENDFILE_FLAVOR_LINUX)
 #include <sys/sendfile.h>
@@ -64,7 +59,7 @@ ssize_t sys_sendfile(int tofd, int fromfd, off_t *offset, size_t count)
 #elif defined(SENDFILE_FLAVOR_BSD )
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/uio.h><
+#include <sys/uio.h>
 ssize_t sys_sendfile(int tofd, int fromfd, off_t *offset, size_t count)
 {
   return sendfile(fromfd, tofd, *offset, count, NULL, offset, 0);