Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenlimits.h
Go to the documentation of this file.
00001 00006 #include <crtdefs.h> 00007 00008 #ifndef _INC_LIMITS 00009 #define _INC_LIMITS 00010 00011 /* 00012 * File system limits 00013 * 00014 * TODO: NAME_MAX and OPEN_MAX are file system limits or not? Are they the 00015 * same as FILENAME_MAX and FOPEN_MAX from stdio.h? 00016 * NOTE: Apparently the actual size of PATH_MAX is 260, but a space is 00017 * required for the NUL. TODO: Test? 00018 */ 00019 #define PATH_MAX (259) 00020 00021 #define CHAR_BIT 8 00022 #define SCHAR_MIN (-128) 00023 #define SCHAR_MAX 127 00024 #define UCHAR_MAX 0xff 00025 00026 #define CHAR_MIN SCHAR_MIN 00027 #define CHAR_MAX SCHAR_MAX 00028 00029 #define MB_LEN_MAX 5 00030 #define SHRT_MIN (-32768) 00031 #define SHRT_MAX 32767 00032 #define USHRT_MAX 0xffff 00033 #define INT_MIN (-2147483647 - 1) 00034 #define INT_MAX 2147483647 00035 #define UINT_MAX 0xffffffff 00036 #define LONG_MIN (-2147483647L - 1) 00037 #define LONG_MAX 2147483647L 00038 #define ULONG_MAX 0xffffffffUL 00039 #define LLONG_MAX 9223372036854775807ll 00040 #define LLONG_MIN (-9223372036854775807ll - 1) 00041 #define ULLONG_MAX 0xffffffffffffffffull 00042 00043 #if _INTEGRAL_MAX_BITS >= 8 00044 #define _I8_MIN (-127 - 1) 00045 #define _I8_MAX 127i8 00046 #define _UI8_MAX 0xffu 00047 #endif 00048 00049 #if _INTEGRAL_MAX_BITS >= 16 00050 #define _I16_MIN (-32767 - 1) 00051 #define _I16_MAX 32767i16 00052 #define _UI16_MAX 0xffffu 00053 #endif 00054 00055 #if _INTEGRAL_MAX_BITS >= 32 00056 #define _I32_MIN (-2147483647 - 1) 00057 #define _I32_MAX 2147483647 00058 #define _UI32_MAX 0xffffffffu 00059 #endif 00060 00061 #if defined(__GNUC__) 00062 #undef LONG_LONG_MAX 00063 #define LONG_LONG_MAX 9223372036854775807ll 00064 #undef LONG_LONG_MIN 00065 #define LONG_LONG_MIN (-LONG_LONG_MAX-1) 00066 #undef ULONG_LONG_MAX 00067 #define ULONG_LONG_MAX (2ull * LONG_LONG_MAX + 1ull) 00068 #endif 00069 00070 #if _INTEGRAL_MAX_BITS >= 64 00071 #define _I64_MIN (-9223372036854775807ll - 1) 00072 #define _I64_MAX 9223372036854775807ll 00073 #define _UI64_MAX 0xffffffffffffffffull 00074 #endif 00075 00076 #ifndef SIZE_MAX 00077 #ifdef _WIN64 00078 #define SIZE_MAX _UI64_MAX 00079 #else 00080 #define SIZE_MAX UINT_MAX 00081 #endif 00082 #endif 00083 00084 #ifdef _POSIX_ 00085 #define _POSIX_ARG_MAX 4096 00086 #define _POSIX_CHILD_MAX 6 00087 #define _POSIX_LINK_MAX 8 00088 #define _POSIX_MAX_CANON 255 00089 #define _POSIX_MAX_INPUT 255 00090 #define _POSIX_NAME_MAX 14 00091 #define _POSIX_NGROUPS_MAX 0 00092 #define _POSIX_OPEN_MAX 16 00093 #define _POSIX_PATH_MAX 255 00094 #define _POSIX_PIPE_BUF 512 00095 #define _POSIX_SSIZE_MAX 32767 00096 #define _POSIX_STREAM_MAX 8 00097 #define _POSIX_TZNAME_MAX 3 00098 #define ARG_MAX 14500 00099 #define LINK_MAX 1024 00100 #define MAX_CANON _POSIX_MAX_CANON 00101 #define MAX_INPUT _POSIX_MAX_INPUT 00102 #define NAME_MAX 255 00103 #define NGROUPS_MAX 16 00104 #define OPEN_MAX 32 00105 #define PATH_MAX 512 00106 #define PIPE_BUF _POSIX_PIPE_BUF 00107 #define SSIZE_MAX _POSIX_SSIZE_MAX 00108 #define STREAM_MAX 20 00109 #define TZNAME_MAX 10 00110 #endif 00111 #endif Generated on Fri May 25 2012 04:27:11 for ReactOS by
1.7.6.1
|