Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
File Formatslimits(4)


NAME

 limits - header for implementation-specific constants

SYNOPSIS

 
#include <limits.h>

DESCRIPTION

 

The header <limits.h> is a list of minimal magnitude limitations imposed by a specific implementation of the operating system.

_ARG_MAX321048320/* max length of arguments to exec 32-bit program */
_ARG_MAX642096640/* max length of arguments to exec 64-bit program */
CHAR_BIT8/* max # of bits in a char */
CHAR_MAX255/* max value of a char */
CHAR_MIN0/* min value of a char */
CHILD_MAX25/* max # of processes per user id */
CLK_TCK_sysconf(3)/* clock ticks per second */
DBL_DIG15/* digits of precision of a double */
DBL_MAX1.7976931348623157E+308/* max decimal value of a double*/
DBL_MIN2.2250738585072014E-308/* min decimal value of a double*/
FCHR_MAX1048576/* historical default file size limit in bytes */
FLT_DIG6/* digits of precision of a float */
FLT_MAX3.40282347e+38F /* max decimal value of a float */
FLT_MIN1.17549435E-38F/* min decimal value of a float */
INT_MAX2147483647/* max value of an int */
INT_MIN(-2147483647-1)/* min value of an int */
LINK_MAX1000/* max # of links to a single file */
LOGNAME_MAX8/* max # of characters in a login name */
LONG_BIT32/* # of bits in a long */
LONG_MAX2147483647L/* max value of a long int if _ILP32 defined */
 9223372036854775807L/* max value of a long int if _LP64 defined */
LONG_MIN(-2147483647-1L)/* min value of a long int if _ILP32 defined */
 (-9223372036854775807L-1L)/* min value of a long int if _LP64 defined */
MAX_CANON256/* max bytes in a line for canonical processing */
MAX_INPUT512/* max size of a char input buffer */
MB_LEN_MAX5/* max # of bytes in a multibyte character */
NAME_MAX14/* max # of characters in a file name */
NGROUPS_MAX16/* max # of groups for a user */
NL_ARGMAX9/* max value of "digit" in calls to the
  NLS printf() and scanf() */
NL_LANGMAX14/* max # of bytes in a LANG name */
NL_MSGMAX32767/* max message number */
NL_NMAX1/* max # of bytes in N-to-1 mapping characters */
NL_SETMAX255/* max set number */
NL_TEXTMAX255/* max # of bytes in a message string */
NZERO20/* default process priority */
OPEN_MAX20/* max # of files a process can have open */
PASS_MAX8/* max # of characters in a password */
PATH_MAX1024/* max # of characters in a path name */
PID_MAX999999/* max value for a process ID */
PIPE_BUF5120/* max # bytes atomic in write to a pipe */
PIPE_MAX5120/* max # bytes written to a pipe in a write */
SCHAR_MAX127/* max value of a "signed char" */
SCHAR_MIN(-128)/* min value of a "signed char" */
SHRT_MAX32767/* max value of a "short int" */
SHRT_MIN(-32768)/* min value of a "short int" */
STD_BLK1024/* # bytes in a physical I/O block */
SYS_NMLN257/* 4.0 size of utsname elements */
  /* also defined in sys/utsname.h */
SYSPID_MAX1/* max pid of system processes */
TMP_MAX17576/* max # of unique names generated by tmpnam */
UCHAR_MAX255/* max value of an "unsigned char" */
UID_MAX2147483647/* max value for a user or group ID */
UINT_MAX4294967295/* max value of an "unsigned int" */
ULONG_MAX4294967295UL/* max value of an "unsigned long int" if _ILP32 defined */
 18446744073709551615UL/* max value of an "unsigned long int" if _LP64 defined */
USHRT_MAX65535/* max value of an "unsigned short int" */
USI_MAX4294967295/* max decimal value of an "unsigned" */
WORD_BIT32/* # of bits in a word or int */

The following POSIX definitions are the most restrictive values to be used by a POSIX-conforming application (see standards(5)). Conforming implementations shall provide values at least this large.

_POSIX_ARG_MAX4096/* max length of arguments to exec */
_POSIX_CHILD_MAX6/* max # of processes per user ID */
_POSIX_LINK_MAX8/* max # of links to a single file */
_POSIX_MAX_CANON255/* max # of bytes in a line of input */
_POSIX_MAX_INPUT255/* max # of bytes in terminal input queue */
_POSIX_NAME_MAX14/* # of bytes in a filename */
_POSIX_NGROUPS_MAX 0/* max # of groups in a process */
_POSIX_OPEN_MAX16/* max # of files a process can have open */
_POSIX_PATH_MAX255/* max # of characters in a pathname */
_POSIX_PIPE_BUF512/* max # of bytes atomic in write to a pipe */

SEE ALSO

 

standards(5)


SunOS 5.9Go To TopLast Changed 19 Mar 1999

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.