gtpc2m2b | C/C++ Language Support User's Guide |
This function adds a file descriptor to a file descriptor set.
Format
#include <sysgtime.h>
void FD_SET(int fd, fd_set* fdset)
- fd
- The file descriptor.
- fdset
- The file descriptor set.
Normal Return
Void.
Error Return
Void.
Programming Considerations
- If you want to monitor more than 256 file descriptors on a single
tpf_select_bsd call, the application must define its own FD_SETSIZE
before the include of header sysgtime.h.
- The purpose of the FD functions is to set up the input for and check the
output from a tpf_select_bsd call. The FD_CLR,
FD_COPY, FD_SET, and FD_ZERO functions set up
the input for the tpf_select_bsd call. The
FD_ISSET function checks the output from the
tpf_select_bsd call.
Examples
See the example provided for the tpf_select_bsd function in tpf_select_bsd-Indicates Read, Write, and Exception Status.
Related Information