Home
last modified time | relevance | path

Searched hist:fdbe55fccb1c5de177001aa691addb77fb297362 (Results 1 – 2 of 2) sorted by relevance

/freebsd/lib/libc/stdlib/
H A Drealpath.3diff fdbe55fccb1c5de177001aa691addb77fb297362 Fri May 11 13:29:08 CEST 2012 Konstantin Belousov <kib@FreeBSD.org> 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
H A Drealpath.cdiff fdbe55fccb1c5de177001aa691addb77fb297362 Fri May 11 13:29:08 CEST 2012 Konstantin Belousov <kib@FreeBSD.org> 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