[comp.sys.att] Unix PC 7300 PIOCDIAL woes

egray@fthood.UUCP (01/25/88)

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