Skip to content
Snippets Groups Projects
Commit aa65c7a5 authored by Bruce Ashfield's avatar Bruce Ashfield
Browse files

unionfs: restore FD_* utility defines


1/1 [
Author: Bruce Ashfield
Email: bruce.ashfield@windriver.com
Subject: unionfs: restore FD_* utility defines
Date: Tue, 21 Aug 2012 22:14:49 -0400

commit 27cd8f513 [posix_types.h: Cleanup stale __NFDBITS and related definition]
removes the defintions for:

 #define NFDBITS                        __NFDBITS

 #define FD_SETSIZE             __FD_SETSIZE
 #define FD_SET(fd,fdsetp)      __FD_SET(fd,fdsetp)
 #define FD_CLR(fd,fdsetp)      __FD_CLR(fd,fdsetp)
 #define FD_ISSET(fd,fdsetp)    __FD_ISSET(fd,fdsetp)
 #define FD_ZERO(fdsetp)                __FD_ZERO(fdsetp)

Which are still used by unionfs. We restore them to union.h for local use
by unionfs until full replacements are found.

Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@windriver.com>
]

Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@windriver.com>
parent 55248501
No related branches found
No related tags found
No related merge requests found
From 88ed4b4c4b921041c1b387cac3f64c3b2fe60c35 Mon Sep 17 00:00:00 2001
From: Bruce Ashfield <bruce.ashfield@windriver.com>
Date: Tue, 21 Aug 2012 22:14:49 -0400
Subject: [PATCH] unionfs: restore FD_* utility defines
commit 27cd8f513 [posix_types.h: Cleanup stale __NFDBITS and related definition]
removes the defintions for:
#define NFDBITS __NFDBITS
#define FD_SETSIZE __FD_SETSIZE
#define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp)
#define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp)
#define FD_ISSET(fd,fdsetp) __FD_ISSET(fd,fdsetp)
#define FD_ZERO(fdsetp) __FD_ZERO(fdsetp)
Which are still used by unionfs. We restore them to union.h for local use
by unionfs until full replacements are found.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
---
fs/unionfs/union.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h
index 2d80523..b0c488e 100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -676,6 +676,15 @@ extern void __show_inode_counts(const struct inode *inode,
#endif /* not CONFIG_UNION_FS_DEBUG */
+#define NFDBITS __NFDBITS
+
+#define FD_SETSIZE __FD_SETSIZE
+#define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp)
+#define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp)
+#define FD_ISSET(fd,fdsetp) __FD_ISSET(fd,fdsetp)
+#define FD_ZERO(fdsetp) __FD_ZERO(fdsetp)
+
+
static inline void __FD_SET(unsigned long __fd, __kernel_fd_set *__fdsetp)
{
__set_bit(__fd, __fdsetp->fds_bits);
--
1.7.5.4
......@@ -8,3 +8,4 @@ patch unionfs-change-end_writeback-to-clear_inode.patch
patch Unionfs-update-show_options-prototype.patch
patch Unionfs-use-mode_t.patch
patch unionfs-update-unionfs-fork-to-align-with-mainline.patch
patch unionfs-restore-FD_-utility-defines.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment