+2003-03-08 Christopher Faylor <cgf@redhat.com>
+
+ Revert below changes regarding _pinfo::cmdline.
+
2003-03-08 Corinna Vinschen <corinna@vinschen.de>
* external.cc (cygwin_internal): Change n to __off64_t to match change
}
case CW_CMDLINE:
{
- __off64_t n;
+ size_t n;
pid_t pid = va_arg (arg, pid_t);
pinfo p (pid);
return (DWORD) p->cmdline (n);
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,
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;
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;
{
if (filebuf)
free (filebuf);
- filebuf = p->cmdline (filesize);
+ size_t fs;
+ filebuf = p->cmdline (fs);
+ filesize = fs;
if (!filebuf || !*filebuf)
filebuf = strdup ("<defunct>");
break;
return true;
}
-static
-__off64_t
+static __off64_t
format_process_stat (_pinfo *p, char *destbuf, size_t maxsize)
{
char cmd[MAX_PATH];
);
}
-static
-__off64_t
+static __off64_t
format_process_status (_pinfo *p, char *destbuf, size_t maxsize)
{
char cmd[MAX_PATH];
);
}
-static
-__off64_t
+static __off64_t
format_process_statm (_pinfo *p, char *destbuf, size_t maxsize)
{
unsigned long vmsize = 0UL, vmrss = 0UL, vmtext = 0UL, vmdata = 0UL,
);
}
-static
-int
+static int
get_process_state (DWORD dwProcessId)
{
/*
return state;
}
-static
-bool
+static bool
get_mem_values (DWORD dwProcessId, unsigned long *vmsize, unsigned long *vmrss,
unsigned long *vmtext, unsigned long *vmdata,
unsigned long *vmlib, unsigned long *vmshare)
void commune_recv ();
commune_result commune_send (DWORD);
bool alive ();
- char *cmdline (__off64_t &);
+ char *cmdline (size_t &);
friend void __stdcall set_myself (pid_t, HANDLE);