* environ.h: Fix comment.
* winsup.h: Ditto. Reflect the fact that CYG_MAX_PATH is deprecated.
This commit is contained in:
		
							parent
							
								
									495571e5fc
								
							
						
					
					
						commit
						a66789a0c0
					
				|  | @ -1,3 +1,8 @@ | ||||||
|  | 2008-03-12  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  | 
 | ||||||
|  | 	* environ.h: Fix comment. | ||||||
|  | 	* winsup.h: Ditto.  Reflect the fact that CYG_MAX_PATH is deprecated. | ||||||
|  | 
 | ||||||
| 2008-03-12  Corinna Vinschen  <corinna@vinschen.de> | 2008-03-12  Corinna Vinschen  <corinna@vinschen.de> | ||||||
| 
 | 
 | ||||||
| 	* pipe.cc (fhandler_pipe::create_selectable): Use MAX_PATH instead of | 	* pipe.cc (fhandler_pipe::create_selectable): Use MAX_PATH instead of | ||||||
|  |  | ||||||
|  | @ -15,8 +15,7 @@ void environ_init (char **, int) | ||||||
| /* The structure below is used to control conversion to/from posix-style
 | /* The structure below is used to control conversion to/from posix-style
 | ||||||
|    file specs.  Currently, only PATH and HOME are converted, but PATH |    file specs.  Currently, only PATH and HOME are converted, but PATH | ||||||
|    needs to use a "convert path list" function while HOME needs a simple |    needs to use a "convert path list" function while HOME needs a simple | ||||||
|    "convert to posix/win32".  For the simple case, where a calculated length |    "convert to posix/win32".  */ | ||||||
|    is required, just return CYG_MAX_PATH.  *FIXME* */ |  | ||||||
| struct win_env | struct win_env | ||||||
|   { |   { | ||||||
|     const char *name; |     const char *name; | ||||||
|  |  | ||||||
|  | @ -64,16 +64,10 @@ extern unsigned long cygwin_inet_addr (const char *cp); | ||||||
|    PATH_MAX is from Posix and does include the trailing NUL. |    PATH_MAX is from Posix and does include the trailing NUL. | ||||||
|    MAXPATHLEN is from Unix. |    MAXPATHLEN is from Unix. | ||||||
| 
 | 
 | ||||||
|    Thou shalt use CYG_MAX_PATH throughout.  It avoids the NUL vs no-NUL |    Thou shalt *not* use CYG_MAX_PATH anymore.  Use NT_MAX_PATH or | ||||||
|    issue and is neither of the Unixy ones [so we can punt on which |    dynamic allocation instead when accessing real files.  Use | ||||||
|    one is the right one to use]. |    MAX_PATH in case you need a convenient small buffer when creating | ||||||
| 
 |    names for synchronization objects or named pipes. */ | ||||||
|    Windows ANSI calls are limited to MAX_PATH in length. Cygwin calls that |  | ||||||
|    thunk through to Windows Wide calls are limited to 32K. We define |  | ||||||
|    CYG_MAX_PATH as a convenient, not to short, not too long 'happy medium'. |  | ||||||
| 
 |  | ||||||
|    */ |  | ||||||
| 
 |  | ||||||
| #define CYG_MAX_PATH (MAX_PATH) | #define CYG_MAX_PATH (MAX_PATH) | ||||||
| 
 | 
 | ||||||
| /* There's no define for the maximum path length the NT kernel can handle.
 | /* There's no define for the maximum path length the NT kernel can handle.
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue