mman.h 936 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _SYS_MMAN_H
  2. #define _SYS_MMAN_H
  3. #include <features.h>
  4. #include <sys/types.h>
  5. #include <linux/mman.h>
  6. #ifndef MAP_ANON
  7. #define MAP_ANON MAP_ANONYMOUS /* idem */
  8. #endif
  9. #ifndef MAP_FILE
  10. #define MAP_FILE 0x00 /* The 'normal' way: mapped from file */
  11. #endif
  12. __BEGIN_DECLS
  13. extern __ptr_t mmap __P((__ptr_t __addr, size_t __len,
  14. int __prot, int __flags, int __fd, off_t __off));
  15. extern int munmap __P((__ptr_t __addr, size_t __len));
  16. extern int mprotect __P ((__const __ptr_t __addr, size_t __len, int __prot));
  17. extern int msync __P((__ptr_t __addr, size_t __len, int __flags));
  18. extern int mlock __P((__const __ptr_t __addr, size_t __len));
  19. extern int munlock __P((__const __ptr_t __addr, size_t __len));
  20. extern int mlockall __P((int __flags));
  21. extern int munlockall __P((void));
  22. extern __ptr_t mremap __P((__ptr_t __addr, size_t __old_len,
  23. size_t __new_len, int __may_move));
  24. __END_DECLS
  25. #endif /* _SYS_MMAN_H */