diff options
author | Christopher Faylor <me@cgf.cx> | 2002-05-12 01:37:48 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-05-12 01:37:48 +0000 |
commit | 9ba913a56dd6eb5af664cb3e29fa3e9a8d7a3752 (patch) | |
tree | 383aa2254cb793d0b3e606e8c981894b2b778d5a /winsup/cygwin/wincap.cc | |
parent | 558ab81ed169c70460dcd502050f76b3d47fb9b0 (diff) | |
download | cygnal-9ba913a56dd6eb5af664cb3e29fa3e9a8d7a3752.tar.gz cygnal-9ba913a56dd6eb5af664cb3e29fa3e9a8d7a3752.tar.bz2 cygnal-9ba913a56dd6eb5af664cb3e29fa3e9a8d7a3752.zip |
* autoload.cc: Add dynamic load statements for 'ZwQueryInformationProcess' and
'ZwQueryVirtualMemory'.
* fhandler.h: Change type of bufalloc and filesize members of fhandler_virtual
from int to size_t. Change type of position member from __off32_t to
__off64_t. Add new fileid member to fhandler_virtual class. Make seekdir take
an __off64_t argument. Make lseek take an __off64_t argument. Add
fill_filebuf method to fhandler_virtual. Add fill_filebuf method to
fhandler_proc. Add fill_filebuf method to fhandler_registry. Add fill_filebuf
method to fhandler_process. Add saved_pid and saved_p members to
fhandler_process.
* fhandler_proc.cc (proc_listing_array): Add 'loadavg', 'meminfo', and 'stat'.
(proc_fhandlers array): Ditto.
(fhandler_proc::open): Use fill_filebuf to flesh out the file contents.
(fhandler_proc::fill_filebuf): New method.
(fhandler_proc::format_proc_meminfo): Ditto.
(fhandler_proc::format_proc_stat): Ditto.
(fhandler_proc::format_proc_uptime): Ditto.
* fhandler_process.cc (process_listing): Add 'stat' and 'statm'.
(fhandler_process::fstat): Find the _pinfo structure for the process named in
the filename. Return ENOENT if the process is no longer around. Set the gid
and uid fields of the stat structure.
(fhandler_process::open): Store pid and pointer to _pinfo structure in
saved_pid and saved_p respectively. Use fill_filebuf to flesh out file
contents.
(fhandler_proc::fill_filebuf): New method.
(format_process_stat): New function.
(format_process_status): Ditto.
(format_process_statm): Ditto.
(get_process_state): Ditto.
(get_mem_values): Ditto.
* fhandler_registry.cc (fhandler_registry::seekdir): Change argument type from
__off32_t to __off64_t.
(fhandler_registry::fill_filebuf): New method.
* fhandler_virtual.cc (fhandler_virtual::seekdir): Change argument type from
__off32_t to __off64_t.
(fhandler_virtual::lseek): Ditto.
(fhandler_virtual::fill_filebuf): New method.
(fhandler_virtual::fhandler_virtual): Initialise fileid to -1.
* wincap.cc: Set flag has_process_io_counters appropriately.
* wincap.h: Add flag has_process_io_counters.
Diffstat (limited to 'winsup/cygwin/wincap.cc')
-rw-r--r-- | winsup/cygwin/wincap.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/winsup/cygwin/wincap.cc b/winsup/cygwin/wincap.cc index 09e95fba0..1b3fd4b17 100644 --- a/winsup/cygwin/wincap.cc +++ b/winsup/cygwin/wincap.cc @@ -46,6 +46,7 @@ static NO_COPY wincaps wincap_unknown = { has_raw_devices:false, has_valid_processorlevel:false, has_64bit_file_access:false, + has_process_io_counters:false, }; static NO_COPY wincaps wincap_95 = { @@ -83,6 +84,7 @@ static NO_COPY wincaps wincap_95 = { has_raw_devices:false, has_valid_processorlevel:false, has_64bit_file_access:false, + has_process_io_counters:false, }; static NO_COPY wincaps wincap_95osr2 = { @@ -120,6 +122,7 @@ static NO_COPY wincaps wincap_95osr2 = { has_raw_devices:false, has_valid_processorlevel:false, has_64bit_file_access:false, + has_process_io_counters:false, }; static NO_COPY wincaps wincap_98 = { @@ -157,6 +160,7 @@ static NO_COPY wincaps wincap_98 = { has_raw_devices:false, has_valid_processorlevel:true, has_64bit_file_access:false, + has_process_io_counters:false, }; static NO_COPY wincaps wincap_98se = { @@ -194,6 +198,7 @@ static NO_COPY wincaps wincap_98se = { has_raw_devices:false, has_valid_processorlevel:true, has_64bit_file_access:false, + has_process_io_counters:false, }; static NO_COPY wincaps wincap_me = { @@ -231,6 +236,7 @@ static NO_COPY wincaps wincap_me = { has_raw_devices:false, has_valid_processorlevel:true, has_64bit_file_access:false, + has_process_io_counters:false, }; static NO_COPY wincaps wincap_nt3 = { @@ -268,6 +274,7 @@ static NO_COPY wincaps wincap_nt3 = { has_raw_devices:true, has_valid_processorlevel:true, has_64bit_file_access:true, + has_process_io_counters:false, }; static NO_COPY wincaps wincap_nt4 = { @@ -305,6 +312,7 @@ static NO_COPY wincaps wincap_nt4 = { has_raw_devices:true, has_valid_processorlevel:true, has_64bit_file_access:true, + has_process_io_counters:false, }; static NO_COPY wincaps wincap_nt4sp4 = { @@ -342,6 +350,7 @@ static NO_COPY wincaps wincap_nt4sp4 = { has_raw_devices:true, has_valid_processorlevel:true, has_64bit_file_access:true, + has_process_io_counters:false, }; static NO_COPY wincaps wincap_2000 = { @@ -379,6 +388,7 @@ static NO_COPY wincaps wincap_2000 = { has_raw_devices:true, has_valid_processorlevel:true, has_64bit_file_access:true, + has_process_io_counters:true, }; static NO_COPY wincaps wincap_xp = { @@ -416,6 +426,7 @@ static NO_COPY wincaps wincap_xp = { has_raw_devices:true, has_valid_processorlevel:true, has_64bit_file_access:true, + has_process_io_counters:true, }; wincapc NO_COPY wincap; |