[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210920095649.28600-2-gbs@canishe.com>
Date: Mon, 20 Sep 2021 10:56:49 +0100
From: Gaelan Steele <gbs@...ishe.com>
To: Alexander Viro <viro@...iv.linux.org.uk>
Cc: linux-man@...r.kernel.org,
Michael Kerrisk <mtk.manpages@...il.com>,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-api@...r.kernel.org, Gaelan Steele <gbs@...ishe.com>
Subject: [PATCH 2/2] fs: move dirent.h into uapi
The structures defined in dirent.h are part of Linux's uAPI, but
it was previously necessary for user code to duplicate the struct
definitions themselves. Let's make them public.
Signed-off-by: Gaelan Steele <gbs@...ishe.com>
---
include/{ => uapi}/linux/dirent.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
rename include/{ => uapi}/linux/dirent.h (66%)
diff --git a/include/linux/dirent.h b/include/uapi/linux/dirent.h
similarity index 66%
rename from include/linux/dirent.h
rename to include/uapi/linux/dirent.h
index 48e119dd3694..99293c651612 100644
--- a/include/linux/dirent.h
+++ b/include/uapi/linux/dirent.h
@@ -1,6 +1,6 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _LINUX_DIRENT_H
-#define _LINUX_DIRENT_H
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef _UAPI_LINUX_DIRENT_H
+#define _UAPI_LINUX_DIRENT_H
struct linux_dirent {
unsigned long d_ino;
--
2.30.1 (Apple Git-130)
Powered by blists - more mailing lists