public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] libio: Use __libc_getdelim instead of __getdelim
@ 2022-06-03 14:06 Adhemerval Zanella
  0 siblings, 0 replies; 12+ messages in thread
From: Adhemerval Zanella @ 2022-06-03 14:06 UTC (permalink / raw)
  To: glibc-cvs

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

commit 8fb7bdb75ab99c3330ea03b0fc33e687d8c71f82
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Mar 14 14:28:57 2022 -0300

    libio: Use __libc_getdelim instead of __getdelim

Diff:
---
 iconv/gconv_parseconfdir.h              | 2 +-
 include/stdio.h                         | 3 ++-
 libio/iogetdelim.c                      | 5 +++--
 stdio-common/getline.c                  | 2 +-
 sysdeps/unix/sysv/linux/readonly-area.c | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/iconv/gconv_parseconfdir.h b/iconv/gconv_parseconfdir.h
index debb96b322..81a06b222d 100644
--- a/iconv/gconv_parseconfdir.h
+++ b/iconv/gconv_parseconfdir.h
@@ -23,7 +23,7 @@
 
 #if IS_IN (libc)
 # include <libio/libioP.h>
-# define __getdelim(line, len, c, fp) __getdelim (line, len, c, fp)
+# define __getdelim(line, len, c, fp) __libc_getdelim (line, len, c, fp)
 
 # undef isspace
 # define isspace(__c) __isspace_l ((__c), _nl_C_locobj_ptr)
diff --git a/include/stdio.h b/include/stdio.h
index 39b4978130..b8f6f8f8b1 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -212,7 +212,8 @@ stdio_hidden_ldbl_proto (fprintf);
 stdio_hidden_ldbl_proto (vfprintf);
 stdio_hidden_ldbl_proto (sprintf);
 libc_hidden_proto (ungetc)
-libc_hidden_proto (__getdelim)
+__typeof (getdelim) __libc_getdelim;
+hidden_proto2 (getdelim, __libc_getdelim);
 libc_hidden_proto (fwrite)
 libc_hidden_proto (perror)
 libc_hidden_proto (remove)
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index b6c4c07b45..d24cb07e50 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -37,7 +37,7 @@
    null terminator), or -1 on error or EOF.  */
 
 ssize_t
-__getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
+__libc_getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
 {
   ssize_t result;
   ssize_t cur_len = 0;
@@ -122,5 +122,6 @@ unlock_return:
   _IO_release_lock (fp);
   return result;
 }
-libc_hidden_def (__getdelim)
+libc_hidden_def (__libc_getdelim)
+strong_alias (__libc_getdelim, __getdelim)
 weak_alias (__getdelim, getdelim)
diff --git a/stdio-common/getline.c b/stdio-common/getline.c
index 18a489ca0b..329b1c7d4b 100644
--- a/stdio-common/getline.c
+++ b/stdio-common/getline.c
@@ -25,7 +25,7 @@
 ssize_t
 __getline (char **lineptr, size_t *n, FILE *stream)
 {
-  return __getdelim (lineptr, n, '\n', stream);
+  return __libc_getdelim (lineptr, n, '\n', stream);
 }
 
 weak_alias (__getline, getline)
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index 3a94d7c52f..b3f7a2fe75 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -55,7 +55,7 @@ __readonly_area (const char *ptr, size_t size)
 
   while (! __feof_unlocked (fp))
     {
-      if (__getdelim (&line, &linelen, '\n', fp) <= 0)
+      if (__libc_getdelim (&line, &linelen, '\n', fp) <= 0)
 	break;
 
       char *p;


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [glibc/azanella/clang] libio: Use __libc_getdelim instead of __getdelim
@ 2022-06-09 21:20 Adhemerval Zanella
  0 siblings, 0 replies; 12+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 21:20 UTC (permalink / raw)
  To: glibc-cvs

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

commit 8e82ecd0f9e7796a3206b9869bfc88f84776b781
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Mar 14 14:28:57 2022 -0300

    libio: Use __libc_getdelim instead of __getdelim

Diff:
---
 iconv/gconv_parseconfdir.h              | 2 +-
 include/stdio.h                         | 3 ++-
 libio/iogetdelim.c                      | 5 +++--
 stdio-common/getline.c                  | 2 +-
 sysdeps/unix/sysv/linux/readonly-area.c | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/iconv/gconv_parseconfdir.h b/iconv/gconv_parseconfdir.h
index debb96b322..81a06b222d 100644
--- a/iconv/gconv_parseconfdir.h
+++ b/iconv/gconv_parseconfdir.h
@@ -23,7 +23,7 @@
 
 #if IS_IN (libc)
 # include <libio/libioP.h>
-# define __getdelim(line, len, c, fp) __getdelim (line, len, c, fp)
+# define __getdelim(line, len, c, fp) __libc_getdelim (line, len, c, fp)
 
 # undef isspace
 # define isspace(__c) __isspace_l ((__c), _nl_C_locobj_ptr)
diff --git a/include/stdio.h b/include/stdio.h
index 39b4978130..b8f6f8f8b1 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -212,7 +212,8 @@ stdio_hidden_ldbl_proto (fprintf);
 stdio_hidden_ldbl_proto (vfprintf);
 stdio_hidden_ldbl_proto (sprintf);
 libc_hidden_proto (ungetc)
-libc_hidden_proto (__getdelim)
+__typeof (getdelim) __libc_getdelim;
+hidden_proto2 (getdelim, __libc_getdelim);
 libc_hidden_proto (fwrite)
 libc_hidden_proto (perror)
 libc_hidden_proto (remove)
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index b6c4c07b45..d24cb07e50 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -37,7 +37,7 @@
    null terminator), or -1 on error or EOF.  */
 
 ssize_t
-__getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
+__libc_getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
 {
   ssize_t result;
   ssize_t cur_len = 0;
@@ -122,5 +122,6 @@ unlock_return:
   _IO_release_lock (fp);
   return result;
 }
-libc_hidden_def (__getdelim)
+libc_hidden_def (__libc_getdelim)
+strong_alias (__libc_getdelim, __getdelim)
 weak_alias (__getdelim, getdelim)
diff --git a/stdio-common/getline.c b/stdio-common/getline.c
index 18a489ca0b..329b1c7d4b 100644
--- a/stdio-common/getline.c
+++ b/stdio-common/getline.c
@@ -25,7 +25,7 @@
 ssize_t
 __getline (char **lineptr, size_t *n, FILE *stream)
 {
-  return __getdelim (lineptr, n, '\n', stream);
+  return __libc_getdelim (lineptr, n, '\n', stream);
 }
 
 weak_alias (__getline, getline)
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index 3a94d7c52f..b3f7a2fe75 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -55,7 +55,7 @@ __readonly_area (const char *ptr, size_t size)
 
   while (! __feof_unlocked (fp))
     {
-      if (__getdelim (&line, &linelen, '\n', fp) <= 0)
+      if (__libc_getdelim (&line, &linelen, '\n', fp) <= 0)
 	break;
 
       char *p;


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [glibc/azanella/clang] libio: Use __libc_getdelim instead of __getdelim
@ 2022-06-09 13:16 Adhemerval Zanella
  0 siblings, 0 replies; 12+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 13:16 UTC (permalink / raw)
  To: glibc-cvs

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

commit 8e82ecd0f9e7796a3206b9869bfc88f84776b781
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Mar 14 14:28:57 2022 -0300

    libio: Use __libc_getdelim instead of __getdelim

Diff:
---
 iconv/gconv_parseconfdir.h              | 2 +-
 include/stdio.h                         | 3 ++-
 libio/iogetdelim.c                      | 5 +++--
 stdio-common/getline.c                  | 2 +-
 sysdeps/unix/sysv/linux/readonly-area.c | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/iconv/gconv_parseconfdir.h b/iconv/gconv_parseconfdir.h
index debb96b322..81a06b222d 100644
--- a/iconv/gconv_parseconfdir.h
+++ b/iconv/gconv_parseconfdir.h
@@ -23,7 +23,7 @@
 
 #if IS_IN (libc)
 # include <libio/libioP.h>
-# define __getdelim(line, len, c, fp) __getdelim (line, len, c, fp)
+# define __getdelim(line, len, c, fp) __libc_getdelim (line, len, c, fp)
 
 # undef isspace
 # define isspace(__c) __isspace_l ((__c), _nl_C_locobj_ptr)
diff --git a/include/stdio.h b/include/stdio.h
index 39b4978130..b8f6f8f8b1 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -212,7 +212,8 @@ stdio_hidden_ldbl_proto (fprintf);
 stdio_hidden_ldbl_proto (vfprintf);
 stdio_hidden_ldbl_proto (sprintf);
 libc_hidden_proto (ungetc)
-libc_hidden_proto (__getdelim)
+__typeof (getdelim) __libc_getdelim;
+hidden_proto2 (getdelim, __libc_getdelim);
 libc_hidden_proto (fwrite)
 libc_hidden_proto (perror)
 libc_hidden_proto (remove)
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index b6c4c07b45..d24cb07e50 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -37,7 +37,7 @@
    null terminator), or -1 on error or EOF.  */
 
 ssize_t
-__getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
+__libc_getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
 {
   ssize_t result;
   ssize_t cur_len = 0;
@@ -122,5 +122,6 @@ unlock_return:
   _IO_release_lock (fp);
   return result;
 }
-libc_hidden_def (__getdelim)
+libc_hidden_def (__libc_getdelim)
+strong_alias (__libc_getdelim, __getdelim)
 weak_alias (__getdelim, getdelim)
diff --git a/stdio-common/getline.c b/stdio-common/getline.c
index 18a489ca0b..329b1c7d4b 100644
--- a/stdio-common/getline.c
+++ b/stdio-common/getline.c
@@ -25,7 +25,7 @@
 ssize_t
 __getline (char **lineptr, size_t *n, FILE *stream)
 {
-  return __getdelim (lineptr, n, '\n', stream);
+  return __libc_getdelim (lineptr, n, '\n', stream);
 }
 
 weak_alias (__getline, getline)
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index 3a94d7c52f..b3f7a2fe75 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -55,7 +55,7 @@ __readonly_area (const char *ptr, size_t size)
 
   while (! __feof_unlocked (fp))
     {
-      if (__getdelim (&line, &linelen, '\n', fp) <= 0)
+      if (__libc_getdelim (&line, &linelen, '\n', fp) <= 0)
 	break;
 
       char *p;


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [glibc/azanella/clang] libio: Use __libc_getdelim instead of __getdelim
@ 2022-05-13 14:19 Adhemerval Zanella
  0 siblings, 0 replies; 12+ messages in thread
From: Adhemerval Zanella @ 2022-05-13 14:19 UTC (permalink / raw)
  To: glibc-cvs

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

commit 1fd38f78827fddcfcd0fc66947cf9fa02816183b
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Mar 14 14:28:57 2022 -0300

    libio: Use __libc_getdelim instead of __getdelim

Diff:
---
 iconv/gconv_parseconfdir.h              | 2 +-
 include/stdio.h                         | 3 ++-
 libio/iogetdelim.c                      | 5 +++--
 stdio-common/getline.c                  | 2 +-
 sysdeps/unix/sysv/linux/readonly-area.c | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/iconv/gconv_parseconfdir.h b/iconv/gconv_parseconfdir.h
index c0de548833..b8e174ed6f 100644
--- a/iconv/gconv_parseconfdir.h
+++ b/iconv/gconv_parseconfdir.h
@@ -23,7 +23,7 @@
 
 #if IS_IN (libc)
 # include <libio/libioP.h>
-# define __getdelim(line, len, c, fp) __getdelim (line, len, c, fp)
+# define __getdelim(line, len, c, fp) __libc_getdelim (line, len, c, fp)
 
 # undef isspace
 # define isspace(__c) __isspace_l ((__c), _nl_C_locobj_ptr)
diff --git a/include/stdio.h b/include/stdio.h
index 39b4978130..b8f6f8f8b1 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -212,7 +212,8 @@ stdio_hidden_ldbl_proto (fprintf);
 stdio_hidden_ldbl_proto (vfprintf);
 stdio_hidden_ldbl_proto (sprintf);
 libc_hidden_proto (ungetc)
-libc_hidden_proto (__getdelim)
+__typeof (getdelim) __libc_getdelim;
+hidden_proto2 (getdelim, __libc_getdelim);
 libc_hidden_proto (fwrite)
 libc_hidden_proto (perror)
 libc_hidden_proto (remove)
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index b6c4c07b45..d24cb07e50 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -37,7 +37,7 @@
    null terminator), or -1 on error or EOF.  */
 
 ssize_t
-__getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
+__libc_getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
 {
   ssize_t result;
   ssize_t cur_len = 0;
@@ -122,5 +122,6 @@ unlock_return:
   _IO_release_lock (fp);
   return result;
 }
-libc_hidden_def (__getdelim)
+libc_hidden_def (__libc_getdelim)
+strong_alias (__libc_getdelim, __getdelim)
 weak_alias (__getdelim, getdelim)
diff --git a/stdio-common/getline.c b/stdio-common/getline.c
index 18a489ca0b..329b1c7d4b 100644
--- a/stdio-common/getline.c
+++ b/stdio-common/getline.c
@@ -25,7 +25,7 @@
 ssize_t
 __getline (char **lineptr, size_t *n, FILE *stream)
 {
-  return __getdelim (lineptr, n, '\n', stream);
+  return __libc_getdelim (lineptr, n, '\n', stream);
 }
 
 weak_alias (__getline, getline)
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index 3a94d7c52f..b3f7a2fe75 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -55,7 +55,7 @@ __readonly_area (const char *ptr, size_t size)
 
   while (! __feof_unlocked (fp))
     {
-      if (__getdelim (&line, &linelen, '\n', fp) <= 0)
+      if (__libc_getdelim (&line, &linelen, '\n', fp) <= 0)
 	break;
 
       char *p;


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [glibc/azanella/clang] libio: Use __libc_getdelim instead of __getdelim
@ 2022-05-12 19:33 Adhemerval Zanella
  0 siblings, 0 replies; 12+ messages in thread
From: Adhemerval Zanella @ 2022-05-12 19:33 UTC (permalink / raw)
  To: glibc-cvs

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

commit d5b8ae52a6a3ace48e445fdd8bc3751bbddd6adb
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Mar 14 14:28:57 2022 -0300

    libio: Use __libc_getdelim instead of __getdelim

Diff:
---
 iconv/gconv_parseconfdir.h              | 2 +-
 include/stdio.h                         | 3 ++-
 libio/iogetdelim.c                      | 5 +++--
 stdio-common/getline.c                  | 2 +-
 sysdeps/unix/sysv/linux/readonly-area.c | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/iconv/gconv_parseconfdir.h b/iconv/gconv_parseconfdir.h
index c0de548833..b8e174ed6f 100644
--- a/iconv/gconv_parseconfdir.h
+++ b/iconv/gconv_parseconfdir.h
@@ -23,7 +23,7 @@
 
 #if IS_IN (libc)
 # include <libio/libioP.h>
-# define __getdelim(line, len, c, fp) __getdelim (line, len, c, fp)
+# define __getdelim(line, len, c, fp) __libc_getdelim (line, len, c, fp)
 
 # undef isspace
 # define isspace(__c) __isspace_l ((__c), _nl_C_locobj_ptr)
diff --git a/include/stdio.h b/include/stdio.h
index 39b4978130..b8f6f8f8b1 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -212,7 +212,8 @@ stdio_hidden_ldbl_proto (fprintf);
 stdio_hidden_ldbl_proto (vfprintf);
 stdio_hidden_ldbl_proto (sprintf);
 libc_hidden_proto (ungetc)
-libc_hidden_proto (__getdelim)
+__typeof (getdelim) __libc_getdelim;
+hidden_proto2 (getdelim, __libc_getdelim);
 libc_hidden_proto (fwrite)
 libc_hidden_proto (perror)
 libc_hidden_proto (remove)
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index b6c4c07b45..d24cb07e50 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -37,7 +37,7 @@
    null terminator), or -1 on error or EOF.  */
 
 ssize_t
-__getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
+__libc_getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
 {
   ssize_t result;
   ssize_t cur_len = 0;
@@ -122,5 +122,6 @@ unlock_return:
   _IO_release_lock (fp);
   return result;
 }
-libc_hidden_def (__getdelim)
+libc_hidden_def (__libc_getdelim)
+strong_alias (__libc_getdelim, __getdelim)
 weak_alias (__getdelim, getdelim)
diff --git a/stdio-common/getline.c b/stdio-common/getline.c
index 18a489ca0b..329b1c7d4b 100644
--- a/stdio-common/getline.c
+++ b/stdio-common/getline.c
@@ -25,7 +25,7 @@
 ssize_t
 __getline (char **lineptr, size_t *n, FILE *stream)
 {
-  return __getdelim (lineptr, n, '\n', stream);
+  return __libc_getdelim (lineptr, n, '\n', stream);
 }
 
 weak_alias (__getline, getline)
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index 3a94d7c52f..b3f7a2fe75 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -55,7 +55,7 @@ __readonly_area (const char *ptr, size_t size)
 
   while (! __feof_unlocked (fp))
     {
-      if (__getdelim (&line, &linelen, '\n', fp) <= 0)
+      if (__libc_getdelim (&line, &linelen, '\n', fp) <= 0)
 	break;
 
       char *p;


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [glibc/azanella/clang] libio: Use __libc_getdelim instead of __getdelim
@ 2022-05-10 18:24 Adhemerval Zanella
  0 siblings, 0 replies; 12+ messages in thread
From: Adhemerval Zanella @ 2022-05-10 18:24 UTC (permalink / raw)
  To: glibc-cvs

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

commit e2d2d7d174005354a8d3fb6dc95f52a2c5937903
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Mar 14 14:28:57 2022 -0300

    libio: Use __libc_getdelim instead of __getdelim

Diff:
---
 iconv/gconv_parseconfdir.h              | 2 +-
 include/stdio.h                         | 3 ++-
 libio/iogetdelim.c                      | 5 +++--
 stdio-common/getline.c                  | 2 +-
 sysdeps/unix/sysv/linux/readonly-area.c | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/iconv/gconv_parseconfdir.h b/iconv/gconv_parseconfdir.h
index c0de548833..b8e174ed6f 100644
--- a/iconv/gconv_parseconfdir.h
+++ b/iconv/gconv_parseconfdir.h
@@ -23,7 +23,7 @@
 
 #if IS_IN (libc)
 # include <libio/libioP.h>
-# define __getdelim(line, len, c, fp) __getdelim (line, len, c, fp)
+# define __getdelim(line, len, c, fp) __libc_getdelim (line, len, c, fp)
 
 # undef isspace
 # define isspace(__c) __isspace_l ((__c), _nl_C_locobj_ptr)
diff --git a/include/stdio.h b/include/stdio.h
index 39b4978130..b8f6f8f8b1 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -212,7 +212,8 @@ stdio_hidden_ldbl_proto (fprintf);
 stdio_hidden_ldbl_proto (vfprintf);
 stdio_hidden_ldbl_proto (sprintf);
 libc_hidden_proto (ungetc)
-libc_hidden_proto (__getdelim)
+__typeof (getdelim) __libc_getdelim;
+hidden_proto2 (getdelim, __libc_getdelim);
 libc_hidden_proto (fwrite)
 libc_hidden_proto (perror)
 libc_hidden_proto (remove)
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index b6c4c07b45..d24cb07e50 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -37,7 +37,7 @@
    null terminator), or -1 on error or EOF.  */
 
 ssize_t
-__getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
+__libc_getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
 {
   ssize_t result;
   ssize_t cur_len = 0;
@@ -122,5 +122,6 @@ unlock_return:
   _IO_release_lock (fp);
   return result;
 }
-libc_hidden_def (__getdelim)
+libc_hidden_def (__libc_getdelim)
+strong_alias (__libc_getdelim, __getdelim)
 weak_alias (__getdelim, getdelim)
diff --git a/stdio-common/getline.c b/stdio-common/getline.c
index 18a489ca0b..329b1c7d4b 100644
--- a/stdio-common/getline.c
+++ b/stdio-common/getline.c
@@ -25,7 +25,7 @@
 ssize_t
 __getline (char **lineptr, size_t *n, FILE *stream)
 {
-  return __getdelim (lineptr, n, '\n', stream);
+  return __libc_getdelim (lineptr, n, '\n', stream);
 }
 
 weak_alias (__getline, getline)
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index 3a94d7c52f..b3f7a2fe75 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -55,7 +55,7 @@ __readonly_area (const char *ptr, size_t size)
 
   while (! __feof_unlocked (fp))
     {
-      if (__getdelim (&line, &linelen, '\n', fp) <= 0)
+      if (__libc_getdelim (&line, &linelen, '\n', fp) <= 0)
 	break;
 
       char *p;


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [glibc/azanella/clang] libio: Use __libc_getdelim instead of __getdelim
@ 2022-04-29 14:04 Adhemerval Zanella
  0 siblings, 0 replies; 12+ messages in thread
From: Adhemerval Zanella @ 2022-04-29 14:04 UTC (permalink / raw)
  To: glibc-cvs

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

commit a82b0e7ea0ec86ac3543ed1d9f617b664d4774d2
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Mar 14 14:28:57 2022 -0300

    libio: Use __libc_getdelim instead of __getdelim

Diff:
---
 iconv/gconv_parseconfdir.h              | 2 +-
 include/stdio.h                         | 3 ++-
 libio/iogetdelim.c                      | 5 +++--
 stdio-common/getline.c                  | 2 +-
 sysdeps/unix/sysv/linux/readonly-area.c | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/iconv/gconv_parseconfdir.h b/iconv/gconv_parseconfdir.h
index c0de548833..b8e174ed6f 100644
--- a/iconv/gconv_parseconfdir.h
+++ b/iconv/gconv_parseconfdir.h
@@ -23,7 +23,7 @@
 
 #if IS_IN (libc)
 # include <libio/libioP.h>
-# define __getdelim(line, len, c, fp) __getdelim (line, len, c, fp)
+# define __getdelim(line, len, c, fp) __libc_getdelim (line, len, c, fp)
 
 # undef isspace
 # define isspace(__c) __isspace_l ((__c), _nl_C_locobj_ptr)
diff --git a/include/stdio.h b/include/stdio.h
index 39b4978130..b8f6f8f8b1 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -212,7 +212,8 @@ stdio_hidden_ldbl_proto (fprintf);
 stdio_hidden_ldbl_proto (vfprintf);
 stdio_hidden_ldbl_proto (sprintf);
 libc_hidden_proto (ungetc)
-libc_hidden_proto (__getdelim)
+__typeof (getdelim) __libc_getdelim;
+hidden_proto2 (getdelim, __libc_getdelim);
 libc_hidden_proto (fwrite)
 libc_hidden_proto (perror)
 libc_hidden_proto (remove)
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index b6c4c07b45..d24cb07e50 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -37,7 +37,7 @@
    null terminator), or -1 on error or EOF.  */
 
 ssize_t
-__getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
+__libc_getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
 {
   ssize_t result;
   ssize_t cur_len = 0;
@@ -122,5 +122,6 @@ unlock_return:
   _IO_release_lock (fp);
   return result;
 }
-libc_hidden_def (__getdelim)
+libc_hidden_def (__libc_getdelim)
+strong_alias (__libc_getdelim, __getdelim)
 weak_alias (__getdelim, getdelim)
diff --git a/stdio-common/getline.c b/stdio-common/getline.c
index 18a489ca0b..329b1c7d4b 100644
--- a/stdio-common/getline.c
+++ b/stdio-common/getline.c
@@ -25,7 +25,7 @@
 ssize_t
 __getline (char **lineptr, size_t *n, FILE *stream)
 {
-  return __getdelim (lineptr, n, '\n', stream);
+  return __libc_getdelim (lineptr, n, '\n', stream);
 }
 
 weak_alias (__getline, getline)
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index 3a94d7c52f..b3f7a2fe75 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -55,7 +55,7 @@ __readonly_area (const char *ptr, size_t size)
 
   while (! __feof_unlocked (fp))
     {
-      if (__getdelim (&line, &linelen, '\n', fp) <= 0)
+      if (__libc_getdelim (&line, &linelen, '\n', fp) <= 0)
 	break;
 
       char *p;


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [glibc/azanella/clang] libio: Use __libc_getdelim instead of __getdelim
@ 2022-04-04 12:54 Adhemerval Zanella
  0 siblings, 0 replies; 12+ messages in thread
From: Adhemerval Zanella @ 2022-04-04 12:54 UTC (permalink / raw)
  To: glibc-cvs

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

commit 49dacd8a961a010b6dc80117a1b90f92cd3630da
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Mar 14 14:28:57 2022 -0300

    libio: Use __libc_getdelim instead of __getdelim

Diff:
---
 iconv/gconv_parseconfdir.h              | 2 +-
 include/stdio.h                         | 3 ++-
 libio/iogetdelim.c                      | 5 +++--
 stdio-common/getline.c                  | 2 +-
 sysdeps/unix/sysv/linux/readonly-area.c | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/iconv/gconv_parseconfdir.h b/iconv/gconv_parseconfdir.h
index c0de548833..b8e174ed6f 100644
--- a/iconv/gconv_parseconfdir.h
+++ b/iconv/gconv_parseconfdir.h
@@ -23,7 +23,7 @@
 
 #if IS_IN (libc)
 # include <libio/libioP.h>
-# define __getdelim(line, len, c, fp) __getdelim (line, len, c, fp)
+# define __getdelim(line, len, c, fp) __libc_getdelim (line, len, c, fp)
 
 # undef isspace
 # define isspace(__c) __isspace_l ((__c), _nl_C_locobj_ptr)
diff --git a/include/stdio.h b/include/stdio.h
index a645a1bf99..9c7d83b733 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -211,7 +211,8 @@ stdio_hidden_ldbl_proto (fprintf);
 stdio_hidden_ldbl_proto (vfprintf);
 stdio_hidden_ldbl_proto (sprintf);
 libc_hidden_proto (ungetc)
-libc_hidden_proto (__getdelim)
+__typeof (getdelim) __libc_getdelim;
+hidden_proto2 (getdelim, __libc_getdelim);
 libc_hidden_proto (fwrite)
 libc_hidden_proto (perror)
 libc_hidden_proto (remove)
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index b6c4c07b45..d24cb07e50 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -37,7 +37,7 @@
    null terminator), or -1 on error or EOF.  */
 
 ssize_t
-__getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
+__libc_getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
 {
   ssize_t result;
   ssize_t cur_len = 0;
@@ -122,5 +122,6 @@ unlock_return:
   _IO_release_lock (fp);
   return result;
 }
-libc_hidden_def (__getdelim)
+libc_hidden_def (__libc_getdelim)
+strong_alias (__libc_getdelim, __getdelim)
 weak_alias (__getdelim, getdelim)
diff --git a/stdio-common/getline.c b/stdio-common/getline.c
index 18a489ca0b..329b1c7d4b 100644
--- a/stdio-common/getline.c
+++ b/stdio-common/getline.c
@@ -25,7 +25,7 @@
 ssize_t
 __getline (char **lineptr, size_t *n, FILE *stream)
 {
-  return __getdelim (lineptr, n, '\n', stream);
+  return __libc_getdelim (lineptr, n, '\n', stream);
 }
 
 weak_alias (__getline, getline)
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index 3a94d7c52f..b3f7a2fe75 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -55,7 +55,7 @@ __readonly_area (const char *ptr, size_t size)
 
   while (! __feof_unlocked (fp))
     {
-      if (__getdelim (&line, &linelen, '\n', fp) <= 0)
+      if (__libc_getdelim (&line, &linelen, '\n', fp) <= 0)
 	break;
 
       char *p;


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [glibc/azanella/clang] libio: Use __libc_getdelim instead of __getdelim
@ 2022-03-31 19:06 Adhemerval Zanella
  0 siblings, 0 replies; 12+ messages in thread
From: Adhemerval Zanella @ 2022-03-31 19:06 UTC (permalink / raw)
  To: glibc-cvs

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

commit fb0377d42397ff9c1dedb3e41c4f2fae4eb98505
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Mar 14 14:28:57 2022 -0300

    libio: Use __libc_getdelim instead of __getdelim

Diff:
---
 iconv/gconv_parseconfdir.h              | 2 +-
 include/stdio.h                         | 3 ++-
 libio/iogetdelim.c                      | 5 +++--
 stdio-common/getline.c                  | 2 +-
 sysdeps/unix/sysv/linux/readonly-area.c | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/iconv/gconv_parseconfdir.h b/iconv/gconv_parseconfdir.h
index c0de548833..b8e174ed6f 100644
--- a/iconv/gconv_parseconfdir.h
+++ b/iconv/gconv_parseconfdir.h
@@ -23,7 +23,7 @@
 
 #if IS_IN (libc)
 # include <libio/libioP.h>
-# define __getdelim(line, len, c, fp) __getdelim (line, len, c, fp)
+# define __getdelim(line, len, c, fp) __libc_getdelim (line, len, c, fp)
 
 # undef isspace
 # define isspace(__c) __isspace_l ((__c), _nl_C_locobj_ptr)
diff --git a/include/stdio.h b/include/stdio.h
index a645a1bf99..9c7d83b733 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -211,7 +211,8 @@ stdio_hidden_ldbl_proto (fprintf);
 stdio_hidden_ldbl_proto (vfprintf);
 stdio_hidden_ldbl_proto (sprintf);
 libc_hidden_proto (ungetc)
-libc_hidden_proto (__getdelim)
+__typeof (getdelim) __libc_getdelim;
+hidden_proto2 (getdelim, __libc_getdelim);
 libc_hidden_proto (fwrite)
 libc_hidden_proto (perror)
 libc_hidden_proto (remove)
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index b6c4c07b45..d24cb07e50 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -37,7 +37,7 @@
    null terminator), or -1 on error or EOF.  */
 
 ssize_t
-__getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
+__libc_getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
 {
   ssize_t result;
   ssize_t cur_len = 0;
@@ -122,5 +122,6 @@ unlock_return:
   _IO_release_lock (fp);
   return result;
 }
-libc_hidden_def (__getdelim)
+libc_hidden_def (__libc_getdelim)
+strong_alias (__libc_getdelim, __getdelim)
 weak_alias (__getdelim, getdelim)
diff --git a/stdio-common/getline.c b/stdio-common/getline.c
index 18a489ca0b..329b1c7d4b 100644
--- a/stdio-common/getline.c
+++ b/stdio-common/getline.c
@@ -25,7 +25,7 @@
 ssize_t
 __getline (char **lineptr, size_t *n, FILE *stream)
 {
-  return __getdelim (lineptr, n, '\n', stream);
+  return __libc_getdelim (lineptr, n, '\n', stream);
 }
 
 weak_alias (__getline, getline)
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index 3a94d7c52f..b3f7a2fe75 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -55,7 +55,7 @@ __readonly_area (const char *ptr, size_t size)
 
   while (! __feof_unlocked (fp))
     {
-      if (__getdelim (&line, &linelen, '\n', fp) <= 0)
+      if (__libc_getdelim (&line, &linelen, '\n', fp) <= 0)
 	break;
 
       char *p;


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [glibc/azanella/clang] libio: Use __libc_getdelim instead of __getdelim
@ 2022-03-29 20:29 Adhemerval Zanella
  0 siblings, 0 replies; 12+ messages in thread
From: Adhemerval Zanella @ 2022-03-29 20:29 UTC (permalink / raw)
  To: glibc-cvs

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

commit 2bf7d2a4fc6a1adb0737dd2214c7331c7cda818b
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Mar 14 14:28:57 2022 -0300

    libio: Use __libc_getdelim instead of __getdelim

Diff:
---
 iconv/gconv_parseconfdir.h              | 2 +-
 include/stdio.h                         | 3 ++-
 libio/iogetdelim.c                      | 5 +++--
 stdio-common/getline.c                  | 2 +-
 sysdeps/unix/sysv/linux/readonly-area.c | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/iconv/gconv_parseconfdir.h b/iconv/gconv_parseconfdir.h
index c0de548833..b8e174ed6f 100644
--- a/iconv/gconv_parseconfdir.h
+++ b/iconv/gconv_parseconfdir.h
@@ -23,7 +23,7 @@
 
 #if IS_IN (libc)
 # include <libio/libioP.h>
-# define __getdelim(line, len, c, fp) __getdelim (line, len, c, fp)
+# define __getdelim(line, len, c, fp) __libc_getdelim (line, len, c, fp)
 
 # undef isspace
 # define isspace(__c) __isspace_l ((__c), _nl_C_locobj_ptr)
diff --git a/include/stdio.h b/include/stdio.h
index a645a1bf99..9c7d83b733 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -211,7 +211,8 @@ stdio_hidden_ldbl_proto (fprintf);
 stdio_hidden_ldbl_proto (vfprintf);
 stdio_hidden_ldbl_proto (sprintf);
 libc_hidden_proto (ungetc)
-libc_hidden_proto (__getdelim)
+__typeof (getdelim) __libc_getdelim;
+hidden_proto2 (getdelim, __libc_getdelim);
 libc_hidden_proto (fwrite)
 libc_hidden_proto (perror)
 libc_hidden_proto (remove)
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index b6c4c07b45..d24cb07e50 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -37,7 +37,7 @@
    null terminator), or -1 on error or EOF.  */
 
 ssize_t
-__getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
+__libc_getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
 {
   ssize_t result;
   ssize_t cur_len = 0;
@@ -122,5 +122,6 @@ unlock_return:
   _IO_release_lock (fp);
   return result;
 }
-libc_hidden_def (__getdelim)
+libc_hidden_def (__libc_getdelim)
+strong_alias (__libc_getdelim, __getdelim)
 weak_alias (__getdelim, getdelim)
diff --git a/stdio-common/getline.c b/stdio-common/getline.c
index 18a489ca0b..329b1c7d4b 100644
--- a/stdio-common/getline.c
+++ b/stdio-common/getline.c
@@ -25,7 +25,7 @@
 ssize_t
 __getline (char **lineptr, size_t *n, FILE *stream)
 {
-  return __getdelim (lineptr, n, '\n', stream);
+  return __libc_getdelim (lineptr, n, '\n', stream);
 }
 
 weak_alias (__getline, getline)
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index 3a94d7c52f..b3f7a2fe75 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -55,7 +55,7 @@ __readonly_area (const char *ptr, size_t size)
 
   while (! __feof_unlocked (fp))
     {
-      if (__getdelim (&line, &linelen, '\n', fp) <= 0)
+      if (__libc_getdelim (&line, &linelen, '\n', fp) <= 0)
 	break;
 
       char *p;


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [glibc/azanella/clang] libio: Use __libc_getdelim instead of __getdelim
@ 2022-03-16 18:03 Adhemerval Zanella
  0 siblings, 0 replies; 12+ messages in thread
From: Adhemerval Zanella @ 2022-03-16 18:03 UTC (permalink / raw)
  To: glibc-cvs

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

commit 36e4f18e49445e4fbedd3df84d2a0eff41773e27
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Mar 14 14:28:57 2022 -0300

    libio: Use __libc_getdelim instead of __getdelim

Diff:
---
 iconv/gconv_parseconfdir.h              | 2 +-
 include/stdio.h                         | 3 ++-
 libio/iogetdelim.c                      | 5 +++--
 stdio-common/getline.c                  | 2 +-
 sysdeps/unix/sysv/linux/readonly-area.c | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/iconv/gconv_parseconfdir.h b/iconv/gconv_parseconfdir.h
index c0de548833..b8e174ed6f 100644
--- a/iconv/gconv_parseconfdir.h
+++ b/iconv/gconv_parseconfdir.h
@@ -23,7 +23,7 @@
 
 #if IS_IN (libc)
 # include <libio/libioP.h>
-# define __getdelim(line, len, c, fp) __getdelim (line, len, c, fp)
+# define __getdelim(line, len, c, fp) __libc_getdelim (line, len, c, fp)
 
 # undef isspace
 # define isspace(__c) __isspace_l ((__c), _nl_C_locobj_ptr)
diff --git a/include/stdio.h b/include/stdio.h
index a645a1bf99..9c7d83b733 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -211,7 +211,8 @@ stdio_hidden_ldbl_proto (fprintf);
 stdio_hidden_ldbl_proto (vfprintf);
 stdio_hidden_ldbl_proto (sprintf);
 libc_hidden_proto (ungetc)
-libc_hidden_proto (__getdelim)
+__typeof (getdelim) __libc_getdelim;
+hidden_proto2 (getdelim, __libc_getdelim);
 libc_hidden_proto (fwrite)
 libc_hidden_proto (perror)
 libc_hidden_proto (remove)
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index b6c4c07b45..d24cb07e50 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -37,7 +37,7 @@
    null terminator), or -1 on error or EOF.  */
 
 ssize_t
-__getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
+__libc_getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
 {
   ssize_t result;
   ssize_t cur_len = 0;
@@ -122,5 +122,6 @@ unlock_return:
   _IO_release_lock (fp);
   return result;
 }
-libc_hidden_def (__getdelim)
+libc_hidden_def (__libc_getdelim)
+strong_alias (__libc_getdelim, __getdelim)
 weak_alias (__getdelim, getdelim)
diff --git a/stdio-common/getline.c b/stdio-common/getline.c
index 18a489ca0b..329b1c7d4b 100644
--- a/stdio-common/getline.c
+++ b/stdio-common/getline.c
@@ -25,7 +25,7 @@
 ssize_t
 __getline (char **lineptr, size_t *n, FILE *stream)
 {
-  return __getdelim (lineptr, n, '\n', stream);
+  return __libc_getdelim (lineptr, n, '\n', stream);
 }
 
 weak_alias (__getline, getline)
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index 3a94d7c52f..b3f7a2fe75 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -55,7 +55,7 @@ __readonly_area (const char *ptr, size_t size)
 
   while (! __feof_unlocked (fp))
     {
-      if (__getdelim (&line, &linelen, '\n', fp) <= 0)
+      if (__libc_getdelim (&line, &linelen, '\n', fp) <= 0)
 	break;
 
       char *p;


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [glibc/azanella/clang] libio: Use __libc_getdelim instead of __getdelim
@ 2022-03-15 18:41 Adhemerval Zanella
  0 siblings, 0 replies; 12+ messages in thread
From: Adhemerval Zanella @ 2022-03-15 18:41 UTC (permalink / raw)
  To: glibc-cvs

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

commit d4adfe2719ca0e79bcb0bd1e1c09b426c20b2240
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Mar 14 14:28:57 2022 -0300

    libio: Use __libc_getdelim instead of __getdelim

Diff:
---
 iconv/gconv_parseconfdir.h              | 2 +-
 include/stdio.h                         | 3 ++-
 libio/iogetdelim.c                      | 5 +++--
 stdio-common/getline.c                  | 2 +-
 sysdeps/unix/sysv/linux/readonly-area.c | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/iconv/gconv_parseconfdir.h b/iconv/gconv_parseconfdir.h
index c0de548833..b8e174ed6f 100644
--- a/iconv/gconv_parseconfdir.h
+++ b/iconv/gconv_parseconfdir.h
@@ -23,7 +23,7 @@
 
 #if IS_IN (libc)
 # include <libio/libioP.h>
-# define __getdelim(line, len, c, fp) __getdelim (line, len, c, fp)
+# define __getdelim(line, len, c, fp) __libc_getdelim (line, len, c, fp)
 
 # undef isspace
 # define isspace(__c) __isspace_l ((__c), _nl_C_locobj_ptr)
diff --git a/include/stdio.h b/include/stdio.h
index a645a1bf99..9c7d83b733 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -211,7 +211,8 @@ stdio_hidden_ldbl_proto (fprintf);
 stdio_hidden_ldbl_proto (vfprintf);
 stdio_hidden_ldbl_proto (sprintf);
 libc_hidden_proto (ungetc)
-libc_hidden_proto (__getdelim)
+__typeof (getdelim) __libc_getdelim;
+hidden_proto2 (getdelim, __libc_getdelim);
 libc_hidden_proto (fwrite)
 libc_hidden_proto (perror)
 libc_hidden_proto (remove)
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index b6c4c07b45..d24cb07e50 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -37,7 +37,7 @@
    null terminator), or -1 on error or EOF.  */
 
 ssize_t
-__getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
+__libc_getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
 {
   ssize_t result;
   ssize_t cur_len = 0;
@@ -122,5 +122,6 @@ unlock_return:
   _IO_release_lock (fp);
   return result;
 }
-libc_hidden_def (__getdelim)
+libc_hidden_def (__libc_getdelim)
+strong_alias (__libc_getdelim, __getdelim)
 weak_alias (__getdelim, getdelim)
diff --git a/stdio-common/getline.c b/stdio-common/getline.c
index 18a489ca0b..329b1c7d4b 100644
--- a/stdio-common/getline.c
+++ b/stdio-common/getline.c
@@ -25,7 +25,7 @@
 ssize_t
 __getline (char **lineptr, size_t *n, FILE *stream)
 {
-  return __getdelim (lineptr, n, '\n', stream);
+  return __libc_getdelim (lineptr, n, '\n', stream);
 }
 
 weak_alias (__getline, getline)
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index 3a94d7c52f..b3f7a2fe75 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -55,7 +55,7 @@ __readonly_area (const char *ptr, size_t size)
 
   while (! __feof_unlocked (fp))
     {
-      if (__getdelim (&line, &linelen, '\n', fp) <= 0)
+      if (__libc_getdelim (&line, &linelen, '\n', fp) <= 0)
 	break;
 
       char *p;


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-06-09 21:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-03 14:06 [glibc/azanella/clang] libio: Use __libc_getdelim instead of __getdelim Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2022-06-09 21:20 Adhemerval Zanella
2022-06-09 13:16 Adhemerval Zanella
2022-05-13 14:19 Adhemerval Zanella
2022-05-12 19:33 Adhemerval Zanella
2022-05-10 18:24 Adhemerval Zanella
2022-04-29 14:04 Adhemerval Zanella
2022-04-04 12:54 Adhemerval Zanella
2022-03-31 19:06 Adhemerval Zanella
2022-03-29 20:29 Adhemerval Zanella
2022-03-16 18:03 Adhemerval Zanella
2022-03-15 18:41 Adhemerval Zanella

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).