The NLM header file contains information for nlmconv(1). Each line contains one option or directive; everything after "#" is comment. This chapter describes all options and directives.
This chapter is not yet finished, sorry.
Syntax:
AUTOUNLOAD
Syntax:
CHECK <check procedure name>
This directive specifies the function to be executed when the NLM is unloaded using the UNLOAD Server console command. If this function returns zero, the NLM can be unloaded, else the NLM is not ready to be unloaded.
Example:
CHECK CheckUnload
Syntax:
CODESTART <map file code start offset>
Map file start offset may be decimal or Xhex.
Syntax:
COPYRIGHT ["Copyright string"]
The copyright string is displayed on the server console screen when the NLM is loaded. If this option is not used, no copyright information is displayed.
Example:
COPYRIGHT "Copyright (c) 1998 ABC Inc."
Syntax:
CUSTOM <custom data file path>
Syntax:
DATASTART <map file data start offset>
Map file data start offset may be decimal or Xhex.
Syntax:
DATE <month, day, year>
Syntax:
DEBUG
This directive tells the nlmconv(1) to include debugging information in the NLM file.
Example:
DEBUG
Syntax:
DESCRIPTION "NLM Description String"
Syntax:
EXIT <exit procedure name>
Syntax:
EXPORT <symbol list>
EXPORT @<symbol list file>
Syntax:
FLAG_OFF <decimal number>
Syntax:
FLAG_ON <decimal number>
Syntax:
HELP <help file path>
Syntax:
IMPORT <symbol list>
IMPORT @<symbol list file>
Syntax:
INPUT <object file> [, <object file> [, ...] ]
INPUT @<object list file>
This directive lists the input ELF (.o) object files that are to be linked. You can also list the object files in the list file, each object file on one line.
Example:
INPUT @objectfiles.txt INPUT main.o INPUT /usr/nwsdk/lib/prelude.o
Syntax:
MAP [map file name]
Syntax:
MESSAGES <message file path>
Syntax:
MODULE <autoload NLM list>
Syntax:
MULTIPLE
Syntax:
NAMELEN <decimal number>
Default is 31. Zero is no limit.
Syntax:
OS_DOMAIN
Syntax:
OUTPUT <target file name>
Syntax:
PATH [search path;...]
for following CUSTOM, HELP, INPUT, MESSAGES, SHARELIB, STAMPEDDATA and XDCDATA.
Syntax:
PSEUDOPREEMPTION
Syntax:
REENTRANT
Syntax:
SCREENNAME "Initial Screen Name (CLIB)"
Syntax:
SHARELIB <shared library path>
Syntax:
STACK <stack size>
Syntax:
STACKSIZE <stack size>
Syntax:
STAMPEDDATA "Stamp" <data file path>
Stamp is 8 char max.
Syntax:
START <start procedure name>
Default is _Prelude.
Syntax:
SYNCHRONIZE
Syntax:
THREADNAME "Initial Process Name (CLIB)"
Syntax:
TYPE <version>
This directive specifies the format (NLM, LAN, DSK, NAM) of the NLM file to be generated. Valid values are:
Example:
TYPE 0
Syntax:
VERSION <major version>, <minor version> [, <revision>]
The version information is displayed on the server system console when the NLM loads. The major and minor version numbers can be 0 - 99. The revision can be 0 - 26 ("a" - "z") and is optional. The version directive is required.
Example:
VERSION 1,5
Syntax:
XDCDATA <XDC data file path>