[ cough ]

#if _FILE_OFFSET_BITS - 0 == 32
 int open (const char *, int, int) asm ("open32");
#elif _FILE_OFFSET_BITS - 0 == 64
 int open (const char *, int, int) asm ("open64");
#else
 int open (const char *, int, int) asm ("__open");
#endif

That's a pretty neat trick. I dont suppose I could
trouble you to give me the voodoo required for
inserting an extra pushl before the call could I?

PS this trick you described here is great for variadic
functions like open and ioctl. It is the ioctl case
where I need to push an extra arg and then call a
fn called _xioctl. Your assistance would be very
much appreciated. Thanks Mike.

Kean

Reply via email to