diff options
author | Christopher Faylor <me@cgf.cx> | 2003-03-09 20:10:25 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-03-09 20:10:25 +0000 |
commit | c367dfd02c197b33e432f97d74351735f6242e12 (patch) | |
tree | 54213ad3aa76b30f6eb18e9ea8f2bc98f906a1f9 /winsup/cygwin/mmap.cc | |
parent | 90fec0fa7a96fbf5a2c39be1410336e3f84da477 (diff) | |
download | cygnal-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/mmap.cc')
-rw-r--r-- | winsup/cygwin/mmap.cc | 15 |
1 files changed, 5 insertions, 10 deletions
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; |