summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_proc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_proc.cc')
-rw-r--r--winsup/cygwin/fhandler_proc.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index 2c8698fbd..b9f6b38df 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -79,11 +79,11 @@ static const DWORD proc_fhandlers[PROC_LINK_COUNT] = {
const char proc[] = "/proc";
const int proc_len = sizeof (proc) - 1;
-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);
-static __off64_t format_proc_cpuinfo (char *destbuf, size_t maxsize);
-static __off64_t format_proc_partitions (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);
+static _off64_t format_proc_cpuinfo (char *destbuf, size_t maxsize);
+static _off64_t format_proc_partitions (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
@@ -387,7 +387,7 @@ fhandler_proc::fill_filebuf ()
return true;
}
-static __off64_t
+static _off64_t
format_proc_meminfo (char *destbuf, size_t maxsize)
{
unsigned long mem_total = 0UL, mem_free = 0UL, swap_total = 0UL,
@@ -417,7 +417,7 @@ format_proc_meminfo (char *destbuf, size_t maxsize)
swap_total >> 10, swap_free >> 10);
}
-static __off64_t
+static _off64_t
format_proc_uptime (char *destbuf, size_t maxsize)
{
unsigned long long uptime = 0ULL, idle_time = 0ULL;
@@ -453,7 +453,7 @@ out:
idle_time / 100, long (idle_time % 100));
}
-static __off64_t
+static _off64_t
format_proc_stat (char *destbuf, size_t maxsize)
{
unsigned long long user_time = 0ULL, kernel_time = 0ULL, idle_time = 0ULL;
@@ -581,7 +581,7 @@ can_set_flag (unsigned flag)
return ((r1 ^ r2) & flag) != 0;
}
-static __off64_t
+static _off64_t
format_proc_cpuinfo (char *destbuf, size_t maxsize)
{
SYSTEM_INFO siSystemInfo;
@@ -858,7 +858,7 @@ format_proc_cpuinfo (char *destbuf, size_t maxsize)
#undef read_value
-static __off64_t
+static _off64_t
format_proc_partitions (char *destbuf, size_t maxsize)
{
char *bufptr = destbuf;