forked from enlightenment/efl
* src/lib/evil_fcntl.c:
* src/lib/evil_fcntl.h: fix fcntl() with F_SETFL command SVN revision: 45723
This commit is contained in:
parent
e3554033a7
commit
7a09cb73a6
|
@ -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>
|
2010-01-29 Vincent Torri <doursse at users dot sf dot net>
|
||||||
|
|
||||||
* src/lib/evil_fcntl.c:
|
* src/lib/evil_fcntl.c:
|
||||||
|
|
|
@ -66,6 +66,12 @@ int fcntl(int fd, int cmd, ...)
|
||||||
res = 0;
|
res = 0;
|
||||||
#endif /* __CEGCC__ || __MINGW32CE__ */
|
#endif /* __CEGCC__ || __MINGW32CE__ */
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else if (cmd == F_SETFL)
|
||||||
|
{
|
||||||
|
long flag;
|
||||||
|
|
||||||
|
flag = va_arg(va, long);
|
||||||
if (flag == O_NONBLOCK)
|
if (flag == O_NONBLOCK)
|
||||||
{
|
{
|
||||||
u_long arg = 1;
|
u_long arg = 1;
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
|
|
||||||
# define F_GETFD 1
|
# define F_GETFD 1
|
||||||
# define F_SETFD 2
|
# define F_SETFD 2
|
||||||
|
# define F_SETFL 4
|
||||||
# define F_SETLK 6
|
# define F_SETLK 6
|
||||||
# define F_SETLKW 7
|
# define F_SETLKW 7
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue