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

VxWorks

开发平台:

C/C++

  1. /* limits.h - limits header file */
  2. /* Copyright 1991-1994 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01h,07dec01,sn   use toolchain specific limits.h
  7. 01g,01may94,kdl  added missing mod hist for 01f.
  8. 01f,06dec93,dvs  added POSIX AIO defines.
  9. 01e,24sep92,smb  removed POSIX ifdef.
  10. 01d,22sep92,rrr  added support for c++
  11. 01c,04jul92,jcf  cleaned up.
  12. 01b,03jul92,smb  merged ANSI limits
  13. 01a,29jul91,rrr  written.
  14. */
  15. #ifndef __INClimitsh
  16. #define __INClimitsh
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #include "types/vxANSI.h"
  21. /* include the toolchain's notion of limits.h */
  22. #ifndef TOOL_FAMILY
  23. #   define TOOL_FAMILY gnu
  24. #endif
  25. #define _TOOL_HDR_STRINGIFY(x)  #x
  26. #define _TOOL_HDR(tc, file) _TOOL_HDR_STRINGIFY(tool/tc/file)
  27. #define _TOOL_HEADER(file) _TOOL_HDR(TOOL_FAMILY,file)
  28. #include _TOOL_HEADER(limits.h)
  29. #define NAME_MAX        _PARM_NAME_MAX /* max filename length excluding EOS */
  30. #define PATH_MAX        _PARM_PATH_MAX /* max pathname length excluding EOS */
  31. #define NGROUPS_MAX /* POSIX extensions */
  32. #define SSIZE_MAX
  33. #define DATAKEYS_MAX _PARM_DATAKEYS_MAX
  34. #define AIO_LISTIO_MAX 10 /* needs _PARM in types/vxParams.h */
  35. #define AIO_PRIO_DELTA_MAX 254 /* needs _PARM in types/vxParams.h */
  36. #define _POSIX_ARG_MAX 4096
  37. #define _POSIX_CHILD_MAX 6
  38. #define _POSIX_LINK_MAX 8
  39. #define _POSIX_MAX_CANON 255
  40. #define _POSIX_MAX_INPUT 255
  41. #define _POSIX_NAME_MAX 14
  42. #define _POSIX_NGROUPS_MAX 0
  43. #define _POSIX_OPEN_MAX 16
  44. #define _POSIX_PATH_MAX 255
  45. #define _POSIX_PIPE_BUF 512
  46. #define _POSIX_SSIZE_MAX 32767
  47. #define _POSIX_STREAM_MAX 8
  48. #define _POSIX_TZNAME_MAX 3
  49. #define _POSIX_DATAKEYS_MAX 16
  50. #define _POSIX_AIO_LISTIO_MAX 2
  51. #define _POSIX_AIO_MAX 1
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif /* __INClimitsh */