home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os9 / 1223 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.1 KB  |  27 lines

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