* src/lib/evil_fcntl.c:

* src/lib/evil_fcntl.h:
	fix fcntl() with F_SETFL command



SVN revision: 45723
This commit is contained in:
Vincent Torri 2010-01-30 00:03:47 +00:00
parent e3554033a7
commit 7a09cb73a6
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-01-30 Vincent Torri <doursse at users dot sf dot net>
* src/lib/evil_fcntl.c:
* src/lib/evil_fcntl.h:
fix fcntl() with F_SETFL command
2010-01-29 Vincent Torri <doursse at users dot sf dot net>
* src/lib/evil_fcntl.c:

View File

@ -66,6 +66,12 @@ int fcntl(int fd, int cmd, ...)
res = 0;
#endif /* __CEGCC__ || __MINGW32CE__ */
}
}
else if (cmd == F_SETFL)
{
long flag;
flag = va_arg(va, long);
if (flag == O_NONBLOCK)
{
u_long arg = 1;

View File

@ -40,6 +40,7 @@
# define F_GETFD 1
# define F_SETFD 2
# define F_SETFL 4
# define F_SETLK 6
# define F_SETLKW 7