diff options
author | Christopher Faylor <me@cgf.cx> | 2003-03-08 17:56:13 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-03-08 17:56:13 +0000 |
commit | 1114c3d05938d2e6829a382d340a5225d2d59b38 (patch) | |
tree | 09142d6175f3e15c825e7091712b0ca53183b231 /winsup/cygwin/fhandler_process.cc | |
parent | d66ac2bc524ab413d86ad729ca3ff8fc61d0324f (diff) | |
download | cygnal-1114c3d05938d2e6829a382d340a5225d2d59b38.tar.gz cygnal-1114c3d05938d2e6829a382d340a5225d2d59b38.tar.bz2 cygnal-1114c3d05938d2e6829a382d340a5225d2d59b38.zip |
Revert below changes regarding _pinfo::cmdline.
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r-- | winsup/cygwin/fhandler_process.cc | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index 29789b07c..c93c121b1 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -300,7 +300,9 @@ fhandler_process::fill_filebuf () { if (filebuf) free (filebuf); - filebuf = p->cmdline (filesize); + size_t fs; + filebuf = p->cmdline (fs); + filesize = fs; if (!filebuf || !*filebuf) filebuf = strdup ("<defunct>"); break; @@ -363,8 +365,7 @@ fhandler_process::fill_filebuf () return true; } -static -__off64_t +static __off64_t format_process_stat (_pinfo *p, char *destbuf, size_t maxsize) { char cmd[MAX_PATH]; @@ -499,8 +500,7 @@ format_process_stat (_pinfo *p, char *destbuf, size_t maxsize) ); } -static -__off64_t +static __off64_t format_process_status (_pinfo *p, char *destbuf, size_t maxsize) { char cmd[MAX_PATH]; @@ -593,8 +593,7 @@ format_process_status (_pinfo *p, char *destbuf, size_t maxsize) ); } -static -__off64_t +static __off64_t format_process_statm (_pinfo *p, char *destbuf, size_t maxsize) { unsigned long vmsize = 0UL, vmrss = 0UL, vmtext = 0UL, vmdata = 0UL, @@ -610,8 +609,7 @@ format_process_statm (_pinfo *p, char *destbuf, size_t maxsize) ); } -static -int +static int get_process_state (DWORD dwProcessId) { /* @@ -678,8 +676,7 @@ out: return state; } -static -bool +static bool get_mem_values (DWORD dwProcessId, unsigned long *vmsize, unsigned long *vmrss, unsigned long *vmtext, unsigned long *vmdata, unsigned long *vmlib, unsigned long *vmshare) |