From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1105) id 43FDF3858D33; Mon, 16 Oct 2023 13:19:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43FDF3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1697462347; bh=rUzGfqMNlwtsu31YzPjZZ/yy+6pLstWKp7g8WdjOngo=; h=From:To:Subject:Date:From; b=Ml0d0hPg03DGV9mWII1Jxd5iZxzWWo1XeUnP6RlHAsffdsvKbtKDhoLlJFVwn59iz J5js320gkOIVeHjNy9W/KTGQO5kf+xM2xxejyw2fwR2H67z4u5ud9SuXGl1y4+qK3R 5cqrIKuXpnoPRHaSwQvQkozaS/oogY1BYt3oD7So= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Joseph Myers To: glibc-cvs@sourceware.org Subject: [glibc] Add AT_HANDLE_FID from Linux 6.5 to bits/fcntl-linux.h X-Act-Checkin: glibc X-Git-Author: Joseph Myers X-Git-Refname: refs/heads/master X-Git-Oldrev: 5aa1ddfcb3374425b7fe9a1389b98a45a47e4a77 X-Git-Newrev: 2399ab0d2076b485aa81855e048a7a44d3c12eaa Message-Id: <20231016131907.43FDF3858D33@sourceware.org> Date: Mon, 16 Oct 2023 13:19:07 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2399ab0d2076b485aa81855e048a7a44d3c12eaa commit 2399ab0d2076b485aa81855e048a7a44d3c12eaa Author: Joseph Myers Date: Mon Oct 16 13:18:51 2023 +0000 Add AT_HANDLE_FID from Linux 6.5 to bits/fcntl-linux.h Linux 6.5 adds a constant AT_HANDLE_FID; add it to glibc. Because this is a flag for the function name_to_handle_at declared in bits/fcntl-linux.h, put the flag there rather than alongside other AT_* flags in (OS-independent) fcntl.h. Tested for x86_64. Diff: --- sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h index df378c7b89..dd9d9baf09 100644 --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h @@ -368,6 +368,17 @@ struct file_handle # define MAX_HANDLE_SZ 128 #endif +#ifdef __USE_GNU +/* Flags for name_to_handle_at. See comment in fcntl.h about the use + of the same AT_* flag bits for different purposes in different + functions. */ +# define AT_HANDLE_FID AT_REMOVEDIR /* File handle is needed + to compare object + identity and may not + be usable to + open_by_handle_at. */ +#endif + __BEGIN_DECLS #ifdef __USE_GNU