home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / v21 / 052 / text0000.txt < prev   
Encoding:
Internet Message Format  |  1990-12-05  |  1.6 KB

  1. From:  Donn Terry <donn@hpfcrn.fc.hp.com>
  2.  
  3. The list at the beginning of chapter 8 is NOT a list of the requirements
  4. of POSIX.1 on the C standard, although it is often misread that way.
  5.  
  6. It is a list of functions *from the C standard* that must be provided
  7. by a "common usage" implementation.   That list will (as far as I can
  8. predict) be completely removed from the first version of the standard
  9. that doesn't discuss common usage, and rely solely on the pointer from
  10. POSIX.1 C-language binding to X3.159/ISO 9xxx (someone can fill in the
  11. number, I forget) for all Standard C functions.
  12.  
  13. Also, if you read the requirements on common usage closely enough, you
  14. realize that if you document it well enough, you probably could get
  15. away with a Fortran compiler.  (OK... maybe that's an exaggeration, but
  16. not by a whole lot.)
  17.  
  18. Doug Gwyn is right: specify the Standard C conformant option to POSIX
  19. (or simply specify Standard C) and you'll get atexit(). 
  20.  
  21. (Also, until POSIX.1 is stated in terms soley of Standard C (when it
  22. ceases to be necessary), there is nothing at all to prevent POSIX.4 from
  23. requiring that atexit() with the Standard C semantics be provided in
  24. common-usage implementations.  POSIX.4 could also simply require 
  25. Standard C to be conformant, although I doubt that that would succeed
  26. in balloting.)
  27.  
  28. Atexit() was omitted primarily because it was an X3J11 invetion that was
  29. not rapidly being included in common usage compilers.  Since (transitional)
  30. backwards compatabilty of implementations was a concern for POSIX.1,
  31. that was a reasonable decision two years (or more) ago.
  32.  
  33. Donn Terry
  34. Speaking only for myself, as I always have to say.
  35.  
  36. Volume-Number: Volume 21, Number 52
  37.  
  38.