From 9ce8b3c817156108b9f1a1cf12a3fa6eb4332f11 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 18 Feb 2002 01:50:52 +0000 Subject: * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state, _S_catch_exception_raise_state_identity, _hurdsig_fault_catch_exception_raise_state, _hurdsig_fault_catch_exception_raise_state_identity. * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "". * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use __host_info with HOST_VM_INFO flavor instead of __vm_statistics. * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo. * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only. (fmh, unfmh): Define these functions only #if FMH. Otherwise define them as no-op macros. [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero. (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK. * sysdeps/powerpc/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro. --- sysdeps/mach/getsysstats.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sysdeps/mach/getsysstats.c') diff --git a/sysdeps/mach/getsysstats.c b/sysdeps/mach/getsysstats.c index e1e467735a..d2bebb621c 100644 --- a/sysdeps/mach/getsysstats.c +++ b/sysdeps/mach/getsysstats.c @@ -1,5 +1,5 @@ /* System dependent pieces of sysconf; Mach version - Copyright (C) 1996, 97, 99, 2001 Free Software Foundation, Inc. + Copyright (C) 1996,97,99,2001,02 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -84,7 +84,17 @@ __get_avphys_pages () vm_statistics_data_t vs; kern_return_t err; +#ifdef HOST_VM_INFO + { + mach_msg_type_number_t count = HOST_VM_INFO_COUNT; + err = __host_info (__mach_host_self (), HOST_VM_INFO, + (host_info_t) &vs, &count); + if (!err && count < HOST_VM_INFO_COUNT) + err = EGRATUITOUS; + } +#else err = __vm_statistics (__mach_task_self (), &vs); +#endif if (err) return __hurd_fail (err); -- cgit 1.4.1