home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os9
- Path: sparky!uunet!mcrware!jejones
- From: jejones@microware.com (James Jones)
- Subject: Re: HELP telling socket from terminal
- Message-ID: <1992Sep10.185127.1343@microware.com>
- Sender: news@microware.com
- Nntp-Posting-Host: snake
- Organization: Microware Systems Corp., Des Moines, Iowa
- References: <88358@netnews.upenn.edu>
- Date: Thu, 10 Sep 1992 18:51:27 GMT
- Lines: 14
-
- In article <88358@netnews.upenn.edu> mark@ginger.biophys.upenn.edu (Mark Elliott) writes:
- > Does anyone know how an OS9 program can tell if a path number refers to
- >a SCF, RBF, or socket device. The _iobuf structure in <stdio.h> gives some bit
- >codes (_SCF, _RBF). Do they belong to _iobuf._flag? What about identifying the
- >path as a socket?
-
- Those flags are really more the moral equivalent of what in ANSI C is the
- setting for full buffering, line buffering, or nonbuffering of streams.
- To find out for sure what sort of path you have, you will need to get the
- path descriptor option section for the path and look at the first field
- therein, which is essentially a variant tag that says what file manager
- deals with the path.
-
- James Jones
-