public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] <stdio.h>: Acknowledge that getdelim/getline are in POSIX
@ 2024-06-11 21:17 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2024-06-11 21:17 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e7ac92e6ca9784b397189df0b2e1fb34f425bab8

commit e7ac92e6ca9784b397189df0b2e1fb34f425bab8
Author: Philip Kaludercic <philipk@posteo.net>
Date:   Sun Jun 9 13:14:59 2024 +0200

    <stdio.h>: Acknowledge that getdelim/getline are in POSIX
    
    These comments were written in 2003 (added in 2c008571c3a), predating
    the addition of getdelim(3)/getline(3) in POSIX.1-2008.
    
    Reviewed-by: Sam James <sam@gentoo.org>
    Reviewed-by: Florian Weimer <fweimer@redhat.com>

Diff:
---
 libio/stdio.h | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/libio/stdio.h b/libio/stdio.h
index cbecabe1d9..da9d4eebcf 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -685,12 +685,7 @@ extern char *fgets_unlocked (char *__restrict __s, int __n,
    (and null-terminate it). *LINEPTR is a pointer returned from malloc (or
    NULL), pointing to *N characters of space.  It is realloc'd as
    necessary.  Returns the number of characters read (not including the
-   null terminator), or -1 on error or EOF.
-
-   These functions are not part of POSIX and therefore no official
-   cancellation point.  But due to similarity with an POSIX interface
-   or due to the implementation they are cancellation points and
-   therefore not marked with __THROW.  */
+   null terminator), or -1 on error or EOF.  */
 extern __ssize_t __getdelim (char **__restrict __lineptr,
                              size_t *__restrict __n, int __delimiter,
                              FILE *__restrict __stream) __wur __nonnull ((4));
@@ -698,12 +693,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));

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-11 21:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-11 21:17 [glibc] <stdio.h>: Acknowledge that getdelim/getline are in POSIX Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).