Lines Matching refs:open

281 		/* We do locking (file and advisory) after open	*/
291 /* take care of the possible partial open fd */
292 (void) close(nullfd = open("/", O_RDONLY));
295 DEBUG(1, "generic open timeout\n%s", "");
296 logent("generic open", "TIMEOUT");
304 dcf = open(dcname, (O_RDWR | O_NDELAY) );
307 dcf = open(dcname, O_RDWR );
313 DEBUG(1, "generic open failed, errno = %d\n", errno);
315 logent("generic open", "FAILED");
422 if ((ndcf = open(saved_dcname, saved_mode)) < 0) {
458 * -1 -> Can't open DIALERFILE
739 dcr = open(dcname, O_WRONLY|O_NDELAY);
760 (void) close(nullfd = open("/", O_RDONLY));
763 DEBUG(4, "timeout sytek open\n%s", "");
772 dcr2 = open(dcname,O_RDWR);
779 (void) close(nullfd); /* kernel might think dc2 is open */
854 if ((dnf = open(dnname, O_WRONLY)) < 0) {
855 DEBUG(5, "can't open %s\n", dnname);
859 DEBUG(5, "%s is open\n", dnname);
861 (void) close(nullfd = open("/dev/null", O_RDONLY));/* partial open hack */
863 DEBUG(4, "timeout modem open\n%s", "");
867 logent("801 open", "TIMEOUT");
889 /* open line - will return on carrier */
890 dcf = open(dcname, O_RDWR);
898 /* modem is open */
909 (void) close(dnf); /* no reason to keep the 801 open */
928 (void) close(nullfd = open("/", O_RDONLY)); /* partial open hack */
941 if ((dnf = open(dnname, O_WRONLY)) < 0 ) {
942 DEBUG(5, "can't open %s\n", dnname);
946 DEBUG(5, "%s is open\n", dnname);
952 if ( (dcf = open(dcname, O_RDWR | O_NDELAY)) < 0 ) {
953 DEBUG(5, "can't open %s\n", dcname);
978 (void) close(nullfd = open("/", O_RDONLY)); /* partial open hack */
979 ret = open(dcname, O_RDWR); /* wait for carrier */
981 (void) close(ret); /* close 2nd modem open() */
982 if (ret < 0) { /* open() interrupted by alarm */
983 DEBUG(4, "Line open %s\n", "failed");