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