[PATCH 1/2] libcsupport: Add realpath.

Joel Sherrill joel.sherrill at oarcorp.com
Sun Oct 5 22:33:05 UTC 2014



On October 4, 2014 7:02:38 PM CDT, Chris Johns <chrisj at rtems.org> wrote:
>On 5/10/2014 4:12 am, Gedare Bloom wrote:
>> Just a comment, is there already code in the filesystem path
>> evaluation that implements similar functionality? Would it make sense
>> to replace with a call to this?
>
>I am not sure the actual semantics exactly match up, ie this call 
>mallocs and returns a buffer that needs to be freed. The call is part
>of 
>the SUSv4 I have handy and I assume newlib is supplying a suitable
>header.

Looks like a POSIX call also. Buffer returned is to be freed.

http://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html

>I only added it because the editor uses it when printing the actual
>name 
>in the status line.

>Chris
>_______________________________________________
>devel mailing list
>devel at rtems.org
>http://lists.rtems.org/mailman/listinfo/devel




More information about the devel mailing list