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

  1. From:  henry@zoo.toronto.edu (Henry Spencer)
  2.  
  3. >From:  Jason Zions <jason@cnd.hp.com>
  4. >How about because it constrains implementations to make DNI
  5. >kernel-resident?
  6.  
  7. Nonsense.  Nothing in 1003.n constrains implementations to make anything
  8. kernel-resident.  Things like read() are functions, which may or may not
  9. reflect the primitives of the underlying kernel.  They are merely required
  10. to communicate -- somehow -- with something that performs the required
  11. services.
  12.  
  13. Why have two different kinds of endpoints for I/O?  We already have one
  14. which is general enough to encompass almost every kind of I/O under the sun.
  15.  
  16. >How about because the semantics of operations permitted on POSIX file
  17. >descriptors are a poor match for many transport providers? Read()/write()
  18. >are stream operations; only TCP is a stream transport provider. OSI TP0/2/4
  19. >maps much more closely to stdio and fgets()/fputs() in that it is
  20. >record-oriented. What does it mean to seek() on a network endpoint?
  21.  
  22. Read()/write() are stream operations that work perfectly well as record
  23. operations too.  As witness Unix ttys, which are record-oriented devices
  24. on input, and Unix magtapes, which are record-oriented both ways.  As for
  25. what it means to seek on a network endpoint, exactly the same as it means
  26. to seek on a tty:  probably nothing.  But why invent new mechanisms for 
  27. I/O when the old ones will do perfectly well?
  28.  
  29. "Don't fix it if it ain't broken."
  30.  
  31.                                          Henry Spencer at U of Toronto Zoology
  32.                                           henry@zoo.toronto.edu   utzoo!henry
  33.  
  34. Volume-Number: Volume 20, Number 93
  35.  
  36.