summaryrefslogtreecommitdiff
path: root/src/lib/evil
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-10 17:53:45 +0100
committerCedric BAIL <cedric.bail@samsung.com>2013-03-11 10:34:47 +0900
commitc97d05aca29972d8082b825b807c97c429d529bc (patch)
tree41c95f49584bbc51ef514cc0c2e0fd82f1384396 /src/lib/evil
parent8dedcfae2c2dcc50f8ae707adc17c7a2875c7059 (diff)
Add F_GETFL support (which does actually nothing
Diffstat (limited to 'src/lib/evil')
-rw-r--r--src/lib/evil/evil_fcntl.c6
-rw-r--r--src/lib/evil/evil_fcntl.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/evil/evil_fcntl.c b/src/lib/evil/evil_fcntl.c
index 7c62c2a310..aa68ec1abf 100644
--- a/src/lib/evil/evil_fcntl.c
+++ b/src/lib/evil/evil_fcntl.c
@@ -62,12 +62,16 @@ int fcntl(int fd, int cmd, ...)
62#endif /* ! __MINGW32CE__ */ 62#endif /* ! __MINGW32CE__ */
63 } 63 }
64 } 64 }
65 else if (cmd == F_GETFL)
66 {
67 /* does nothing*/
68 }
65 else if (cmd == F_SETFL) 69 else if (cmd == F_SETFL)
66 { 70 {
67 long flag; 71 long flag;
68 72
69 flag = va_arg(va, long); 73 flag = va_arg(va, long);
70 if (flag == O_NONBLOCK) 74 if (flag & O_NONBLOCK)
71 { 75 {
72 u_long arg = 1; 76 u_long arg = 1;
73 int type; 77 int type;
diff --git a/src/lib/evil/evil_fcntl.h b/src/lib/evil/evil_fcntl.h
index 194341b369..a54569681f 100644
--- a/src/lib/evil/evil_fcntl.h
+++ b/src/lib/evil/evil_fcntl.h
@@ -39,6 +39,7 @@
39 39
40# define F_GETFD 1 40# define F_GETFD 1
41# define F_SETFD 2 41# define F_SETFD 2
42# define F_GETFL 3
42# define F_SETFL 4 43# define F_SETFL 4
43# define F_SETLK 6 44# define F_SETLK 6
44# define F_SETLKW 7 45# define F_SETLKW 7