getrlimit.2, getrusage.2: Remove unused include

<sys/time.h> 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 <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-04-04 13:58:36 +02:00 committed by Michael Kerrisk
parent 8c402eb013
commit 1e145f150d
2 changed files with 0 additions and 10 deletions

View File

@ -66,7 +66,6 @@
getrlimit, setrlimit, prlimit \- get/set resource limits
.SH SYNOPSIS
.nf
.B #include <sys/time.h>
.B #include <sys/resource.h>
.PP
.BI "int getrlimit(int " resource ", struct rlimit *" rlim );

View File

@ -41,7 +41,6 @@
getrusage \- get resource usage
.SH SYNOPSIS
.nf
.B #include <sys/time.h>
.B #include <sys/resource.h>
.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 <sys/time.h>
is not required these days, but increases portability.
(Indeed,
.I struct timeval
is defined in
.IR <sys/time.h> .)
.PP
In Linux kernel versions before 2.6.9, if the disposition of
.B SIGCHLD
is set to