hesiod.h revision 1.2 1 1.2 lukem /* $NetBSD: hesiod.h,v 1.2 1999/01/15 12:28:26 lukem Exp $ */
2 1.2 lukem
3 1.2 lukem /* This file contains definitions for use by the Hesiod name service and
4 1.2 lukem * applications.
5 1.2 lukem *
6 1.2 lukem * Copyright (C) 1989 by the Massachusetts Institute of Technology
7 1.2 lukem *
8 1.2 lukem * Export of software employing encryption from the United States of
9 1.2 lukem * America is assumed to require a specific license from the United
10 1.2 lukem * States Government. It is the responsibility of any person or
11 1.2 lukem * organization contemplating export to obtain such a license before
12 1.2 lukem * exporting.
13 1.2 lukem *
14 1.2 lukem * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
15 1.2 lukem * distribute this software and its documentation for any purpose and
16 1.2 lukem * without fee is hereby granted, provided that the above copyright
17 1.2 lukem * notice appear in all copies and that both that copyright notice and
18 1.2 lukem * this permission notice appear in supporting documentation, and that
19 1.2 lukem * the name of M.I.T. not be used in advertising or publicity pertaining
20 1.2 lukem * to distribution of the software without specific, written prior
21 1.2 lukem * permission. M.I.T. makes no representations about the suitability of
22 1.2 lukem * this software for any purpose. It is provided "as is" without express
23 1.2 lukem * or implied warranty.
24 1.2 lukem *
25 1.2 lukem * Original version by Steve Dyer, IBM/Project Athena.
26 1.2 lukem *
27 1.2 lukem */
28 1.2 lukem #ifndef _HESIOD_H_
29 1.2 lukem #define _HESIOD_H_
30 1.2 lukem
31 1.2 lukem /* Configuration information. */
32 1.2 lukem
33 1.2 lukem #ifndef _PATH_HESIOD_CONF /* Configuration file. */
34 1.2 lukem #define _PATH_HESIOD_CONF "/etc/hesiod.conf"
35 1.2 lukem #endif
36 1.2 lukem
37 1.2 lukem #define DEF_RHS "" /* Defaults if HESIOD_CONF */
38 1.2 lukem #define DEF_LHS "" /* file is not present. */
39 1.2 lukem
40 1.2 lukem /* Error codes. */
41 1.2 lukem
42 1.2 lukem #define HES_ER_UNINIT -1 /* uninitialized */
43 1.2 lukem #define HES_ER_OK 0 /* no error */
44 1.2 lukem #define HES_ER_NOTFOUND 1 /* Hesiod name not found by server */
45 1.2 lukem #define HES_ER_CONFIG 2 /* local problem (no config file?) */
46 1.2 lukem #define HES_ER_NET 3 /* network problem */
47 1.2 lukem
48 1.2 lukem /* Declaration of routines */
49 1.2 lukem #include <sys/cdefs.h>
50 1.2 lukem
51 1.2 lukem __BEGIN_DECLS
52 1.2 lukem char *hes_to_bind __P((char *, char *));
53 1.2 lukem char **hes_resolve __P((char *, char *));
54 1.2 lukem int hes_error __P((void));
55 1.2 lukem void hes_free __P((char **));
56 1.2 lukem __END_DECLS
57 1.2 lukem
58 1.2 lukem #endif /* ! _HESIOD_H_ */
59