Implementing missing system calls in iBCS module

Gestor de Sistemes (pau@readysoft.es)
Fri, 7 Mar 1997 17:39:47 +0100 (MET)


Please, if anyobody can help to understand ioctl in iBCS !!!

I'm trying to make Oracle Web Server work on Linux with latest iBCS, but
have found some problems trying to implement missing system calls.

I've added setrlimit and getrlimit.

Now there are three more missing: sendmsg, recvmsg and socketpair.

I'm trying to overcome the problems with socketpair. I don't understand
the parametres I get from ioctl :(( and cannot find anywhere to look at.

I detect the socketpair call from the Oracle Webserver, the iBCS module
detects it's a socket function and it runs the proper procedure (the
first parameter of the ioctl call says so).

For instance, for a socket call i can see:
ioctl (9, 0x801c4942, 0xbffff394)
9: socket (14) <0x1, 0x1, 0x0, 0x0, 0x0, 0x0>
ans I can undrstand how it works and what everything means.

But later on I see:
ioctl (8, 0x801c4942, 0xbffff22c)
8: socketpair (27) <0x8, 0x9, 0x0, 0x0, 0x0, 0x0>
that means:
-execute function 27 named socketpair (added by me)
-and the parametres I get have no meaning for me to translate and call
linux socketpair function.
If they looked more similar to the socket parametres I would be able to
understand, but I see no no family, no type and no protocol to pass to the
socketpair function... there should be a 0x1 somwhere, but it isn't there.

Any help from an ibcs guru?

Thank you