diff options
author | wollman <wollman@FreeBSD.org> | 2002-10-27 18:03:02 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 2002-10-27 18:03:02 +0000 |
commit | e5980f83e69c6c6ede89ecd02db5e84687921122 (patch) | |
tree | e95736d462f3c4120df9be7585b75484117f5c69 /sys | |
parent | bd4df2f8087a78c8f8c38b02716da5716834d893 (diff) | |
download | FreeBSD-src-e5980f83e69c6c6ede89ecd02db5e84687921122.zip FreeBSD-src-e5980f83e69c6c6ede89ecd02db5e84687921122.tar.gz |
Update limits and configuration parameters for 1003.1/TC1/D6.
Implement new sysconf keys. Change the implenentation of
_SC_ASYNCHRONOUS_IO in preparation for the next set of changes.
Move some limits which had been in <sys/syslimits.h> to <limits.h> where
they belong. They had only ever been in syslimits.h to provide for the
kernel implementation of the CTL_USER MIB branch, which went away with
newsysctl years ago. (There is a #error in <sys/syslimits.h> which I
will downgrade in the next commit.)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/syslimits.h | 22 | ||||
-rw-r--r-- | sys/sys/unistd.h | 2 |
2 files changed, 14 insertions, 10 deletions
diff --git a/sys/sys/syslimits.h b/sys/sys/syslimits.h index 1599443..20e8a47 100644 --- a/sys/sys/syslimits.h +++ b/sys/sys/syslimits.h @@ -37,6 +37,14 @@ #ifndef _SYS_SYSLIMITS_H_ #define _SYS_SYSLIMITS_H_ +#if !defined(_KERNEL) && !defined(_LIMITS_H_) && !defined(_SYS_PARAM_H_) +#error "No user-serviceable parts inside." +#endif + +/* + * Do not add any new variables here. (See the comment at the end of + * the file for why.) + */ #define ARG_MAX 65536 /* max bytes for an exec function */ #ifndef CHILD_MAX #define CHILD_MAX 40 /* max simultaneous processes */ @@ -53,20 +61,14 @@ #define PIPE_BUF 512 /* max bytes for atomic pipe writes */ #define IOV_MAX 1024 /* max elements in i/o vector */ -/* XXX - these don't belong here */ -#define BC_BASE_MAX 99 /* max ibase/obase values in bc(1) */ -#define BC_DIM_MAX 2048 /* max array elements in bc(1) */ -#define BC_SCALE_MAX 99 /* max scale value in bc(1) */ -#define BC_STRING_MAX 1000 /* max const string length in bc(1) */ -#define COLL_WEIGHTS_MAX 0 /* max weights for order keyword */ -#define EXPR_NEST_MAX 32 /* max expressions nested in expr(1) */ -#define LINE_MAX 2048 /* max bytes in an input line */ -#define RE_DUP_MAX 255 /* max RE's in interval notation */ - /* * We leave the following values undefined to force applications to either * assume conservative values or call sysconf() to get the current value. * * HOST_NAME_MAX + * LOGIN_NAME_MAX + * + * (We should do this for most of the values currently defined here, + * but many programs are not prepared to deal with this yet.) */ #endif diff --git a/sys/sys/unistd.h b/sys/sys/unistd.h index dc4004b..b185a35 100644 --- a/sys/sys/unistd.h +++ b/sys/sys/unistd.h @@ -59,6 +59,7 @@ #define _POSIX_CLOCK_SELECTION -1 #define _POSIX_CPUTIME -1 #define _POSIX_FSYNC 200112L +#define _POSIX_IPV6 0 #define _POSIX_JOB_CONTROL 1 #define _POSIX_MAPPED_FILES 200112L #define _POSIX_MEMLOCK -1 @@ -142,6 +143,7 @@ #define _PC_REC_MAX_XFER_SIZE 15 #define _PC_REC_MIN_XFER_SIZE 16 #define _PC_REC_XFER_ALIGN 17 +#define _PC_SYMLINK_MAX 18 #endif #if __BSD_VISIBLE |