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