Revision 14063,
1.2 KB
checked in by danw, 25 years ago
(diff) |
get_message, formerly in athena/bin/gms
|
Rev | Line | |
---|
[14063] | 1 | /* Copyright 1988, 1998 by the Massachusetts Institute of Technology. |
---|
| 2 | * |
---|
| 3 | * Permission to use, copy, modify, and distribute this |
---|
| 4 | * software and its documentation for any purpose and without |
---|
| 5 | * fee is hereby granted, provided that the above copyright |
---|
| 6 | * notice appear in all copies and that both that copyright |
---|
| 7 | * notice and this permission notice appear in supporting |
---|
| 8 | * documentation, and that the name of M.I.T. not be used in |
---|
| 9 | * advertising or publicity pertaining to distribution of the |
---|
| 10 | * software without specific, written prior permission. |
---|
| 11 | * M.I.T. makes no representations about the suitability of |
---|
| 12 | * this software for any purpose. It is provided "as is" |
---|
| 13 | * without express or implied warranty. |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | static const char rcsid[] = "$Id: hesiod_errors.c,v 1.1 1999-12-08 22:06:45 danw Exp $"; |
---|
| 17 | |
---|
| 18 | #include "globalmessage.h" |
---|
| 19 | #include "hesiod_err.h" |
---|
| 20 | #include <hesiod.h> |
---|
| 21 | |
---|
| 22 | Code_t hesiod_error(void) |
---|
| 23 | { |
---|
| 24 | init_hes_err_tbl(); |
---|
| 25 | |
---|
| 26 | switch(hes_error()) { |
---|
| 27 | case HES_ER_UNINIT: |
---|
| 28 | return(HESIOD_ER_UNINIT); |
---|
| 29 | case HES_ER_NOTFOUND: |
---|
| 30 | return(HESIOD_ER_NOTFOUND); |
---|
| 31 | case HES_ER_CONFIG: |
---|
| 32 | return(HESIOD_ER_CONFIG); |
---|
| 33 | case HES_ER_NET: |
---|
| 34 | return(HESIOD_ER_NET); |
---|
| 35 | case HES_ER_OK: |
---|
| 36 | return(HESIOD_ER_OK); |
---|
| 37 | default: |
---|
| 38 | return(HESIOD_ER_INVALID); |
---|
| 39 | } |
---|
| 40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.