summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-01-30 00:03:47 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-01-30 00:03:47 +0000
commit7a09cb73a63789c96fa7a530ff149d6e11591d8b (patch)
tree5c46c3dd2eed752b692d9e6338084a392ebf7f90 /legacy
parente3554033a7a3ba84949f61522e588826b2812f49 (diff)
* src/lib/evil_fcntl.c:
* src/lib/evil_fcntl.h: fix fcntl() with F_SETFL command SVN revision: 45723
Diffstat (limited to 'legacy')
-rw-r--r--legacy/evil/ChangeLog6
-rw-r--r--legacy/evil/src/lib/evil_fcntl.c6
-rw-r--r--legacy/evil/src/lib/evil_fcntl.h1
3 files changed, 13 insertions, 0 deletions
diff --git a/legacy/evil/ChangeLog b/legacy/evil/ChangeLog
index 97e9e1b3ec..917326c10d 100644
--- a/legacy/evil/ChangeLog
+++ b/legacy/evil/ChangeLog
@@ -1,3 +1,9 @@
12010-01-30 Vincent Torri <doursse at users dot sf dot net>
2
3 * src/lib/evil_fcntl.c:
4 * src/lib/evil_fcntl.h:
5 fix fcntl() with F_SETFL command
6
12010-01-29 Vincent Torri <doursse at users dot sf dot net> 72010-01-29 Vincent Torri <doursse at users dot sf dot net>
2 8
3 * src/lib/evil_fcntl.c: 9 * src/lib/evil_fcntl.c:
diff --git a/legacy/evil/src/lib/evil_fcntl.c b/legacy/evil/src/lib/evil_fcntl.c
index e713322bbf..68618c528f 100644
--- a/legacy/evil/src/lib/evil_fcntl.c
+++ b/legacy/evil/src/lib/evil_fcntl.c
@@ -66,6 +66,12 @@ int fcntl(int fd, int cmd, ...)
66 res = 0; 66 res = 0;
67#endif /* __CEGCC__ || __MINGW32CE__ */ 67#endif /* __CEGCC__ || __MINGW32CE__ */
68 } 68 }
69 }
70 else if (cmd == F_SETFL)
71 {
72 long flag;
73
74 flag = va_arg(va, long);
69 if (flag == O_NONBLOCK) 75 if (flag == O_NONBLOCK)
70 { 76 {
71 u_long arg = 1; 77 u_long arg = 1;
diff --git a/legacy/evil/src/lib/evil_fcntl.h b/legacy/evil/src/lib/evil_fcntl.h
index e439fd74ec..89e63b9c75 100644
--- a/legacy/evil/src/lib/evil_fcntl.h
+++ b/legacy/evil/src/lib/evil_fcntl.h
@@ -40,6 +40,7 @@
40 40
41# define F_GETFD 1 41# define F_GETFD 1
42# define F_SETFD 2 42# define F_SETFD 2
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
45 46