AmigaE/CreatePort()
30-Dec-94 07:23:05
Sb: #44611-AmigaE/CreatePort()
Fm: Fabian Roth 76452,2200
To: Barry Burton 76620,1567
Hi Barry!
I'm afraid you can't (yet) use functions like CreatePort() or similar ones
since they are part of a linked library (amiga.lib) which is a part of most C
compilers, but not a part of the operating system.
OS 2.0 (and above) provide similar functions in exec.library. They are called
CreateMsgPort() and CreateIORequest(), and they act quite similar to the
amiga.lib functions.
CreateMsgPort() doesn't take any parameters, and it acts like CreatePort(0,0).
If you want to add it to exec's public list of ports, you have to give it a
name and call AddPort() manually.
CreateIORequest() takes two arguments: The address of the ReplyPort and the
size of the IO request to be allocated. (I may be wrong now since I'm writing
this out of memory, please consult your .fd or _proto.h files)
Andy