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

  1. From: Donn Terry <donn@hpfcrn.hp.com>
  2.  
  3. >From: karl@IMA.IMA.ISC.COM (Karl Heuer)
  4.  
  5. >In ANSI C, several symbols are reserved only when their associated header is
  6. >included.  For example, if a program does not use <stdlib.h>, then it could
  7. >use the symbol EXIT_SUCCESS as a local variable and still be strictly
  8. >conforming.  (Hence, the implementation must not have one header include
  9. >another.)
  10.  
  11. >Is this also true of POSIX?  I thought 1003.1 used pretty much the same
  12. >namespace rules as X3J11, but I can't find an explicit guarantee in the Green
  13. >Book.  In particular, given that <sys/types.h> reserves the entire *_t
  14. >namespace, is it safe for an application to create such a typedef in a module
  15. >that does not require that header?
  16.  
  17. >Karl W. Z. Heuer (karl@haddock.isc.com or ima!haddock!karl), The Walking Lint
  18.  
  19. >Volume-Number: Volume 18, Number 33
  20.  
  21. There is an ambiguity here in 1003.1, and the interpretations committee
  22. is working on it.  It is also being worked on in 1003.1a, and the current
  23. state of that draft document is that the namespaces are separate like
  24. ANSI C.
  25.  
  26. I won't presume to predict the interpretations commitee's resolution.
  27.  
  28. Donn Terry
  29. (As an individual)
  30.  
  31. Volume-Number: Volume 18, Number 42
  32.  
  33.