[Mono-list] PInvoke Conventions
Miguel de Icaza
miguel@ximian.com
19 Jul 2001 22:41:32 -0400
> or even better:
>
> [DllImport("libc"),PosixProto(int,off_t,int)]
> long lseek (int, long, int)
>
> Such a declaration would work on systems where the number of bits in a "C"
> int is in the range of 32 to 64.
Agreed. It was just a thinko on my part on the exact bits ;-)
> I lost track of what you would be "autoconf'ing"... the compiler? The jit?
> The runtime libraries?
Autoconf is the build-time tool that would configure the runtime (this
is the jit/interpreter). My proposal embeds the knowledge in the
jit/interpreter only.
The C# compiler would be untouched (in one of the proposals) and so
would the class libraries (which means that you could move
PInvoke-aware libraries across different Unix kinds).
The beauty of it, is that the only changes are in the JIT/Intepreter.
MIguel.