summary refs log tree commit diff
path: root/login
diff options
context:
space:
mode:
Diffstat (limited to 'login')
-rw-r--r--login/utmp_daemon.c4
-rw-r--r--login/utmp_file.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/login/utmp_daemon.c b/login/utmp_daemon.c
index e3c9371a54..40389f21a0 100644
--- a/login/utmp_daemon.c
+++ b/login/utmp_daemon.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Mark Kettenis <kettenis@phys.uva.nl>, 1997.
 
@@ -409,7 +409,7 @@ open_socket (const char *name)
   struct sockaddr_un addr;
   int sock;
 
-  sock = socket (PF_UNIX, SOCK_STREAM, 0);
+  sock = __socket (PF_UNIX, SOCK_STREAM, 0);
   if (sock < 0)
     return -1;
 
diff --git a/login/utmp_file.c b/login/utmp_file.c
index d25dcb8600..9cdb88ebec 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;
     }