Date: Tue, 20 Apr 2010 10:16:44 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/include stdlib.h src/lib/libc/stdlib realpath.3 realpath.c Message-ID: <201004201025.o3KAP5Ja094672@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2010-04-20 10:16:44 UTC FreeBSD src repository Modified files: include stdlib.h lib/libc/stdlib realpath.3 realpath.c Log: SVN rev 206893 on 2010-04-20 10:16:44Z by kib 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(). PR: kern/121897 [1] MFC after: 2 weeks Revision Changes Path 1.74 +1 -1 src/include/stdlib.h 1.15 +16 -3 src/lib/libc/stdlib/realpath.3 1.21 +49 -5 src/lib/libc/stdlib/realpath.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004201025.o3KAP5Ja094672>