mman.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* mman.h - memory management library header file */
  2. /* Copyright 1984-1993 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01a,05nov93,dvs  written
  7. */
  8. #ifndef __INCmmanh
  9. #define __INCmmanh
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. /* includes */
  14. #include "vxWorks.h"
  15. /* memory locking flags */
  16. #define MCL_CURRENT  0x1 /* currently not used */
  17. #define MCL_FUTURE 0x2 /* currently not used */
  18. /* Function declarations */
  19. #if defined(__STDC__) || defined(__cplusplus)
  20. extern int mlockall (int flags);
  21. extern int munlockall (void);
  22. extern int mlock (const void * addr, size_t len);
  23. extern int munlock (const void * addr, size_t len);
  24. #else   /* __STDC__ */
  25. extern int mlockall ();
  26. extern int munlockall ();
  27. extern int mlock ();
  28. extern int munlock ();
  29. #endif  /* __STDC__ */
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif /* __INCmmanh */