getpriority.c\misc\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/misc/getpriority.c
blob: 5c0b1682b69a66e52edd33e9761bf0d7f51c92de (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <sys/resource.h>
#include "syscall.h"
int getpriority(int which, id_t who)
{
	int ret = syscall(SYS_getpriority, which, who);
	if (ret < 0) return ret;
	return 20-ret;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月07日 18:52:32 +0000

AltStyle によって変換されたページ (->オリジナル) /