summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2004-06-09 17:32:10 +0000
committermillert <millert@openbsd.org>2004-06-09 17:32:10 +0000
commit3492c5b9cd85b54be2b75301128019aa36097a56 (patch)
treeee9369ec9e396e1d2f0242fe7e550b7ae8463e12
parentwe trust the calibrated pentium_mhz more, so don't overwrite it unless (diff)
downloadwireguard-openbsd-3492c5b9cd85b54be2b75301128019aa36097a56.tar.xz
wireguard-openbsd-3492c5b9cd85b54be2b75301128019aa36097a56.zip
According to POSIX, _POSIX_PATH_MAX should be 256 but _POSIX_SYMLINK_MAX
should only be 255. You would think they would be the same but you'd be wrong.
-rw-r--r--include/limits.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/limits.h b/include/limits.h
index 82c0e8ab1d3..5784cf192f3 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.10 2004/05/31 18:34:41 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.11 2004/06/09 17:32:10 millert Exp $ */
/* $NetBSD: limits.h,v 1.7 1994/10/26 00:56:00 cgd Exp $ */
/*
@@ -44,12 +44,12 @@
#define _POSIX_NAME_MAX 14
#define _POSIX_NGROUPS_MAX 0
#define _POSIX_OPEN_MAX 16
-#define _POSIX_PATH_MAX 255
+#define _POSIX_PATH_MAX 256
#define _POSIX_PIPE_BUF 512
#define _POSIX_RE_DUP_MAX 255
#define _POSIX_SSIZE_MAX 32767
#define _POSIX_STREAM_MAX 8
-#define _POSIX_SYMLINK_MAX _POSIX_PATH_MAX
+#define _POSIX_SYMLINK_MAX 255
#define _POSIX_SYMLOOP_MAX 8
#define _POSIX_TZNAME_MAX 3