elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
test
/
other
/
test_select.c
File editor
#include <stdio.h> #include <sys/types.h> #include <time.h> #include <unistd.h> int main (int argc, char ** argv) { fd_set fds; struct timeval tv; int count; tv.tv_sec = 10; tv.tv_usec = 0; FD_ZERO (&fds); FD_SET (0, &fds); puts ("before select()"); count = select (1, &fds, NULL, NULL, &tv); puts ("after select()"); if (count < 0) puts ("select error"); else puts ((count > 0) ? "count > 0" : "count = 0"); if (FD_ISSET (0, &fds)) puts ("input ready"); return 0; }
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history