|
Packit Service |
82fcde |
/* Copyright (C) 1996-2018 Free Software Foundation, Inc.
|
|
Packit Service |
82fcde |
This file is part of the GNU C Library.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
82fcde |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
License as published by the Free Software Foundation; either
|
|
Packit Service |
82fcde |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
82fcde |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
82fcde |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
82fcde |
Lesser General Public License for more details.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
License along with the GNU C Library; if not, see
|
|
Packit Service |
82fcde |
<http://www.gnu.org/licenses/>. */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/*
|
|
Packit Service |
82fcde |
* Never include this file directly; use <limits.h> instead.
|
|
Packit Service |
82fcde |
*/
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Additional definitions from X/Open Portability Guide, Issue 4, Version 2
|
|
Packit Service |
82fcde |
System Interfaces and Headers, 4.16 <limits.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
Please note only the values which are not greater than the minimum
|
|
Packit Service |
82fcde |
stated in the standard document are listed. The `sysconf' functions
|
|
Packit Service |
82fcde |
should be used to obtain the actual value. */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#ifndef _XOPEN_LIM_H
|
|
Packit Service |
82fcde |
#define _XOPEN_LIM_H 1
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* We do not provide fixed values for
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ARG_MAX Maximum length of argument to the `exec' function
|
|
Packit Service |
82fcde |
including environment data.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ATEXIT_MAX Maximum number of functions that may be registered
|
|
Packit Service |
82fcde |
with `atexit'.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
CHILD_MAX Maximum number of simultaneous processes per real
|
|
Packit Service |
82fcde |
user ID.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
OPEN_MAX Maximum number of files that one process can have open
|
|
Packit Service |
82fcde |
at anyone time.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
PAGESIZE
|
|
Packit Service |
82fcde |
PAGE_SIZE Size of bytes of a page.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
PASS_MAX Maximum number of significant bytes in a password.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
We only provide a fixed limit for
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
IOV_MAX Maximum number of `iovec' structures that one process has
|
|
Packit Service |
82fcde |
available for use with `readv' or writev'.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
if this is indeed fixed by the underlying system.
|
|
Packit Service |
82fcde |
*/
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Maximum number of `iovec' structures that may be used in a single call
|
|
Packit Service |
82fcde |
to `readv', `writev', etc. */
|
|
Packit Service |
82fcde |
#define _XOPEN_IOV_MAX _POSIX_UIO_MAXIOV
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include <bits/uio_lim.h>
|
|
Packit Service |
82fcde |
#ifdef __IOV_MAX
|
|
Packit Service |
82fcde |
# define IOV_MAX __IOV_MAX
|
|
Packit Service |
82fcde |
#else
|
|
Packit Service |
82fcde |
# undef IOV_MAX
|
|
Packit Service |
82fcde |
#endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Maximum value of `digit' in calls to the `printf' and `scanf'
|
|
Packit Service |
82fcde |
functions. We have no limit, so return a reasonable value. */
|
|
Packit Service |
82fcde |
#define NL_ARGMAX _POSIX_ARG_MAX
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Maximum number of bytes in a `LANG' name. We have no limit. */
|
|
Packit Service |
82fcde |
#define NL_LANGMAX _POSIX2_LINE_MAX
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Maximum message number. We have no limit. */
|
|
Packit Service |
82fcde |
#define NL_MSGMAX INT_MAX
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Maximum number of bytes in N-to-1 collation mapping. We have no
|
|
Packit Service |
82fcde |
limit. */
|
|
Packit Service |
82fcde |
#if defined __USE_GNU || !defined __USE_XOPEN2K8
|
|
Packit Service |
82fcde |
# define NL_NMAX INT_MAX
|
|
Packit Service |
82fcde |
#endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Maximum set number. We have no limit. */
|
|
Packit Service |
82fcde |
#define NL_SETMAX INT_MAX
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Maximum number of bytes in a message. We have no limit. */
|
|
Packit Service |
82fcde |
#define NL_TEXTMAX INT_MAX
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Default process priority. */
|
|
Packit Service |
82fcde |
#define NZERO 20
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Number of bits in a word of type `int'. */
|
|
Packit Service |
82fcde |
#ifdef INT_MAX
|
|
Packit Service |
82fcde |
# if INT_MAX == 32767
|
|
Packit Service |
82fcde |
# define WORD_BIT 16
|
|
Packit Service |
82fcde |
# else
|
|
Packit Service |
82fcde |
# if INT_MAX == 2147483647
|
|
Packit Service |
82fcde |
# define WORD_BIT 32
|
|
Packit Service |
82fcde |
# else
|
|
Packit Service |
82fcde |
/* Safe assumption. */
|
|
Packit Service |
82fcde |
# define WORD_BIT 64
|
|
Packit Service |
82fcde |
# endif
|
|
Packit Service |
82fcde |
# endif
|
|
Packit Service |
82fcde |
#elif defined __INT_MAX__
|
|
Packit Service |
82fcde |
# if __INT_MAX__ == 32767
|
|
Packit Service |
82fcde |
# define WORD_BIT 16
|
|
Packit Service |
82fcde |
# else
|
|
Packit Service |
82fcde |
# if __INT_MAX__ == 2147483647
|
|
Packit Service |
82fcde |
# define WORD_BIT 32
|
|
Packit Service |
82fcde |
# else
|
|
Packit Service |
82fcde |
/* Safe assumption. */
|
|
Packit Service |
82fcde |
# define WORD_BIT 64
|
|
Packit Service |
82fcde |
# endif
|
|
Packit Service |
82fcde |
# endif
|
|
Packit Service |
82fcde |
#else
|
|
Packit Service |
82fcde |
# define WORD_BIT 32
|
|
Packit Service |
82fcde |
#endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Number of bits in a word of type `long int'. */
|
|
Packit Service |
82fcde |
#ifdef LONG_MAX
|
|
Packit Service |
82fcde |
# if LONG_MAX == 2147483647
|
|
Packit Service |
82fcde |
# define LONG_BIT 32
|
|
Packit Service |
82fcde |
# else
|
|
Packit Service |
82fcde |
/* Safe assumption. */
|
|
Packit Service |
82fcde |
# define LONG_BIT 64
|
|
Packit Service |
82fcde |
# endif
|
|
Packit Service |
82fcde |
#elif defined __LONG_MAX__
|
|
Packit Service |
82fcde |
# if __LONG_MAX__ == 2147483647
|
|
Packit Service |
82fcde |
# define LONG_BIT 32
|
|
Packit Service |
82fcde |
# else
|
|
Packit Service |
82fcde |
/* Safe assumption. */
|
|
Packit Service |
82fcde |
# define LONG_BIT 64
|
|
Packit Service |
82fcde |
# endif
|
|
Packit Service |
82fcde |
#else
|
|
Packit Service |
82fcde |
# include <bits/wordsize.h>
|
|
Packit Service |
82fcde |
# if __WORDSIZE == 64
|
|
Packit Service |
82fcde |
# define LONG_BIT 64
|
|
Packit Service |
82fcde |
# else
|
|
Packit Service |
82fcde |
# define LONG_BIT 32
|
|
Packit Service |
82fcde |
# endif
|
|
Packit Service |
82fcde |
#endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#endif /* bits/xopen_lim.h */
|