Path: utzoo!news-server.csri.toronto.edu!rutgers!cunixf.cc.columbia.edu!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!mips!public!pke From: pke@public.BTR.COM (Peter Espen pke@btr.com) Newsgroups: comp.unix.aux Subject: Re: ioctl problem in A/UX 2.0 Summary: Problem is solved - I needed to run fixincludes because I'm using gcc 1.39. - Thanks all! Keywords: AUX, 2.0, ioctl, help Message-ID: <2063@public.BTR.COM> Date: 9 Mar 91 20:59:45 GMT References: <2041@public.BTR.COM> Distribution: usa Organization: BTR Public Access UNIX, MtnView CA, Contact: cs@btr.com 415-966-1429 Lines: 22 In article <2041@public.BTR.COM>, pke@public.BTR.COM (Peter Espen pke@btr.com) writes: > > Can someone explain to me why the first ioctl call in the following test > program fails with an invalid argument error? > ......... > > if ( (i = ioctl( fp, TCGETA, &my_termio)) < 0) { > perror("TCGETA:"); > fprintf(stderr, "%d: ioctl error on TCGETA op. \n", errno); > exit(0); > } > Well, I just needed to make sure that I had all the proper include files in /usr/local/lib/gcc-include by running the most recent fixincludes. Thanks for all the replies! Peter Espen pke@btr.com