Lines Matching refs:dcf
233 int dcf = -1;
265 if ((dcf = (*(ca->CA_caller))(flds, dev)) < 0)
266 return(dcf) ;
278 if (dcf == -1) {
304 dcf = open(dcname, (O_RDWR | O_NDELAY) );
307 dcf = open(dcname, O_RDWR );
312 if (dcf < 0) {
322 if ( fd_mklock(dcf) != SUCCESS ) {
330 if ( fcntl(dcf, F_SETFL,
331 (fcntl(dcf, F_GETFL, 0) & ~O_NDELAY)) < 0 ) {
339 if ( (*Setup)( MASTER, &dcf, &dcf ) ) {
347 if ( !pop_push(dcf) ) {
354 ret_orig = ioctl(dcf, TCGETA, &tty_orig);
357 fixline(dcf, atoi(fdig(sdev[D_CLASS])), D_DIRECT);
390 if (chat(w-2, &args[2], dcf, phonecl, phoneex) != SUCCESS) {
400 return(dcf);
402 if ( dcf >= 0 ) {
405 (void) ioctl(dcf, TCSETAW, &tty_orig);
406 fd_rmlock(dcf);
407 (void)close(dcf);
418 clear_hup(dcf)
419 int dcf;
425 if (ndcf != dcf) {
811 int dcf = -1, speed;
826 dcf = open801(dcname, dnname, phone, speed);
827 if (dcf >= 0) {
828 if ( fd_mklock(dcf) != SUCCESS ) {
829 (void) close(dcf);
834 fixline(dcf, speed, D_ACU);
840 return(dcf);
850 int nw, lt, dcf = -1, nullfd, dnf = -1;
865 (void) close(dcf);
890 dcf = open(dcname, O_RDWR);
892 DEBUG(4, "dcf is %d\n", dcf);
893 if (dcf < 0) { /* handle like a timeout */
902 (void) close(dcf);
912 (void) close(dcf);
916 return(dcf);
925 int nw, lt, dcf = -1, nullfd, dnf = -1, ret;
932 (void) close(dcf);
952 if ( (dcf = open(dcname, O_RDWR | O_NDELAY)) < 0 ) {
957 if ( fd_mklock(dcf) != SUCCESS ) {
958 (void)close(dcf);
964 DEBUG(4, "dcf is %d\n", dcf);
965 fixline(dcf, speed, D_ACU);
971 (void) close(dcf);
988 (void) fcntl(dcf,F_SETFL, fcntl(dcf, F_GETFL, 0) & ~O_NDELAY);
989 return(dcf);