History log of /netbsd/sys/sys/fd_set.h (Results 1 – 7 of 7)
Revision Date Author Comments
# e4761ce1 24-Jun-2018 kamil <kamil@NetBSD.org>

Prevent signed integer left shift UB in FD_SET(), FD_CLR(), FD_ISSET()

Set the type of shifted integer 1 to unsigned int.

Detected with MKSANITIZER/UBSan in sysinst(8).


# da628f51 06-Nov-2015 christos <christos@NetBSD.org>

Generalize the length macro, and also provide a macro that returns the size
in bytes needed for a given fd.


# 51ebed11 08-Jul-2010 rmind <rmind@NetBSD.org>

Cast FD_* argument to unsiged, shut ups lint.


# dccb5cae 08-Jul-2010 rmind <rmind@NetBSD.org>

Make __fd_mask unsigned.


# ce9dfd6a 08-Jul-2010 rmind <rmind@NetBSD.org>

Implement direct select/poll support, currently effective for socket and
pipe subsystems. Avoids overhead of second selscan() on wake-up, and thus
improves performance on certain workloads (especial

Implement direct select/poll support, currently effective for socket and
pipe subsystems. Avoids overhead of second selscan() on wake-up, and thus
improves performance on certain workloads (especially when polling on many
file-descriptors). Also, clean-up sys/fd_set.h header and improve macros.

Welcome to 5.99.36!

show more ...


# 95e1ffb1 11-Dec-2005 christos <christos@NetBSD.org>

merge ktrace-lwp.


# 3a2b4d4d 22-May-2005 kleink <kleink@NetBSD.org>

* Factor out fd_set and related definitions from <sys/types.h> to
<sys/fd_set.h>. Still include it from <sys/types.h> for _NETBSD_SOURCE,
and amke <sys/select.h> use it instead of <sys/types.h>.

* Factor out fd_set and related definitions from <sys/types.h> to
<sys/fd_set.h>. Still include it from <sys/types.h> for _NETBSD_SOURCE,
and amke <sys/select.h> use it instead of <sys/types.h>.
* Instead of including <string.h> for memset()/memcpy() (or adding their
declarations locally), make FD_ZERO()/FD_COPY() use GCC builtins if
available, or define them inline otherwise.
Approved by Christos.

show more ...