Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Marshall <keithmarshall@@users.sf.net>2010-08-18 01:18:21 +0400
committerKeith Marshall <keithmarshall@@users.sf.net>2010-08-18 01:18:21 +0400
commit0f0a0b736106aeb16378929be874149f50041e85 (patch)
treeae20fa25ca3e557bd71028ed0768616555fa28fa /winsup/mingw
parentadb4e0f3deb98aded183b9691005c8cc0ea76203 (diff)
Make PATH_MAX consistent with MAX_PATH
Diffstat (limited to 'winsup/mingw')
-rw-r--r--winsup/mingw/ChangeLog5
-rw-r--r--winsup/mingw/include/limits.h7
2 files changed, 9 insertions, 3 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index 5f106e6ef..e90df7c54 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-17 Keith Marshall <keithmarshall@users.sourceforge.net>
+
+ * include/limits.h (PATH_MAX): Make it agree with Microsoft's
+ semantically identical MAX_PATH; correct value is 260.
+
2010-07-25 Keith Marshall <keithmarshall@users.sourceforge.net>
Accept that mingwrt headers are not guaranteed to precede GCC's in the
diff --git a/winsup/mingw/include/limits.h b/winsup/mingw/include/limits.h
index 04f79f58c..96ad26cec 100644
--- a/winsup/mingw/include/limits.h
+++ b/winsup/mingw/include/limits.h
@@ -25,10 +25,11 @@
*
* TODO: NAME_MAX and OPEN_MAX are file system limits or not? Are they the
* same as FILENAME_MAX and FOPEN_MAX from stdio.h?
- * NOTE: Apparently the actual size of PATH_MAX is 260, but a space is
- * required for the NUL. TODO: Test?
+ * NOTE: PATH_MAX is the POSIX equivalent for Microsoft's MAX_PATH; the two
+ * are semantically identical, with a limit of 259 characters for the
+ * path name, plus one for a terminating NUL, for a total of 260.
*/
-#define PATH_MAX 259
+#define PATH_MAX 260
/*
* Characteristics of the char data type.