/*
- * $Id: ad_mmap.c,v 1.3 2001-06-29 14:14:46 rufustfirefly 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
#include "config.h"
#endif /* HAVE_CONFIG_H */
+#ifdef USE_MMAPPED_HEADERS
#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif /* HAVE_UNISTD_H */
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif /* HAVE_FCNTL_H */
-#include <string.h>
#include <atalk/adouble.h>
+#include <string.h>
-#include "ad_private.h"
+#include "ad_lock.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)
{
return ad_mmap(buflen, PROT_READ | PROT_WRITE, MAP_SHARED,
ad->ad_hf.adf_fd, off);
}
+
+#endif