home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / std_unix / archive / text0015.txt < prev    next >
Encoding:
Text File  |  1994-03-07  |  965 b   |  21 lines

  1. Submitted-by: gwyn@smoke.brl.mil (Doug Gwyn)
  2.  
  3. In article <2k3bt2INNrcd@rodan.UU.NET> srini@hpcuhe.cup.hp.com (Sreenivasa Rao Tellakula) writes:
  4. >needs to be compiled with cc -D_POSIX_SOURCE and is this an acceptable
  5. >constraint?
  6.  
  7. It is certainly the case that, for the headers specified by the *C*
  8. Standard, to enable any POSIX.1 extensions one has to somehow #define
  9. _POSIX_SOURCE before inclusion of the standard header.  My opinion
  10. is that you should not have both _POSIX_SOURCE and not-_POSIX_SOURCE
  11. variations for the POSIX.1 interfaces, since there was no standard
  12. before POSIX.1 anyway.  Go ahead and use the official whatever_t and
  13. tie it into the mechanism you *must* have to make appropriate *_t
  14. visible without polluting the application-reserved name space.  There
  15. are a couple of approaches to this that will work; inspect existing
  16. POSIX.1-compatible implementations of headers to get an idea of the
  17. possibilities.
  18.  
  19. Volume-Number: Volume 34, Number 15
  20.  
  21.