Lines Matching refs:open
121 * reserved to open the STREAMS pipe when passing the connection
123 * fd 4: Opened to the pid file. We have to keep it open to keep the
156 static char *nologfile = "Unable to open listener log file during initialization";
217 /* open log file */
225 if ((i = open(log, O_WRONLY|O_CREAT|O_APPEND, 0444)) < 0)
282 init_files(); /* open Accept, Sac, Pm, Pass files */
317 sprintf(scratch, "couldn't open %s, default to GMT",
371 net_open(); /* init, open, bind names */
373 for (i = 3; i < Ndesc; i++) { /* leave stdout, stderr open */
387 * open pidfile with specified oflags and modes and lock it
401 if ((Pidfd = open(PIDNAME, PIDOFLAG, PIDMODE)) == -1) {
427 * init_files: open initial files for the listener (see FILE DESC MGMT comment)
430 static char *pmopenmsg = "Can't open pipe to read SAC messages";
431 static char *sacopenmsg = "Can't open pipe to respond to SAC messages";
437 if ((Acceptfd = open("/dev/null", O_RDWR)) != 0) {
443 if ((Sacpipefd = open(SACPIPE, O_RDWR|O_NDELAY)) != 1) {
449 if ((Pmpipefd = open(PMPIPE, O_RDWR|O_NDELAY)) != 2) {
464 * net_open: open and bind communications channels
612 * open the network and bind the endpoint to 'name'
617 * if the open fails because all file descriptors are in use,
985 /* MUST re-open Acceptfd to insure it is free later */
1258 /* open pipe to pass fd through */
1259 if ((Passfd = open(dbp->dbf_cmd_line, O_WRONLY)) < 0) {
1276 Acceptfd = open("/dev/null", O_RDWR);
1665 * add_prvaddr: open and bind the private address specified in the database