X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libatalk%2Fadouble%2Fad_mmap.c;h=c40dfdded4f112d219e884c9006a44a4a2c28df9;hb=9d78f9b52ea18b442fc91c6a1e8d8b607f2f90e8;hp=433249c6dfddf580ffd86aeadb9f77326c63fcd5;hpb=31843674b7bd32eabcce3a1ad6159b4f94921f79;p=netatalk.git diff --git a/libatalk/adouble/ad_mmap.c b/libatalk/adouble/ad_mmap.c index 433249c6..c40dfdde 100644 --- a/libatalk/adouble/ad_mmap.c +++ b/libatalk/adouble/ad_mmap.c @@ -1,21 +1,25 @@ -/* ad_mmap provides interfaces to memory mapped files. as this is the +/* + * $Id: ad_mmap.c,v 1.4.8.1.2.1 2008-11-25 15:16:33 didg Exp $ + * + * ad_mmap provides interfaces to memory mapped files. as this is the * case, we don't have to deal w/ temporary buffers such as * ad_data. the ad_mmap routines are designed to not interact w/ the * ad_read/ad_write routines to avoid confusion. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* HAVE_CONFIG_H */ + +#ifdef USE_MMAPPED_HEADERS #include -#include -#include -#include -#include -#include #include +#include #include "ad_private.h" -static __inline__ void *ad_mmap(const size_t length, const int prot, +static void *ad_mmap(const size_t length, const int prot, const int flags, const int fd, const off_t offset) { @@ -102,3 +106,5 @@ void *ad_mmapwrite(struct adouble *ad, const u_int32_t eid, return ad_mmap(buflen, PROT_READ | PROT_WRITE, MAP_SHARED, ad->ad_hf.adf_fd, off); } + +#endif