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

Function FD_ISSET

Kernel/include/fs/filesystem.h:132–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 fds->fds_bits[fd / 8] &= ~(1 << (fd % 8));
131}
132static inline int FD_ISSET(int fd, fd_set_t* fds) {
133 assert(fd < FD_SETSIZE);
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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected