MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / FD_SET

Function FD_SET

Kernel/include/fs/filesystem.h:136–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 return fds->fds_bits[fd / 8] & (1 << (fd % 8));
135}
136static inline void FD_SET(int fd, fd_set_t* fds) {
137 assert(fd < FD_SETSIZE);
138 fds->fds_bits[fd / 8] |= 1 << (fd % 8);
139}
140static inline void FD_ZERO(fd_set_t* fds) {
141 memset(fds, 0, sizeof(fd_set_t));
142}

Callers 1

SysSelectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected