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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user