diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-04-08 23:35:13 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-04-08 23:35:13 +0000 |
commit | 8d88d9f8aa759acc1d0b3919fa6080bb35b0f991 (patch) | |
tree | dfa02b19a5e2b5fe12e9b1c2a6870457682a25d4 /login/utmp_file.c | |
parent | 2ad4fab214b13af85237b9e836c525e9ce3e7fb6 (diff) | |
download | glibc-8d88d9f8aa759acc1d0b3919fa6080bb35b0f991.zip glibc-8d88d9f8aa759acc1d0b3919fa6080bb35b0f991.tar.gz glibc-8d88d9f8aa759acc1d0b3919fa6080bb35b0f991.tar.bz2 |
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 'login/utmp_file.c')
-rw-r--r-- | login/utmp_file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/login/utmp_file.c b/login/utmp_file.c index d25dcb8..9cdb88e 100644 --- a/login/utmp_file.c +++ b/login/utmp_file.c @@ -373,7 +373,7 @@ pututline_file (const struct utmp *data) if (file_offset % sizeof (struct utmp) != 0) { file_offset -= file_offset % sizeof (struct utmp); - ftruncate (file_fd, file_offset); + __ftruncate (file_fd, file_offset); if (lseek (file_fd, 0, SEEK_END) < 0) { @@ -395,7 +395,7 @@ pututline_file (const struct utmp *data) /* If we appended a new record this is only partially written. Remove it. */ if (found < 0) - (void) ftruncate (file_fd, file_offset); + (void) __ftruncate (file_fd, file_offset); pbuf = NULL; } else @@ -447,7 +447,7 @@ updwtmp_file (const char *file, const struct utmp *utmp) if (offset % sizeof (struct utmp) != 0) { offset -= offset % sizeof (struct utmp); - ftruncate (fd, offset); + __ftruncate (fd, offset); if (lseek (fd, 0, SEEK_END) < 0) goto unlock_return; @@ -458,7 +458,7 @@ updwtmp_file (const char *file, const struct utmp *utmp) will remain. */ if (write (fd, utmp, sizeof (struct utmp)) != sizeof (struct utmp)) { - ftruncate (fd, offset); + __ftruncate (fd, offset); goto unlock_return; } |