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