| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: ypclnt.h,v 1.14 2012/03/02 17:27:48 christos Exp $ */ | | 1 | /* $NetBSD: ypclnt.h,v 1.15 2016/01/22 23:23:13 dholland Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca> | | 4 | * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca> |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright | | 10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. | | 11 | * notice, this list of conditions and the following disclaimer. |
12 | * 2. Redistributions in binary form must reproduce the above copyright | | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the | | 13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. | | 14 | * documentation and/or other materials provided with the distribution. |
| @@ -19,26 +19,28 @@ | | | @@ -19,26 +19,28 @@ |
19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | | 19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
21 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 21 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
22 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 22 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
23 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 23 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
24 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 24 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
25 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 25 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
26 | * SUCH DAMAGE. | | 26 | * SUCH DAMAGE. |
27 | */ | | 27 | */ |
28 | | | 28 | |
29 | #ifndef _RPCSVC_YPCLNT_H_ | | 29 | #ifndef _RPCSVC_YPCLNT_H_ |
30 | #define _RPCSVC_YPCLNT_H_ | | 30 | #define _RPCSVC_YPCLNT_H_ |
31 | | | 31 | |
| | | 32 | #include <sys/cdefs.h> |
| | | 33 | |
32 | #define YPERR_BADARGS 1 /* args to function are bad */ | | 34 | #define YPERR_BADARGS 1 /* args to function are bad */ |
33 | #define YPERR_RPC 2 /* RPC failure */ | | 35 | #define YPERR_RPC 2 /* RPC failure */ |
34 | #define YPERR_DOMAIN 3 /* can't bind to a server for domain */ | | 36 | #define YPERR_DOMAIN 3 /* can't bind to a server for domain */ |
35 | #define YPERR_MAP 4 /* no such map in server's domain */ | | 37 | #define YPERR_MAP 4 /* no such map in server's domain */ |
36 | #define YPERR_KEY 5 /* no such key in map */ | | 38 | #define YPERR_KEY 5 /* no such key in map */ |
37 | #define YPERR_YPERR 6 /* some internal YP server or client error */ | | 39 | #define YPERR_YPERR 6 /* some internal YP server or client error */ |
38 | #define YPERR_RESRC 7 /* local resource allocation failure */ | | 40 | #define YPERR_RESRC 7 /* local resource allocation failure */ |
39 | #define YPERR_NOMORE 8 /* no more records in map database */ | | 41 | #define YPERR_NOMORE 8 /* no more records in map database */ |
40 | #define YPERR_PMAP 9 /* can't communicate with portmapper */ | | 42 | #define YPERR_PMAP 9 /* can't communicate with portmapper */ |
41 | #define YPERR_YPBIND 10 /* can't communicate with ypbind */ | | 43 | #define YPERR_YPBIND 10 /* can't communicate with ypbind */ |
42 | #define YPERR_YPSERV 11 /* can't communicate with ypserv */ | | 44 | #define YPERR_YPSERV 11 /* can't communicate with ypserv */ |
43 | #define YPERR_NODOM 12 /* local domain name not set */ | | 45 | #define YPERR_NODOM 12 /* local domain name not set */ |
44 | #define YPERR_BADDB 13 /* YP data base is bad */ | | 46 | #define YPERR_BADDB 13 /* YP data base is bad */ |