* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: result.h,v 1.2 2001/03/27 20:08:10 bwelling Exp $ */
+/* $Id: result.h,v 1.3 2001/03/28 23:11:41 bwelling Exp $ */
#ifndef ISCCC_RESULT_H
#define ISCCC_RESULT_H 1
#define ISCCC_R_NRESULTS 3 /* Number of results */
-#define ISCCC_RESULT_OSBASE 0x01000000
-#define ISCCC_RESULT_OSMASK 0x00ffffff
-
ISC_LANG_BEGINDECLS
const char *
void
isccc_result_register(void);
-isc_result_t
-isccc_result_fromerrno(int ecode);
-/*
- * Convert a UNIX errno into a isc_result_t.
- */
-
ISC_LANG_ENDDECLS
#endif /* ISCCC_RESULT_H */
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: result.c,v 1.2 2001/03/27 20:08:00 bwelling Exp $ */
+/* $Id: result.c,v 1.3 2001/03/28 23:11:40 bwelling Exp $ */
#include <config.h>
isccc_result_register(void) {
initialize();
}
-
-isc_result_t
-isccc_result_fromerrno(int ecode) {
- /*
- * Convert a UNIX errno into a isc_result_t.
- */
- if (ecode == 0)
- return (ISC_R_SUCCESS);
- else if (ecode >= ISCCC_RESULT_OSBASE || ecode < 0)
- return (ISC_R_FAILURE);
- return (ISCCC_RESULT_OSBASE | ecode);
-}