Adding confstr() to rtems
Aditya Upadhyay
aadit0402 at gmail.com
Sun Aug 20 17:31:22 UTC 2017
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.
> 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
>
>
More information about the devel
mailing list