From ff1290cbb138dd09b0a3ca842f843b8321b4c3fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Thu, 19 Oct 2017 14:07:56 +0200 Subject: Handwritten Makefile and config.h; no more GNU autohell --- nonblock.c | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 nonblock.c (limited to 'nonblock.c') diff --git a/nonblock.c b/nonblock.c deleted file mode 100644 index dbe31d3..0000000 --- a/nonblock.c +++ /dev/null @@ -1,14 +0,0 @@ -/* Set stdin to nonblocking. */ -#include -#include -#include -#include -int main(void) { - int flags; - flags = fcntl(0, F_GETFL); - flags |= O_NONBLOCK; - fcntl(0, F_SETFL, (long) flags); - flags = read(0, &flags, 1); - printf("read returns %d, errno == %d\n", flags, errno); - return 0; -} -- cgit v1.2.3