<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 20, 2017 at 12:31 PM, Aditya Upadhyay <span dir="ltr"><<a href="mailto:aadit0402@gmail.com" target="_blank">aadit0402@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sun, Aug 20, 2017 at 10:07 PM, Joel Sherrill <<a href="mailto:joel.sherrill@gmail.com">joel.sherrill@gmail.com</a>> wrote:<br>
> I agree those constants should be visible to all configurations when<br>
> the POSIX level is set correctly.<br>
><br>
> Are the V7 (current POSIX 2008/2013) constants in that file?<br>
><br>
</span>Yes, V7 Constants are defined in that file but these v7 constants are<br>
guarded by __CYGWIN.<br></blockquote><div><br></div><div>I think they should be guarded by the POSIX level only. But ask on</div><div>newlib@. It may be that they want it to be POSIX level plus cygwin or rtems.</div><div><br></div><div>I suspect POSIX level alone is correct though.</div><div><br></div><div>--joel</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">> On Sun, Aug 20, 2017 at 11:27 AM, Aditya Upadhyay <<a href="mailto:aadit0402@gmail.com">aadit0402@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hello All,<br>
>><br>
>> I was trying to port confstr support in rtems from freebsd. In file<br>
>> unistd.h resided at location :<br>
>> /development/rtems/4.12/sparc-<wbr>rtems4.12/include/sys<br>
>> has contains the name values only for cygwin guard.<br>
>><br>
>> I have added the following names values guarded by __POSIX_VISIBLE >=<br>
>> 200112<br>
>> #if __POSIX_VISIBLE >= 199209<br>
>> #define _CS_PATH 1 /* default value of PATH */<br>
>> #endif<br>
>><br>
>> #if __POSIX_VISIBLE >= 200112<br>
>> #define _CS_POSIX_V6_ILP32_OFF32_<wbr>CFLAGS 2<br>
>> #define _CS_POSIX_V6_ILP32_OFF32_<wbr>LDFLAGS 3<br>
>> #define _CS_POSIX_V6_ILP32_OFF32_LIBS 4<br>
>> #define _CS_POSIX_V6_ILP32_OFFBIG_<wbr>CFLAGS 5<br>
>> #define _CS_POSIX_V6_ILP32_OFFBIG_<wbr>LDFLAGS 6<br>
>> #define _CS_POSIX_V6_ILP32_OFFBIG_LIBS 7<br>
>> #define _CS_POSIX_V6_LP64_OFF64_CFLAGS 8<br>
>> #define _CS_POSIX_V6_LP64_OFF64_<wbr>LDFLAGS 9<br>
>> #define _CS_POSIX_V6_LP64_OFF64_LIBS 10<br>
>> #define _CS_POSIX_V6_LPBIG_OFFBIG_<wbr>CFLAGS 11<br>
>> #define _CS_POSIX_V6_LPBIG_OFFBIG_<wbr>LDFLAGS 12<br>
>> #define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS 13<br>
>> #define _CS_POSIX_V6_WIDTH_RESTRICTED_<wbr>ENVS 14<br>
>> #endif<br>
>><br>
>> It is working. Please correct me if i am not going in right direction.<br>
>><br>
>> Thanks & Regards,<br>
>> Aditya Upadhyay<br>
>> ______________________________<wbr>_________________<br>
>> devel mailing list<br>
>> <a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
>> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a><br>
><br>
><br>
</div></div></blockquote></div><br></div></div>