/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2013 Gary Mills
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
#ifndef _LIMITS_H
#define _LIMITS_H
#include <sys/feature_tests.h>
#include <sys/isa_defs.h>
#include <iso/limits_iso.h>
/*
* committee's working draft for the revision of the current ISO C standard,
* required by any standard but constitute a useful, general purpose set
* of type definitions and limits which is namespace clean with respect to
* all standards.
*/
#if defined(__EXTENSIONS__) || !defined(_STRICT_STDC) || \
defined(__XOPEN_OR_POSIX)
#include <sys/int_limits.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if defined(__EXTENSIONS__) || !defined(_STRICT_STDC) || \
defined(__XOPEN_OR_POSIX)
/*
* ARG_MAX is calculated as follows:
* NCARGS - space for other stuff on initial stack
* like aux vectors, saved registers, etc..
*/
#ifdef _LP64
#else /* _LP64 */
#endif /* _LP64 */
#ifndef MAX_CANON
#endif
#ifndef MAX_INPUT
#endif
#ifndef PATH_MAX
#endif
#ifndef TMP_MAX
#endif
/*
* POSIX conformant definitions - An implementation may define
* other symbols which reflect the actual implementation. Alternate
* definitions may not be as restrictive as the POSIX definitions.
*/
#ifdef _XPG6
#else
#endif
#ifdef _XPG6
#else /* POSIX.1-1990 defaults */
#define _POSIX_NGROUPS_MAX 0
#endif
#ifdef _XPG6
#else
#endif
/* POSIX.1c conformant */
/* UNIX 03 conformant */
/*
* POSIX.2 and XPG4-XSH4 conformant definitions
*/
/* UNIX 03 conformant */
#if !defined(_XPG6)
#else
#endif /* !defined(_XPG6) */
#endif /* defined(__EXTENSIONS__) || !defined(_STRICT_STDC) ... */
#if defined(__EXTENSIONS__) || \
(!defined(_STRICT_STDC) && !defined(_POSIX_C_SOURCE)) || \
defined(_XOPEN_SOURCE)
/*
* For dual definitions for PASS_MAX and sysconf.c
*/
#else /* XPG6 or just Solaris */
#endif /* defined(_XPG3) && !defined(_XPG6) */
/* NLS printf() and scanf() */
#if defined(_LP64)
#else /* _ILP32 */
#endif
/* Marked as LEGACY in SUSv2 and removed in UNIX 03 */
#ifndef _XPG6
/* of a double */
/* of a "float" */
#endif
/* Marked as LEGACY in SUSv1 and removed in SUSv2 */
#ifndef _XPG5
/* of a double */
/* of a float */
#endif
#endif /* defined(__EXTENSIONS__) || (!defined(_STRICT_STDC) ... */
#if defined(__EXTENSIONS__) || \
(!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX))
/*
* POSIX 1003.1a, section 2.9.5, table 2-5 contains [NAME_MAX] and the
* related text states:
*
* A definition of one of the values from Table 2-5 shall be omitted from the
* <limits.h> on specific implementations where the corresponding value is
* equal to or greater than the stated minimum, but where the value can vary
* depending on the file to which it is applied. The actual value supported for
* a specific pathname shall be provided by the pathconf() (5.7.1) function.
*
* This is clear that any machine supporting multiple file system types
* by the _POSIX_SOURCE and _POSIX_C_SOURCE flags.
*
* #define NAME_MAX 14
*/
#ifndef OPEN_MAX
#endif
#endif
#ifndef CLK_TCK
#define _CLOCK_T
typedef long clock_t;
#endif /* !_CLOCK_T */
extern long _sysconf(int); /* System Private interface to sysconf() */
#endif /* CLK_TCK */
#ifdef __USE_LEGACY_LOGNAME__
#else /* __USE_LEGACY_LOGNAME__ */
/* Increased for illumos */
#endif /* __USE_LEGACY_LOGNAME__ */
#endif /* if defined(__EXTENSIONS__) || (!defined(_STRICT_STDC) ... */
#define _SIZE_T
#else
#endif
#endif /* _SIZE_T */
extern long _sysconf(int); /* System Private interface to sysconf() */
/* Added for UNIX98 conformance */
#endif /* defined(__EXTENSIONS__) || (_POSIX_C_SOURCE >= 199506L) */
#ifdef __cplusplus
}
#endif
#endif /* _LIMITS_H */