Date: Fri, 19 Aug 2005 12:30:34 +0530 From: Dev FreeBSD <devfreebsd@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: fd_set Message-ID: <6e58a03050819000046f7920c@mail.gmail.com> In-Reply-To: <43053C98.9060503@nawcom.no-ip.com> References: <200508180151.j7I1orXW000576@ms-smtp-02-eri0.ohiordc.rr.com> <43053C98.9060503@nawcom.no-ip.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 8/19/05, nawcom <nawcom@nawcom.no-ip.com> wrote: > Now im your basic programmer, so the only thing i can relate fd_set to > are the file descriptors (bit array i think) which are declared in the > select function. select is used for basic input/output channel control. >=20 > So by saying that - >=20 > 1) perhaps the file that is being built is missing the sys header file, > sys/types.h (if im wrong somebody correct me). I have ended up fixing > #include and #define typos in programs due to an unsuccessful build > which seems to be common, so maybe this may be your case also. >=20 > 2) there might be something wrong with the header file itself, like > fd_set not being declared. >=20 > oh well - like i said -im your basic c/kernel coder, but this is what i > would check out if i was thrown into your shoes. >=20 Hi Checkout src/sys/sys/select.h The fd_set structure is defined on line 71 typedef struct fd_set=20 { __fd_mask __fds_bits[_howmany(FD_SETSIZE, _NFDBITS)]; } fd_set; --=20 thanks Dev.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6e58a03050819000046f7920c>