aboutsummaryrefslogtreecommitdiff
path: root/nscd
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-08 23:35:13 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-08 23:35:13 +0000
commit8d88d9f8aa759acc1d0b3919fa6080bb35b0f991 (patch)
treedfa02b19a5e2b5fe12e9b1c2a6870457682a25d4 /nscd
parent2ad4fab214b13af85237b9e836c525e9ce3e7fb6 (diff)
downloadglibc-8d88d9f8aa759acc1d0b3919fa6080bb35b0f991.tar
glibc-8d88d9f8aa759acc1d0b3919fa6080bb35b0f991.tar.gz
glibc-8d88d9f8aa759acc1d0b3919fa6080bb35b0f991.tar.bz2
glibc-8d88d9f8aa759acc1d0b3919fa6080bb35b0f991.zip
Update.
1998-04-08 Ulrich Drepper <drepper@cygnus.com> * login/utmp_file.c: use __ftruncate not ftruncate. * sysdeps/unix/common/syscalls.list: Add __ftruncate as real name for system call and make ftruncate weak alias. * posix/unistd.h: Add prototype for __ftruncate. * login/utmp_daemon.c (open_socket): Use __socket not socket. * nscd/nscd_getpw_r.c (__nscd_getpw_r): use __snprintf and __readv instead of snprintf and readv. * nscd/nscd_getgr_r.c (__nscd_getgr_r): Use __snprintf not snprintf. * stdlib/strtod.c: Call strtoull/wcstoull's internal functions directly.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/nscd_getgr_r.c2
-rw-r--r--nscd/nscd_getpw_r.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/nscd/nscd_getgr_r.c b/nscd/nscd_getgr_r.c
index 7db28c215e..decfa3dad7 100644
--- a/nscd/nscd_getgr_r.c
+++ b/nscd/nscd_getgr_r.c
@@ -52,7 +52,7 @@ __nscd_getgrgid_r (gid_t gid, struct group *resultbuf, char *buffer,
char *p = buffer;
int plen;
- plen = snprintf (buffer, buflen, "%d", gid);
+ plen = __snprintf (buffer, buflen, "%d", gid);
if (plen == -1)
{
__set_errno (ERANGE);
diff --git a/nscd/nscd_getpw_r.c b/nscd/nscd_getpw_r.c
index fd512ab1b5..d075c8523a 100644
--- a/nscd/nscd_getpw_r.c
+++ b/nscd/nscd_getpw_r.c
@@ -52,7 +52,7 @@ __nscd_getpwuid_r (uid_t uid, struct passwd *resultbuf, char *buffer,
char *p = buffer;
int plen;
- plen = snprintf (buffer, buflen, "%d", uid);
+ plen = __snprintf (buffer, buflen, "%d", uid);
if (plen == -1)
{
__set_errno (ERANGE);
@@ -177,7 +177,7 @@ __nscd_getpw_r (const char *key, request_type type, struct passwd *resultbuf,
p += pw_resp.pw_shell_len + 1;
buflen -= (pw_resp.pw_shell_len + 1);
- nbytes = readv (sock, vec, 5);
+ nbytes = __readv (sock, vec, 5);
if (nbytes != (pw_resp.pw_name_len + pw_resp.pw_passwd_len
+ pw_resp.pw_gecos_len + pw_resp.pw_dir_len
+ pw_resp.pw_shell_len))