1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
|
'\" te
.\" Copyright 2014 Nexenta Systems, Inc. All Rights Reserved.
.\" Copyright (c) 2000, Sun Microsystems, Inc. All Rights Reserved
.\" Copyright 1989 AT&T
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH RPC 3NSL "Nov 24, 2014"
.SH NAME
rpc \- library routines for remote procedure calls
.SH SYNOPSIS
.LP
.nf
\fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lnsl\fR [ \fIlibrary\fR ... ]
#include <rpc/rpc.h>
#include <netconfig.h>
.fi
.SH DESCRIPTION
.LP
These routines allow C language programs to make procedure calls on other
machines across a network. First, the client sends a request to the server. On
receipt of the request, the server calls a dispatch routine to perform the
requested service, and then sends back a reply.
.sp
.LP
All \fBRPC\fR routines require the header \fB<rpc/rpc.h>\fR\&. Routines that
take a \fBnetconfig\fR structure also require that \fB<netconfig.h>\fR be
included. Applications using \fBRPC\fR and \fBXDR\fR routines should be
linked with the \fBlibnsl\fR library.
.SS "Multithread Considerations"
.LP
In the case of multithreaded applications, the \fB-mt\fR option must be
specified on the command line at compilation time to enable a thread-specific
version of \fBrpc_createerr()\fR. See \fBrpc_clnt_create\fR(3NSL) and
\fBthreads\fR(7).
.sp
.LP
When used in multithreaded applications, client-side routines are MT-Safe.
\fBCLIENT\fR handles can be shared between threads; however, in this
implementation, requests by different threads are serialized (that is, the
first request will receive its results before the second request is sent). See
\fBrpc_clnt_create\fR(3NSL).
.sp
.LP
When used in multithreaded applications, server-side routines are usually
Unsafe. In this implementation the service transport handle, \fBSVCXPRT\fR
contains a single data area for decoding arguments and encoding results. See
\fBrpc_svc_create\fR(3NSL). Therefore, this structure cannot be freely shared
between threads that call functions that do this. Routines that are affected
by this restriction are marked as unsafe for MT applications. See
\fBrpc_svc_calls\fR(3NSL).
.SS "Nettype"
.LP
Some of the high-level \fBRPC\fR interface routines take a \fInettype\fR string
as one of the parameters (for example, \fBclnt_create()\fR, \fBsvc_create()\fR,
\fBrpc_reg()\fR, \fBrpc_call()\fR). This string defines a class of transports
which can be used for a particular application.
.sp
.LP
\fInettype\fR can be one of the following:
.sp
.ne 2
.na
\fB\fBnetpath\fR\fR
.ad
.RS 14n
Choose from the transports which have been indicated by their token names in
the \fBNETPATH\fR environment variable. If \fBNETPATH\fR is unset or
\fINULL\fR, it defaults to \fBvisible\fR. \fBnetpath\fR is the default
\fInettype\fR.
.RE
.sp
.ne 2
.na
\fB\fBvisible\fR\fR
.ad
.RS 14n
Choose the transports which have the visible flag (\fBv\fR) set in the
\fB/etc/netconfig\fR file.
.RE
.sp
.ne 2
.na
\fB\fBcircuit_v\fR\fR
.ad
.RS 14n
This is same as \fBvisible\fR except that it chooses only the connection
oriented transports (semantics \fBtpi_cots\fR or \fBtpi_cots_ord\fR) from the
entries in the \fB/etc/netconfig\fR file.
.RE
.sp
.ne 2
.na
\fB\fBdatagram_v\fR\fR
.ad
.RS 14n
This is same as \fBvisible\fR except that it chooses only the connectionless
datagram transports (semantics \fBtpi_clts\fR) from the entries in the
\fB/etc/netconfig\fR file.
.RE
.sp
.ne 2
.na
\fB\fBcircuit_n\fR\fR
.ad
.RS 14n
This is same as \fBnetpath\fR except that it chooses only the connection
oriented datagram transports (semantics \fBtpi_cots\fR or \fBtpi_cots_ord\fR).
.RE
.sp
.ne 2
.na
\fB\fBdatagram_n\fR\fR
.ad
.RS 14n
This is same as \fBnetpath\fR except that it chooses only the connectionless
datagram transports (semantics \fBtpi_clts\fR).
.RE
.sp
.ne 2
.na
\fB\fBudp\fR\fR
.ad
.RS 14n
This refers to Internet \fBUDP.\fR
.RE
.sp
.ne 2
.na
\fB\fBtcp\fR\fR
.ad
.RS 14n
This refers to Internet \fBTCP.\fR
.RE
.sp
.LP
If \fInettype\fR is \fINULL\fR, it defaults to \fBnetpath\fR. The transports
are tried in left to right order in the \fBNETPATH\fR variable or in top to
down order in the \fB/etc/netconfig\fR file.
.SS "Derived Types"
.LP
In a 64-bit environment, the derived types are defined as follows:
.sp
.sp
.TS
l l l
l l l .
\fBtypedef\fR \fBuint32_t\fR \fBrpcprog_t;\fR
\fBtypedef\fR \fBuint32_t\fR \fBrpcvers_t;\fR
\fBtypedef\fR \fBuint32_t\fR \fBrpcproc_t;\fR
\fBtypedef\fR \fBuint32_t\fR \fBrpcprot_t;\fR
\fBtypedef\fR \fBuint32_t\fR \fBrpcport_t;\fR
\fBtypedef\fR \fBint32_t\fR \fBrpc_inline_t;\fR
.TE
.sp
.LP
In a 32-bit environment, the derived types are defined as follows:
.sp
.sp
.TS
l l l
l l l .
\fBtypedef\fR \fBunsigned long\fR \fBrpcprog_t;\fR
\fBtypedef\fR \fBunsigned long\fR \fBrpcvers_t;\fR
\fBtypedef\fR \fBunsigned long\fR \fBrpcproc_t;\fR
\fBtypedef\fR \fBunsigned long\fR \fBrpcprot_t;\fR
\fBtypedef\fR \fBunsigned long\fR \fBrpcport_t;\fR
\fBtypedef\fR \fBlong\fR \fBrpc_inline_t;\fR
.TE
.SS "Data Structures"
.LP
Some of the data structures used by the \fBRPC\fR package are shown below.
.SS "The \fBAUTH\fR Structure"
.in +2
.nf
union des_block {
struct {
u_int32 high;
u_int32 low;
} key;
char c[8];
};
typedef union des_block des_block;
extern bool_t xdr_des_block(\|);
/*
* Authentication info. Opaque to client.
*/
struct opaque_auth {
enum_t oa_flavor; /* flavor of auth */
caddr_t oa_base; /* address of more auth stuff */
uint_t oa_length; /* not to exceed MAX_AUTH_BYTES */
};
/*
* Auth handle, interface to client side authenticators.
*/
typedef struct {
struct opaque_auth ah_cred;
struct opaque_auth ah_verf;
union des_block ah_key;
struct auth_ops {
void(*ah_nextverf)(\|);
int(*ah_marshal)(\|); /* nextverf & serialize */
int(*ah_validate)(\|); /* validate verifier */
int(*ah_refresh)(\|); /* refresh credentials */
void(*ah_destroy)(\|); /* destroy this structure */
} *ah_ops;
caddr_t ah_private;
} AUTH;
.fi
.in -2
.SS "The \fBCLIENT\fR Structure"
.in +2
.nf
/*
* Client rpc handle.
* Created by individual implementations.
* Client is responsible for initializing auth.
*/
typedef struct {
AUTH *cl_auth; /* authenticator */
struct clnt_ops {
enum clnt_stat (*cl_call)(\|); /* call remote procedure */
void (*cl_abort)(\|); /* abort a call */
void (*cl_geterr)(\|); /* get specific error code */
bool_t (*cl_freeres)(\|); /* frees results */
void (*cl_destroy)(\|); /* destroy this structure */
bool_t (*cl_control)(\|); /* the ioctl(\|) of rpc */
int (*cl_settimers)(\|); /* set rpc level timers */
} *cl_ops;
caddr_t cl_private; /* private stuff */
char *cl_netid; /* network identifier */
char *cl_tp; /* device name */
} CLIENT;
.fi
.in -2
.SS "The \fBSVCXPRT\fR Structure"
.in +2
.nf
enum xprt_stat {
XPRT_DIED,
XPRT_MOREREQS,
XPRT_IDLE
};
/*
* Server side transport handle
*/
typedef struct {
int xp_fd; /* file descriptor for the
ushort_t xp_port; /* obsolete */
struct xp_ops {
bool_t (*xp_recv)(\|); /* receive incoming requests */
enum xprt_stat (*xp_stat)(\|); /* get transport status */
bool_t (*xp_getargs)(\|); /* get arguments */
bool_t (*xp_reply)(\|); /* send reply */
bool_t (*xp_freeargs)(\|); /* free mem allocated
for args */
void (*xp_destroy)(\|); /* destroy this struct */
} *xp_ops;
int xp_addrlen; /* length of remote addr.
Obsolete */
char *xp_tp; /* transport provider device
name */
char *xp_netid; /* network identifier */
struct netbuf xp_ltaddr; /* local transport address */
struct netbuf xp_rtaddr; /* remote transport address */
char xp_raddr[16]; /* remote address. Obsolete */
struct opaque_auth xp_verf; /* raw response verifier */
caddr_t xp_p1; /* private: for use
by svc ops */
caddr_t xp_p2; /* private: for use
by svc ops */
caddr_t xp_p3; /* private: for use
by svc lib */
int xp_type /* transport type */
} SVCXPRT;
.fi
.in -2
.SS "The \fBsvc_reg\fR Structure"
.in +2
.nf
struct svc_req {
rpcprog_t rq_prog; /* service program number */
rpcvers_t rq_vers; /* service protocol version */
rpcproc_t rq_proc; /* the desired procedure */
struct opaque_auth rq_cred; /* raw creds from the wire */
caddr_t rq_clntcred; /* read only cooked cred */
SVCXPRT *rq_xprt; /* associated transport */
};
.fi
.in -2
.SS "The \fBXDR\fR Structure"
.in +2
.nf
/*
* XDR operations.
* XDR_ENCODE causes the type to be encoded into the stream.
* XDR_DECODE causes the type to be extracted from the stream.
* XDR_FREE can be used to release the space allocated by an XDR_DECODE
* request.
*/
enum xdr_op {
XDR_ENCODE=0,
XDR_DECODE=1,
XDR_FREE=2
};
/*
* This is the number of bytes per unit of external data.
*/
#define BYTES_PER_XDR_UNIT (4)
#define RNDUP(x) ((((x) + BYTES_PER_XDR_UNIT - 1) /
BYTES_PER_XDR_UNIT) \e * BYTES_PER_XDR_UNIT)
/*
* A xdrproc_t exists for each data type which is to be encoded or
* decoded. The second argument to the xdrproc_t is a pointer to
* an opaque pointer. The opaque pointer generally points to a
* structure of the data type to be decoded. If this points to 0,
* then the type routines should allocate dynamic storage of the
* appropriate size and return it.
* bool_t (*xdrproc_t)(XDR *, caddr_t *);
*/
typedef bool_t (*xdrproc_t)(\|);
/*
* The XDR handle.
* Contains operation which is being applied to the stream,
* an operations vector for the particular implementation
*/
typedef struct {
enum xdr_op x_op; /* operation; fast additional param */
struct xdr_ops {
bool_t (*x_getlong)(\|); /* get long from underlying stream */
bool_t (*x_putlong)(\|); /* put long to underlying stream */
bool_t (*x_getbytes)(\|); /* get bytes from underlying stream */
bool_t (*x_putbytes)(\|); /* put bytes to underlying stream */
uint_t (*x_getpostn)(\|); /* returns bytes off from beginning */
bool_t (*x_setpostn)(\|); /* reposition the stream */
rpc_inline_t *(*x_inline)(\|); /* buf quick ptr to buffered data */
void (*x_destroy)(\|); /* free privates of this xdr_stream */
bool_t (*x_control)(\|); /* changed/retrieve client object info*/
bool_t (*x_getint32)(\|); /* get int from underlying stream */
bool_t (*x_putint32)(\|); /* put int to underlying stream */
} *x_ops;
caddr_t x_public; /* users' data */
caddr_t x_priv /* pointer to private data */
caddr_t x_base; /* private used for position info */
int x_handy; /* extra private word */
XDR;
.fi
.in -2
.SS "Index to Routines"
.LP
The following table lists \fBRPC\fR routines and the manual reference pages on
which they are described:
.sp
.ne 2
.na
\fB\fBRPC Routine\fR\fR
.ad
.RS 27n
\fBManual Reference Page\fR
.RE
.sp
.ne 2
.na
\fB\fBauth_destroy\fR\fR
.ad
.RS 27n
.BR rpc_clnt_auth (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBauthdes_create\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBauthdes_getucred\fR\fR
.ad
.RS 27n
.BR secure_rpc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBauthdes_seccreate\fR\fR
.ad
.RS 27n
.BR secure_rpc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBauthnone_create\fR\fR
.ad
.RS 27n
.BR rpc_clnt_auth (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBauthsys_create\fR\fR
.ad
.RS 27n
.BR rpc_clnt_auth (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBauthsys_create_default\fR\fR
.ad
.RS 27n
.BR rpc_clnt_auth (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBauthunix_create\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBauthunix_create_default\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBcallrpc\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_broadcast\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_call\fR\fR
.ad
.RS 27n
.BR rpc_clnt_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_control\fR\fR
.ad
.RS 27n
.BR rpc_clnt_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_create\fR\fR
.ad
.RS 27n
.BR rpc_clnt_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_destroy\fR\fR
.ad
.RS 27n
.BR rpc_clnt_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_dg_create\fR\fR
.ad
.RS 27n
.BR rpc_clnt_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_freeres\fR\fR
.ad
.RS 27n
.BR rpc_clnt_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_geterr\fR\fR
.ad
.RS 27n
.BR rpc_clnt_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_pcreateerror\fR\fR
.ad
.RS 27n
.BR rpc_clnt_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_perrno\fR\fR
.ad
.RS 27n
.BR rpc_clnt_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_perror\fR\fR
.ad
.RS 27n
.BR rpc_clnt_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_raw_create\fR\fR
.ad
.RS 27n
.BR rpc_clnt_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_spcreateerror\fR\fR
.ad
.RS 27n
.BR rpc_clnt_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_sperrno\fR\fR
.ad
.RS 27n
.BR rpc_clnt_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_sperror\fR\fR
.ad
.RS 27n
.BR rpc_clnt_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_tli_create\fR\fR
.ad
.RS 27n
.BR rpc_clnt_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_tp_create\fR\fR
.ad
.RS 27n
.BR rpc_clnt_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnt_vc_create\fR\fR
.ad
.RS 27n
.BR rpc_clnt_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclntraw_create\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclnttcp_create\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclntudp_bufcreate\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBclntudp_create\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBget_myaddress\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBgetnetname\fR\fR
.ad
.RS 27n
.BR secure_rpc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBhost2netname\fR\fR
.ad
.RS 27n
.BR secure_rpc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBkey_decryptsession\fR\fR
.ad
.RS 27n
.BR secure_rpc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBkey_encryptsession\fR\fR
.ad
.RS 27n
.BR secure_rpc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBkey_gendes\fR\fR
.ad
.RS 27n
.BR secure_rpc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBkey_setsecret\fR\fR
.ad
.RS 27n
.BR secure_rpc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBnetname2host\fR\fR
.ad
.RS 27n
.BR secure_rpc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBnetname2user\fR\fR
.ad
.RS 27n
.BR secure_rpc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBpmap_getmaps\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBpmap_getport\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBpmap_rmtcall\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBpmap_set\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBpmap_unset\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBregisterrpc\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBrpc_broadcast\fR\fR
.ad
.RS 27n
.BR rpc_clnt_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBrpc_broadcast_exp\fR\fR
.ad
.RS 27n
.BR rpc_clnt_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBrpc_call\fR\fR
.ad
.RS 27n
.BR rpc_clnt_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBrpc_reg\fR\fR
.ad
.RS 27n
.BR rpc_svc_reg (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_create\fR\fR
.ad
.RS 27n
.BR rpc_svc_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_destroy\fR\fR
.ad
.RS 27n
.BR rpc_svc_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_dg_create\fR\fR
.ad
.RS 27n
.BR rpc_svc_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_dg_enablecache\fR\fR
.ad
.RS 27n
.BR rpc_svc_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_fd_create\fR\fR
.ad
.RS 27n
.BR rpc_svc_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_fds\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_freeargs\fR\fR
.ad
.RS 27n
.BR rpc_svc_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_getargs\fR\fR
.ad
.RS 27n
.BR rpc_svc_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_getcaller\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_getreq\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_getreqset\fR\fR
.ad
.RS 27n
.BR rpc_svc_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_getrpccaller\fR\fR
.ad
.RS 27n
.BR rpc_svc_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_raw_create\fR\fR
.ad
.RS 27n
.BR rpc_svc_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_reg\fR\fR
.ad
.RS 27n
.BR rpc_svc_reg (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_register\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_run\fR\fR
.ad
.RS 27n
.BR rpc_svc_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_sendreply\fR\fR
.ad
.RS 27n
.BR rpc_svc_calls (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_tli_create\fR\fR
.ad
.RS 27n
.BR rpc_svc_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_tp_create\fR\fR
.ad
.RS 27n
.BR rpc_svc_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_unreg\fR\fR
.ad
.RS 27n
.BR rpc_svc_reg (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_unregister\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvc_vc_create\fR\fR
.ad
.RS 27n
.BR rpc_svc_create (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvcerr_auth\fR\fR
.ad
.RS 27n
.BR rpc_svc_err (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvcerr_decode\fR\fR
.ad
.RS 27n
.BR rpc_svc_err (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvcerr_noproc\fR\fR
.ad
.RS 27n
.BR rpc_svc_err (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvcerr_noprog\fR\fR
.ad
.RS 27n
.BR rpc_svc_err (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvcerr_progvers\fR\fR
.ad
.RS 27n
.BR rpc_svc_err (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvcerr_systemerr\fR\fR
.ad
.RS 27n
.BR rpc_svc_err (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvcerr_weakauth\fR\fR
.ad
.RS 27n
.BR rpc_svc_err (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvcfd_create\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvcraw_create\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvctcp_create\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvcudp_bufcreate\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBsvcudp_create\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBuser2netname\fR\fR
.ad
.RS 27n
.BR secure_rpc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBxdr_accepted_reply\fR\fR
.ad
.RS 27n
.BR rpc_xdr (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBxdr_authsys_parms\fR\fR
.ad
.RS 27n
.BR rpc_xdr (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBxdr_authunix_parms\fR\fR
.ad
.RS 27n
.BR rpc_soc (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBxdr_callhdr\fR\fR
.ad
.RS 27n
.BR rpc_xdr (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBxdr_callmsg\fR\fR
.ad
.RS 27n
.BR rpc_xdr (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBxdr_opaque_auth\fR\fR
.ad
.RS 27n
.BR rpc_xdr (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBxdr_rejected_reply\fR\fR
.ad
.RS 27n
.BR rpc_xdr (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBxdr_replymsg\fR\fR
.ad
.RS 27n
.BR rpc_xdr (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBxprt_register\fR\fR
.ad
.RS 27n
.BR rpc_svc_reg (3NSL)
.RE
.sp
.ne 2
.na
\fB\fBxprt_unregister\fR\fR
.ad
.RS 27n
.BR rpc_svc_reg (3NSL)
.RE
.SH FILES
.LP
\fB/etc/netconfig\fR
.SH ATTRIBUTES
.LP
See \fBattributes\fR(7) for descriptions of the following attributes:
.sp
.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
_
MT-Level MT-Safe with exceptions
.TE
.SH SEE ALSO
.LP
.BR getnetconfig (3NSL),
.BR getnetpath (3NSL),
.BR rpc_clnt_auth (3NSL),
.BR rpc_clnt_calls (3NSL),
.BR rpc_clnt_create (3NSL),
.BR rpc_svc_calls (3NSL),
.BR rpc_svc_create (3NSL),
.BR rpc_svc_err (3NSL),
.BR rpc_svc_reg (3NSL),
.BR rpc_xdr (3NSL),
.BR rpcbind (3NSL),
.BR secure_rpc (3NSL),
.BR xdr (3NSL),
.BR netconfig (5),
.BR rpc (5),
.BR attributes (7),
.BR environ (7),
.BR threads (7)
|