home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.17 / text0008.txt < prev    next >
Encoding:
Internet Message Format  |  1990-01-06  |  1.2 KB

  1. From: donn@hpfcdc.HP.COM (Donn Terry)
  2.  
  3.  
  4. To answer Barry Traylor's questions simply:
  5.  
  6. The onus is on BOTH the implementation and the application.
  7.  
  8. First, remember that in this case "application" and "process" are disctinct
  9. things.  In particular, an application can consist of several processes,
  10. not all of which were written by the application writer (e.g., system 
  11. utilities such as grep).
  12.  
  13. The *application* is constrained so that to conform to POSIX only one
  14. file handle for a file is in use at a time, across ALL processes in the 
  15. application, and that hand-off of file handles be done as required.
  16.  
  17. The *implementation* is constrained so that if the application follows
  18. this rule, it will in fact work.  (Note that pre-POSIX implementations
  19. didn't do enough so that the application had a chance at all of making
  20. it work.)
  21.  
  22. I think that some of the confusion comes from trying to make it 
  23. exclusively one or the other's total responsibility.  In the rationale
  24. it says that the rules are stated so that the application has "a fighting
  25. chance" of doing this, not that it will work in every possible combination.
  26.  
  27. If this doesn't help then let's (on the net) look at it in more detail.
  28.  
  29. Donn Terry
  30. (not speaking in any 'official' way)
  31.  
  32. Volume-Number: Volume 17, Number 11
  33.  
  34.  
  35.