summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/winsup.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r--winsup/cygwin/winsup.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h
index 957cc38fd..e10ffe989 100644
--- a/winsup/cygwin/winsup.h
+++ b/winsup/cygwin/winsup.h
@@ -81,9 +81,13 @@ extern unsigned long cygwin_inet_addr (const char *cp);
buffer sizes. As MAX_PATH and PATH_MAX, this is defined including the
trailing 0. Internal buffers and internal path routines should use
NT_MAX_PATH. PATH_MAX as defined in limits.h is the maximum length of
- application provided path strings we handle. */
-/* FIXME: The name is preliminary and TBD. */
-#define NT_MAX_PATH 32768
+ application provided path strings we handle.
+
+ Note that it's defined one less than 32K. This is not only big enough,
+ it also allows to use the value in UNICODE_STRING fields Length and
+ MaximumLength when multiplied with sizeof (WCHAR). Both fields are
+ USHORT... */
+#define NT_MAX_PATH 32767
#ifdef __cplusplus