This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
[ 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.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |