Lines Matching refs:open
45 * openpid - open the pid and put ttymon's pid in it
58 /* open for read first, otherwise, may delete the pid already there*/
59 if ((Lckfd = open(PIDFILE, O_RDONLY)) != -1) {
66 if ((Lckfd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC, 0644 )) != 0)
67 fatal("open pid file failed: %s", strerror(errno));
80 * openpipes() -- open pmpipe and sacpipe to communicate with SAC
89 Sfd = open(SACPIPE, O_WRONLY);
91 fatal("open sacpipe failed: %s", strerror(errno));
93 Pfd = open(PMPIPE, O_RDWR|O_NONBLOCK);
95 fatal("open pmpipe failed: %s", strerror(errno));
180 * the pipe is open with O_NONBLOCK, read will return -1