* include/sys/cygwin.h (__INT_MAX_PATH): Remove.
(external_pinfo): Convert program_long to pointer. * external.cc (fillout_pinfo): Add buffer for program_long value.
This commit is contained in:
parent
a5c1103914
commit
9d342d561e
|
@ -1,7 +1,13 @@
|
||||||
|
2008-02-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* include/sys/cygwin.h (__INT_MAX_PATH): Remove.
|
||||||
|
(external_pinfo): Convert program_long to pointer.
|
||||||
|
* external.cc (fillout_pinfo): Add buffer for program_long value.
|
||||||
|
|
||||||
2008-02-15 Corinna Vinschen <corinna@vinschen.de>
|
2008-02-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* include/sys/cygwin.h (__INT_MAX_PATH): Define to 32K.
|
* include/sys/cygwin.h (__INT_MAX_PATH): Define to 32K.
|
||||||
(external_pinfo): Set size to __INT_MAX_PATH.
|
(external_pinfo): Set size of program_long to __INT_MAX_PATH.
|
||||||
|
|
||||||
2008-02-15 Christopher Faylor <me+cygwin@cgf.cx>
|
2008-02-15 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,7 @@ fillout_pinfo (pid_t pid, int winpid)
|
||||||
{
|
{
|
||||||
BOOL nextpid;
|
BOOL nextpid;
|
||||||
static external_pinfo ep;
|
static external_pinfo ep;
|
||||||
|
static char ep_progname_long_buf[NT_MAX_PATH];
|
||||||
|
|
||||||
if ((nextpid = !!(pid & CW_NEXTPID)))
|
if ((nextpid = !!(pid & CW_NEXTPID)))
|
||||||
pid ^= CW_NEXTPID;
|
pid ^= CW_NEXTPID;
|
||||||
|
@ -98,6 +99,7 @@ fillout_pinfo (pid_t pid, int winpid)
|
||||||
ep.uid32 = p->uid;
|
ep.uid32 = p->uid;
|
||||||
ep.gid32 = p->gid;
|
ep.gid32 = p->gid;
|
||||||
|
|
||||||
|
ep.progname_long = ep_progname_long_buf;
|
||||||
strcpy (ep.progname_long, p->progname);
|
strcpy (ep.progname_long, p->progname);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -237,8 +237,6 @@ typedef unsigned long __uid32_t;
|
||||||
typedef unsigned long __gid32_t;
|
typedef unsigned long __gid32_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define __INT_MAX_PATH 32768
|
|
||||||
|
|
||||||
struct external_pinfo
|
struct external_pinfo
|
||||||
{
|
{
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
@ -268,7 +266,7 @@ struct external_pinfo
|
||||||
__gid32_t gid32;
|
__gid32_t gid32;
|
||||||
|
|
||||||
/* Only available if version >= EXTERNAL_PINFO_VERSION_32_LP */
|
/* Only available if version >= EXTERNAL_PINFO_VERSION_32_LP */
|
||||||
char progname_long[__INT_MAX_PATH];
|
char *progname_long;
|
||||||
};
|
};
|
||||||
#endif /*__CYGWIN__*/
|
#endif /*__CYGWIN__*/
|
||||||
#endif /*WINVER*/
|
#endif /*WINVER*/
|
||||||
|
|
Loading…
Reference in New Issue