#ifndef _SYS_MMAN_H
#define _SYS_MMAN_H 1
#include
#include
#define __need_size_t
#include
#ifndef __off_t_defined
# ifndef __USE_FILE_OFFSET64
typedef __off_t off_t;
# else
typedef __off64_t off_t;
# endif
# define __off_t_defined
#endif
#ifndef __mode_t_defined
typedef __mode_t mode_t;
# define __mode_t_defined
#endif
#include
of an error. */
#define MAP_FAILED ((void *) -1)
__BEGIN_DECLS
`errno' is set). A successful `mmap' call
deallocates any previous mapping for the affected region. */
#ifndef __USE_FILE_OFFSET64
extern void *mmap (void *__addr, size_t __len, int __prot,
int __flags, int __fd, __off_t __offset) __THROW;
#else
# ifdef __REDIRECT_NTH
extern void * __REDIRECT_NTH (mmap,
(void *__addr, size_t __len, int __prot,
int __flags, int __fd, __off64_t __offset),
mmap64);
# else
# define mmap mmap64
# endif
#endif
#ifdef __USE_LARGEFILE64
extern void *mmap64 (void *__addr, size_t __len, int __prot,
int __flags, int __fd, __off64_t __offset) __THROW;
#endif
extern int munmap (void *__addr, size_t __len) __THROW;
extern int mprotect (void *__addr, size_t __len, int __prot) __THROW;
extern int msync (void *__addr, size_t __len, int __flags);
#ifdef __USE_BSD
extern int madvise (void *__addr, size_t __len, int __advice) __THROW;
#endif
#ifdef __USE_XOPEN2K
extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW;
#endif
extern int mlock (__const void *__addr, size_t __len) __THROW;
extern int munlock (__const void *__addr, size_t __len) __THROW;
extern int mlockall (int __flags) __THROW;
extern int munlockall (void) __THROW;
#ifdef __USE_MISC
extern void *mremap (void *__addr, size_t __old_len, size_t __new_len,
int __may_move) __THROW;
extern int mincore (void *__start, size_t __len, unsigned char *__vec)
__THROW;
extern int remap_file_pages (void *__start, size_t __size, int __prot,
size_t __pgoff, int __flags) __THROW;
#endif
extern int shm_open (__const char *__name, int __oflag, mode_t __mode);
extern int shm_unlink (__const char *__name);
__END_DECLS
#endif
|