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

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to