aboutsummaryrefslogtreecommitdiffstats
path: root/include/limits.h
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>2002-09-21 02:00:44 +0000
committerGarrett Wollman <wollman@FreeBSD.org>2002-09-21 02:00:44 +0000
commitf7eb4ce8754d3dbaad8424737149cf4f9058bb64 (patch)
tree2ca6d7dc1e258ac9cebac8fe4fdd3383da2d1c77 /include/limits.h
parent0d3bcc2e8068cb87817b732860cbde589ea25347 (diff)
downloadsrc-f7eb4ce8754d3dbaad8424737149cf4f9058bb64.tar.gz
src-f7eb4ce8754d3dbaad8424737149cf4f9058bb64.zip
Use new visibility macros. (1 of 5)
Notes
Notes: svn path=/head/; revision=103727
Diffstat (limited to 'include/limits.h')
-rw-r--r--include/limits.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/limits.h b/include/limits.h
index 4174234a5ac1..e29d91f95cd8 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -36,9 +36,9 @@
#ifndef _LIMITS_H_
#define _LIMITS_H_
-#include <sys/_posix.h>
+#include <sys/cdefs.h>
-#ifndef _ANSI_SOURCE
+#if __POSIX_VISIBLE
#define _POSIX_ARG_MAX 4096
#define _POSIX_CHILD_MAX 6
#define _POSIX_LINK_MAX 8
@@ -61,11 +61,9 @@
#define _POSIX2_EXPR_NEST_MAX 32
#define _POSIX2_LINE_MAX 2048
#define _POSIX2_RE_DUP_MAX 255
+#endif
-#define _XOPEN_IOV_MAX 16
-
-#ifdef _P1003_1B_VISIBLE
-
+#if __POSIX_VISIBLE >= 199309
#define _POSIX_AIO_LISTIO_MAX 16
#define _POSIX_AIO_MAX 1
#define _POSIX_DELAYTIMER_MAX 32
@@ -76,12 +74,14 @@
#define _POSIX_SEM_VALUE_MAX 32767
#define _POSIX_SIGQUEUE_MAX 32
#define _POSIX_TIMER_MAX 32
-
#endif
-#endif /* !_ANSI_SOURCE */
+#if __POSIX_VISIBLE >= 200112
+#define _POSIX_HOST_NAME_MAX 255
+#endif
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE)
+#if __XSI_VISIBLE
+#define _XOPEN_IOV_MAX 16
#define PASS_MAX 128 /* _PASSWORD_LEN from <pwd.h> */
#define NL_ARGMAX 99 /* max # of position args for printf */
@@ -93,7 +93,7 @@
#endif
#include <machine/limits.h>
-#if !defined(_ANSI_SOURCE)
+#if __POSIX_VISIBLE
#include <sys/syslimits.h>
#endif