diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-12-06 18:24:06 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-12-06 18:24:06 +0000 |
commit | 36093cfbbfaaa714ef049265d91bbde67d889e2c (patch) | |
tree | 78bdddee79b74672b2bc64ebf0a83330ea8a01f2 /winsup/cygwin/include/sys | |
parent | 6320370052b940a458f4f712b83e40fcf032e399 (diff) | |
download | cygnal-36093cfbbfaaa714ef049265d91bbde67d889e2c.tar.gz cygnal-36093cfbbfaaa714ef049265d91bbde67d889e2c.tar.bz2 cygnal-36093cfbbfaaa714ef049265d91bbde67d889e2c.zip |
* dcrt0.cc (initial_env): Use PATH_MAX instead of CYG_MAX_PATH for path
name buffer size.
(dll_crt0_1): Allocate new_argv0 with PATH_MAX size.
* exceptions.cc (debugger_command): Set size to 2 * PATH_MAX + 20;
(error_start_init): Use PATH_MAX instead of CYG_MAX_PATH for path
name buffer size.
* external.cc (fillout_pinfo): Always fill out ep.progname 0-terminated.
Fill out ep.progname_long.
* fhandler_process.cc (fhandler_process::fill_filebuf): Allocate
buffer for executable filename with PATH_MAX size.
* pinfo.cc: Throughout use PATH_MAX instead of CYG_MAX_PATH.
* pinfo.h (class _pinfo): Set progname size to PATH_MAX.
* smallprint.cc: Include limits.h. Use PATH_MAX instead of CYG_MAX_PATH
for path name buffer size.
* strace.cc (strace::vsprntf): Ditto.
* include/sys/cygwin.h (EXTERNAL_PINFO_VERSION_32_LP): Define.
(EXTERNAL_PINFO_VERSION): Set to EXTERNAL_PINFO_VERSION_32_LP.
(struct external_pinfo): Add progname_long member.
* include/sys/dirent.h: Correctly include limits.h instead of
sys/limits.h.
Diffstat (limited to 'winsup/cygwin/include/sys')
-rw-r--r-- | winsup/cygwin/include/sys/cygwin.h | 6 | ||||
-rw-r--r-- | winsup/cygwin/include/sys/dirent.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/include/sys/cygwin.h b/winsup/cygwin/include/sys/cygwin.h index 7fe4a1377..80d31cd39 100644 --- a/winsup/cygwin/include/sys/cygwin.h +++ b/winsup/cygwin/include/sys/cygwin.h @@ -226,7 +226,8 @@ extern int cygwin_attach_handle_to_fd (char *, int, HANDLE, mode_t, DWORD); #define EXTERNAL_PINFO_VERSION_16_BIT 0 #define EXTERNAL_PINFO_VERSION_32_BIT 1 -#define EXTERNAL_PINFO_VERSION EXTERNAL_PINFO_VERSION_32_BIT +#define EXTERNAL_PINFO_VERSION_32_LP 2 +#define EXTERNAL_PINFO_VERSION EXTERNAL_PINFO_VERSION_32_LP #ifndef _SYS_TYPES_H typedef unsigned short __uid16_t; @@ -262,6 +263,9 @@ struct external_pinfo /* Only available if version >= EXTERNAL_PINFO_VERSION_32_BIT */ __uid32_t uid32; __gid32_t gid32; + + /* Only available if version >= EXTERNAL_PINFO_VERSION_32_LP */ + char progname_long[PATH_MAX]; }; #endif /*__CYGWIN__*/ #endif /*WINVER*/ diff --git a/winsup/cygwin/include/sys/dirent.h b/winsup/cygwin/include/sys/dirent.h index e62cd9249..41bfcc11d 100644 --- a/winsup/cygwin/include/sys/dirent.h +++ b/winsup/cygwin/include/sys/dirent.h @@ -12,7 +12,7 @@ #define _SYS_DIRENT_H #include <sys/types.h> -#include <sys/limits.h> +#include <limits.h> #define __DIRENT_VERSION 2 |