Wanted to do this now before it gets out of hand. Ideally, this can be used for a Winelib-like option eventually, too, where you don't load OS/2 binaries at all but rather compile and link your OS/2-based source code against this API reimplementation.
20 lines
337 B
C
20 lines
337 B
C
#include <unistd.h>
|
|
|
|
#include "os2native.h"
|
|
#include "msg.h"
|
|
|
|
NATIVE_MODULE(msg);
|
|
|
|
APIRET DosPutMessage(HFILE handle, ULONG msglen, PCHAR msg)
|
|
{
|
|
write(handle, msg, msglen);
|
|
return 0;
|
|
} // DosPutMessage
|
|
|
|
NATIVE_REPLACEMENT_TABLE("msg")
|
|
NATIVE_REPLACEMENT(DosPutMessage, 5)
|
|
END_NATIVE_REPLACEMENT_TABLE()
|
|
|
|
// end of msg.c ...
|
|
|