From 853f0eead1fcab44fa3339a6b171da9bfc7840d8 Mon Sep 17 00:00:00 2001 From: Roland McGrath <roland@gnu.org> Date: Fri, 3 Nov 1995 22:42:06 +0000 Subject: Fri Nov 3 17:27:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> * sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to socket_create_address. * sysdeps/mach/hurd/connect.c: Likewise. * sysdeps/mach/hurd/bind.c: Likewise. * hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits args to proc_getprocinfo. * sysdeps/mach/hurd/getpriority.c: Likewise. * hurd/hurdmsg.c (_S_msg_report_wait): New stub function. --- sysdeps/mach/hurd/getpriority.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sysdeps/mach/hurd/getpriority.c') diff --git a/sysdeps/mach/hurd/getpriority.c b/sysdeps/mach/hurd/getpriority.c index 933592fe8e..3d7af4d3bb 100644 --- a/sysdeps/mach/hurd/getpriority.c +++ b/sysdeps/mach/hurd/getpriority.c @@ -41,9 +41,14 @@ getpriority (enum __priority_which which, int who) { int *oldpi = pi; unsigned int oldpisize = pisize; + char *tw = 0; + size_t twsz = 0; onerr = __USEPORT (PROC, __proc_getprocinfo (port, pid, PI_FETCH_TASKINFO, - &pi, &pisize)); + &pi, &pisize, + &tw, &twsz)); + if (twsz) + __vm_deallocate (__mach_task_self (), tw, twsz); if (pi != oldpi && oldpi != pibuf) /* Old buffer from last call was not reused; free it. */ __vm_deallocate (__mach_task_self (), -- cgit v1.2.3-70-g09d2