* fhandler_process.cc: Re-add exename.

This commit is contained in:
Corinna Vinschen 2005-03-29 09:10:59 +00:00
parent a9b33f4de6
commit 75f212b2cc
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2005-03-29 Corinna Vinschen <corinna@vinschen.de>
* fhandler_process.cc: Re-add exename.
2005-03-28 Christopher Faylor <cgf@timesys.com> 2005-03-28 Christopher Faylor <cgf@timesys.com>
* include/ctype.h: Accommodate building in newlib. * include/ctype.h: Accommodate building in newlib.

View File

@ -45,10 +45,11 @@ static const int PROCESS_STATM = 12;
static const int PROCESS_CMDLINE = 13; static const int PROCESS_CMDLINE = 13;
static const int PROCESS_MAPS = 14; static const int PROCESS_MAPS = 14;
static const int PROCESS_FD = 15; static const int PROCESS_FD = 15;
static const int PROCESS_EXENAME = 16;
/* Keep symlinks always the last entries. */ /* Keep symlinks always the last entries. */
static const int PROCESS_ROOT = 16; static const int PROCESS_ROOT = 17;
static const int PROCESS_EXE = 17; static const int PROCESS_EXE = 18;
static const int PROCESS_CWD = 18; static const int PROCESS_CWD = 19;
/* The position of "root" defines the beginning of symlik entries. */ /* The position of "root" defines the beginning of symlik entries. */
#define is_symlink(nr) ((nr) >= PROCESS_ROOT) #define is_symlink(nr) ((nr) >= PROCESS_ROOT)
@ -71,6 +72,7 @@ static const char * const process_listing[] =
"cmdline", "cmdline",
"maps", "maps",
"fd", "fd",
"exename",
/* Keep symlinks always the last entries. */ /* Keep symlinks always the last entries. */
"root", "root",
"exe", "exe",
@ -435,6 +437,7 @@ fhandler_process::fill_filebuf ()
} }
break; break;
} }
case PROCESS_EXENAME:
case PROCESS_EXE: case PROCESS_EXE:
{ {
filebuf = (char *) realloc (filebuf, bufalloc = CYG_MAX_PATH); filebuf = (char *) realloc (filebuf, bufalloc = CYG_MAX_PATH);