Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-11-02 08:25:56 +0300
committerChristopher Faylor <me@cgf.cx>2000-11-02 08:25:56 +0300
commit6d87f7d7c4f89ddbf550f22751f61d29cceab850 (patch)
treecebcc1674c120a72f31f4efa4f92912fc448662e /winsup/cygwin/pinfo.h
parente2fa502354e32466425ae03ebf2aa269835f2956 (diff)
* pinfo.cc (EnumProcessesNT): New function. Eliminates dependence on psapi.h.
(EnumProcesses9x): Rename from EnumProcessesW95. Change arguments to be more useful for cygwin. (winpids::init): Accomodate argument changes. (enum_init): Ditto. * pinfo.h (winpids): Make pidlist dynamically extendable by storing it as a pointer and remembering the size. * ntdll.h: Add extra definitions needed for EnumProcessesNT. Reformat via 'indent'.
Diffstat (limited to 'winsup/cygwin/pinfo.h')
-rw-r--r--winsup/cygwin/pinfo.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h
index e9d54cf65..0620047ab 100644
--- a/winsup/cygwin/pinfo.h
+++ b/winsup/cygwin/pinfo.h
@@ -186,12 +186,13 @@ public:
class winpids
{
- DWORD pidlist[16384];
+ DWORD *pidlist;
+ DWORD npidlist;
public:
DWORD npids;
void reset () { npids = 0; }
winpids (int) { reset (); }
- winpids () { init (); };
+ winpids (): pidlist (NULL), npidlist (0) { init (); };
void init ();
int operator [] (int i) const {return pidlist[i];}
};