File indexing completed on 2025-01-18 10:12:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #ifndef __RPCSVC_YPCLNT_H__
0021 #define __RPCSVC_YPCLNT_H__
0022
0023
0024 #define YPERR_SUCCESS 0
0025 #define YPERR_BADARGS 1
0026 #define YPERR_RPC 2
0027 #define YPERR_DOMAIN 3
0028 #define YPERR_MAP 4
0029 #define YPERR_KEY 5
0030 #define YPERR_YPERR 6
0031 #define YPERR_RESRC 7
0032 #define YPERR_NOMORE 8
0033 #define YPERR_PMAP 9
0034 #define YPERR_YPBIND 10
0035 #define YPERR_YPSERV 11
0036 #define YPERR_NODOM 12
0037 #define YPERR_BADDB 13
0038 #define YPERR_VERS 14
0039 #define YPERR_ACCESS 15
0040 #define YPERR_BUSY 16
0041
0042
0043 #define YPOP_CHANGE 1
0044 #define YPOP_INSERT 2
0045 #define YPOP_DELETE 3
0046 #define YPOP_STORE 4
0047
0048 #ifdef __cplusplus
0049 extern "C" {
0050 #endif
0051
0052
0053 struct ypall_callback
0054 {
0055 int (*foreach) (int __status, char *__key, int __keylen,
0056 char *__val, int __vallen, char *__data);
0057 char *data;
0058 };
0059
0060
0061 extern int yp_bind (const char *);
0062 extern void yp_unbind (const char *);
0063 extern int yp_get_default_domain (char **);
0064 extern int yp_match (const char *, const char *, const char *,
0065 const int, char **, int *);
0066 extern int yp_first (const char *, const char *, char **,
0067 int *, char **, int *);
0068 extern int yp_next (const char *, const char *, const char *,
0069 const int, char **, int *, char **, int *);
0070 extern int yp_master (const char *, const char *, char **);
0071 extern int yp_order (const char *, const char *, unsigned int *);
0072 extern int yp_all (const char *, const char *,
0073 const struct ypall_callback *);
0074 extern const char *yperr_string (const int);
0075 extern const char *ypbinderr_string (const int);
0076 extern int ypprot_err (const int);
0077 extern int yp_update (char *, char *, unsigned int, char *,
0078 int, char *, int);
0079
0080 #if 0
0081 extern int yp_maplist (const char *, struct ypmaplist **);
0082 #endif
0083
0084
0085 extern int __yp_check (char **);
0086
0087 #ifdef __cplusplus
0088 }
0089 #endif
0090
0091 #endif