diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-16 01:18:01 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-16 01:18:01 +0000 |
commit | 403d3b6c026812d82647eabf9370722f3f1e7893 (patch) | |
tree | f4300320d7a7739990ad6b13aaf3918e65d94c2a /libc/pwd_grp/pwd_grp.c | |
parent | 6a6ae6e1a26f32fd896b0a7b740129161bfb008b (diff) |
Convert all the rest, remove isxupper/isxlower, if someone objects, I'll add it back
Diffstat (limited to 'libc/pwd_grp/pwd_grp.c')
-rw-r--r-- | libc/pwd_grp/pwd_grp.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 <features.h> @@ -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; } |