Lines Matching refs:open
194 Maxfiles = (int)ulimit(4, 0L); /* get max number of open files */
210 log("max open files = %d", Maxfiles);
250 /* open the devices ttymon monitors */
271 * open_all - open devices in pmtab if the entry is
359 if ((fd = open(pmptr->p_device, O_RDONLY|O_NONBLOCK|O_NOCTTY)) < 0) {
360 log("open (%s) failed: %s", pmptr->p_device, strerror(errno));
373 * open_device(pmptr) - open the device
394 if ((fd = open(pmptr->p_device, O_RDWR)) == -1)
395 fatal("open (%s) failed: %s", pmptr->p_device,
405 if (pmptr->p_fd > 0) { /* file already open */
408 } else if ((fd = open(pmptr->p_device, O_RDWR|O_NONBLOCK))
410 log("open (%s) failed: %s", pmptr->p_device,
477 * We need to do another open to reinitialize streams
480 if ((tmpfd = open(pmptr->p_device, O_RDWR|O_NONBLOCK)) == -1) {
481 log("open (%s) failed: %s", pmptr->p_device,