[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/16] hw/9pfs: Drop unnecessary *xattr wrapper API declarations
From: |
Bin Meng |
Subject: |
[PATCH 02/16] hw/9pfs: Drop unnecessary *xattr wrapper API declarations |
Date: |
Mon, 24 Oct 2022 12:57:45 +0800 |
These are not used anywhere in the source tree. Drop them.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
---
hw/9pfs/9p-util.h | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/hw/9pfs/9p-util.h b/hw/9pfs/9p-util.h
index c3526144c9..ccfc8b1cb3 100644
--- a/hw/9pfs/9p-util.h
+++ b/hw/9pfs/9p-util.h
@@ -90,19 +90,8 @@ static inline int errno_to_dotl(int err) {
#ifdef CONFIG_DARWIN
#define qemu_fgetxattr(...) fgetxattr(__VA_ARGS__, 0, 0)
-#define qemu_lgetxattr(...) getxattr(__VA_ARGS__, 0, XATTR_NOFOLLOW)
-#define qemu_llistxattr(...) listxattr(__VA_ARGS__, XATTR_NOFOLLOW)
-#define qemu_lremovexattr(...) removexattr(__VA_ARGS__, XATTR_NOFOLLOW)
-static inline int qemu_lsetxattr(const char *path, const char *name,
- const void *value, size_t size, int flags) {
- return setxattr(path, name, value, size, 0, flags | XATTR_NOFOLLOW);
-}
#else
#define qemu_fgetxattr fgetxattr
-#define qemu_lgetxattr lgetxattr
-#define qemu_llistxattr llistxattr
-#define qemu_lremovexattr lremovexattr
-#define qemu_lsetxattr lsetxattr
#endif
static inline void close_preserve_errno(int fd)
--
2.25.1
- [PATCH 00/16] hw/9pfs: Add 9pfs support for Windows, Bin Meng, 2022/10/24
- [PATCH 01/16] qemu/xattr.h: Exclude <sys/xattr.h> for Windows, Bin Meng, 2022/10/24
- [PATCH 03/16] hw/9pfs: Replace the direct call to xxxat() APIs with a wrapper, Bin Meng, 2022/10/24
- [PATCH 02/16] hw/9pfs: Drop unnecessary *xattr wrapper API declarations,
Bin Meng <=
- [PATCH 05/16] hw/9pfs: Update P9_FILE_ID to support Windows, Bin Meng, 2022/10/24
- [PATCH 06/16] hw/9pfs: Add missing definitions for Windows, Bin Meng, 2022/10/24
- [PATCH 12/16] hw/9pfs: Translate Windows errno to Linux value, Bin Meng, 2022/10/24
- [PATCH 07/16] hw/9pfs: Implement Windows specific utilities functions for 9pfs, Bin Meng, 2022/10/24
- [PATCH 10/16] hw/9pfs: Update the local fs driver to support Windows, Bin Meng, 2022/10/24
- [PATCH 04/16] hw/9pfs: Introduce an opaque type 9P_FILE_ID, Bin Meng, 2022/10/24
- [PATCH 08/16] hw/9pfs: Handle current directory offset for Windows, Bin Meng, 2022/10/24
- [PATCH 09/16] hw/9pfs: Disable unsupported flags and features for Windows, Bin Meng, 2022/10/24
- [PATCH 11/16] hw/9pfs: Add Linux error number definition, Bin Meng, 2022/10/24
- [PATCH 13/16] fsdev: Disable proxy fs driver on Windows, Bin Meng, 2022/10/24