about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/getpriority.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-02-18 01:50:52 +0000
committerRoland McGrath <roland@gnu.org>2002-02-18 01:50:52 +0000
commit9ce8b3c817156108b9f1a1cf12a3fa6eb4332f11 (patch)
tree42ddd752b714edca7487883fb1e04fc20bc2c6a4 /sysdeps/mach/hurd/getpriority.c
parent89c255f160cdc8a12b5babe1592ce43f0264360d (diff)
downloadglibc-9ce8b3c817156108b9f1a1cf12a3fa6eb4332f11.tar.gz
glibc-9ce8b3c817156108b9f1a1cf12a3fa6eb4332f11.tar.xz
glibc-9ce8b3c817156108b9f1a1cf12a3fa6eb4332f11.zip
* 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.
Diffstat (limited to 'sysdeps/mach/hurd/getpriority.c')
-rw-r--r--sysdeps/mach/hurd/getpriority.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/getpriority.c b/sysdeps/mach/hurd/getpriority.c
index 3777bcad17..e3016ee1d8 100644
--- a/sysdeps/mach/hurd/getpriority.c
+++ b/sysdeps/mach/hurd/getpriority.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1994,95,96,97,2000,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
@@ -55,8 +55,13 @@ getpriority (enum __priority_which which, id_t who)
 			     (vm_address_t) oldpi, oldpisize * sizeof pi[0]);
 	  pip = (struct procinfo *) pi;
 	}
+#ifdef TASK_SCHED_TIMESHARE_INFO
+      if (!onerr && pip->timeshare_base_info.base_priority > maxpri)
+	maxpri = pip->timeshare_base_info.base_priority;
+#else
       if (!onerr && pip->taskinfo.base_priority > maxpri)
 	maxpri = pip->taskinfo.base_priority;
+#endif
       return 0;
     }