Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!inuxc!iuvax!pur-ee!uiucdcs!uxc.cso.uiuc.edu!fthood!egray From: egray@fthood.UUCP Newsgroups: comp.sys.att Subject: Unix PC 7300 PIOCDIAL woes Message-ID: <7400013@fthood> Date: 24 Jan 88 21:13:00 GMT Lines: 30 Nf-ID: #N:fthood:7400013:000:973 Nf-From: fthood.UUCP!egray Jan 24 15:13:00 1988 Help! I'm having trouble with my AT&T Unix PC 7300 and the dialing routines described in phone(7). I can't get the ioclt(fd, PCIODIAL, arg) routine to work at all! I have a need for a finer control over what the dial(3) routines can give me, so I've written some code that looks like this: turn off the getty open the port for read and write with O_NDELAY turn off the O_NDELAY set the line parameters create the lock file read the updata structure with PIOGETP turn off INCMNG in c_lineparam write the updata structure with PIOSETP ioclt(fd, PIOCOFFHOOK) ioclt(fd, PIOCDIAL, number) The silly PIOCDIAL ioclt always returns a -1. What I'm I doing wrong? Does anyone have a source code fragment that contians these routines that I could look at? Emmet P. Gray US Army, HQ III Corps & Fort Hood ...!ihnp4!uiucuxc!fthood!egray Attn: AFZF-DE-ENV Directorate of Engineering & Housing Environmental Management Office Fort Hood, TX 76544-5057