diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-03-29 21:46:17 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-03-29 21:46:17 +0400 |
commit | 232fee428a9afc01d2ff5f551b6ad6afff3e7394 (patch) | |
tree | 1a08f2d734e7541bee5aeb1a63263ae8b44a6aca /winsup/cygwin/include/limits.h | |
parent | db27ea412581b5618a0f8f0a6ce7014b59feb4e8 (diff) |
* include/limits.h (NAME_MAX): New define.
(PATH_MAX): POSIX allows PATH_MAX to include trailing NUL.
Diffstat (limited to 'winsup/cygwin/include/limits.h')
-rw-r--r-- | winsup/cygwin/include/limits.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/include/limits.h b/winsup/cygwin/include/limits.h index 5ef3513ce..d6237f653 100644 --- a/winsup/cygwin/include/limits.h +++ b/winsup/cygwin/include/limits.h @@ -125,7 +125,10 @@ details. */ #define SSIZE_MAX (__LONG_MAX__) /* Maximum length of a path */ -#define PATH_MAX (260 - 1 /*NUL*/) +#define PATH_MAX 260 + +/* Maximum length of a path component. */ +#define NAME_MAX 255 /* Max num groups for a user, value taken from NT documentation */ /* Must match <sys/param.h> NGROUPS */ |