12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #ifndef __RPCSVC_YPCLNT_H__
- #define __RPCSVC_YPCLNT_H__
- #include <features.h>
- #define YPERR_SUCCESS 0
- #define YPERR_BADARGS 1
- #define YPERR_RPC 2
- #define YPERR_DOMAIN 3
- #define YPERR_MAP 4
- #define YPERR_KEY 5
- #define YPERR_YPERR 6
- #define YPERR_RESRC 7
- #define YPERR_NOMORE 8
- #define YPERR_PMAP 9
- #define YPERR_YPBIND 10
- #define YPERR_YPSERV 11
- #define YPERR_NODOM 12
- #define YPERR_BADDB 13
- #define YPERR_VERS 14
- #define YPERR_ACCESS 15
- #define YPERR_BUSY 16
- #define YPOP_CHANGE 1
- #define YPOP_INSERT 2
- #define YPOP_DELETE 3
- #define YPOP_STORE 4
- __BEGIN_DECLS
- struct ypall_callback
- {
- int (*foreach) (int __status, char *__key, int __keylen,
- char *__val, int __vallen, char *__data);
- char *data;
- };
- extern int yp_bind (const char *) __THROW;
- extern void yp_unbind (const char *) __THROW;
- extern int yp_get_default_domain (char **) __THROW;
- extern int yp_match (const char *, const char *, const char *,
- const int, char **, int *) __THROW;
- extern int yp_first (const char *, const char *, char **,
- int *, char **, int *) __THROW;
- extern int yp_next (const char *, const char *, const char *,
- const int, char **, int *, char **, int *) __THROW;
- extern int yp_master (const char *, const char *, char **) __THROW;
- extern int yp_order (const char *, const char *, unsigned int *) __THROW;
- extern int yp_all (const char *, const char *,
- const struct ypall_callback *) __THROW;
- extern const char *yperr_string (const int) __THROW;
- extern const char *ypbinderr_string (const int) __THROW;
- extern int ypprot_err (const int) __THROW;
- extern int yp_update (char *, char *, unsigned int, char *,
- int, char *, int) __THROW;
- #if 0
- extern int yp_maplist (const char *, struct ypmaplist **) __THROW;
- #endif
- extern int __yp_check (char **) __THROW;
- __END_DECLS
- #endif
|