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:
parent
5a3e6625e1
commit
9c3dea8d36
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user