#include #include #include #include #include #include int main(int argc, char const *argv[]) { int flags = fcntl(STDIN_FILENO, F_GETFL); flags ^= O_NONBLOCK; fcntl(STDIN_FILENO, F_SETFL, flags); return 0; }