]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
getrlimit.2, getrusage.2: Remove unused include
authorAlejandro Colomar <alx.manpages@gmail.com>
Sun, 4 Apr 2021 11:58:36 +0000 (13:58 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 5 Apr 2021 10:47:01 +0000 (12:47 +0200)
<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>
man2/getrlimit.2
man2/getrusage.2

index 444c50525720ef61d28c8cec9cdf50832f26ebd9..648fd3c85b7604aa73e070e5ef3d31e364933f6d 100644 (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 );
index d3c0de8a07798233956025435c504d1d59c2d124..85c4ffed1c23e36da7fec84bc86f967b7f43bf7c 100644 (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