forked from enlightenment/efl
Add F_GETFL support (which does actually nothing
This commit is contained in:
parent
8dedcfae2c
commit
c97d05aca2
|
@ -62,12 +62,16 @@ int fcntl(int fd, int cmd, ...)
|
||||||
#endif /* ! __MINGW32CE__ */
|
#endif /* ! __MINGW32CE__ */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (cmd == F_GETFL)
|
||||||
|
{
|
||||||
|
/* does nothing*/
|
||||||
|
}
|
||||||
else if (cmd == F_SETFL)
|
else if (cmd == F_SETFL)
|
||||||
{
|
{
|
||||||
long flag;
|
long flag;
|
||||||
|
|
||||||
flag = va_arg(va, long);
|
flag = va_arg(va, long);
|
||||||
if (flag == O_NONBLOCK)
|
if (flag & O_NONBLOCK)
|
||||||
{
|
{
|
||||||
u_long arg = 1;
|
u_long arg = 1;
|
||||||
int type;
|
int type;
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
|
|
||||||
# define F_GETFD 1
|
# define F_GETFD 1
|
||||||
# define F_SETFD 2
|
# define F_SETFD 2
|
||||||
|
# define F_GETFL 3
|
||||||
# define F_SETFL 4
|
# 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