kib 45003aa79a MFC r206893:
Slightly modernize realpath(3).

SUSv4 requires that implementation returns EINVAL if supplied path is NULL,
and ENOENT if path is empty string [1].
Bring prototype in conformance with SUSv4, adding restrict keywords.
Allow the resolved path buffer pointer be NULL, in which case realpath(3)
allocates storage with malloc().

MFC r206898:
Free() is not allowed to modify errno, remove safety brackets around it.
Add small optimization, do not copy a string to the buffer that is
to be freed immediately after.

MFC r206997:
Move realpath(3) prototype to a POSIX section.

MFC r206998:
Add standards section, improve wording, taking into account the handling
of NULL and changed type in declaration.
2010-05-04 05:34:18 +00:00
..
2008-08-07 15:07:48 +00:00
2010-03-31 13:51:31 +00:00
2006-05-22 05:57:39 +00:00
2007-06-11 06:25:19 +00:00
2006-03-02 10:01:52 +00:00
2007-06-03 17:20:27 +00:00
2010-01-31 18:38:03 +00:00
2009-06-23 23:53:35 +00:00
2010-05-04 05:34:18 +00:00