patch-2.0.2 linux/include/linux/posix_types.h
Next file: linux/include/linux/sched.h
Previous file: linux/include/linux/in.h
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Fri Jul 5 13:48:39 1996
- Orig file:
v2.0.1/linux/include/linux/posix_types.h
- Orig date:
Wed Jul 3 22:05:20 1996
diff -u --recursive --new-file v2.0.1/linux/include/linux/posix_types.h linux/include/linux/posix_types.h
@@ -27,22 +27,22 @@
* use the ones here.
*/
#undef __NFDBITS
-#define __NFDBITS (8 * sizeof(unsigned int))
+#define __NFDBITS (8 * sizeof(unsigned long))
#undef __FD_SETSIZE
#define __FD_SETSIZE 1024
-#undef __FDSET_INTS
-#define __FDSET_INTS (__FD_SETSIZE/__NFDBITS)
+#undef __FDSET_LONGS
+#define __FDSET_LONGS (__FD_SETSIZE/__NFDBITS)
#undef __FDELT
#define __FDELT(d) ((d) / __NFDBITS)
#undef __FDMASK
-#define __FDMASK(d) (1 << ((d) % __NFDBITS))
+#define __FDMASK(d) (1UL << ((d) % __NFDBITS))
typedef struct {
- unsigned int fds_bits [__FDSET_INTS];
+ unsigned long fds_bits [__FDSET_LONGS];
} __kernel_fd_set;
#include <asm/posix_types.h>
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov