1 /* vi: set sw=4 ts=4: */
3 * getpriority() for uClibc
5 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
7 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
10 #include <sys/syscall.h>
11 #include <sys/resource.h>
14 #define __NR___syscall_getpriority __NR_getpriority
15 static __inline__ _syscall2(int, __syscall_getpriority,
16 __priority_which_t, which, id_t, who)
18 /* The return value of __syscall_getpriority is biased by this value
19 * to avoid returning negative values. */
21 int getpriority(__priority_which_t which, id_t who)
25 res = __syscall_getpriority(which, who);
30 libc_hidden_def(getpriority)