Adding confstr() to rtems
Joel Sherrill
joel at rtems.org
Sun Aug 20 17:43:34 UTC 2017
On Sun, Aug 20, 2017 at 12:31 PM, Aditya Upadhyay <aadit0402 at gmail.com>
wrote:
> On Sun, Aug 20, 2017 at 10:07 PM, Joel Sherrill <joel.sherrill at gmail.com>
> wrote:
> > I agree those constants should be visible to all configurations when
> > the POSIX level is set correctly.
> >
> > Are the V7 (current POSIX 2008/2013) constants in that file?
> >
> Yes, V7 Constants are defined in that file but these v7 constants are
> guarded by __CYGWIN.
>
I think they should be guarded by the POSIX level only. But ask on
newlib at . It may be that they want it to be POSIX level plus cygwin or rtems.
I suspect POSIX level alone is correct though.
--joel
> > On Sun, Aug 20, 2017 at 11:27 AM, Aditya Upadhyay <aadit0402 at gmail.com>
> > wrote:
> >>
> >> Hello All,
> >>
> >> I was trying to port confstr support in rtems from freebsd. In file
> >> unistd.h resided at location :
> >> /development/rtems/4.12/sparc-rtems4.12/include/sys
> >> has contains the name values only for cygwin guard.
> >>
> >> I have added the following names values guarded by __POSIX_VISIBLE >=
> >> 200112
> >> #if __POSIX_VISIBLE >= 199209
> >> #define _CS_PATH 1 /* default value of PATH */
> >> #endif
> >>
> >> #if __POSIX_VISIBLE >= 200112
> >> #define _CS_POSIX_V6_ILP32_OFF32_CFLAGS 2
> >> #define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS 3
> >> #define _CS_POSIX_V6_ILP32_OFF32_LIBS 4
> >> #define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS 5
> >> #define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS 6
> >> #define _CS_POSIX_V6_ILP32_OFFBIG_LIBS 7
> >> #define _CS_POSIX_V6_LP64_OFF64_CFLAGS 8
> >> #define _CS_POSIX_V6_LP64_OFF64_LDFLAGS 9
> >> #define _CS_POSIX_V6_LP64_OFF64_LIBS 10
> >> #define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS 11
> >> #define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS 12
> >> #define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS 13
> >> #define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS 14
> >> #endif
> >>
> >> It is working. Please correct me if i am not going in right direction.
> >>
> >> Thanks & Regards,
> >> Aditya Upadhyay
> >> _______________________________________________
> >> devel mailing list
> >> devel at rtems.org
> >> http://lists.rtems.org/mailman/listinfo/devel
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170820/faf2fcf5/attachment-0002.html>
More information about the devel
mailing list