From owner-cvs-src-old@FreeBSD.ORG Tue Apr 20 10:25:05 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74DB910656A9 for ; Tue, 20 Apr 2010 10:25:05 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 294E78FC13 for ; Tue, 20 Apr 2010 10:25:05 +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 o3KAP5si094673 for ; Tue, 20 Apr 2010 10:25:05 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o3KAP5Ja094672 for cvs-src-old@freebsd.org; Tue, 20 Apr 2010 10:25:05 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <201004201025.o3KAP5Ja094672@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Tue, 20 Apr 2010 10:16:44 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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, 20 Apr 2010 10:25:05 -0000 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