From c367dfd02c197b33e432f97d74351735f6242e12 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 9 Mar 2003 20:10:25 +0000 Subject: 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. --- winsup/cygwin/mmap.cc | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'winsup/cygwin/mmap.cc') diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc index 6a300962e..27b525a39 100644 --- a/winsup/cygwin/mmap.cc +++ b/winsup/cygwin/mmap.cc @@ -421,8 +421,7 @@ map::erase (int i) static map *mmapped_areas; -extern "C" -caddr_t +extern "C" caddr_t mmap64 (caddr_t addr, size_t len, int prot, int flags, int fd, __off64_t off) { syscall_printf ("addr %x, len %d, prot %x, flags %x, fd %d, off %D", @@ -583,8 +582,7 @@ mmap64 (caddr_t addr, size_t len, int prot, int flags, int fd, __off64_t off) return ret; } -extern "C" -caddr_t +extern "C" caddr_t mmap (caddr_t addr, size_t len, int prot, int flags, int fd, __off32_t off) { return mmap64 (addr, len, prot, flags, fd, (__off64_t)off); @@ -593,8 +591,7 @@ mmap (caddr_t addr, size_t len, int prot, int flags, int fd, __off32_t off) /* munmap () removes an mmapped area. It insists that base area requested is the same as that mmapped, error if not. */ -extern "C" -int +extern "C" int munmap (caddr_t addr, size_t len) { syscall_printf ("munmap (addr %x, len %d)", addr, len); @@ -654,8 +651,7 @@ munmap (caddr_t addr, size_t len) /* Sync file with memory. Ignore flags for now. */ -extern "C" -int +extern "C" int msync (caddr_t addr, size_t len, int flags) { syscall_printf ("addr = %x, len = %d, flags = %x", @@ -878,8 +874,7 @@ fhandler_disk_file::fixup_mmap_after_fork (HANDLE h, DWORD access, DWORD offset, /* Set memory protection */ -extern "C" -int +extern "C" int mprotect (caddr_t addr, size_t len, int prot) { DWORD old_prot; -- cgit v1.2.3