From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH] open(2): document O_PATH Date: Thu, 3 May 2012 14:20:25 +0100 Message-ID: <20120503132025.GO6871@ZenIV.linux.org.uk> References: <1335669917-23970-1-git-send-email-vapier@gentoo.org> <877gwxacti.fsf@skywalker.in.ibm.com> <20120430114410.GB28308@thunk.org> <87fwbhhdp2.fsf@skywalker.in.ibm.com> <20120503130707.GF18002@thunk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20120503130707.GF18002-AKGzg7BKzIDYtjvyW6yDsg@public.gmane.org> Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ted Ts'o , "Aneesh Kumar K.V" , "Michael Kerrisk (man-pages)" , Mike Frysinger , linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Richard Weinberger , lkml List-Id: linux-man@vger.kernel.org On Thu, May 03, 2012 at 09:07:07AM -0400, Ted Ts'o wrote: > On Thu, May 03, 2012 at 01:57:21PM +0530, Aneesh Kumar K.V wrote: > > > > fstat won't work, but fstatat with an empty path name would work. O_PATH > > descriptors are suppose to be used as "location only descriptors". > > We then extended the *at syscalls to work with EMPTY pathnames so that > > O_PATH descriptors can be used with readlink, fchownat and fstatat(). > > This was done to enable us to do these operation on symlinks. > > (65cfc6722361570bfe255698d9cd4dccaf47570d) > > Could you define explicitly what you mean by "EMPTY" pathnames? "". Normally yields -EINVAL when used as a relative pathname in ...at() syscalls. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html