source: trunk/athena/bin/gms/hesiod_errors.c @ 1472

Revision 1472, 1000 bytes checked in by eichin, 36 years ago (diff)
Initial revision
Line 
1/* This file is part of the Project Athena Global Message System.
2 * Created by: Mark W. Eichin <eichin@athena.mit.edu>
3 * $Source: /afs/dev.mit.edu/source/repository/athena/bin/gms/hesiod_errors.c,v $
4 * $Author: eichin $
5 *
6 *      Copyright (c) 1988 by the Massachusetts Institute of Technology.
7 *      For copying and distribution information, see the file
8 *      "mit-copyright.h".
9 */
10#include <mit-copyright.h>
11#ifndef lint
12static char rcsid_hes_errors_c[] = "$Header: /afs/dev.mit.edu/source/repository/athena/bin/gms/hesiod_errors.c,v 1.1 1988-09-20 21:48:18 eichin Exp $";
13#endif lint
14
15#include "hesiod_err.h"
16#include <hesiod.h>
17
18Code_t hesiod_error()
19{
20  init_hes_err_tbl();
21 
22  switch(hes_error()) {
23  case HES_ER_UNINIT:
24    return(HESIOD_ER_UNINIT);
25  case HES_ER_NOTFOUND:
26    return(HESIOD_ER_NOTFOUND);
27  case HES_ER_CONFIG:
28    return(HESIOD_ER_CONFIG);
29  case HES_ER_NET:
30    return(HESIOD_ER_NET);
31  case HES_ER_OK:
32    return(HESIOD_ER_OK);
33  default:
34    return(HESIOD_ER_INVALID);
35  }
36}
Note: See TracBrowser for help on using the repository browser.