Lines Matching refs:open
229 pm_fd = open(PM, O_RDWR);
278 if (dup2(open("/dev/console", O_WRONLY|O_NOCTTY), 1) == -1) {
308 if ((pb_fd = open(PB, O_RDONLY)) != -1) {
405 fd = open(SRN, O_RDWR|O_EXCL|O_NDELAY);
407 logerror("Unable to open %s: %s", SRN, strerror(errno));
465 if ((asfd = open(CPR_CONFIG, O_RDONLY)) < 0) {
466 logerror("Unable to open CPR config file '%s'", CPR_CONFIG);
718 tod_fd = open(TOD, O_RDWR);
786 if ((prom_fd = open(PROM, O_RDWR)) == -1 &&
1291 const char *e1 = "%s: Cannot open pid file for read: ";
1298 if ((fd = open(pidpath, O_CREAT | O_EXCL | O_WRONLY, 0444)) == -1) {