MPKXDC.EXE creates an XDC file referenced by the loader in a NetWare 5.x or 6.x server. As an NLM loads, the XDC file specifies four designations for an NLM and its exported API functions:
NLM is MP safe and can run on any processor.
Designated functions are MP safe, but all others must be funneled to P0.
NLM is generally MP unsafe and is limited directly to P0.
NLM is pre-emptable (caution--all functions become potentially blocking).
(For more information on funneling and exported API functions, see NetWare MPK and Funneling.)
To use MPKXDC, do the following:
If some but not all exported API functions in an NLM are MP safe (can be run on any processor), create an APILIST.API file that lists either the API functions that are MP safe or those that are not MP safe.
This file contains a list of API functions, one per line without leading or trailing white spaces or trailing commas. Lines beginning with # are ignored as comments. Blank lines or lines with leading white spaces are also ignored.
Prior to compiling, run MPKXDC.EXE using the following syntax:
MPKXDC [option] [APILIST.API] FILENAME.XDC
The table following these steps explains available choices for [option].
FILENAME is your name for the file to which MPKXDC.EXE outputs XDC data for reference by your NLM at load time.
For the WATCOM WLINK linker, include the following line in the linker directive file used in generating an NLM:
OPTION XDCDATA=<FILENAME.XDC>
The following options can be specified with the MPKXDC tool.