Konstantin Belousov fdbe55fccb According to SUSv4, realpath(3) must fail if
[ENOENT]  A component of file_name does not name an existing file or
    file_name points to an empty string.
[ENOTDIR] A component of the path prefix is not a directory, or the
    file_name argument contains at least one non- <slash> character
    and ends with one or more trailing <slash> characters and the last
    pathname component names an existing file that is neither a
    directory nor a symbolic link to a directory.
Add checks for the listed conditions, and set errno accordingly.

Update the realpath(3) manpage to mention SUS behaviour. Remove the
requirement to include sys/param.h before stdlib.h.

PR:	    128933
MFC after:  3 weeks
2012-05-11 11:29:08 +00:00
..
2012-02-11 20:43:01 +00:00
2012-04-18 07:02:53 +00:00
2012-04-19 03:20:13 +00:00
2012-03-29 06:19:00 +00:00
2012-03-23 23:07:02 +00:00
2011-09-28 14:52:25 +00:00
2012-03-30 12:34:34 +00:00
2012-02-25 14:31:25 +00:00