From patchwork Sun Jun 9 11:19:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Kaludercic X-Patchwork-Id: 1945548 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=posteo.net header.i=@posteo.net header.a=rsa-sha256 header.s=2017 header.b=dcHIiZ8U; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VxstF41CNz20V0 for ; Sun, 9 Jun 2024 21:20:21 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B40233858C32 for ; Sun, 9 Jun 2024 11:20:17 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by sourceware.org (Postfix) with ESMTPS id ADBFB3858D20 for ; Sun, 9 Jun 2024 11:20:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ADBFB3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=posteo.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=posteo.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org ADBFB3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=185.67.36.66 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717932003; cv=none; b=h8HOlsGDsB1DOLKhEPplm8pOVoLnuiQF70PWqcdIsJXDWEV8uJigw4RTlvj/yMMY9jlCPYhrhISbpYXHl8/E7xg5Hi7wwpf2L0B3FzdW2oZbaVdIHS66Hxoo071rMkMv3KAQqavyppyIPLs8GF/b02ELYLfmhVd2CjYD3YH5CV4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717932003; c=relaxed/simple; bh=JZZrwoA7lBbdKzgLGNc2tfXYBQRdxtqgst51qJLwdyI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=lXCiSkDBUNCERUx7v3mYH9z+AmrLXe0kMCeE5bdxFFFokRH/51wiwIwOWn68ShHw/wkePhcczRitzFkf4p9uHd7OKWoy+tmpgaHmXBt07rEs96kxbl8uAkSpPHJ+bDTfA2SH8motxohRQePjL41R8gfNEaeB/zJsze2a7brI76s= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id AE1B8240101 for ; Sun, 9 Jun 2024 13:19:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1717931999; bh=JZZrwoA7lBbdKzgLGNc2tfXYBQRdxtqgst51qJLwdyI=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=dcHIiZ8UKTTVHyywY4VUTLIpaMsu3ZSlUWp50gzyJmYT2F3InnsksJgred3B3u+40 g4w6yQuiUOBhkM0yZTiUCBU9dXlIaez1i/YwJij6ae6PdyO81VBrqViZt0iSCiakgA z0Ck4gVb8lfX4dXr8djP5dT/E7/sppgb3LCrmpJgxfk86GrJ9IYS8gAikIgch2paXU 5bAsRVh85u/JxPISt8NKFzyohBZF66ASL+7oEUv+/o6heZKzbJXrRK3ZWW5iAQwXIz eRKpVEgpNmgFOCWgNm/fPKxIi0plZ+AcbVRLoa97cfgNy50swyQtqc21UzbSNyqJaR MC02QYDrzyM6g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Vxssp5ylFz9rxB for ; Sun, 9 Jun 2024 13:19:58 +0200 (CEST) From: Philip Kaludercic To: libc-alpha@sourceware.org Subject: [PATCH] : Remove comment about getline(3) not being in POSIX X-Hashcash: 1:20:240609:libc-alpha@sourceware.org::izJxUDq9gkU1TzLU:08KS Date: Sun, 09 Jun 2024 11:19:57 +0000 Message-ID: <87r0d6pdlu.fsf@posteo.net> MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Hi, The current comment stems from 2003[0, 2c008571c3a], and unless I am missing something should have been removed with the addition of getline in POSIX.1-2008. [0] https://sourceware.org/git/?p=glibc.git;a=commit;h=2c008571c3a Reviewed-by: Sam James From a58894c03d34f7caac9afa5303aa5ae499edaaaf Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Sun, 9 Jun 2024 13:14:59 +0200 Subject: [PATCH] : Remove comment about getline(3) not being in POSIX --- libio/stdio.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libio/stdio.h b/libio/stdio.h index cbecabe1d9..a9dfd38c70 100644 --- a/libio/stdio.h +++ b/libio/stdio.h @@ -698,12 +698,7 @@ extern __ssize_t getdelim (char **__restrict __lineptr, size_t *__restrict __n, int __delimiter, FILE *__restrict __stream) __wur __nonnull ((4)); -/* Like `getdelim', but reads up to a newline. - - This function is not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation it is a cancellation point and - therefore not marked with __THROW. */ +/* Like `getdelim', but reads up to a newline. */ extern __ssize_t getline (char **__restrict __lineptr, size_t *__restrict __n, FILE *__restrict __stream) __wur __nonnull ((3)); -- 2.39.2