Files
2ine-tms34010/native/msg.c
T
Ryan C. Gordon bee2afe62b Bunch More Work, mostly cleanup and organization.
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.
2016-09-30 15:58:48 -04:00

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 ...