* include/limits.h (PATH_MAX): Add comment.

* include/cygwin/config.h (__FILENAME_MAX__): Define as 4096.  Add
	comment.
This commit is contained in:
Corinna Vinschen 2008-06-21 20:24:45 +00:00
parent eb3f08acf8
commit 3db08eeece
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-06-21 Corinna Vinschen <corinna@vinschen.de>
* include/limits.h (PATH_MAX): Add comment.
* include/cygwin/config.h (__FILENAME_MAX__): Define as 4096. Add
comment.
2008-06-19 Corinna Vinschen <corinna@vinschen.de> 2008-06-19 Corinna Vinschen <corinna@vinschen.de>
* fhandler_tty.cc (fhandler_pty_master::setup): Fix pipe inheritance. * fhandler_tty.cc (fhandler_pty_master::setup): Fix pipe inheritance.

View File

@ -43,7 +43,7 @@ extern char *_tlsbase __asm__ ("%fs:4");
#define __getreent() (struct _reent *)(_tlsbase + tls_local_clib) #define __getreent() (struct _reent *)(_tlsbase + tls_local_clib)
#endif /* _COMPILING_NEWLIB */ #endif /* _COMPILING_NEWLIB */
#define __FILENAME_MAX__ (260 - 1 /* NUL */) #define __FILENAME_MAX__ 4096 /* Keep in sync with PATH_MAX in limits.h. */
#define _READ_WRITE_RETURN_TYPE _ssize_t #define _READ_WRITE_RETURN_TYPE _ssize_t
#define __LARGE64_FILES 1 #define __LARGE64_FILES 1
#define __CYGWIN_USE_BIG_TYPES__ 1 #define __CYGWIN_USE_BIG_TYPES__ 1

View File

@ -324,6 +324,7 @@ details. */
/* Maximum length of a path given to API functions including trailing NUL. /* Maximum length of a path given to API functions including trailing NUL.
Deliberately set to the same default value as on Linux. Internal paths Deliberately set to the same default value as on Linux. Internal paths
may be longer. */ may be longer. */
/* Keep in sync with __PATHNAME_MAX__ in cygwin/config.h */
#undef PATH_MAX #undef PATH_MAX
#define PATH_MAX 4096 #define PATH_MAX 4096