limits.h (30da79d5c00c3e1e3610c757d1e3db22962674c7) limits.h (0a1278f26ea4b7c8c0285d4f2d6c5b680904aa01)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 6 unchanged lines hidden (view full) ---

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 6 unchanged lines hidden (view full) ---

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright (c) 2013 Gary Mills
24 *
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27/* Copyright (c) 1988 AT&T */
28/* All Rights Reserved */
29
30
31#ifndef _LIMITS_H
32#define _LIMITS_H
33
25 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
26 * Use is subject to license terms.
27 */
28
29/* Copyright (c) 1988 AT&T */
30/* All Rights Reserved */
31
32
33#ifndef _LIMITS_H
34#define _LIMITS_H
35
34#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.34 */
35
36#include <sys/feature_tests.h>
37#include <sys/isa_defs.h>
38#include <iso/limits_iso.h>
39
40/*
41 * Include fixed width type limits as proposed by the ISO/JTC1/SC22/WG14 C
42 * committee's working draft for the revision of the current ISO C standard,
43 * ISO/IEC 9899:1990 Programming language - C. These are not currently

--- 241 unchanged lines hidden (view full) ---

285typedef long clock_t;
286#endif /* !_CLOCK_T */
287
288extern long _sysconf(int); /* System Private interface to sysconf() */
289#define CLK_TCK ((clock_t)_sysconf(3)) /* 3 is _SC_CLK_TCK */
290
291#endif /* CLK_TCK */
292
36#include <sys/feature_tests.h>
37#include <sys/isa_defs.h>
38#include <iso/limits_iso.h>
39
40/*
41 * Include fixed width type limits as proposed by the ISO/JTC1/SC22/WG14 C
42 * committee's working draft for the revision of the current ISO C standard,
43 * ISO/IEC 9899:1990 Programming language - C. These are not currently

--- 241 unchanged lines hidden (view full) ---

285typedef long clock_t;
286#endif /* !_CLOCK_T */
287
288extern long _sysconf(int); /* System Private interface to sysconf() */
289#define CLK_TCK ((clock_t)_sysconf(3)) /* 3 is _SC_CLK_TCK */
290
291#endif /* CLK_TCK */
292
293#ifdef __USE_LEGACY_LOGNAME__
293#define LOGNAME_MAX 8 /* max # of characters in a login name */
294#define LOGNAME_MAX 8 /* max # of characters in a login name */
295#else /* __USE_LEGACY_LOGNAME__ */
296#define LOGNAME_MAX 32 /* max # of characters in a login name */
297 /* Increased for illumos */
298#endif /* __USE_LEGACY_LOGNAME__ */
299#define LOGIN_NAME_MAX (LOGNAME_MAX + 1) /* max buffer size */
300#define LOGNAME_MAX_TRAD 8 /* traditional length */
301#define LOGIN_NAME_MAX_TRAD (LOGNAME_MAX_TRAD + 1) /* and size */
302
294#define TTYNAME_MAX 128 /* max # of characters in a tty name */
295
296#endif /* if defined(__EXTENSIONS__) || (!defined(_STRICT_STDC) ... */
297
298#if defined(__EXTENSIONS__) || (_POSIX_C_SOURCE >= 199506L)
299#include <sys/unistd.h>
300
301#if !defined(_SIZE_T) || __cplusplus >= 199711L

--- 22 unchanged lines hidden ---
303#define TTYNAME_MAX 128 /* max # of characters in a tty name */
304
305#endif /* if defined(__EXTENSIONS__) || (!defined(_STRICT_STDC) ... */
306
307#if defined(__EXTENSIONS__) || (_POSIX_C_SOURCE >= 199506L)
308#include <sys/unistd.h>
309
310#if !defined(_SIZE_T) || __cplusplus >= 199711L

--- 22 unchanged lines hidden ---