* 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:
Vincent Torri 2009-04-11 11:12:34 +00:00
parent c2a3c26379
commit b2b415ac00
3 changed files with 20 additions and 0 deletions

View File

@ -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>
* src/lib/evil_stdlib.c:

View File

@ -40,6 +40,18 @@ int fcntl(int fd, int cmd, ...)
if (h == INVALID_HANDLE_VALUE)
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)
{
long flag;

View File

@ -32,6 +32,7 @@
* can be satisfied.
*/
# define F_GETFD 1
# define F_SETFD 2
# define F_SETLK 6
# define F_SETLKW 7