summaryrefslogtreecommitdiff
path: root/nacl/curvecp/blocking.c
diff options
context:
space:
mode:
Diffstat (limited to 'nacl/curvecp/blocking.c')
-rw-r--r--nacl/curvecp/blocking.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/nacl/curvecp/blocking.c b/nacl/curvecp/blocking.c
deleted file mode 100644
index 1594259c..00000000
--- a/nacl/curvecp/blocking.c
+++ /dev/null
@@ -1,12 +0,0 @@
1#include <fcntl.h>
2#include "blocking.h"
3
4void blocking_enable(int fd)
5{
6 fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) & ~O_NONBLOCK);
7}
8
9void blocking_disable(int fd)
10{
11 fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK);
12}