ypclnt.h
01: 
02: 
03: <kukuk@suse.de>
04: 
05: 
06: 
07: 
08: 
09: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: #ifndef __RPCSVC_YPCLNT_H__
22: #define __RPCSVC_YPCLNT_H__
23: 
24: #include <features.h>
25: 
26: 
27: #define YPERR_SUCCESS   0               
28: #define YPERR_BADARGS   1               
29: #define YPERR_RPC       2               
30: #define YPERR_DOMAIN    3               
31: #define YPERR_MAP       4               
32: #define YPERR_KEY       5               
33: #define YPERR_YPERR     6               
34: #define YPERR_RESRC     7               
35: #define YPERR_NOMORE    8               
36: #define YPERR_PMAP      9               
37: #define YPERR_YPBIND    10              
38: #define YPERR_YPSERV    11              
39: #define YPERR_NODOM     12              
40: #define YPERR_BADDB     13              
41: #define YPERR_VERS      14              
42: #define YPERR_ACCESS    15              
43: #define YPERR_BUSY      16              
44: 
45: 
46: #define YPOP_CHANGE     1               
47: #define YPOP_INSERT     2               
48: #define YPOP_DELETE     3               
49: #define YPOP_STORE      4               
50: 
51: __BEGIN_DECLS
52: 
53: 
54: struct ypall_callback
55:   {
56:     int (*foreach) (int __status, char *__key, int __keylen,
57:                     char *__val, int __vallen, char *__data);
58:     char *data;
59:   };
60: 
61: 
62: extern int yp_bind (__const char *) __THROW;
63: extern void yp_unbind (__const char *) __THROW;
64: extern int yp_get_default_domain (char **) __THROW;
65: extern int yp_match (__const char *, __const char *, __const char *,
66:                      __const int, char **, int *) __THROW;
67: extern int yp_first (__const char *, __const char *, char **,
68:                      int *, char **, int *) __THROW;
69: extern int yp_next (__const char *, __const char *, __const char *,
70:                     __const int, char **, int *, char **, int *) __THROW;
71: extern int yp_master (__const char *, __const char *, char **) __THROW;
72: extern int yp_order (__const char *, __const char *, unsigned int *) __THROW;
73: extern int yp_all (__const char *, __const char *,
74:                    __const struct ypall_callback *) __THROW;
75: extern __const char *yperr_string (__const int) __THROW;
76: extern __const char *ypbinderr_string (__const int) __THROW;
77: extern int ypprot_err (__const int) __THROW;
78: extern int yp_update (char *, char *, unsigned int,  char *,
79:                       int, char *, int) __THROW;
80: #if 0
81: extern int yp_maplist (__const char *, struct ypmaplist **) __THROW;
82: #endif
83: 
84: 
85: extern int __yp_check (char **) __THROW;
86: 
87: __END_DECLS
88: 
89: #endif  
90: 
      
      
      
      
   
      
      
         
            
            © Andrew Scott 2006 -
            2025, 
            All Rights Reserved