home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.20 / text0086.txt < prev    next >
Encoding:
Internet Message Format  |  1990-08-02  |  1.6 KB

  1. From:  Jason Zions <jason@cnd.hp.com>
  2.  
  3. Regarding the Snitch Editor's fine report, in the section discussing
  4. 1003.12 comes the following sentence:
  5.  
  6. > Our snitch, Andy Nicholson, challenged readers to find a reason not to
  7. > make DNI endpoints POSIX file descriptors, but has seen no takers.
  8.  
  9. How about because it constrains implementations to make DNI
  10. kernel-resident?
  11.  
  12. How about because the semantics of operations permitted on POSIX file
  13. descriptors are a poor match for many transport providers? Read()/write()
  14. are stream operations; only TCP is a stream transport provider. OSI TP0/2/4
  15. maps much more closely to stdio and fgets()/fputs() in that it is
  16. record-oriented. What does it mean to seek() on a network endpoint?
  17.  
  18. A significant branch of the UNIX(tm)-system and POSIX research community
  19. believes "All the world's a file"; the Research Unix V.8 and Plan 9 folks
  20. are among the leaders here. I feel only slightly squeemish about accusing
  21. them of having only a hammer in their toolbelt; of *course* everything
  22. looks like a nail!
  23.  
  24. I think it would probably be acceptable to have a DNI function which
  25. accepted a DNI endpoint as argument and attempted to return a real file
  26. descriptor. This function would check to see that the underlying transport
  27. provider could present reasonable semantics through a POSIX file
  28. descriptor, and would also check that the implementation supported access
  29. to that transport provider through a kernel interface.
  30.  
  31. Jason Zions
  32.  
  33. *  UNIX is a trademark of AT&T in the US and other countries.
  34. ** Obstreperous iconoclast is a behavioral trademark of Jason Zions in the
  35.    US and other countries.
  36.  
  37. Volume-Number: Volume 20, Number 85
  38.  
  39.