freebsd-nq/lib/libc/stdlib
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
..
jemalloc
_Exit.c
a64l.3
a64l.c
abort.3
abort.c
abs.3
abs.c
alloca.3
at_quick_exit.3
atexit.3
atexit.c
atexit.h
atof.3
atof.c
atoi.3
atoi.c
atol.3
atol.c
atoll.c
bsearch.3
bsearch.c
div.3
div.c
exit.3
exit.c
getenv.3
getenv.c
getopt_long.3
getopt_long.c
getopt.3
getopt.c
getsubopt.3
getsubopt.c
hcreate.3
hcreate.c
heapsort.c
imaxabs.3
imaxabs.c
imaxdiv.3
imaxdiv.c
insque.3
insque.c
l64a.c
labs.3
labs.c
ldiv.3
ldiv.c
llabs.3
llabs.c
lldiv.3
lldiv.c
lsearch.3
lsearch.c
Makefile.inc
memory.3
merge.c
ptsname.3
ptsname.c
qsort_r.c
qsort.3
qsort.c
quick_exit.3
quick_exit.c
radixsort.3
radixsort.c
rand.3
rand.c
random.3
random.c
reallocf.3
reallocf.c
realpath.3 According to SUSv4, realpath(3) must fail if 2012-05-11 11:29:08 +00:00
realpath.c According to SUSv4, realpath(3) must fail if 2012-05-11 11:29:08 +00:00
remque.c
strfmon.3
strfmon.c
strtod.3
strtoimax.c
strtol.3
strtol.c
strtoll.c
strtonum.3
strtonum.c
strtoq.c
strtoul.3
strtoul.c
strtoull.c
strtoumax.c
strtouq.c
Symbol.map
system.3
system.c
tdelete.c
tfind.c
tsearch.3
tsearch.c
twalk.c