llgo/c/hyper_related
This commit is contained in:
13
c/sys/_wrap/fddef.c
Normal file
13
c/sys/_wrap/fddef.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
int fd_isset(int n, fd_set *fd) {
|
||||
return FD_ISSET(n, fd);
|
||||
}
|
||||
|
||||
void fdSet(int n, fd_set *fd) {
|
||||
FD_SET(n, fd);
|
||||
}
|
||||
|
||||
void fd_zero(fd_set *fd) {
|
||||
FD_ZERO(fd);
|
||||
}
|
||||
Reference in New Issue
Block a user