4 * Objetive: The purpose of this test is to make sure that the bitmap
5 * manipulation macros work without problems.
7 * Description: This tests first fills a fd_set bit by bit, and shows it, then
8 * it clears the fd_set bit by bit as well.
13 #include <sys/types.h>
16 #include <sys/select.h>
21 int main(int argc
, char *argv
[]) {
26 for (i
=0;i
<FD_SETSIZE
;i
++) {
27 /* see if SET works */
29 if(!FD_ISSET(i
, &fds
))
33 for (i
=0;i
<FD_SETSIZE
;i
++) {
34 /* see if ZERO works */
38 for (i
=0;i
<FD_SETSIZE
;i
++) {
40 for(j
= 0; j
<= i
; j
++)
41 if(!FD_ISSET(j
, &fds
))
43 for(; j
< FD_SETSIZE
; j
++)
47 for (i
=0;i
<FD_SETSIZE
;i
++) {
49 for(j
= 0; j
<= i
; j
++)
52 for(; j
< FD_SETSIZE
; j
++)
53 if(!FD_ISSET(j
, &fds
))