home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / std_unix / volume.18 / text0031.txt < prev    next >
Encoding:
Internet Message Format  |  1990-03-18  |  799 b 

  1. From: karl@IMA.IMA.ISC.COM (Karl Heuer)
  2.  
  3. In ANSI C, several symbols are reserved only when their associated header is
  4. included.  For example, if a program does not use <stdlib.h>, then it could
  5. use the symbol EXIT_SUCCESS as a local variable and still be strictly
  6. conforming.  (Hence, the implementation must not have one header include
  7. another.)
  8.  
  9. Is this also true of POSIX?  I thought 1003.1 used pretty much the same
  10. namespace rules as X3J11, but I can't find an explicit guarantee in the Green
  11. Book.  In particular, given that <sys/types.h> reserves the entire *_t
  12. namespace, is it safe for an application to create such a typedef in a module
  13. that does not require that header?
  14.  
  15. Karl W. Z. Heuer (karl@haddock.isc.com or ima!haddock!karl), The Walking Lint
  16.  
  17. Volume-Number: Volume 18, Number 33
  18.  
  19.