diff options
Diffstat (limited to 'shmem/unix/mm/mm.h')
-rw-r--r-- | shmem/unix/mm/mm.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/shmem/unix/mm/mm.h b/shmem/unix/mm/mm.h index f97ab6607..1e44b3a11 100644 --- a/shmem/unix/mm/mm.h +++ b/shmem/unix/mm/mm.h @@ -62,6 +62,10 @@ extern "C" { #include <sys/types.h> #include <sys/stat.h> +typedef enum { + MM_LOCK_RD, MM_LOCK_RW +} mm_lock_mode; + /* ** ____ Private Part of the API ___________________________ */ @@ -78,13 +82,14 @@ extern "C" { #include <sys/types.h> #ifdef MM_OS_SUNOS +#define KERNEL 1 #include <memory.h> /* SunOS lacks prototypes */ -extern int getpagesize(void); -extern int munmap(caddr_t addr, int len); -extern int ftruncate(int fd, off_t length); -extern int flock(int fd, int operation); -extern char *strerror (int err); +extern int getpagesize(void); +extern int munmap(caddr_t, int); +extern int ftruncate(int, off_t); +extern int flock(int, int); +extern char *strerror(int); #endif #if !defined(FALSE) @@ -289,10 +294,6 @@ typedef mem_pool MM; typedef void MM; #endif -typedef enum { - MM_LOCK_RD, MM_LOCK_RW -} mm_lock_mode; - /* Global Malloc-Replacement API */ int MM_create(size_t size, const char *file); int MM_permission(mode_t mode, uid_t owner, gid_t group); |