|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: @ T l
Length: 4573 (0x11dd)
Types: TextFile
Notes: @(#)limits.h 13.2 (RC International) 91/02/19 */
Names: »limits.h«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦c6f24efe5⟧ »0007«
└─⟦this⟧ »comp3.0/bsd/usr/include/limits.h«
/* @(#)limits.h 13.2 (RC International) 91/02/19 */ #ifndef _LIMITS_H #define _LIMITS_H /* ** Various data type constants */ #define CHAR_BIT 8 /* Number of bits in a char */ #define CHAR_MAX 255 /* Max value of unsigned char */ #define CHAR_MIN 0 /* Min value of unsigned char */ #define UCHAR_MAX 255 /* Max value of an unsigned char */ #define SCHAR_MAX 127 /* Max value of a signed char */ #define SCHAR_MIN (-128) /* Min value of a signed char */ #define SHRT_MAX 32767 /* Max value of a short */ #define SHRT_MIN (-32768) /* Min value of a short */ #define USHRT_MAX 65535 /* Max value of an unsigned short */ #define INT_MAX 2147483647 /* Max value of an int */ #define INT_MIN (-2147483648) /* Min value of an int */ #define UINT_MAX 4294967295 /* Max value of an unsigned int */ #define LONG_MAX 2147483647 /* Max value of a long */ #define LONG_MIN (-2147483648) /* Min value of an long */ #define ULONG_MAX 4294967295 /* Max value of an unsigned long */ #if (!defined(__STDC__) && !defined(_POSIX_SOURCE)) || defined(_XOPEN_SOURCE) #define WORD_BIT 32 /* Number of bits in a word or int */ #define LONG_BIT 32 /* Number of bits in a long */ #define FLT_MAX 3.40282347e+38 /* Max value of a float */ #define FLT_MIN 1.17549435e-38 /* Min value of a float */ #define FLT_DIG 6 /* Digits of precision of a float */ #define DBL_MAX 1.7976931348623138e+308 /* Max value of a double */ #define DBL_MIN 2.225073858507201e-308 /* Min value of a double */ #define DBL_DIG 15 /* Digits of precision of a double */ #endif #define MB_LEN_MAX 5 /* Useful POSIX constant */ /* ** POSIX invariant constants */ #if !defined(__STDC__) || defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE) #define _POSIX_ARG_MAX 4096 /* Max exec argument string */ #define _POSIX_CHILD_MAX 6 /* Max number of child processes */ #define _POSIX_LINK_MAX 8 /* Max number of link count */ #define _POSIX_MAX_CANON 255 /* Max chars at canonical input */ #define _POSIX_MAX_INPUT 255 /* Max buffer space at term. input */ #define _POSIX_NAME_MAX 14 /* Max bytes in a filename */ #define _POSIX_NGROUPS_MAX 0 /* Max suppl. group id's */ #define _POSIX_OPEN_MAX 16 /* Max number of open files */ #define _POSIX_PATH_MAX 255 /* Max chars in a pathname */ #define _POSIX_PIPE_BUF 512 /* Max atom. chars at pipe-write */ #endif /* ** POSIX constants */ #if !defined(__STDC__) || defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE) #define ARG_MAX 10240 /* Max exec argument string */ #define LINK_MAX 16384 /* Max number of link count */ #define MAX_CANON 10240 /* Max chars at canonical input */ #define MAX_INPUT 10240 /* Max buffer space at term. input */ #define NGROUPS_MAX 8 /* Max suppl. group id's */ #define PATH_MAX 1024 /* Max chars in a pathname */ #define PIPE_BUF SHRT_MAX /* Max atom. chars at pipe-write */ #define CHILD_MAX 50 /* Max number of child processes */ #define NAME_MAX 255 /* Max bytes in a filename */ #define OPEN_MAX 256 /* Max number of open files */ #endif /* ** Various other constants. ** The value for TMP_MAX is really a minimum value. */ #if (!defined(__STDC__) && !defined(_POSIX_SOURCE)) || defined(_XOPEN_SOURCE) #define NL_ARGMAX 9 /* Max digits for printf/scanf */ #define NL_LANGMAX 14 /* Max chars in a LANG name */ #define NL_NMAX 1 /* Max chars in N-to-1 mapping */ #ifndef NL_SETMAX #define NL_MSGMAX 32767 /* Max message number */ #define NL_SETMAX 1024 /* Max set number */ #define NL_TEXTMAX 1024 /* Max chars in a message string */ #endif /* NL_SETMAX */ #define PASS_MAX 8 /* Max chars in a password */ #ifndef NZERO #define NZERO 20 /* Default process priority */ #endif /* NZERO */ #endif #if !defined(__STDC__) || defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE) #ifndef TMP_MAX #define TMP_MAX 17576 /* Max unique names from tmpnam() */ #endif /* TMP_MAX */ /* 17576 = 26 * 26 * 26 */ #endif /* ** Various useful constants from XPG 2 (withdrawn in XPG 3) */ #if !defined(__STDC__) && !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE) #ifndef CLK_TCK #define CLK_TCK 60 /* Clock ticks per second */ #endif /* CLK_TCK */ #define FCHR_MAX 2147483647 /* Max file size in chars */ #define STD_BLK 1024 /* Number of chars in physical i/o */ #define PID_MAX INT_MAX /* Max value of a process id */ #define UID_MAX INT_MAX /* Max value for user/group id */ #define PROC_MAX 404 /* Max no. of processes system wide */ #define SYS_OPEN 820 /* Max no. of open files system wide */ #define USI_MAX 4294967295 /* Max decimal value of an "unsigned" */ #endif #endif /* _LIMITS_H */