Displaying 4 results from an estimated 4 matches for "__fd_setsize".
2006 May 07
3
Troubleshooting "too many open files'
Hi,
Besides file-max and file-nr is there anywhere else I
should be looking to solve a C program giving me 'too
many open files' problem? (centos 3.4)
While the program is complaining here were the values
file-max
209632
file-nr
3655 258 209632
lsof | wc -l
around 7000 during and about 1111 less after I closed
the application.
Any ideas? thx
2003 May 17
0
opensshd fd_set definition problem
...elect(maxfd+1, fdset, NULL, NULL, 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;...
2012 Sep 25
1
[PATCH] Fix <sys/time.h> for Linux 3.5.1
...is defined.
---
usr/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
sa...
2012 Oct 01
0
[klibc:master] include: [sys/time.h] fix for Linux 3.5.1
...3,7 @@
#undef FD_SET
#undef FD_CLR
#undef FD_ISSET
+#undef FD_SETSIZE
__extern void *memset(void *, int, size_t);
static inline void FD_ZERO(fd_set *__fdsetp)
@@ -45,6 +46,8 @@ static inline int FD_ISSET(int __fd, fd_set *__fdsetp)
(__fd % BITS_PER_LONG)) & 1;
}
+#define FD_SETSIZE __FD_SETSIZE
+
__extern int gettimeofday(struct timeval *, struct timezone *);
__extern int settimeofday(const struct timeval *, const struct timezone *);
__extern int getitimer(int, struct itimerval *);