s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
Next
Previous
Contents
4. NLM Header fileThe 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.
4.1 AUTOUNLOADSyntax: AUTOUNLOAD
4.2 CHECKSyntax: 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
4.3 CODESTARTSyntax: CODESTART <map file code start offset> Map file start offset may be decimal or Xhex.
4.4 COPYRIGHTSyntax: 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."
4.5 CUSTOMSyntax: CUSTOM <custom data file path>
4.6 DATASTARTSyntax: DATASTART <map file data start offset> Map file data start offset may be decimal or Xhex.
4.7 DATESyntax: DATE <month, day, year>
4.8 DEBUGSyntax: DEBUG
This directive tells the nlmconv(1) to include debugging information in the NLM file. Example: DEBUG
4.9 DESCRIPTIONSyntax: DESCRIPTION "NLM Description String"
4.10 EXITSyntax: EXIT <exit procedure name>
4.11 EXPORTSyntax: EXPORT <symbol list> EXPORT @<symbol list file>
4.12 FLAG_OFFSyntax: FLAG_OFF <decimal number>
4.13 FLAG_ONSyntax: FLAG_ON <decimal number>
4.14 HELPSyntax: HELP <help file path>
4.15 IMPORTSyntax: IMPORT <symbol list> IMPORT @<symbol list file>
4.16 INPUTSyntax: 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
4.17 MAPSyntax: MAP [map file name]
4.18 MESSAGESSyntax: MESSAGES <message file path>
4.19 MODULESyntax: MODULE <autoload NLM list>
4.20 MULTIPLESyntax: MULTIPLE
4.21 NAMELENSyntax: NAMELEN <decimal number> Default is 31. Zero is no limit.
4.22 OS_DOMAINSyntax: OS_DOMAIN
4.23 OUTPUTSyntax: OUTPUT <target file name>
4.24 PATHSyntax: PATH [search path;...]
for following CUSTOM, HELP, INPUT, MESSAGES, SHARELIB, STAMPEDDATA and XDCDATA.
4.25 PSEUDOPREEMPTIONSyntax: PSEUDOPREEMPTION
4.26 REENTRANTSyntax: REENTRANT
4.27 SCREENNAMESyntax: SCREENNAME "Initial Screen Name (CLIB)"
4.28 SHARELIBSyntax: SHARELIB <shared library path>
4.29 STACKSyntax: STACK <stack size>
4.30 STACKSIZESyntax: STACKSIZE <stack size>
4.31 STAMPEDDATASyntax: STAMPEDDATA "Stamp" <data file path>
Stamp is 8 char max.
4.32 STARTSyntax: START <start procedure name>
Default is _Prelude.
4.33 SYNCHRONIZESyntax: SYNCHRONIZE
4.34 THREADNAMESyntax: THREADNAME "Initial Process Name (CLIB)"
4.35 TYPESyntax: TYPE <version>
This directive specifies the format (NLM, LAN, DSK, NAM) of the NLM file to be generated. Valid values are:
Example:
TYPE 0
4.36 VERSIONSyntax:
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
4.37 XDCDATASyntax: XDCDATA <XDC data file path>
Next Previous Contents |