On Sun, 15 Dec 2002, Kean Johnston wrote:
> > The second part is a little iffy. Is there no header in SCO which
> > defines SHUT_RDWR? The library (-lsocket) that provides shutdown()
> > doesn't provide SHUT_RDWR? Does the manual for that function really
> > tell you to pass '2' in for the second arg?
> Yes :(
>
> It's something I plan on addressing in the upcoming release, but for
> all systems currently out there, there is no header file which defines
> this. Purely as a matter of interest, when did the NAMES of these
> defines
> first appear? I have seen lots of older systems that just tell you what
> numbers to use.
I concur -- my programs use the numbers all the time. The
Linux man page for shutdown list the numbers in the
DESCRIPTION section and notes under BUGS
The numerical how flags should be replaced by the
Single Unix-mandated SHUT_RD, SHUT_WR, and SHUT_RDWR
flags.
- Sascha