Lines Matching refs:open
187 * If the "utmpx" file is not open, attempt to open it for
194 if ((fd = open(utmpxfile, O_RDWR|O_CREAT, 0644)) < 0) {
197 * If the open failed for permissions, try opening
202 if ((fd = open(utmpxfile, O_RDONLY)) < 0)
872 if ((wfdx = open(filex, O_WRONLY | O_APPEND)) < 0)
1082 if ((lockfd = open(UTMPX_FILE, O_RDWR|O_CREAT, 0644)) < 0)
1125 * if for some reason init didn't open initpipe, open it read/write
1128 pfd = open(IPIPE, O_RDWR);
1344 * if for some reason utmp didn't open utmppipe, open it read/write
1348 pfd = open(UPIPE, O_RDWR | O_NONBLOCK | O_NDELAY);