From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Marcin_=C5=9Alusarz?= Subject: Re: [PATCH] stat.2: tweak description of AT_EMPTY_PATH Date: Wed, 12 Apr 2017 20:35:03 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Michael Kerrisk (man-pages)" Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org 2017-04-10 17:21 GMT+02:00 Michael Kerrisk (man-pages) : > Hello Marcin > > On 04/01/2017 09:23 PM, Marcin =C5=9Alusarz wrote: >> Currently it says when dirfd is AT_FDCWD it can be something >> other than directory, which doesn't make much sense. Just swap >> the order of sentences. >> >> Signed-off-by: Marcin =C5=9Alusarz >> --- >> man2/stat.2 | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) >> >> diff --git a/man2/stat.2 b/man2/stat.2 >> index 1d838a9..7ec2593 100644 >> --- a/man2/stat.2 >> +++ b/man2/stat.2 >> @@ -506,14 +506,14 @@ is an empty string, operate on the file referred t= o by >> .BR open (2) >> .B O_PATH >> flag). >> +In this case, >> +.I dirfd >> +can refer to any type of file, not just a directory. >> If >> .I dirfd >> is >> .BR AT_FDCWD , >> the call operates on the current working directory. >> -In this case, >> -.I dirfd >> -can refer to any type of file, not just a directory. >> This flag is Linux-specific; define >> .B _GNU_SOURCE >> .\" Before glibc 2.16, defining _ATFILE_SOURCE sufficed > > Thanks! Patch applied. I'm not seeing it in any of these trees: https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git https://github.com/mkerrisk/man-pages Some secret repo? ;) Marcin -- 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