chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / sunrpc / proto.h
1 /****** rpc_clntout.c ******/
2
3 void write_stubs(void);
4 void printarglist(proc_list *proc, const char *result,
5                   const char *addargname, const char *addargtype);
6
7 /****** rpc_cout.c ******/
8
9 void emit (definition *def);
10
11 /****** rpc_hout.c ******/
12
13 void print_datadef(definition *def);
14 void print_funcdef(definition *def);
15 void pxdrfuncdecl(const char *name, int pointerp);
16 void pprocdef(proc_list *proc, version_list *vp,
17               const char *addargtype, int server_p, int mode);
18 void pdeclaration(const char *name, declaration *dec, int tab,
19                   const char *separator);
20 void print_xdr_func_def (char* name, int pointerp, int i);
21
22 /****** rpc_main.c ******/
23         /* nil */
24
25 /****** rpc_parse.c ******/
26 definition *get_definition(void);
27
28 /****** rpc_sample.c ******/
29 void write_sample_svc(definition *def);
30 int write_sample_clnt(definition *def);
31 void add_sample_msg(void);
32 void write_sample_clnt_main(void);
33
34 /****** rpc_scan.c ******/
35    /* see rpc_scan.h */
36
37 /****** rpc_svcout.c ******/
38 int nullproc(const proc_list *proc);
39 void write_svc_aux(int nomain);
40 void write_msg_out(void);
41
42 /****** rpc_tblout.c ******/
43 void write_tables(void);
44
45 /****** rpc_util.c ******/
46 void reinitialize(void);
47 int streq(const char *a, const char *b);
48 void error(const char *msg) __attribute__ ((noreturn));
49 void crash(void) __attribute__ ((noreturn));
50 void tabify(FILE *f, int tab);
51 char *make_argname(const char *pname, const char *vname);
52 void add_type(int len, const char *type);
53
54 /* This header is the last one included in all rpc_*.c files,
55    so we define stuff for cross-rpcgen here to avoid conflicts with
56    $build's C library and $host's GLIBC.  */
57 #ifdef _CROSS_RPCGEN_
58
59 /* Rather then defining _GNU_SOURCE before including $build's <string.h>
60    we just declare stpcpy here.  */
61 extern char *stpcpy (char *, const char *);
62
63 /* Use $build's i18n support as we can't use $host's.  */
64 #define _(X) (gettext (X))
65
66 /* rpcgen sources check for __GNU_LIBRARY__ to tweak for GLIBC code
67    that rpcgen generates.  The proper fix would be to rename all those checks
68    to something like '#if defined(TWEAK_FOR_GLIBC) || 1'.  */
69 #ifndef __GNU_LIBRARY__
70 #define __GNU_LIBRARY__
71 #endif
72
73 #define REPORT_BUGS_TO ""
74 #define PKGVERSION ""
75
76 #endif