Displaying 2 results from an estimated 2 matches for "__fdset_longs".
2003 May 17
0
opensshd fd_set definition problem
...ULL, NULL);
My question is why don't you use:
fdsetsz = sizeof( fd_set );
The 2.4.20 Linux kernel defines fd_set like this:
#define __NFDBITS (8 * sizeof(unsigned long))
#define __FD_SETSIZE 1024
#define __FDSET_LONGS (__FD_SETSIZE/__NFDBITS)
typedef struct {
unsigned long fds_bits [__FDSET_LONGS];
} __kernel_fd_set;
This is a different size t...
2012 Sep 25
1
[PATCH] Fix <sys/time.h> for Linux 3.5.1
...include/sys/time.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/usr/include/sys/time.h b/usr/include/sys/time.h
index 7a2f8b9..178a4c6 100644
--- a/usr/include/sys/time.h
+++ b/usr/include/sys/time.h
@@ -15,6 +15,8 @@
double-underscore ones, except __NFDBITS, __FD_SETSIZE and
__FDSET_LONGS which are defined in <linux/posix_types.h>.
+ From 3.5.1, <linux/time.h> does not even define FD_ZERO etc.
+
Unfortunately, some architectures define the double-underscore ones
as inlines, so we can't use a simple #ifdef test. Thus, the only
safe option remaining is...