summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/tty.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/tty.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/tty.cc')
-rw-r--r--winsup/cygwin/tty.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc
index 371887c20..ef3252be7 100644
--- a/winsup/cygwin/tty.cc
+++ b/winsup/cygwin/tty.cc
@@ -28,22 +28,19 @@ details. */
extern fhandler_tty_master *tty_master;
-extern "C"
-int
+extern "C" int
grantpt (int fd)
{
return 0;
}
-extern "C"
-int
+extern "C" int
unlockpt (int fd)
{
return 0;
}
-extern "C"
-int
+extern "C" int
ttyslot (void)
{
if (NOTSTATE (myself, PID_USETTY))