diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-05-31 18:34:42 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-05-31 18:34:42 +0000 |
commit | 793213f9e889f22bddf00069f825d2f777f1a3d4 (patch) | |
tree | 48d7fd6c150de3cf5153126b5be29428e15723e7 | |
parent | 65328418ffb1f8e3f90dd66929a6b20ea9bc26ca (diff) |
Define _POSIX_SYMLINK_MAX and SYMLINK_MAX as _POSIX_PATH_MAX and PATH_MAX
respectively instead of duplicating their values.
-rw-r--r-- | include/limits.h | 4 | ||||
-rw-r--r-- | sys/sys/syslimits.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/limits.h b/include/limits.h index a05c132244b..82c0e8ab1d3 100644 --- a/include/limits.h +++ b/include/limits.h @@ -1,4 +1,4 @@ -/* $OpenBSD: limits.h,v 1.9 2004/05/31 18:31:52 millert Exp $ */ +/* $OpenBSD: limits.h,v 1.10 2004/05/31 18:34:41 millert Exp $ */ /* $NetBSD: limits.h,v 1.7 1994/10/26 00:56:00 cgd Exp $ */ /* @@ -49,7 +49,7 @@ #define _POSIX_RE_DUP_MAX 255 #define _POSIX_SSIZE_MAX 32767 #define _POSIX_STREAM_MAX 8 -#define _POSIX_SYMLINK_MAX 255 +#define _POSIX_SYMLINK_MAX _POSIX_PATH_MAX #define _POSIX_SYMLOOP_MAX 8 #define _POSIX_TZNAME_MAX 3 diff --git a/sys/sys/syslimits.h b/sys/sys/syslimits.h index b27fff70490..f2812262dff 100644 --- a/sys/sys/syslimits.h +++ b/sys/sys/syslimits.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syslimits.h,v 1.7 2004/05/31 18:31:52 millert Exp $ */ +/* $OpenBSD: syslimits.h,v 1.8 2004/05/31 18:34:41 millert Exp $ */ /* $NetBSD: syslimits.h,v 1.12 1995/10/05 05:26:19 thorpej Exp $ */ /* @@ -43,7 +43,7 @@ #define OPEN_MAX 64 /* max open files per process */ #define PATH_MAX 1024 /* max bytes in pathname */ #define PIPE_BUF 512 /* max bytes for atomic pipe writes */ -#define SYMLINK_MAX 1024 /* max bytes in a symbolic link */ +#define SYMLINK_MAX PATH_MAX /* max bytes in a symbolic link */ #define SYMLOOP_MAX 32 /* max symlinks per path (for loops) */ #define BC_BASE_MAX INT_MAX /* max ibase/obase values in bc(1) */ |