mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-05 21:00:05 +00:00
(getpriority): Use new interface to __proc_getprocinfo.
This commit is contained in:
parent
bf668fc8f0
commit
061c6526bf
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1994, 1995, 1996 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
|
||||
@ -43,8 +43,8 @@ getpriority (enum __priority_which which, int who)
|
||||
unsigned int oldpisize = pisize;
|
||||
char *tw = 0;
|
||||
size_t twsz = 0;
|
||||
onerr = __USEPORT (PROC, __proc_getprocinfo (port, pid,
|
||||
PI_FETCH_TASKINFO,
|
||||
int flags = PI_FETCH_TASKINFO;
|
||||
onerr = __USEPORT (PROC, __proc_getprocinfo (port, pid, &flags,
|
||||
&pi, &pisize,
|
||||
&tw, &twsz));
|
||||
if (twsz)
|
||||
|
Loading…
Reference in New Issue
Block a user