From 80b55d320bae6743130701af3b5c395d21ce748d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 1 Nov 1995 10:00:20 +0000 Subject: * sysdeps/mach/hurd/getpriority.c (getpriority): Pass PI_FETCH_TASKINFO to proc_getprocinfo and through _hurd_priority_which_map. * sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to _hurd_priority_which_map. * hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS, passed through to proc_getprocinfo RPC. * hurd/hurd/resource.h: Add PI_FLAGS arg in decl. --- hurd/hurdprio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hurd/hurdprio.c') diff --git a/hurd/hurdprio.c b/hurd/hurdprio.c index 8bad256..9360738 100644 --- a/hurd/hurdprio.c +++ b/hurd/hurdprio.c @@ -1,5 +1,5 @@ /* Support code for dealing with priorities in the Hurd. -Copyright (C) 1994 Free Software Foundation, Inc. +Copyright (C) 1994, 1995 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 @@ -22,7 +22,8 @@ Cambridge, MA 02139, USA. */ error_t _hurd_priority_which_map (enum __priority_which which, int who, - error_t (*function) (pid_t, struct procinfo *)) + error_t (*function) (pid_t, struct procinfo *), + int pi_flags) { mach_msg_type_number_t npids = 64, i; pid_t pidbuf[npids], *pids; @@ -59,6 +60,7 @@ _hurd_priority_which_map (enum __priority_which which, int who, int *oldpi = pi; mach_msg_type_number_t oldpisize = pisize; if (err = __USEPORT (PROC, __proc_getprocinfo (port, pids[i], + pi_flags, &pi, &pisize))) continue; if (pi != oldpi && oldpi != pibuf) -- cgit v1.1