From 403d3b6c026812d82647eabf9370722f3f1e7893 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 16 Dec 2005 01:18:01 +0000 Subject: Convert all the rest, remove isxupper/isxlower, if someone objects, I'll add it back --- libc/pwd_grp/pwd_grp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libc/pwd_grp') diff --git a/libc/pwd_grp/pwd_grp.c b/libc/pwd_grp/pwd_grp.c index 82c99360a..0f7c564f0 100644 --- a/libc/pwd_grp/pwd_grp.c +++ b/libc/pwd_grp/pwd_grp.c @@ -21,6 +21,7 @@ #define setgroups __setgroups #define strtoul __strtoul #define rewind __rewind +#define fgets_unlocked __fgets_unlocked #define _GNU_SOURCE #include @@ -51,6 +52,8 @@ extern int __getpwuid_r (__uid_t __uid, char *__restrict __buffer, size_t __buflen, struct passwd **__restrict __result) attribute_hidden; +extern int __fputc_unlocked_internal(int c, FILE *stream) attribute_hidden; + /**********************************************************************/ /* Sizes for staticly allocated buffers. */ @@ -806,7 +809,7 @@ int putgrent(const struct group *__restrict p, FILE *__restrict f) do { if (!*m) { - if (fputc_unlocked('\n', f) >= 0) { + if (__fputc_unlocked_internal('\n', f) >= 0) { rv = 0; } break; @@ -872,7 +875,7 @@ int putspent(const struct spwd *p, FILE *stream) goto DO_UNLOCK; } - if (fputc_unlocked('\n', stream) > 0) { + if (__fputc_unlocked_internal('\n', stream) > 0) { rv = 0; } -- cgit v1.2.3