home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.solaris:499 comp.unix.sys5.misc:114
- Path: sparky!uunet!ukma!gatech!rpi!bu.edu!news.tufts.edu!jade.tufts.edu!rdorich
- From: rdorich@jade.tufts.edu (Rob)
- Newsgroups: comp.unix.solaris,comp.unix.sys5.misc
- Subject: ioctl() portability from SunOS 4.x to Solaris 2.1?
- Message-ID: <1993Jan28.022203.289@news.tufts.edu>
- Date: 28 Jan 93 02:22:03 GMT
- Sender: news@news.tufts.edu (USENET News System)
- Organization: Tufts University - Medford, MA
- Lines: 53
-
- Okay, so I am trying to port ile (Input Line Editor for those unfamiliar),
- from SunOS 4.x to Solaris 2.1. At fisrt I tried to avoid all kind of
- problems by just using the ucb compatible libraries, which got the
- program to compile, but wouldn't run (error: no access to tty (inapropiate
- ioctl for device)) and would just sit there and freeze. Later I was
- told not to use the bsd libraries since they tend to crash.
-
- So now I'm trying to do all the changes by hand, but after
- trying to make several times, I still get undeclared type errors
- (which should've been #defined). I have read the man pages all
- around, but I can't find any equivalencies to those 'requests'
- accepted by ioctl in both systems. Can somebody give me a hint on
- this? A partial list of compilation errors follows.
-
- Thank you very much in advance,
-
- Roberto Dorich
-
-
- PS: Oh, if anyone has a patch for a working ile (which runs fine in 4.0 BTW),
- a copy of it would be very much appreciated!
-
- ----------------------------------------------------------------------------
- /local/cygnus-sol2-1.1/bin/gcc -o ./ile ile.c
- ile.c: In function `change_window':
- ile.c:344: `TIOCGWINSZ' undeclared (first use this function)
- ile.c:345: `TIOCSWINSZ' undeclared (first use this function)
- ile.c:347: `TIOCGPGRP' undeclared (first use this function)
- ile.c:465: `TIOCGPGRP' undeclared (first use this function)
- ile.c:471: `TIOCSETC' undeclared (first use this function)
- ile.c:472: `TIOCSLTC' undeclared (first use this function)
- ile.c:473: `TIOCLSET' undeclared (first use this function)
- ile.c:519: `TIOCSETN' undeclared (first use this function)
- ile.c:2349: `TIOCGETD' undeclared (first use this function)
- ile.c:2350: `TIOCSETD' undeclared (first use this function)
- ile.c:2354: `TIOCGETC' undeclared (first use this function)
- ile.c:2355: `TIOCSETC' undeclared (first use this function)
- ile.c:2359: `TIOCLGET' undeclared (first use this function)
- ile.c:2360: `TIOCLSET' undeclared (first use this function)
- ile.c:2364: `TIOCGLTC' undeclared (first use this function)
- ile.c:2365: `TIOCSLTC' undeclared (first use this function)
- ile.c:2369: `TIOCGWINSZ' undeclared (first use this function)
- ile.c:2370: `TIOCSWINSZ' undeclared (first use this function)
- ile.c:2387: `CBREAK' undeclared (first use this function)
- ile.c:2413: `LNOFLSH' undeclared (first use this function)
- ile.c:2413: `LDECCTQ' undeclared (first use this function)
- ile.c:2413: `LLITOUT' undeclared (first use this function)
- ile.c:2549: `TIOCNOTTY' undeclared (first use this function)
- --
- -------------------------------------------------------------------------------
- Roberto Dorich | /~~ \ / ~~/~~ /~~/ /~~ /| / /~~
- | SKI /-- X / /__/ /-- / |/ | /--
- Electrical Engineering | /__ / \ / /\ /__ / | /__
-