1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19: #ifndef _NIS_NSS_NIS_H
20: #define _NIS_NSS_NIS_H 1
21:
22: #include <rpcsvc/ypclnt.h>
23:
24: #include "nsswitch.h"
25:
26:
27:
28: extern const enum nss_status __yperr2nss_tab[] attribute_hidden;
29: extern const unsigned int __yperr2nss_count attribute_hidden;
30:
31: static inline enum nss_status
32: yperr2nss (int errval)
33: {
34: if ((unsigned int) errval >= __yperr2nss_count)
35: return NSS_STATUS_UNAVAIL;
36: return __yperr2nss_tab[(unsigned int) errval];
37: }
38:
39:
40: struct response_t
41: {
42: struct response_t *next;
43: size_t size;
44: char mem[0];
45: };
46:
47: typedef struct intern_t
48: {
49: struct response_t *start;
50: struct response_t *next;
51: size_t offset;
52: } intern_t;
53:
54:
55: extern int _nis_saveit (int instatus, char *inkey, int inkeylen, char *inval,
56: int invallen, char *indata) attribute_hidden;
57:
58:
59: #endif