00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef _LIMITS_H_
00039 #define _LIMITS_H_
00040
00041 #include <sys/cdefs.h>
00042
00043 #if __POSIX_VISIBLE
00044 #define _POSIX_ARG_MAX 4096
00045 #define _POSIX_CHILD_MAX 25
00046 #define _POSIX_LINK_MAX 8
00047 #define _POSIX_MAX_CANON 255
00048 #define _POSIX_MAX_INPUT 255
00049 #ifdef __SYMBIAN32__
00050 #define _POSIX_NAME_MAX 255
00051 #else
00052 #define _POSIX_NAME_MAX 14
00053 #endif
00054 #define _POSIX_NGROUPS_MAX 8
00055 #define _POSIX_OPEN_MAX 20
00056 #define _POSIX_PATH_MAX 256
00057 #define _POSIX_PIPE_BUF 512
00058 #define _POSIX_SSIZE_MAX 32767
00059 #define _POSIX_STREAM_MAX 8
00060 #define _POSIX_TZNAME_MAX 6
00061
00062 #define BC_BASE_MAX 99
00063 #define BC_DIM_MAX 2048
00064 #define BC_SCALE_MAX 99
00065 #define BC_STRING_MAX 1000
00066 #define COLL_WEIGHTS_MAX 0
00067 #define EXPR_NEST_MAX 32
00068 #define LINE_MAX 2048
00069 #define RE_DUP_MAX 255
00070
00071 #define _POSIX2_BC_BASE_MAX 99
00072 #define _POSIX2_BC_DIM_MAX 2048
00073 #define _POSIX2_BC_SCALE_MAX 99
00074 #define _POSIX2_BC_STRING_MAX 1000
00075 #define _POSIX2_EQUIV_CLASS_MAX 2
00076 #define _POSIX2_EXPR_NEST_MAX 32
00077 #define _POSIX2_LINE_MAX 2048
00078 #define _POSIX2_RE_DUP_MAX 255
00079 #endif
00080
00081 #if __POSIX_VISIBLE >= 199309
00082 #define _POSIX_AIO_LISTIO_MAX 16
00083 #define _POSIX_AIO_MAX 1
00084 #define _POSIX_DELAYTIMER_MAX 32
00085 #define _POSIX_MQ_OPEN_MAX 8
00086 #define _POSIX_MQ_PRIO_MAX 32
00087 #define _POSIX_RTSIG_MAX 8
00088 #define _POSIX_SEM_NSEMS_MAX 256
00089 #define _POSIX_SEM_VALUE_MAX 32767
00090 #define _POSIX_SIGQUEUE_MAX 32
00091 #define _POSIX_TIMER_MAX 32
00092 #endif
00093
00094 #if __POSIX_VISIBLE >= 199506
00095 #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4
00096 #define _POSIX_THREAD_KEYS_MAX 128
00097 #define _POSIX_THREAD_THREADS_MAX 64
00098 #endif
00099
00100 #if __POSIX_VISIBLE >= 200112
00101 #define _POSIX_HOST_NAME_MAX 255
00102 #define _POSIX_LOGIN_NAME_MAX 9
00103 #define _POSIX_SS_REPL_MAX 4
00104 #define _POSIX_SYMLINK_MAX 255
00105 #define _POSIX_SYMLOOP_MAX 8
00106 #define _POSIX_TRACE_EVENT_NAME_MAX 30
00107 #define _POSIX_TRACE_NAME_MAX 8
00108 #define _POSIX_TRACE_SYS_MAX 8
00109 #define _POSIX_TRACE_USER_EVENT_MAX 32
00110 #define _POSIX_TTY_NAME_MAX 9
00111 #define _POSIX2_CHARCLASS_NAME_MAX 14
00112 #define _POSIX2_COLL_WEIGHTS_MAX 2
00113
00114 #define _POSIX_RE_DUP_MAX _POSIX2_RE_DUP_MAX
00115 #endif
00116
00117 #if __XSI_VISIBLE
00118 #define _XOPEN_IOV_MAX 16
00119 #define _XOPEN_NAME_MAX 255
00120 #define _XOPEN_PATH_MAX 1024
00121 #define PASS_MAX 128
00122
00123 #define NL_ARGMAX 99
00124 #define NL_LANGMAX 31
00125 #define NL_MSGMAX 32767
00126 #define NL_NMAX 1
00127 #define NL_SETMAX 255
00128 #define NL_TEXTMAX 2048
00129 #endif
00130
00131 #define MB_LEN_MAX 6
00132
00133 #include <sys/limits.h>
00134
00135 #if __POSIX_VISIBLE
00136 #ifndef __SYMBIAN32__
00137 #include <sys/syslimits.h>
00138 #endif
00139 #endif
00140
00141 #ifdef __SYMBIAN32__
00142
00143 #define PTHREAD_KEYS_MAX 128
00144 #define PTHREAD_DESTRUCTOR_ITERATIONS 4
00145
00146 #endif
00147 #endif