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