diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-03-08 16:44:25 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-03-08 16:44:25 +0000 |
commit | d66ac2bc524ab413d86ad729ca3ff8fc61d0324f (patch) | |
tree | 9602e291bfc49915fc5419df0cf6f653fa6ae266 /winsup/cygwin/fhandler_proc.cc | |
parent | 01d615435c88d73c50ea0818544633a20c6db232 (diff) | |
download | cygnal-d66ac2bc524ab413d86ad729ca3ff8fc61d0324f.tar.gz cygnal-d66ac2bc524ab413d86ad729ca3ff8fc61d0324f.tar.bz2 cygnal-d66ac2bc524ab413d86ad729ca3ff8fc61d0324f.zip |
* external.cc (cygwin_internal): Change n to __off64_t to match change
of _pinfo::cmdline.
* fhandler.h (class fhandler_virtual): Change filesize member to
__off64_t.
* fhandler_proc.cc (format_proc_meminfo): Change to return __off64_t.
(format_proc_stat): Ditto.
(format_proc_uptime): Ditto.
* fhandler_process.cc (format_process_stat): Ditto.
(format_process_status): Ditto.
(format_process_statm): Ditto.
* pinfo.cc (_pinfo::cmdline): Expect __off64_t parameter.
* pinfo.h (class _pinfo): Change declaration of cmdline accordingly.
Diffstat (limited to 'winsup/cygwin/fhandler_proc.cc')
-rw-r--r-- | winsup/cygwin/fhandler_proc.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index 40863c7dc..6e8ced59a 100644 --- a/winsup/cygwin/fhandler_proc.cc +++ b/winsup/cygwin/fhandler_proc.cc @@ -70,9 +70,9 @@ static const DWORD proc_fhandlers[PROC_LINK_COUNT] = { const char proc[] = "/proc"; const int proc_len = sizeof (proc) - 1; -static off_t format_proc_meminfo (char *destbuf, size_t maxsize); -static off_t format_proc_stat (char *destbuf, size_t maxsize); -static off_t format_proc_uptime (char *destbuf, size_t maxsize); +static __off64_t format_proc_meminfo (char *destbuf, size_t maxsize); +static __off64_t format_proc_stat (char *destbuf, size_t maxsize); +static __off64_t format_proc_uptime (char *destbuf, size_t maxsize); /* auxillary function that returns the fhandler associated with the given path * this is where it would be nice to have pattern matching in C - polymorphism @@ -368,7 +368,7 @@ fhandler_proc::fill_filebuf () } static -off_t +__off64_t format_proc_meminfo (char *destbuf, size_t maxsize) { unsigned long mem_total = 0UL, mem_free = 0UL, swap_total = 0UL, @@ -399,7 +399,7 @@ format_proc_meminfo (char *destbuf, size_t maxsize) } static -off_t +__off64_t format_proc_uptime (char *destbuf, size_t maxsize) { unsigned long long uptime = 0ULL, idle_time = 0ULL; @@ -430,7 +430,7 @@ format_proc_uptime (char *destbuf, size_t maxsize) } static -off_t +__off64_t format_proc_stat (char *destbuf, size_t maxsize) { unsigned long long user_time = 0ULL, kernel_time = 0ULL, idle_time = 0ULL; |