summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/wait.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-03-09 20:10:25 +0000
committerChristopher Faylor <me@cgf.cx>2003-03-09 20:10:25 +0000
commitc367dfd02c197b33e432f97d74351735f6242e12 (patch)
tree54213ad3aa76b30f6eb18e9ea8f2bc98f906a1f9 /winsup/cygwin/wait.cc
parent90fec0fa7a96fbf5a2c39be1410336e3f84da477 (diff)
downloadcygnal-c367dfd02c197b33e432f97d74351735f6242e12.tar.gz
cygnal-c367dfd02c197b33e432f97d74351735f6242e12.tar.bz2
cygnal-c367dfd02c197b33e432f97d74351735f6242e12.zip
Do some minor reformatting of 'extern "C"' use throughout.
* autoload.cc (GetSystemTimes): Define new autoload function. * fhandler_proc.cc (proc_listing): Add cpuinfo and partitions entries. (fhandler_proc::fill_filebuf): Add PROC_CPUINFO and PROC_PARTITIONS cases. (format_proc_uptime): Use GetSystemTimes if available. (read_value): New macro. (print): New macro. (cpuid): New function. (can_set_flag): New function. (format_proc_cpuinfo): New function. (format_proc_partitions): New function.
Diffstat (limited to 'winsup/cygwin/wait.cc')
-rw-r--r--winsup/cygwin/wait.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/winsup/cygwin/wait.cc b/winsup/cygwin/wait.cc
index 969aafd5f..3b6427ad9 100644
--- a/winsup/cygwin/wait.cc
+++ b/winsup/cygwin/wait.cc
@@ -20,20 +20,19 @@ details. */
/* This is called _wait and not wait because the real wait is defined
in libc/syscalls/syswait.c. It calls us. */
-extern "C"
-pid_t
+extern "C" pid_t
wait (int *status)
{
return wait4 (-1, status, 0, NULL);
}
-pid_t
+extern "C" pid_t
waitpid (pid_t intpid, int *status, int options)
{
return wait4 (intpid, status, options, NULL);
}
-pid_t
+extern "C" pid_t
wait3 (int *status, int options, struct rusage *r)
{
return wait4 (-1, status, options, r);
@@ -44,7 +43,7 @@ wait3 (int *status, int options, struct rusage *r)
* not work correctly.
*/
-pid_t
+extern "C" pid_t
wait4 (int intpid, int *status, int options, struct rusage *r)
{
int res;