* mmap.cc (mmap64): Change address types from caddr_t to void *

according to SUSv3.
	(mmap): Ditto.
	(munmap): Ditto.
	(msync): Ditto.
	(mprotect): Ditto.  Move to before the fhandler methods.
	* include/sys/mman.h: Change prototypes accordingly.
This commit is contained in:
Corinna Vinschen
2003-09-09 09:41:18 +00:00
parent 3ef50005c7
commit 807dfb3d4a
3 changed files with 83 additions and 72 deletions

View File

@ -41,11 +41,11 @@ extern "C" {
#define MS_INVALIDATE 4
#ifndef __INSIDE_CYGWIN__
extern caddr_t mmap (caddr_t __addr, size_t __len, int __prot, int __flags, int __fd, off_t __off);
extern void *mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd, off_t __off);
#endif
extern int munmap (caddr_t __addr, size_t __len);
extern int mprotect (caddr_t __addr, size_t __len, int __prot);
extern int msync (caddr_t __addr, size_t __len, int __flags);
extern int munmap (void *__addr, size_t __len);
extern int mprotect (void *__addr, size_t __len, int __prot);
extern int msync (void *__addr, size_t __len, int __flags);
#ifdef __cplusplus
};