gtpc2m28 | C/C++ Language Support User's Guide |
This function copies the file descriptor set.
Format
#include <sysgtime.h>
void FD_COPY(const fd_set* fdset1, fd_set* fdset2)
- fdset1
- The file descriptor set that is being copied.
- fdset2
- The file descriptor set into which the copy is placed.
Normal Return
Not applicable.
Error Return
Not applicable.
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