/* * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* * util/et/error_message.c * * Copyright 1987 by the Student Information Processing Board * of the Massachusetts Institute of Technology * * For copyright info, see "mit-sipb-copyright.h". */ #include #ifdef HAVE_STDLIB_H #include #endif #include #include #include "com_err.h" #include "mit-sipb-copyright.h" #include "internal.h" #include "error_message.h" static char buffer[25]; struct et_list * _et_list = (struct et_list *) NULL; const char * KRB5_CALLCONV error_message (code) long code; { int offset; long l_offset; long table_num; int started = 0; char *cp; l_offset = code & ((1<= 100) { *cp++ = '0' + offset / 100; offset %= 100; started++; } if (started || offset >= 10) { *cp++ = '0' + offset / 10; offset %= 10; } *cp++ = '0' + offset; *cp = '\0'; return(buffer); } int com_err_finish_init() { /* * SUNW14resync * Since the original SEAM (Solaris Kerberos) error_message() * has deviated substantially from MIT let's disable * com_err_initialize for now and revisit if necessary. */ /* return CALL_INIT_FUNCTION(com_err_initialize); */ return 0; }