]> Git Repo - uclibc-ng.git/commitdiff
use open_not_cancel_2 instead of open_not_cancel
authorPeter S. Mazinger <[email protected]>
Sat, 23 Apr 2011 19:05:09 +0000 (21:05 +0200)
committerBernhard Reutner-Fischer <[email protected]>
Fri, 15 Jun 2012 12:00:42 +0000 (14:00 +0200)
Signed-off-by: Peter S. Mazinger <[email protected]>
Signed-off-by: Bernhard Reutner-Fischer <[email protected]>
libc/misc/utmp/wtent.c
libc/unistd/daemon.c

index 97254262f727225213f068d257bc9dcccccc24d7..9b3ad5084dfe53e23eedadadd9cda05752ca82cb 100644 (file)
@@ -40,7 +40,7 @@ static void __updwtmp(const char *wtmp_file, const struct utmp *lutmp)
 {
     int fd;
 
-    fd = open_not_cancel(wtmp_file, O_APPEND | O_WRONLY, 0);
+    fd = open_not_cancel_2(wtmp_file, O_APPEND | O_WRONLY);
     if (fd >= 0) {
        if (lockf(fd, F_LOCK, 0) == 0) {
            write_not_cancel(fd, lutmp, sizeof(struct utmp));
index 628df51b8f7f7d8c90be26b0bb480cefd2f71464..435d4f1ffce4e8dd23f479eb6499f0c7e2ddae33 100644 (file)
@@ -118,7 +118,7 @@ int daemon(int nochdir, int noclose)
        {
                struct STAT st;
 
-               if ((fd = open_not_cancel(_PATH_DEVNULL, O_RDWR, 0)) != -1
+               if ((fd = open_not_cancel_2(_PATH_DEVNULL, O_RDWR)) != -1
                        && (__builtin_expect (FSTAT (fd, &st), 0) == 0))
                {
                        if (__builtin_expect (S_ISCHR (st.st_mode), 1) != 0) {
This page took 0.028485 seconds and 4 git commands to generate.