forked from enlightenment/efl
* src/lib/evil_fcntl.c:
* src/lib/evil_fcntl.h: support of F_GETFD in fcntl() (does nothing, actually needed for last ecore change) SVN revision: 39978
This commit is contained in:
parent
c2a3c26379
commit
b2b415ac00
|
@ -1,3 +1,10 @@
|
||||||
|
2009-04-11 Vincent Torri <doursse at users dot sf dot net>
|
||||||
|
|
||||||
|
* src/lib/evil_fcntl.c:
|
||||||
|
* src/lib/evil_fcntl.h:
|
||||||
|
support of F_GETFD in fcntl() (does nothing, actually
|
||||||
|
needed for last ecore change)
|
||||||
|
|
||||||
2009-04-08 Vincent Torri <doursse at users dot sf dot net>
|
2009-04-08 Vincent Torri <doursse at users dot sf dot net>
|
||||||
|
|
||||||
* src/lib/evil_stdlib.c:
|
* src/lib/evil_stdlib.c:
|
||||||
|
|
|
@ -40,6 +40,18 @@ int fcntl(int fd, int cmd, ...)
|
||||||
if (h == INVALID_HANDLE_VALUE)
|
if (h == INVALID_HANDLE_VALUE)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
if (cmd == F_GETFD)
|
||||||
|
{
|
||||||
|
#if ! ( defined(__CEGCC__) || defined(__MINGW32CE__) )
|
||||||
|
DWORD flag;
|
||||||
|
|
||||||
|
if (!GetHandleInformation(h, &flag))
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
res = 0;
|
||||||
|
#endif /* __CEGCC__ || __MINGW32CE__ */
|
||||||
|
}
|
||||||
|
|
||||||
if (cmd == F_SETFD)
|
if (cmd == F_SETFD)
|
||||||
{
|
{
|
||||||
long flag;
|
long flag;
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
* can be satisfied.
|
* can be satisfied.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
# define F_GETFD 1
|
||||||
# define F_SETFD 2
|
# define F_SETFD 2
|
||||||
# define F_SETLK 6
|
# define F_SETLK 6
|
||||||
# define F_SETLKW 7
|
# define F_SETLKW 7
|
||||||
|
|
Loading…
Reference in New Issue