home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / solaris / 499 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  3.2 KB

  1. Xref: sparky comp.unix.solaris:499 comp.unix.sys5.misc:114
  2. Path: sparky!uunet!ukma!gatech!rpi!bu.edu!news.tufts.edu!jade.tufts.edu!rdorich
  3. From: rdorich@jade.tufts.edu (Rob)
  4. Newsgroups: comp.unix.solaris,comp.unix.sys5.misc
  5. Subject: ioctl() portability from SunOS 4.x to Solaris 2.1?
  6. Message-ID: <1993Jan28.022203.289@news.tufts.edu>
  7. Date: 28 Jan 93 02:22:03 GMT
  8. Sender: news@news.tufts.edu (USENET News System)
  9. Organization: Tufts University - Medford, MA
  10. Lines: 53
  11.  
  12. Okay, so I am trying to port ile (Input Line Editor for those unfamiliar),
  13. from SunOS 4.x to Solaris 2.1.  At fisrt I tried to avoid all kind of
  14. problems by just using the ucb compatible libraries, which got the 
  15. program to compile, but wouldn't run (error: no access to tty (inapropiate
  16. ioctl for device)) and would just sit there and freeze.  Later I was
  17. told not to use the bsd libraries since they tend to crash.
  18.  
  19.     So now I'm trying to do all the changes by hand, but after
  20. trying to make several times, I still get undeclared type errors
  21. (which should've been #defined).  I have read the man pages all
  22. around, but I can't find any equivalencies to those 'requests'
  23. accepted by ioctl in both systems.  Can somebody give me a hint on
  24. this?  A partial list of compilation errors follows.
  25.  
  26.     Thank you very much in advance,
  27.  
  28.         Roberto Dorich
  29.  
  30.  
  31. PS: Oh, if anyone has a patch for a working ile (which runs fine in 4.0 BTW),
  32. a copy of it would be very much appreciated!
  33.  
  34. ----------------------------------------------------------------------------
  35. /local/cygnus-sol2-1.1/bin/gcc  -o ./ile ile.c 
  36. ile.c: In function `change_window':
  37. ile.c:344: `TIOCGWINSZ' undeclared (first use this function)
  38. ile.c:345: `TIOCSWINSZ' undeclared (first use this function)
  39. ile.c:347: `TIOCGPGRP' undeclared (first use this function)
  40. ile.c:465: `TIOCGPGRP' undeclared (first use this function)
  41. ile.c:471: `TIOCSETC' undeclared (first use this function)
  42. ile.c:472: `TIOCSLTC' undeclared (first use this function)
  43. ile.c:473: `TIOCLSET' undeclared (first use this function)
  44. ile.c:519: `TIOCSETN' undeclared (first use this function)
  45. ile.c:2349: `TIOCGETD' undeclared (first use this function)
  46. ile.c:2350: `TIOCSETD' undeclared (first use this function)
  47. ile.c:2354: `TIOCGETC' undeclared (first use this function)
  48. ile.c:2355: `TIOCSETC' undeclared (first use this function)
  49. ile.c:2359: `TIOCLGET' undeclared (first use this function)
  50. ile.c:2360: `TIOCLSET' undeclared (first use this function)
  51. ile.c:2364: `TIOCGLTC' undeclared (first use this function)
  52. ile.c:2365: `TIOCSLTC' undeclared (first use this function)
  53. ile.c:2369: `TIOCGWINSZ' undeclared (first use this function)
  54. ile.c:2370: `TIOCSWINSZ' undeclared (first use this function)
  55. ile.c:2387: `CBREAK' undeclared (first use this function)
  56. ile.c:2413: `LNOFLSH' undeclared (first use this function)
  57. ile.c:2413: `LDECCTQ' undeclared (first use this function)
  58. ile.c:2413: `LLITOUT' undeclared (first use this function)
  59. ile.c:2549: `TIOCNOTTY' undeclared (first use this function)
  60. -- 
  61. -------------------------------------------------------------------------------
  62. Roberto Dorich         |           /~~  \ /  ~~/~~ /~~/  /~~  /|  /    /~~
  63.              |    SKI   /--    X    /   /__/  /--  / |/ |   /--
  64. Electrical Engineering     |         /__    / \  /   /\    /__  /     |  /__
  65.