ticket #2970 Add ftw.h to newlib

Joel Sherrill joel at rtems.org
Wed Feb 26 15:20:17 UTC 2020


On Wed, Feb 26, 2020 at 9:06 AM Eshan Dhawan <eshandhawan51 at gmail.com>
wrote:

> so the subtasks would consist of adding missing functions to stat.h ,
> types.h mainly I suppose
>

What do you think is missing in those? My reading of the POSIX standard has
is implying that
<ftw.h> includes <sys/stat.h> to get st_mode and the stat structure.

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/ftw.h.html

The subtasks I referred to as the same for every time a new C Library or
POSIX method
is added to RTEMS or Newlib:

+ the code itself
+ test code
+ addition to documentation as needed
+ update to compliance tracking spreadsheet (usually I will do this)

>
> - Eshan
>
> On Wed, Feb 26, 2020 at 7:30 PM Joel Sherrill <joel at rtems.org> wrote:
>
>>
>>
>> On Wed, Feb 26, 2020 at 7:03 AM Eshan Dhawan <eshandhawan51 at gmail.com>
>> wrote:
>>
>>> I wanted to know the status of implementation of ftw.h in newlib
>>> and the dependencies it requires?
>>>
>>
>> FIrst hint is that the ticket is still open. :)
>>
>> The next is a way to check if it is part of the installed C Library.
>> Wherever
>> you installed the tools (TOOLS_PREFIX) for CPU-rtems5
>>
>> find TOOLS_PREFIX -name ftw.h
>> CPU-rtems5-nm TOOLS_PREFIX/CPU-rtems5/lib/libc.a | grep ftw
>>
>> In this case, you will see it isn't there.
>>
>>
>>>
>>> As it could be ported from FreeBSD since it lies under favourable
>>> licence
>>>
>>
>> Yep. And this would almost certainly need to be merged into the newlib C
>> library
>> with tests added to RTEMS.
>>
>> Documentation added to the POSIX Users Guide and the tracking spreadsheet
>> updated.
>>
>> Just to list all the subtasks. :)
>>
>> --joel
>>
>>>
>>> _______________________________________________
>>> 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/20200226/02050fca/attachment-0001.html>


More information about the devel mailing list