Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site milo.UUCP Path: utzoo!decvax!cwruecmp!milo!acy From: acy@milo.UUCP (Adnan Yaqub) Newsgroups: net.micro.att Subject: Re: dial(3c) function Message-ID: <656@milo.UUCP> Date: Mon, 21-Oct-85 09:10:36 EDT Article-I.D.: milo.656 Posted: Mon Oct 21 09:10:36 1985 Date-Received: Mon, 21-Oct-85 22:40:54 EDT References: <319@whuts.UUCP> <2033@brl-tgr.ARPA> Distribution: na Organization: Allen-Bradley Co., Highland Heights, OH 44143 Lines: 44 > > I have try to use the dial function and hit a brick wall. > > mld keep complainting undefined symbol tgetent, tgetstr and tgetnum > > from /lib/libc.a. I did a "nm -u" on libc.a and discover all three > > undefined symbol is using by dial. > > These functions are contained in the "curses" library; > use the "-lcurses" argument to the link command. > > I don't know why dial(3C) should use these functions! Note that the documentation of dial (3C) is wrong (at least in my manual). It says int dial(call) CALL *call; when it should read int dial(call) CALL call; Here is a sample program that works. #include #include main() { CALL call; int error; unsigned sleep(); call.attr = NULL; call.baud = NULL; call.speed = NULL; call.line = "/dev/ph0"; call.telno = "9+4497455"; call.modem = NULL; if((error = dial(call)) < 0) { printf("dial failed %d\n", error); return; } sleep(30); undial(error); }