From owner-svn-src-stable-7@FreeBSD.ORG Fri May 22 17:54:03 2009 Return-Path: Delivered-To: svn-src-stable-7@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 430281065689; Fri, 22 May 2009 17:54:03 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2FC9C8FC18; Fri, 22 May 2009 17:54:03 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4MHs30o014005; Fri, 22 May 2009 17:54:03 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4MHs3cr014003; Fri, 22 May 2009 17:54:03 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200905221754.n4MHs3cr014003@svn.freebsd.org> From: Kip Macy Date: Fri, 22 May 2009 17:54:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r192590 - stable/7/sys/sys X-BeenThere: svn-src-stable-7@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 7-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2009 17:54:03 -0000 Author: kmacy Date: Fri May 22 17:54:02 2009 New Revision: 192590 URL: http://svn.freebsd.org/changeset/base/192590 Log: some ports erroneously use the existence of AT_FDCWD to check for the availability of the *at system calls so s/AT_FDCWD/AT_FDCWD_notyet/g Reported by: Dimitry Andric Modified: stable/7/sys/sys/fcntl.h stable/7/sys/sys/namei.h Modified: stable/7/sys/sys/fcntl.h ============================================================================== --- stable/7/sys/sys/fcntl.h Fri May 22 16:46:01 2009 (r192589) +++ stable/7/sys/sys/fcntl.h Fri May 22 17:54:02 2009 (r192590) @@ -110,7 +110,7 @@ typedef __pid_t pid_t; * to determine the target of relative file paths in the openat() and * similar syscalls. */ -#define AT_FDCWD -100 +#define AT_FDCWD_notyet -100 /* Defined by POSIX 1003.1; BSD default, but must be distinct from O_RDONLY. */ #define O_NOCTTY 0x8000 /* don't assign controlling terminal */ Modified: stable/7/sys/sys/namei.h ============================================================================== --- stable/7/sys/sys/namei.h Fri May 22 16:46:01 2009 (r192589) +++ stable/7/sys/sys/namei.h Fri May 22 17:54:02 2009 (r192590) @@ -154,11 +154,11 @@ struct nameidata { * Initialization of a nameidata structure. */ #define NDINIT(ndp, op, flags, segflg, namep, td) \ - NDINIT_ALL(ndp, op, flags, segflg, namep, AT_FDCWD, NULL, td) + NDINIT_ALL(ndp, op, flags, segflg, namep, AT_FDCWD_notyet, NULL, td) #define NDINIT_AT(ndp, op, flags, segflg, namep, dirfd, td) \ NDINIT_ALL(ndp, op, flags, segflg, namep, dirfd, NULL, td) #define NDINIT_ATVP(ndp, op, flags, segflg, namep, vp, td) \ - NDINIT_ALL(ndp, op, flags, segflg, namep, AT_FDCWD, vp, td) + NDINIT_ALL(ndp, op, flags, segflg, namep, AT_FDCWD_notyet, vp, td) static __inline void NDINIT_ALL(struct nameidata *ndp,