1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/openenvcore/include/limits.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,142 @@
1.4 +/*-
1.5 + * © Portions copyright (c) 2005 Nokia Corporation. All rights reserved.
1.6 + * Copyright (c) 1988, 1993
1.7 + * The Regents of the University of California. All rights reserved.
1.8 + *
1.9 + * Redistribution and use in source and binary forms, with or without
1.10 + * modification, are permitted provided that the following conditions
1.11 + * are met:
1.12 + * 1. Redistributions of source code must retain the above copyright
1.13 + * notice, this list of conditions and the following disclaimer.
1.14 + * 2. Redistributions in binary form must reproduce the above copyright
1.15 + * notice, this list of conditions and the following disclaimer in the
1.16 + * documentation and/or other materials provided with the distribution.
1.17 + * 4. Neither the name of the University nor the names of its contributors
1.18 + * may be used to endorse or promote products derived from this software
1.19 + * without specific prior written permission.
1.20 + *
1.21 + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1.22 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.23 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1.24 + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
1.25 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1.26 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1.27 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1.28 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1.29 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1.30 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1.31 + * SUCH DAMAGE.
1.32 + *
1.33 + * @(#)limits.h 8.2 (Berkeley) 1/4/94
1.34 + * $FreeBSD: src/include/limits.h,v 1.16 2003/04/29 13:35:58 kan Exp $
1.35 + */
1.36 +
1.37 +#ifndef _LIMITS_H_
1.38 +#define _LIMITS_H_
1.39 +
1.40 +#include <sys/cdefs.h>
1.41 +
1.42 +#if __POSIX_VISIBLE
1.43 +#define _POSIX_ARG_MAX 4096
1.44 +#define _POSIX_CHILD_MAX 25
1.45 +#define _POSIX_LINK_MAX 8
1.46 +#define _POSIX_MAX_CANON 255
1.47 +#define _POSIX_MAX_INPUT 255
1.48 +#ifdef __SYMBIAN32__
1.49 +#define _POSIX_NAME_MAX 255
1.50 +#else
1.51 +#define _POSIX_NAME_MAX 14
1.52 +#endif
1.53 +#define _POSIX_NGROUPS_MAX 8
1.54 +#define _POSIX_OPEN_MAX 20
1.55 +#define _POSIX_PATH_MAX 256
1.56 +#define _POSIX_PIPE_BUF 512
1.57 +#define _POSIX_SSIZE_MAX 32767
1.58 +#define _POSIX_STREAM_MAX 8
1.59 +#define _POSIX_TZNAME_MAX 6
1.60 +
1.61 +#define BC_BASE_MAX 99 /* max ibase/obase values in bc(1) */
1.62 +#define BC_DIM_MAX 2048 /* max array elements in bc(1) */
1.63 +#define BC_SCALE_MAX 99 /* max scale value in bc(1) */
1.64 +#define BC_STRING_MAX 1000 /* max const string length in bc(1) */
1.65 +#define COLL_WEIGHTS_MAX 0 /* max weights for order keyword */
1.66 +#define EXPR_NEST_MAX 32 /* max expressions nested in expr(1) */
1.67 +#define LINE_MAX 2048 /* max bytes in an input line */
1.68 +#define RE_DUP_MAX 255 /* max RE's in interval notation */
1.69 +
1.70 +#define _POSIX2_BC_BASE_MAX 99
1.71 +#define _POSIX2_BC_DIM_MAX 2048
1.72 +#define _POSIX2_BC_SCALE_MAX 99
1.73 +#define _POSIX2_BC_STRING_MAX 1000
1.74 +#define _POSIX2_EQUIV_CLASS_MAX 2
1.75 +#define _POSIX2_EXPR_NEST_MAX 32
1.76 +#define _POSIX2_LINE_MAX 2048
1.77 +#define _POSIX2_RE_DUP_MAX 255
1.78 +#endif
1.79 +
1.80 +#if __POSIX_VISIBLE >= 199309
1.81 +#define _POSIX_AIO_LISTIO_MAX 16
1.82 +#define _POSIX_AIO_MAX 1
1.83 +#define _POSIX_DELAYTIMER_MAX 32
1.84 +#define _POSIX_MQ_OPEN_MAX 8
1.85 +#define _POSIX_MQ_PRIO_MAX 32
1.86 +#define _POSIX_RTSIG_MAX 8
1.87 +#define _POSIX_SEM_NSEMS_MAX 256
1.88 +#define _POSIX_SEM_VALUE_MAX 32767
1.89 +#define _POSIX_SIGQUEUE_MAX 32
1.90 +#define _POSIX_TIMER_MAX 32
1.91 +#endif
1.92 +
1.93 +#if __POSIX_VISIBLE >= 199506
1.94 +#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4
1.95 +#define _POSIX_THREAD_KEYS_MAX 128
1.96 +#define _POSIX_THREAD_THREADS_MAX 64
1.97 +#endif
1.98 +
1.99 +#if __POSIX_VISIBLE >= 200112
1.100 +#define _POSIX_HOST_NAME_MAX 255
1.101 +#define _POSIX_LOGIN_NAME_MAX 9
1.102 +#define _POSIX_SS_REPL_MAX 4
1.103 +#define _POSIX_SYMLINK_MAX 255
1.104 +#define _POSIX_SYMLOOP_MAX 8
1.105 +#define _POSIX_TRACE_EVENT_NAME_MAX 30
1.106 +#define _POSIX_TRACE_NAME_MAX 8
1.107 +#define _POSIX_TRACE_SYS_MAX 8
1.108 +#define _POSIX_TRACE_USER_EVENT_MAX 32
1.109 +#define _POSIX_TTY_NAME_MAX 9
1.110 +#define _POSIX2_CHARCLASS_NAME_MAX 14
1.111 +#define _POSIX2_COLL_WEIGHTS_MAX 2
1.112 +
1.113 +#define _POSIX_RE_DUP_MAX _POSIX2_RE_DUP_MAX
1.114 +#endif
1.115 +
1.116 +#if __XSI_VISIBLE
1.117 +#define _XOPEN_IOV_MAX 16
1.118 +#define _XOPEN_NAME_MAX 255
1.119 +#define _XOPEN_PATH_MAX 1024
1.120 +#define PASS_MAX 128 /* _PASSWORD_LEN from <pwd.h> */
1.121 +
1.122 +#define NL_ARGMAX 99 /* max # of position args for printf */
1.123 +#define NL_LANGMAX 31 /* max LANG name length */
1.124 +#define NL_MSGMAX 32767
1.125 +#define NL_NMAX 1
1.126 +#define NL_SETMAX 255
1.127 +#define NL_TEXTMAX 2048
1.128 +#endif
1.129 +
1.130 +#define MB_LEN_MAX 6 /* 31-bit UTF-8 */
1.131 +
1.132 +#include <sys/limits.h>
1.133 +
1.134 +#if __POSIX_VISIBLE
1.135 +#ifndef __SYMBIAN32__
1.136 +#include <sys/syslimits.h>
1.137 +#endif
1.138 +#endif
1.139 +
1.140 +#ifdef __SYMBIAN32__
1.141 +/* Thread limits */
1.142 +#define PTHREAD_KEYS_MAX 128
1.143 +#define PTHREAD_DESTRUCTOR_ITERATIONS 4
1.144 +#endif //__SYMBIAN32__
1.145 +#endif /* !_LIMITS_H_ */