summaryrefslogtreecommitdiff
path: root/mysys/my_mmap.c
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-11-23 17:23:29 +0100
committerunknown <msvensson@neptunus.(none)>2006-11-23 17:23:29 +0100
commit026355d34a27d398ce1d7049b492f41bff361865 (patch)
tree05fb90d75d7fa858a23feb048c7340bcd4db8816 /mysys/my_mmap.c
parentdf333b1ffe189b1338203abf08e6004b86e058d1 (diff)
downloadmariadb-git-026355d34a27d398ce1d7049b492f41bff361865.tar.gz
Rework my_getpagesize function
- Put 'my_getpagesize' in it's own .c file - Map the call 'my_getpagesize' directly to 'getpagesize' if it exists - Add default implementation for 'my_getpagesize' to be used if no platform specfic function exists include/my_sys.h: Break out the defines for my_getpagesize from HAVE_SYS_MMAN_H as they don't depend on that. There is a check for the function in configure which defines HAVE_GETPAGESIZE if the function exists mysys/CMakeLists.txt: Add new fil my_getpagesize.c mysys/Makefile.am: Add new fil my_getpagesize.c mysys/my_mmap.c: Remove my_getpagesize from my_mmap.c as it's now implemented in my_getpagesize.c mysys/my_getpagesize.c: New BitKeeper file ``mysys/my_getpagesize.c''
Diffstat (limited to 'mysys/my_mmap.c')
-rw-r--r--mysys/my_mmap.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/mysys/my_mmap.c b/mysys/my_mmap.c
index 21bfddae46c..eb74aaeaae4 100644
--- a/mysys/my_mmap.c
+++ b/mysys/my_mmap.c
@@ -33,13 +33,6 @@ int my_msync(int fd, void *addr, size_t len, int flags)
static SECURITY_ATTRIBUTES mmap_security_attributes=
{sizeof(SECURITY_ATTRIBUTES), 0, TRUE};
-int my_getpagesize(void)
-{
- SYSTEM_INFO si;
- GetSystemInfo(&si);
- return si.dwPageSize;
-}
-
void *my_mmap(void *addr, size_t len, int prot,
int flags, int fd, my_off_t offset)
{