X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fvma-iter.c;h=7673388ae4e5b8b269b248b7c75948ac2b572a3b;hb=cd56634a4a8179fd5a4419fbb3e27211b042ab1c;hp=1525a38c60744a3088b4cce3222026e97e7cf04e;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/lib/vma-iter.c b/lib/vma-iter.c index 1525a38c6..7673388ae 100644 --- a/lib/vma-iter.c +++ b/lib/vma-iter.c @@ -1,5 +1,5 @@ /* Iteration over virtual memory areas. - Copyright (C) 2011-2012 Free Software Foundation, Inc. + Copyright (C) 2011-2014 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This program is free software: you can redistribute it and/or modify @@ -32,7 +32,7 @@ # include /* PIOC*, prmap_t */ #endif -#if defined __APPLE__ && defined __MACH__ /* MacOS X */ +#if defined __APPLE__ && defined __MACH__ /* Mac OS X */ # include #endif @@ -359,7 +359,7 @@ vma_iterate (vma_iterate_callback_fn callback, void *data) close (fd); return; -#elif defined __APPLE__ && defined __MACH__ /* MacOS X */ +#elif defined __APPLE__ && defined __MACH__ /* Mac OS X */ task_t task = mach_task_self (); vm_address_t address; @@ -370,10 +370,10 @@ vma_iterate (vma_iterate_callback_fn callback, void *data) int more; mach_port_t object_name; unsigned int flags; - /* In MacOS X 10.5, the types vm_address_t, vm_offset_t, vm_size_t have + /* In Mac OS X 10.5, the types vm_address_t, vm_offset_t, vm_size_t have 32 bits in 32-bit processes and 64 bits in 64-bit processes. Whereas mach_vm_address_t and mach_vm_size_t are always 64 bits large. - MacOS X 10.5 has three vm_region like methods: + Mac OS X 10.5 has three vm_region like methods: - vm_region. It has arguments that depend on whether the current process is 32-bit or 64-bit. When linking dynamically, this function exists only in 32-bit processes. Therefore we use it only