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