1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20: #ifndef __NIS_INTERN_H
21:
22: #define __NIS_INTERN_H
23: #include <features.h>
24:
25:
26:
27:
28: #ifndef __NIS_PING_RETRY
29: # define __NIS_PING_RETRY 2
30: #endif
31:
32: #ifndef __NIS_PING_TIMEOUT_START
33: # define __NIS_PING_TIMEOUT_START 3
34: #endif
35:
36: #ifndef __NIS_PING_TIMEOUT_INCREMENT
37: # define __NIS_PING_TIMEOUT_INCREMENT 3
38: #endif
39:
40:
41: __BEGIN_DECLS
42:
43: struct nis_cb
44: {
45: nis_server *serv;
46: SVCXPRT *xprt;
47: int sock;
48: int nomore;
49: nis_error result;
50: int (*callback) (const_nis_name, const nis_object *, const void *);
51: const void *userdata;
52: };
53: typedef struct nis_cb nis_cb;
54:
55: extern unsigned long int inetstr2int (const char *str);
56: extern long int __nis_findfastest (dir_binding *bind);
57: extern nis_error __do_niscall2 (const nis_server *serv, u_int serv_len,
58: u_long prog, xdrproc_t xargs, caddr_t req,
59: xdrproc_t xres, caddr_t resp,
60: unsigned int flags, nis_cb *cb);
61: extern nis_error __do_niscall (const_nis_name name, u_long prog,
62: xdrproc_t xargs, caddr_t req,
63: xdrproc_t xres, caddr_t resp,
64: unsigned int flags, nis_cb *cb);
65: extern nis_error __do_niscall3 (dir_binding *dbp, u_long prog,
66: xdrproc_t xargs, caddr_t req,
67: xdrproc_t xres, caddr_t resp,
68: unsigned int flags, nis_cb *cb);
69: libnsl_hidden_proto (__do_niscall3)
70:
71: extern u_short __pmap_getnisport (struct sockaddr_in *address, u_long program,
72: u_long version, u_int protocol);
73:
74:
75: extern nis_error __nis_do_callback (struct dir_binding *bptr,
76: netobj *cookie, struct nis_cb *cb);
77: extern struct nis_cb *__nis_create_callback
78: (int (*callback)(const_nis_name, const nis_object *, const void *),
79: const void *userdata, unsigned int flags);
80: extern nis_error __nis_destroy_callback (struct nis_cb *cb);
81:
82: __END_DECLS
83:
84: #endif