nidl.1ncs
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1NCS 代码 · 共 202 行
1NCS
202 行
.TH nidl 1ncs.SH Namenidl \- Network Interface Definition Language Compiler.SH Syntax\fBnidl\fR \fIfilename\fR [\fIoptions\fR].SH DescriptionThe.PN nidlcompiler isfor the Network Interface Definition Language (NIDL)..NXR "Network Interface Definition Language Compiler" "nidl".PPThe \fIfilename\fR argument isthe pathname of an interface definition file,written in.\"eitherthe C syntax.\"or the Pascal syntaxof NIDL..PPThe compiler generates a header file, a client stub file, a server stubfile, and a client switch file, all in C source code. The compilerderives the names of these output files from \fIfilename\fR by replacingthe suffix (the rightmost period and all subsequent characters) withextensions for the client stub, server stub, and client switch..SH Options.TP 20\fB\-confirm\fRDisplay the options chosen but do not compile anything.In displaying information about \fB\-idir\fR,the compiler constructs the list of all directories it would useto resolve relative pathnames of imported files,not just the ones explicitly supplied.(If the list is empty,the compiler uses only the current directory.)This option is useful for viewing the `idir list'and for viewing the default values for other options..TP 20\fB\-cpp\fR \fIpathname\fRRun the specified programinstead of the default C preprocessor.You can use the \fB\-confirm\fR option to view the default pathname..TP 20\fB\-def\fR \fIdef1\fR [\fIdef2\fR ...]Pass the specified definitions to the C preprocessor.A definition can take either of two forms:\fIsymbol\fR or \fIsymbol\fB=\fIvalue\fR..TP 20\fB\-exts\fR \fIcstub\-ext\fB,\|\fIsstub\-ext\fB,\|\fIcswtch\-ext\fRSet the extensions that the compiler usesto name the stub and switch files it generates.The text strings \fIcstub\-ext\fR, \fIsstub\-ext\fR, and \fIcswtch\-ext\fRmust be separated by commas, with no spaces;they are used as extensionsfor the client stub, the server stub, and the client switch,respectively. You can use the \fB\-confirm\fR option to viewthe defaults..TP 20\fB\-f77c\fRGenerate client switch codethat is compatible with the ULTRIX.PN f77compiler.The NIDL compiler appends an underscore (\fB\|_\|\fR) characterto the name of each client switch routine, so that the routines can becalled from FORTRAN programs generated by the.PN f77compiler..TP 20\fB\-f77s\fRGenerate server stub codethat is compatible with the ULTRIX.PN f77compiler.The NIDL compiler appends an underscore (\fB\|_\|\fR) characterto the name of each manager routine that the stub calls,so that the stub can callroutines generated by the.PN f77compiler..TP 20\fB\-idir\fR \fIdirectory1\fR [\fIdirectory2\fR ...]Use the specified directories as pathsfrom which to resolve relative pathnames of imported files.The compiler generates an ordered list of these directories.By default, it prepends to this list your current working directoryand appends the system .PN idldirectory.You can suppress this default by supplying the \fB\-no_def_idir\fR option..TP 20\fB\-m\fRSupport multiple versions and multiple managerswithin a single server.This option allows a serverto export more than one version of an interface (`multiple versions') and to implement an interface for more than one type (`multiple managers'). .sp 1The compiler appends the version number to the interface namewhen it generates identifiers in the stub and header files.For example,the interface specifier for version 3 of the \fBfoobar\fR interfacewould be \fBfoobar_v3$if_spec\fR..sp 1The server for an interface compiled with \fB\-m\fRmust use .PN rpc_$register_mgrto register its managers.The server supplies the name of a manager EPV to .PN rpc_$register_mgr;the manager code defines this EPV.If the server supports objects of several types,it must use .PN rpc_$register_objectto register each object.These registrations enable the RPC runtime library at the server hostto dispatch incoming requests to the correct manager..sp 1If you do not specify either\fB\-m\fR or its counterpart, \fB\-s\fR,the compiler assumes \fB\-s\fR and issues a warning.However, this default may be removed or changed in future NIDLcompilers. Even if your server exports only one version of itsinterface and contains only one manager,use the \fB\-m\fR option, so that it will be easy for youto incorporate multiple versions and multiple managers later..TP 20\fB\-no_cpp\fRDo not run the C preprocessor on the input file.If you specify this option,the NIDL compiler does not interpret any C preprocessor statements(such as.PN #includestatements) in the interface definition..TP 20\fB\-no_def_idir\fRDo not prepend the current working directory or append the system .PN idldirectory to the list of directories constructed from .I \-idirarguments.If you specify \fB\-no_def_idir\fR without \fB\-idir\fR,the compiler resolves pathnames of imported filesonly relative to the current working directory..TP 20\fB\-no_stubs\fRDo not generate any stub or switch files.The NIDL compiler generates only header files and.\"(if the \fB\-pascal\fR option is used) insert files..TP 20\fB\-no_warn\fRSuppress warning messages..TP 20\fB\-out\fR \fIdirectory\fRPlace the generated files in \fIdirectory\fR.The default is the current working directory..\".TP 20.\"\fB\-pascal\fR.\"Generate a Pascal insert (\fB.ins.pas\fR) file.\"in addition to a C header (\fB.h\fR) file..\"The default is to generate only a C header file..TP 20\fB\-s\fRAllow a serverto export only a single version of an interfaceand to implement an interface for only a single type.This option requests the behavior of NIDL compilers before Version 1.5,which added support for multiple versions and multiple interfaces.(See the \fB\-m\fR option.).sp .5The server for an interface compiled with \fB\-s\fRmust use .PN rpc_$registerto register its interfaces..sp .5If you do not specify either\fB\-s\fR or its counterpart, \fB\-m\fR,the compiler assumes \fB\-s\fR and issues a warning. However, thisdefault may be removed or changed in future NIDL compilers.Even if your server exports only one version of its interface andcontains only one manager, use the \fB\-m\fR option,so that it will be easy for youto incorporate multiple versions and multiple managers later..TP 20\fB\-space_opt\fRReduce the size of generated stub code,possibly at the expense of slower data marshalling..TP 20\fB\-version\fRDisplay the version number of the NIDL compilerbut do not compile anything or generate any output files..ig\fB\-ansi\fR \" obsoleteGenerate ANSI C function prototypes.The default is to produce code that conforms to pre-ANSI C....SH See Alsouuid_gen(3ncs).br\fIDECrpc Programming Guide\fP
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?