patch-1.3.22 linux/include/linux/types.h
Next file: linux/include/linux/user.h
Previous file: linux/include/linux/timex.h
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Fri Sep 1 09:12:13 1995
- Orig file:
v1.3.21/linux/include/linux/types.h
- Orig date:
Fri Jun 16 22:02:56 1995
diff -u --recursive --new-file v1.3.21/linux/include/linux/types.h linux/include/linux/types.h
@@ -16,18 +16,18 @@
* Those macros may have been defined in <gnu/types.h>. But we always
* use the ones here.
*/
-#undef __FDSET_LONGS
-#define __FDSET_LONGS (256/(8*sizeof(unsigned long)))
-
-typedef struct fd_set {
- unsigned long fds_bits [__FDSET_LONGS];
-} fd_set;
-
#undef __NFDBITS
-#define __NFDBITS (8 * sizeof(unsigned long))
+#define __NFDBITS (8 * sizeof(unsigned int))
#undef __FD_SETSIZE
-#define __FD_SETSIZE (__FDSET_LONGS*__NFDBITS)
+#define __FD_SETSIZE 256
+
+#undef __FDSET_INTS
+#define __FDSET_INTS (__FD_SETSIZE/__NFDBITS)
+
+typedef struct fd_set {
+ unsigned int fds_bits [__FDSET_INTS];
+} fd_set;
#include <asm/types.h>
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this