From 075acebfe9735f3e32a79780e27d1c882f483ebc Mon Sep 17 00:00:00 2001 From: corinna Date: Tue, 29 Mar 2005 09:10:55 +0000 Subject: [PATCH] * fhandler_process.cc: Re-add exename. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/fhandler_process.cc | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1ffba7539d..68a1a28c8a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2005-03-29 Corinna Vinschen + + * fhandler_process.cc: Re-add exename. + 2005-03-28 Christopher Faylor * include/ctype.h: Accommodate building in newlib. diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index 0c42db9576..7fd71102f1 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -45,10 +45,11 @@ static const int PROCESS_STATM = 12; static const int PROCESS_CMDLINE = 13; static const int PROCESS_MAPS = 14; static const int PROCESS_FD = 15; +static const int PROCESS_EXENAME = 16; /* Keep symlinks always the last entries. */ -static const int PROCESS_ROOT = 16; -static const int PROCESS_EXE = 17; -static const int PROCESS_CWD = 18; +static const int PROCESS_ROOT = 17; +static const int PROCESS_EXE = 18; +static const int PROCESS_CWD = 19; /* The position of "root" defines the beginning of symlik entries. */ #define is_symlink(nr) ((nr) >= PROCESS_ROOT) @@ -71,6 +72,7 @@ static const char * const process_listing[] = "cmdline", "maps", "fd", + "exename", /* Keep symlinks always the last entries. */ "root", "exe", @@ -435,6 +437,7 @@ fhandler_process::fill_filebuf () } break; } + case PROCESS_EXENAME: case PROCESS_EXE: { filebuf = (char *) realloc (filebuf, bufalloc = CYG_MAX_PATH); -- 2.11.0