From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 1E52A3858D29 for ; Mon, 15 Mar 2021 18:25:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1E52A3858D29 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joseph_myers@mentor.com IronPort-SDR: /zm3lJyJDiSowYW+XlPQoHqlCJgGlwieqjxrNbYtIR3hoAu2/5o/kXdQELwChla+Xxu1zzsO4V MgziheM2Ucx0UjWdSQxWLlVuRWRQemYVlvxJ3vsBX5JVhCgAxu9bjNQmH+7kEI85/iP7xjOeB3 ok/ZxaP05kKVtMW+acZ9DCj2q3qWNriqlTxScBd10W4JZfS3FJfV6+IsHDxSLR6ZEn2+3jf8cl V1RohqEO8X6v0Y1bcqhfHJnJJ4HGNWKllnevAhVV2tr40KAFgogNtdwuUIVfZMkZbS9aNO7UFR 2WY= X-IronPort-AV: E=Sophos;i="5.81,251,1610438400"; d="scan'208";a="59102302" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 15 Mar 2021 10:25:42 -0800 IronPort-SDR: Q8ZRbjnlCcRkvsbFNRej313EryolFdTHZUkKTy4IO1WZwFk4WeLDwZfpQqtDrOL2YZTc1gla45 Vbs5hW8ANizxVHEABjQGT+fUT4jbUFPfOreq46Zchqvg8XQarCp4qoT+v3TA3wfP0z39xrxJn2 xGBJUfVqZxZSpmWB3H/xVYox7FbpFcJxPoNucJP6cA0kjXcwgBBaWyxY3NIPa63Ap8IQo+RGRJ beIDezBFG7Arzw9WZKv0U7UjDYrdE6YLVNzQuhPkkA+u4zEOBvQeIBNAMrWyTTh3z3MS1bt/Vf Hp4= Date: Mon, 15 Mar 2021 18:25:37 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Zack Weinberg CC: Alejandro Colomar , linux-man , GNU C Library , "Michael Kerrisk (man-pages)" Subject: Re: [PATCH] Various pages: Remove unused In-Reply-To: Message-ID: References: <20210314160134.127878-1-alx.manpages@gmail.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-05.mgc.mentorg.com (139.181.222.5) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3122.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2021 18:25:44 -0000 On Sun, 14 Mar 2021, Zack Weinberg wrote: > I endorse this change. For glibc, if the header file containing the > function prototype doesn't also provide everything you need to call > the function, it's a bug (except for a few cases where the relevant > standards prevent us from doing this, e.g. a function that calls > vprintf will need the macros in , but the C standard > specifically forbids to include ). And in particular, where older POSIX doesn't require the types used in the function declarations to be defined by a header, but permits them to be defined by virtue of the general *_t reservation in POSIX (that's not in ISO C), it's appropriate to define those types whenever declaring functions that use them, rather than only for the newer POSIX versions that require those types to be defined alongside declaring the functions that use them. (So we could simplify some of the conditionals in unistd.h and remove the "# define uid_t __uid_t" and similar hacks in conform/data/unistd.h-data, for example.) -- Joseph S. Myers joseph@codesourcery.com