From 0cb59ab63fc02a6e268cb5258264c233d7ee1165 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sun, 4 Apr 2021 13:58:35 +0200 Subject: [PATCH] getpriority.2: Remove unused include is not needed to get the function declaration nor any constant used by the function. It was only needed (before POSIX.1) to get 'struct timeval', but that information would be more suited for system_data_types(7), and not for this page. Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man2/getpriority.2 | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/man2/getpriority.2 b/man2/getpriority.2 index e3d518028..d6744989d 100644 --- a/man2/getpriority.2 +++ b/man2/getpriority.2 @@ -47,7 +47,6 @@ getpriority, setpriority \- get/set program scheduling priority .SH SYNOPSIS .nf -.B #include .B #include .PP .BI "int getpriority(int " which ", id_t " who ); @@ -209,18 +208,6 @@ the real or effective user ID of the process \fIwho\fP. All BSD-like systems (SunOS 4.1.3, Ultrix 4.2, 4.3BSD, FreeBSD 4.3, OpenBSD-2.5, ...) behave in the same manner as Linux 2.6.12 and later. -.PP -Including -.I -is not required these days, but increases portability. -(Indeed, -.I -defines the -.I rusage -structure with fields of type -.I struct timeval -defined in -.IR .) .\" .SS C library/kernel differences Within the kernel, nice values are actually represented