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