diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-12 18:43:31 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-12 18:43:31 +0000 |
commit | 363934dc9b9327460fefc113a3797e7e51ea2c18 (patch) | |
tree | 240bbce2428abbce4c633f33a879b4a5baba1994 /winsup/cygwin/fhandler_tty.cc | |
parent | 9941f8525d6a586843662352f28409efa18942c8 (diff) | |
download | cygnal-363934dc9b9327460fefc113a3797e7e51ea2c18.tar.gz cygnal-363934dc9b9327460fefc113a3797e7e51ea2c18.tar.bz2 cygnal-363934dc9b9327460fefc113a3797e7e51ea2c18.zip |
* pinfo.cc (size_copied): New convenience macro.
(winpids::add): Alias the element that we are working on for slightly better
clarity. Honor the "make_copy" flag.
(winpids::release): Free and zero procinfo field if it was allocated via
malloc.
(winpids::~winpids): Free copied array.
* pinfo.h (class pinfo): Make winpids class a friend.
(winpids::make_copy): New field.
(winpids::copied): New array.
(winpids::reset): Reset npids after releasing pinfos or suffer a memory leak.
(winpids::winpids): Try harder to allocate all fields in the class.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
0 files changed, 0 insertions, 0 deletions