Activate _POSIX_* stuff if !_ANSI_SOURCE

Add _XOPEN constants set, needed mainly to sense position arguments
in printf (vi cares at this moment)
Obtained from: NetBSD
This commit is contained in:
Andrey A. Chernov 1997-01-16 07:57:56 +00:00
parent 827d623ef8
commit eca6bf6ad9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21759

View File

@ -36,6 +36,7 @@
#ifndef _LIMITS_H_
#define _LIMITS_H_
#if !defined(_ANSI_SOURCE)
#define _POSIX_ARG_MAX 4096
#define _POSIX_CHILD_MAX 6
#define _POSIX_LINK_MAX 8
@ -58,6 +59,18 @@
#define _POSIX2_EXPR_NEST_MAX 32
#define _POSIX2_LINE_MAX 2048
#define _POSIX2_RE_DUP_MAX 255
#endif /* !_ANSI_SOURCE */
#if (!defined(_ANSI_SOURCE)&&!defined(_POSIX_SOURCE)) || defined(_XOPEN_SOURCE)
#define PASS_MAX 128
#define NL_ARGMAX 9
#define NL_LANGMAX 14
#define NL_MSGMAX 32767
#define NL_NMAX 1
#define NL_SETMAX 255
#define NL_TEXTMAX 255
#endif
#include <machine/limits.h>
#include <sys/syslimits.h>