From 1e145f150d45ba1cf0c2220bbcb368f8507e53ad Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sun, 4 Apr 2021 13:58:36 +0200 Subject: [PATCH] getrlimit.2, getrusage.2: Remove unused include is not required by any of the function declarations or macro definitions used by these functions. It may be (or maybe not) needed by some type inside the rlimit structure, but that info belongs in system_data_types(7), not here. Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man2/getrlimit.2 | 1 - man2/getrusage.2 | 9 --------- 2 files changed, 10 deletions(-) diff --git a/man2/getrlimit.2 b/man2/getrlimit.2 index 444c50525..648fd3c85 100644 --- a/man2/getrlimit.2 +++ b/man2/getrlimit.2 @@ -66,7 +66,6 @@ getrlimit, setrlimit, prlimit \- get/set resource limits .SH SYNOPSIS .nf -.B #include .B #include .PP .BI "int getrlimit(int " resource ", struct rlimit *" rlim ); diff --git a/man2/getrusage.2 b/man2/getrusage.2 index d3c0de8a0..85c4ffed1 100644 --- a/man2/getrusage.2 +++ b/man2/getrusage.2 @@ -41,7 +41,6 @@ getrusage \- get resource usage .SH SYNOPSIS .nf -.B #include .B #include .PP .BI "int getrusage(int " who ", struct rusage *" usage ); @@ -230,14 +229,6 @@ is Linux-specific. Resource usage metrics are preserved across an .BR execve (2). .PP -Including -.I -is not required these days, but increases portability. -(Indeed, -.I struct timeval -is defined in -.IR .) -.PP In Linux kernel versions before 2.6.9, if the disposition of .B SIGCHLD is set to