Renesas V.1.00 Computer Hardware User Manual


 
Section 3 Functions and Files Generated by RPCGEN
Rev. 1.01 Mar. 17, 2008 Page 7 of 128
REJ10J1822-0101
3.2 Files Generated by RPCGEN
RPCGEN generates the files listed in table 3.1 in accord with the name of the config file.
Table 3.1 Files Generated by RPCGEN
Filename Description Definition of the File Location
<config file>_clnt.c Client-stub source file CLNTS option or
CLNT_SOURCEPATH in the config file
<config file>_clnt.h Client-stub header file
<config file>_private.h Internal header file for the
client stub
CLNTI option or CLNT_INCPATH in
the config file
<config file>_svr.c Server-stub source file SVRS option or SVR_SOURCEPATH
in the config file
<config file>_svr.h Server-stub header file SVRI option or SVR_INCPATH in the
config file
<config file>_public.h Header file for the client and
server stubs
PUBI option or PUB_INCPATH in the
config file
When the config file is “sample.x,” for example, RPCGEN will generate the following files:
sample_clnt.c, sample_clnt.h, sample_svr.c, sample_svr.h, sample_private.h, and sample_public.h.
To temporarily save information during the process of file generation, RPCGEN also generates
intermediate files in the current directory. The names of these intermediate files consist of two
underscores (“__”) appended before the filenames given in the table above.
(1) <config file>_clnt.c (client-stub source file)
This file contains the client-stub functions, client-initialization function, and client-shutdown
function.
(2) <config file>_clnt.h (client-stub header file)
This file contains definitions required for use of the client-stub functions, client-initialization
function, and client-shutdown function. The definitions include prototype declarations of the
client-stub functions, client-initialization function, and client-shutdown function.