Message ID | 20210403194026.102818-24-alx.manpages@gmail.com |
---|---|
State | Not applicable |
Headers |
Return-Path: <libc-alpha-bounces@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8F765388A438; Sat, 3 Apr 2021 19:42:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F765388A438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1617478929; bh=HAiRQP2GtgEF1v9z/PyEJIuscLwk5tIDe0zM0JUVKt0=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=vWj3JxSrP8PH5kC2MFbFEUQIsM+sh+vvoScdfc2a9m04gf70xhBFMMglJtg6sooop hET+4A8hN9vH/LBFCWpAJFWgf9dSaMze36amd/5hJcHCu8vj4/Ejga9CI4ZfScqpCZ U9wDf3ylJyLEnOn02AWVecUUHHppjmwUWHabdirc= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id 482FB388A415 for <libc-alpha@sourceware.org>; Sat, 3 Apr 2021 19:42:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 482FB388A415 Received: by mail-wm1-x332.google.com with SMTP id j4-20020a05600c4104b029010c62bc1e20so3804615wmi.3 for <libc-alpha@sourceware.org>; Sat, 03 Apr 2021 12:42:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HAiRQP2GtgEF1v9z/PyEJIuscLwk5tIDe0zM0JUVKt0=; b=VxSAwRMtBk41+qeNeF4PzYQOnvlBLxMP2osoJ6pSxqSghakLEMsIH2JOOevTCfSEXF 5l9OpQ8tYE9JjK+TRtoaZzpcoRMgGuV4UAjMOx53QS3Aou3YPBJiIGtgo2Iclw1pkZhQ e9jlJ4Da6keYvOSJWragIyk+stmKkcFEJBi7xNypidpFvzRGizqwd37+YWqb0i7wCMIs xEB/l8W1xpbqfZeaKJtO5wmcQ2o8x0x2vYG+KGsJ8/Vr4AIAwVeDSdr/RE74FAsLbzE9 3Az/3CvrrIo2KFxPPiBXKv/8XcaOnhr0uJuYlzNgc9op2EgjHiPmarGs2v6tagGKgbqj r72g== X-Gm-Message-State: AOAM532aCGZZ7u8z8R9x5QOlUBluiYuq3IEKftyxwjW7+j0Dj8jILRtA bNkl9go/X34E26XI4SGV7A4= X-Google-Smtp-Source: ABdhPJx5ORf2crCpmJirnInwwesom7wVCyN/Xan181TvuDwlZ4L22gmvOKf6WaPLqd/o9dScdgCzbQ== X-Received: by 2002:a7b:cdf7:: with SMTP id p23mr18253778wmj.26.1617478923480; Sat, 03 Apr 2021 12:42:03 -0700 (PDT) Received: from localhost.localdomain ([170.253.36.171]) by smtp.googlemail.com with ESMTPSA id n1sm25211056wro.36.2021.04.03.12.42.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Apr 2021 12:42:03 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH v4 23/35] getrlimit.2, getrusage.2: Remove unused include Date: Sat, 3 Apr 2021 21:40:15 +0200 Message-Id: <20210403194026.102818-24-alx.manpages@gmail.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210403194026.102818-1-alx.manpages@gmail.com> References: <20210403194026.102818-1-alx.manpages@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Alejandro Colomar via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Alejandro Colomar <alx.manpages@gmail.com> Cc: Alejandro Colomar <alx.manpages@gmail.com>, linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces@sourceware.org> |
Series |
SYNOPSIS: Use syscall(SYS_...); and fix '#include's
|
|
Commit Message
Alejandro Colomar
April 3, 2021, 7:40 p.m. UTC
<sys/time.h> is not required by any of these function declaration
or macro definition used by these functions. It's maybe (or maybe
not) needed by some tipe inside the rlimit structure, but that
info belongs to system_data_types(7), not here.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
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 <sys/time.h> .B #include <sys/resource.h> .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 <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