Sebastian Wittmeier
2004-11-05 14:15:49 UTC
Hi,
working on Everblue I encountered a problem.
The existing X11 applications (linked against good old emx) use
select() to wait for events.
My X11.dll opens a named pipe to get a file handle. When I compile
X11.dll with emx, everything is fine. But when I use Innotek gcc, errno
9 (EBADF, Bad file number) arises on select(). Looking quickly through
the source, I believe, the problem is that the new file handle is not
registered in the handle_flags array of emx.dll, when opening the file
with Innotek gcc.
So how can I create valid file handles in an Innotek dll linked against
an emx dll? The only one working seem to be standard in/out/err.
Has anybody compiled XFree86/2 with Innotek GCC yet? And Encountered
the same incompatibilities?
Sebastian
working on Everblue I encountered a problem.
The existing X11 applications (linked against good old emx) use
select() to wait for events.
My X11.dll opens a named pipe to get a file handle. When I compile
X11.dll with emx, everything is fine. But when I use Innotek gcc, errno
9 (EBADF, Bad file number) arises on select(). Looking quickly through
the source, I believe, the problem is that the new file handle is not
registered in the handle_flags array of emx.dll, when opening the file
with Innotek gcc.
So how can I create valid file handles in an Innotek dll linked against
an emx dll? The only one working seem to be standard in/out/err.
Has anybody compiled XFree86/2 with Innotek GCC yet? And Encountered
the same incompatibilities?
Sebastian