Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2009 21:45:44 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r195790 - user/kmacy/releng_7_2_fcs/sys/sys
Message-ID:  <200907202145.n6KLji7a089700@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Mon Jul 20 21:45:44 2009
New Revision: 195790
URL: http://svn.freebsd.org/changeset/base/195790

Log:
  Don't export AT_FDCWD to user as some ports erroneously conclude from its definition that
  openat is supported

Modified:
  user/kmacy/releng_7_2_fcs/sys/sys/fcntl.h

Modified: user/kmacy/releng_7_2_fcs/sys/sys/fcntl.h
==============================================================================
--- user/kmacy/releng_7_2_fcs/sys/sys/fcntl.h	Mon Jul 20 19:51:47 2009	(r195789)
+++ user/kmacy/releng_7_2_fcs/sys/sys/fcntl.h	Mon Jul 20 21:45:44 2009	(r195790)
@@ -110,7 +110,9 @@ typedef	__pid_t		pid_t;
  * to determine the target of relative file paths in the openat() and
  * similar syscalls.
  */
+#ifdef _KERNEL 
 #define	AT_FDCWD		-100
+#endif
 
 /* Defined by POSIX 1003.1; BSD default, but must be distinct from O_RDONLY. */
 #define	O_NOCTTY	0x8000		/* don't assign controlling terminal */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907202145.n6KLji7a089700>