[Toybox] [Suggestion] Add realpath to lib/lib.c

briggers briggers at ninthfloor.org
Thu May 31 11:08:10 PDT 2012


Hi everyone,

lib/lib.c contains a bunch of simple wrappers around standard library 
functions(chdir, stat, getcwd etc.). If you could similarly wrap the 
realpath function[1], it would make implementing things like "pwd -P" 
trivial. It would only be a 3 line patch to add this to lib/lib.c.

A major drawback though would be relying on PATH_MAX as being the 
maximum possible path length.

[1] 
http://pubs.opengroup.org/onlinepubs/009604499/functions/realpath.html

Best Regards,

Ashish


 1338487690.0


More information about the Toybox mailing list