From owner-cvs-src-old@FreeBSD.ORG Tue May 4 05:40:40 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E3907106564A for ; Tue, 4 May 2010 05:40:40 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id D04D78FC13 for ; Tue, 4 May 2010 05:40:40 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o445eeAl049122 for ; Tue, 4 May 2010 05:40:40 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o445eeTp049121 for cvs-src-old@freebsd.org; Tue, 4 May 2010 05:40:40 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <201005040540.o445eeTp049121@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Tue, 4 May 2010 05:34:18 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/include stdlib.h src/lib/libc/stdlib realpath.3 realpath.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2010 05:40:41 -0000 kib 2010-05-04 05:34:18 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) include stdlib.h lib/libc/stdlib realpath.3 realpath.c Log: SVN rev 207599 on 2010-05-04 05:34:18Z by kib 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. Revision Changes Path 1.72.2.2 +1 -1 src/include/stdlib.h 1.14.10.2 +20 -5 src/lib/libc/stdlib/realpath.3 1.20.34.2 +42 -6 src/lib/libc/stdlib/realpath.c