home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20283 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.8 KB  |  39 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!batcomputer!eos.acm.rpi.edu!kutcha
  3. From: kutcha@eos.acm.rpi.edu (Phillip Rzewski)
  4. Subject: TCP and TIOC questions
  5. Message-ID: <1992Dec14.063435.22926@tc.cornell.edu>
  6. Sender: news@tc.cornell.edu
  7. Nntp-Posting-Host: eos.acm.rpi.edu
  8. Organization: The Voice of Fate
  9. Date: Mon, 14 Dec 1992 06:34:35 GMT
  10. Lines: 27
  11.  
  12.     I'm starting to do some fun porting, and since I haven't done too much
  13. porting on Linux before (at least, not hard stuff) I have decided that as I run
  14. into problems I'm going to post to c.o.l about them. I figure it's either a bug
  15. or something that people should know about anyway. :)
  16.  
  17.     First of all. My stuff tries to use the TCP business a little. It
  18. complained about the lack of sin_zero in /usr/include/netinet/in.h. The only
  19. other thing that looks like it would fit instead is the __pad thing, but I was
  20. looking at include files on other systems and they all seem to have sin_zero.
  21. So why is Linux trying to be nonstandard here?
  22.  
  23.     Second of all. I see this kind of thing posted about a lot, but I guess we
  24. all have to have our turn at this. My code is looking for things like TIOCGETP
  25. and TIOCSETN. They don't appear to be declared anywhere, though linux/termios.h
  26. certainly has a lot of defines with names that come pretty close. Are there
  27. some equivalents from that file which I should be using in place of the
  28. TIOCGETP and TIOCSETN? One thing that made me suspicious about whether or not
  29. this "right" was the fact that curses.h makes a reference to TIOCGETP, which is
  30. certainly out of place on a system that doesn't define that in any other
  31. include file.
  32.  
  33.     Anyone wanna field these?
  34.  
  35. --
  36.   Phillip Andrew Rzewski                      Internet: kutcha@acm.rpi.edu
  37.              "Don't wait; while you're waiting, you're dying."
  38.                           --- Peter Hammill
  39.