Name Date Size #Lines LOC

..--

DISCLAIMERH A D07-Jul-20143.2 KiB6058

LICENSEH A D26-Nov-201114.2 KiB336278

Makefile.incH A D29-Jan-20225.9 KiB183160

READMEH A D26-Nov-20118 KiB176131

Symbol.mapH A D05-Sep-20154.7 KiB242237

auth_des.cH A D25-Nov-201313.9 KiB495332

auth_none.cH A D25-Nov-20134.6 KiB17099

auth_time.cH A D16-Apr-201912.6 KiB501319

auth_unix.cH A D25-Nov-20139.2 KiB359236

authdes_prot.cH A D25-Nov-20133.1 KiB8838

authunix_prot.cH A D25-Nov-20132.7 KiB7424

bindresvport.3H A D26-Nov-20112.2 KiB105104

bindresvport.cH A D25-Nov-20134 KiB15087

clnt_bcast.cH A D25-Nov-201318.1 KiB667505

clnt_dg.cH A D23-Oct-201921.4 KiB766567

clnt_generic.cH A D02-Apr-202113 KiB461277

clnt_perror.cH A D25-Nov-20137.7 KiB312226

clnt_raw.cH A D25-Nov-20138 KiB291176

clnt_simple.cH A D30-Jan-20185.8 KiB194115

clnt_vc.cH A D10-Nov-201721.8 KiB808595

crypt_client.cH A D16-Apr-20193.4 KiB10056

des_crypt.3H A D07-Mar-20182.8 KiB128127

des_crypt.cH A D11-Apr-20193.8 KiB13872

des_soft.cH A D10-Apr-20192.6 KiB6728

getnetconfig.3H A D26-Nov-20114.2 KiB223222

getnetconfig.cH A D25-Nov-201318.6 KiB683435

getnetpath.3H A D26-Nov-20113.1 KiB171170

getnetpath.cH A D25-Nov-20138.8 KiB267149

getpublickey.cH A D11-Apr-20194.3 KiB171111

getrpcent.3H A D05-May-20192.2 KiB110109

getrpcent.cH A D30-Jan-201821.5 KiB1,042850

getrpcport.3H A D06-Dec-2014962 3635

getrpcport.cH A D25-Nov-20132.7 KiB7328

key_call.cH A D11-Apr-201911.5 KiB447329

key_prot_xdr.cH A D25-Nov-20134.3 KiB176113

mt_misc.cH A D16-Mar-20123.4 KiB11772

mt_misc.hH A D26-Nov-20112.7 KiB6736

netconfig.5H A D26-Nov-20113.3 KiB132131

netname.cH A D16-Apr-20193.9 KiB14375

netnamer.cH A D05-Sep-20157.4 KiB323247

pmap_clnt.cH A D25-Nov-20133.7 KiB11759

pmap_getmaps.cH A D25-Nov-20133.2 KiB9642

pmap_getport.cH A D25-Nov-20133.4 KiB9844

pmap_prot.cH A D25-Nov-20132.4 KiB6417

pmap_prot2.cH A D25-Nov-20134.5 KiB13634

pmap_rmt.cH A D25-Nov-20134.9 KiB16492

publickey.3H A D27-Jun-20201.2 KiB5453

publickey.5H A D26-Nov-20111.1 KiB4443

rpc.3H A D26-Nov-201112.9 KiB518509

rpc.5H A D26-Nov-20111.3 KiB6160

rpc_callmsg.cH A D30-Jan-20186.2 KiB201142

rpc_clnt_auth.3H A D26-Nov-20112.4 KiB9796

rpc_clnt_calls.3H A D26-Nov-20118.2 KiB317316

rpc_clnt_create.3H A D26-Nov-201113.4 KiB515514

rpc_com.hH A D27-Jun-20203.4 KiB9333

rpc_commondata.cH A D25-Nov-20132.1 KiB456

rpc_dtablesize.cH A D25-Nov-20132.6 KiB6415

rpc_generic.cH A D25-Nov-201317.9 KiB831655

rpc_prot.cH A D30-Jan-20188.6 KiB350209

rpc_secure.3H A D26-Nov-20115.9 KiB259258

rpc_soc.3H A D26-Nov-201331.8 KiB1,7221,721

rpc_soc.cH A D09-Feb-201513.1 KiB513356

rpc_svc_calls.3H A D26-Nov-20116.3 KiB252251

rpc_svc_create.3H A D21-Aug-20128.3 KiB338337

rpc_svc_err.3H A D26-Nov-20112.7 KiB9897

rpc_svc_reg.3H A D03-Nov-20134.6 KiB184183

rpc_xdr.3H A D26-Nov-20112.8 KiB102101

rpcb_clnt.cH A D02-Apr-202134.7 KiB1,318946

rpcb_prot.cH A D30-Jan-20188.3 KiB311182

rpcb_st_xdr.cH A D30-Jan-20186.6 KiB258196

rpcbind.3H A D26-Nov-20114.8 KiB195194

rpcdname.cH A D13-Apr-20202.7 KiB8032

rtime.3H A D17-Jun-2019971 4847

rtime.cH A D25-Nov-20134.1 KiB15396

svc.cH A D27-Jun-202015.9 KiB672438

svc_auth.cH A D25-Nov-20135.9 KiB19993

svc_auth_des.cH A D12-Jun-201913.8 KiB528340

svc_auth_unix.cH A D25-Nov-20134.7 KiB14985

svc_dg.cH A D24-Oct-201915.7 KiB573417

svc_generic.cH A D25-Nov-20138.5 KiB303200

svc_raw.cH A D25-Nov-20136.2 KiB237157

svc_run.cH A D25-Nov-20133 KiB9547

svc_simple.cH A D25-Nov-20138.9 KiB310209

svc_vc.cH A D05-Aug-201618.3 KiB750559

README

1$FreeBSD: src/lib/libc/rpc/README,v 1.2 2001/03/19 12:49:50 alfred Exp $
2
3PLEASE READ THE DISCLAIMER FILE.  DO NOT CALL THE SUN MICROSYSTEMS SUPPORT
4LINE WITH QUESTIONS ON THIS RELEASE.  THEY CANNOT ANSWER QUESTIONS ABOUT THIS
5UNSUPPORTED SOURCE RELEASE.
6
7TIRPCSRC 2.3 29 Aug 1994
8
9This distribution contains SunSoft's implementation of transport-independent
10RPC (TI-RPC), External Data Representation (XDR), and various utilities and
11documentation.  These libraries and programs form the base of Open Network
12Computing (ONC), and are derived directly from the Solaris 2.3 source.
13
14Previous releases of RPC Source based on SunOS 4.x were ported to 4.2BSD and
15used Sockets as the transport interface.  These versions were
16transport-specific RPC (TS-RPC).
17
18TI-RPC is an enhanced version of TS-RPC that requires the UNIX System V
19Transport Layer Interface (TLI) or an equivalent X/Open Transport Interface
20(XTI).  TI-RPC is on-the-wire compatible with the TS-RPC, which is supported
21by almost 70 vendors on all major operating systems.  TS-RPC source code
22(RPCSRC 4.0) remains available from several internet sites.
23
24This release is a native source release, that is, it is compatible for
25building on Solaris 2.3.  This release was built on Solaris 2.3 using SunPro
26SPARCompiler 2.0.1.
27
28Solaris 2.3 is based on System V, Release 4 (SVR4), and while this release
29should be mostly compatible with other SVR4 systems, some Solaris facilities
30that are assumed may not be available.  In particular, this release uses the
31Makefile format supported by SparcCompiler 2.0.1.  Second, the Secure RPC
32routines use the Solaris Name Service Switch to access public-key credential
33databases.  This code will need to be ported if your system does not support
34the Name Service Switch.  Finally, this release uses the synchronization
35interfaces of UI Threads to make certain interfaces thread-safe.  These
36interfaces are found in libthread in Solaris 2.3 and later.
37
38Applications linked with this release's librpc must link with the United
39States domestic version of libcrypt in order to resolve the cbc_crypt() and
40ecb_crypt() functions.  These routines are used with Secure RPC however all
41RPC programs that link with this release's librpc will need to link with the
42domestic libcrypt.  Note that the Solaris 2.3 Encryption Kit is only available
43within the United States.  (PLEASE NOTE: The RPC implementation found in
44Solaris 2.3's libnsl does *not* have this requirement; linking with libcrypt
45is only a requirement for the TIRPCSRC 2.3 version of librpc.)
46
47
48DOCUMENTATION NOTE
49
50The documentation found in the doc directory are derived from the Solaris 2.3
51Network Interfaces Programming Guide.  A small number of compile examples are
52given, and these use libnsl to link in the RPC library.  This release builds
53the RPC library as librpc.  To use this release's librpc, use the link command
54"-lrpc -lnsl -lcrypt".  This links the application with TIRPCSRC 2.3's librpc
55for RPC routines, Solaris's libnsl for other networking functions, and
56libcrypt for the cbc_crypt() and ecb_crypt functions.
57
58
59WHY IS THIS RELEASE BEING DONE?
60
61This release is being distributed to make the Sun implementation of the ONC
62technologies available for reference and porting to non-Solaris platforms.
63The current release is a native source distribution, and provides services
64that are already available on Solaris 2.3 (such as the RPC headers, the RPC
65library in libnsl, rpcbind, rpcinfo, etc.).  It is not our intention to
66replace these services.  See the DISCLAIMER for further information about the
67legal status of this release.
68
69
70WHAT'S NEW IN THIS RELEASE: TIRPCSRC 2.3
71
72The previous release was TIRPCSRC 2.0.
73
741.      This release is based on Solaris 2.3.  The previous release was
75	based on Solaris 2.0.  This release contains a siginificant number of
76	bug fixes and other enhancements over TIRPCSRC 2.0.
77
782.      The RPC library is thread safe for all client-side interfaces
79	(clnt_create, clnt_call, etc.).  The server-side interfaces
80	(svc_create, svc_run, etc.) are not thread safe in this release. The
81	server-side interfaces will be made thread safe in the next release of
82	TIRPCSRC.  Please see the manual pages for details about which
83	interfaces are thread safe.
84
853.      As part of the work to make the RPC library thread-safe, rpcgen has
86	been enhanced to generate thread-safe RPC stubs (the -M option).  Note
87	that this modifies the call-signature for the stub functions; the
88	procedure calling the RPC stub must now pass to the stub a pointer to
89	an allocated structure where results will be placed by the stub.  See
90	the rpcgen manual page and the rpcgen Programming Guide for details.
91
924.      The Remote Asynchronous Calls (RAC) library is now included.  RAC was
93	first introduced in TIRPCSRC 1.0, and was bundled with librpc.  It is
94	now a separate library.  The asynchronous call model that RAC provides
95	can be achieved by using threads for making client-side RPC calls.
96	The ONC Technology group recommends using threads (where possible) to
97	achieve asynchrony rather than RAC.  See the rpc_rac(3n) manual page
98	for details.
99
100
101ROADMAP
102
103The directory hierarchy is as follows:
104
105    cmd/        Utilities
106    cmd/rpcgen      The RPC Language compiler (for .x files)
107    cmd/rpcbind     The RPC bindery and portmapper
108    cmd/rpcinfo     RPC bindery query utility
109    cmd/keyserv     The Secure RPC keyserver
110    cmd/demo        Some simple ONC demo services
111
112    doc/        Postscript versions of ONC documentation
113
114    head/       Header files
115    head/rpcsvc     RPCL (.x) specifications for various ONC services, and
116                    header files.
117
118    lib/        Libraries
119    lib/librpc      The RPC and XDR library
120    lib/librac      The Remote Asynchronous Calls (RAC) library
121
122    man/        Manual pages for the RPC library and utilities.
123
124    uts/common/rpc      RPC header files
125
126
127
128BUILD INSTRUCTIONS
129
130Prior to building the release, you must define the SRC environment variable
131to be the path to the top-level Makefile.  For example, if /usr/src/tirpcsrc
132is where to top-level Makefile is located, execute this command prior to
133building the release:
134
135        setenv SRC /usr/src/tirpcsrc        (csh)
136or
137        SRC=/usr/src/tirpcsrc; export SRC   (sh)
138
139The sources in the lib directory depend on header files installed from head
140and uts/common/rpc, and the programs in the cmd directory depend on libraries
141from lib.  Therefore, you should do a "make install" to build the release.
142
143The top-level Makefile builds the release.  The "ROOT" macro defines where the
144headers and libraries are installed.  The default for ROOT is "/proto".  You
145may change this by either modifiying Makefile.master, or issuing the build
146command with a new definition for ROOT:
147
148        make install ROOT=/opt/onc
149
150You will of course need write privileges for the destination directory.
151The headers, libraries and executables will be built and installed under the
152ROOT.
153
154
155The demonstration services in the demo directory are not built by the
156top-level "make install" command.  To build these, cd to the cmd/demo
157directory and enter "make".  The four services will be built.
158RPCGEN MUST BE INSTALLED in a path that make can find.  To run the
159services, rpcbind must be running, then invoke the service
160(you probably will want to put it in the background).  rpcinfo can be
161used to check that the service succeeded in getting registered with
162rpcbind, and to ping the service (see rpcinfo's man page).  You can
163then use the corresponding client program to exercise the service.
164
165
166BUILDING ONC APPLICATIONS
167
168See the Makefiles in the demonstration services for examples of building
169ONC applications with this release.  The $(ROOT)/usr/include directory
170must be included in the compiler header file search path (-I), and the
171$(ROOT)/usr/lib directory must be included in the linker library file search
172path (-L).  Also, to run executables built dynamically, the shared library
173search path (LD_LIBRARY_PATH) must also include $(ROOT)/usr/lib.  In addition
174to linking in this release's librpc (via -lrpc), you must also link with
175Solaris's libnsl (-lnsl) and the US domestic version of libcrypt (-lcrypt).
176