diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-09-23 06:13:18 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-09-23 06:13:18 +0000 |
commit | 6a8a852bcb7b70fdd2c7f43e2b5c6effa6f9a24e (patch) | |
tree | 4c92d84d812bff7db337149c9d56d29886686d50 /sysdeps/generic/utmp_file.c | |
parent | 5d78bb43349cbd51805bcf0682af08a45b9988b8 (diff) | |
download | glibc-6a8a852bcb7b70fdd2c7f43e2b5c6effa6f9a24e.tar.gz glibc-6a8a852bcb7b70fdd2c7f43e2b5c6effa6f9a24e.tar.xz glibc-6a8a852bcb7b70fdd2c7f43e2b5c6effa6f9a24e.zip |
Update.
2003-09-20 Alfred M. Szmidt <ams@kemisten.nu> * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE, UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of __fcntl_nocancel.
Diffstat (limited to 'sysdeps/generic/utmp_file.c')
-rw-r--r-- | sysdeps/generic/utmp_file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/generic/utmp_file.c b/sysdeps/generic/utmp_file.c index dc31e64a4e..493af65a32 100644 --- a/sysdeps/generic/utmp_file.c +++ b/sysdeps/generic/utmp_file.c @@ -78,7 +78,7 @@ static void timeout_handler (int signum) {}; memset (&fl, '\0', sizeof (struct flock)); \ fl.l_type = (type); \ fl.l_whence = SEEK_SET; \ - if (__fcntl_nocancel ((fd), F_SETLKW, &fl) < 0) + if (fcntl_not_cancel ((fd), F_SETLKW, &fl) < 0) #define LOCKING_FAILED() \ goto unalarm_return @@ -86,7 +86,7 @@ static void timeout_handler (int signum) {}; #define UNLOCK_FILE(fd) \ /* Unlock the file. */ \ fl.l_type = F_UNLCK; \ - __fcntl_nocancel ((fd), F_SETLKW, &fl); \ + fcntl_not_cancel ((fd), F_SETLKW, &fl); \ \ unalarm_return: \ /* Reset the signal handler and alarm. We must reset the alarm \ @@ -150,9 +150,9 @@ setutent_file (void) } /* We have to make sure the file is `closed on exec'. */ - result = __fcntl_nocancel (file_fd, F_GETFD, 0); + result = fcntl_not_cancel (file_fd, F_GETFD, 0); if (result >= 0) - result = __fcntl_nocancel (file_fd, F_SETFD, result | FD_CLOEXEC); + result = fcntl_not_cancel (file_fd, F_SETFD, result | FD_CLOEXEC); if (result == -1) { close_not_cancel_no_status (file_fd); |