Ticket #6: com_err_hate.diff
File com_err_hate.diff, 8.8 kB (added by broder, 17 years ago) |
---|
-
debathena-moira/lib/krb_et.c
old new 3 3 * This file is automatically generated; please do not edit it. 4 4 */ 5 5 6 #include <stdlib.h> 6 #include <sys/types.h> 7 #include "krb_et.h" 7 8 8 9 static const char * const text[] = { 9 10 "Kerberos successful", … … 88 89 "Bad ticket file format", 89 90 "tf_init not called first", 90 91 "Bad Kerberos name format", 92 "krb", 91 93 0 92 94 }; 93 95 94 struct error_table {95 char const * const * msgs;96 long base;97 int n_msgs;98 };99 struct et_list {100 struct et_list *next;101 const struct error_table * table;102 };103 extern struct et_list *_et_list;104 105 96 const struct error_table et_krb_error_table = { text, 39525376L, 82 }; 106 107 static struct et_list link = { 0, 0 };108 109 void initialize_krb_error_table_r(struct et_list **list);110 void initialize_krb_error_table(void);111 112 void initialize_krb_error_table(void) {113 initialize_krb_error_table_r(&_et_list);114 }115 116 /* For Heimdal compatibility */117 void initialize_krb_error_table_r(struct et_list **list)118 {119 struct et_list *et, **end;120 121 for (end = list, et = *list; et; end = &et->next, et = et->next)122 if (et->table->msgs == text)123 return;124 et = malloc(sizeof(struct et_list));125 if (et == 0) {126 if (!link.table)127 et = &link;128 else129 return;130 }131 et->table = &et_krb_error_table;132 et->next = 0;133 *end = et;134 } -
debathena-moira/lib/krb_et.h
old new 3 3 * This file is automatically generated; please do not edit it. 4 4 */ 5 5 6 #include <et/com_err.h> 6 #ifndef __ERROR_TABLE_krb_H__ 7 #define __ERROR_TABLE_krb_H__ 8 9 #include <com_err.h> 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 extern const struct error_table et_krb_error_table; 16 17 #define initialize_krb_error_table() 7 18 8 19 #define KE_KSUCCESS (39525376L) 9 20 #define KE_KDC_NAME_EXP (39525377L) … … 87 98 #define KE_TKT_FIL_FMT (39525455L) 88 99 #define KE_TKT_FIL_INI (39525456L) 89 100 #define KE_KNAME_FMT (39525457L) 90 extern const struct error_table et_krb_error_table;91 extern void initialize_krb_error_table(void);92 93 /* For compatibility with Heimdal */94 extern void initialize_krb_error_table_r(struct et_list **list);95 96 101 #define ERROR_TABLE_BASE_krb (39525376L) 97 102 98 /* for compatibility with older versions... */ 99 #define init_krb_err_tbl initialize_krb_error_table 100 #define krb_err_base ERROR_TABLE_BASE_krb 103 #ifdef __cplusplus 104 } 105 #endif 106 107 #endif /* __ERROR_TABLE_krb_H__ */ -
debathena-moira/lib/mr_et.c
old new 3 3 * This file is automatically generated; please do not edit it. 4 4 */ 5 5 6 #include <stdlib.h> 6 #include <sys/types.h> 7 #include "mr_et.h" 7 8 8 9 static const char * const text[] = { 9 10 "Not connected to Moira server", … … 83 84 "The new container name is invalid", 84 85 "No such account number", 85 86 "Parent container does not exist", 87 "sms", 86 88 0 87 89 }; 88 90 89 struct error_table {90 char const * const * msgs;91 long base;92 int n_msgs;93 };94 struct et_list {95 struct et_list *next;96 const struct error_table * table;97 };98 extern struct et_list *_et_list;99 100 91 const struct error_table et_sms_error_table = { text, 47836416L, 77 }; 101 102 static struct et_list link = { 0, 0 };103 104 void initialize_sms_error_table_r(struct et_list **list);105 void initialize_sms_error_table(void);106 107 void initialize_sms_error_table(void) {108 initialize_sms_error_table_r(&_et_list);109 }110 111 /* For Heimdal compatibility */112 void initialize_sms_error_table_r(struct et_list **list)113 {114 struct et_list *et, **end;115 116 for (end = list, et = *list; et; end = &et->next, et = et->next)117 if (et->table->msgs == text)118 return;119 et = malloc(sizeof(struct et_list));120 if (et == 0) {121 if (!link.table)122 et = &link;123 else124 return;125 }126 et->table = &et_sms_error_table;127 et->next = 0;128 *end = et;129 } -
debathena-moira/lib/mr_et.h
old new 3 3 * This file is automatically generated; please do not edit it. 4 4 */ 5 5 6 #include <et/com_err.h> 6 #ifndef __ERROR_TABLE_sms_H__ 7 #define __ERROR_TABLE_sms_H__ 8 9 #include <com_err.h> 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 extern const struct error_table et_sms_error_table; 16 17 #define initialize_sms_error_table() 7 18 8 19 #define MR_NOT_CONNECTED (47836416L) 9 20 #define MR_CANT_CONNECT (47836417L) … … 82 93 #define MR_NEW_CONTAINER_NAME (47836490L) 83 94 #define MR_ACCOUNT_NUMBER (47836491L) 84 95 #define MR_CONTAINER_NO_PARENT (47836492L) 85 extern const struct error_table et_sms_error_table;86 extern void initialize_sms_error_table(void);87 88 /* For compatibility with Heimdal */89 extern void initialize_sms_error_table_r(struct et_list **list);90 91 96 #define ERROR_TABLE_BASE_sms (47836416L) 92 97 93 /* for compatibility with older versions... */ 94 #define init_sms_err_tbl initialize_sms_error_table 95 #define sms_err_base ERROR_TABLE_BASE_sms 98 #ifdef __cplusplus 99 } 100 #endif 101 102 #endif /* __ERROR_TABLE_sms_H__ */ -
debathena-moira/lib/ureg_err.c
old new 3 3 * This file is automatically generated; please do not edit it. 4 4 */ 5 5 6 #include <stdlib.h> 6 #include <sys/types.h> 7 #include "ureg_err.h" 7 8 8 9 static const char * const text[] = { 9 10 "User already registered", … … 24 25 "Enrolled in campus namespace.", 25 26 "Enrolled in campus namespace, not eligable for an Athena account.", 26 27 "Halfway enrolled in campus namespace.", 28 "ureg", 27 29 0 28 30 }; 29 31 30 struct error_table {31 char const * const * msgs;32 long base;33 int n_msgs;34 };35 struct et_list {36 struct et_list *next;37 const struct error_table * table;38 };39 extern struct et_list *_et_list;40 41 32 const struct error_table et_ureg_error_table = { text, -1094196992L, 18 }; 42 43 static struct et_list link = { 0, 0 };44 45 void initialize_ureg_error_table_r(struct et_list **list);46 void initialize_ureg_error_table(void);47 48 void initialize_ureg_error_table(void) {49 initialize_ureg_error_table_r(&_et_list);50 }51 52 /* For Heimdal compatibility */53 void initialize_ureg_error_table_r(struct et_list **list)54 {55 struct et_list *et, **end;56 57 for (end = list, et = *list; et; end = &et->next, et = et->next)58 if (et->table->msgs == text)59 return;60 et = malloc(sizeof(struct et_list));61 if (et == 0) {62 if (!link.table)63 et = &link;64 else65 return;66 }67 et->table = &et_ureg_error_table;68 et->next = 0;69 *end = et;70 } -
debathena-moira/lib/ureg_err.h
old new 3 3 * This file is automatically generated; please do not edit it. 4 4 */ 5 5 6 #include <et/com_err.h> 6 #ifndef __ERROR_TABLE_ureg_H__ 7 #define __ERROR_TABLE_ureg_H__ 8 9 #include <com_err.h> 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 extern const struct error_table et_ureg_error_table; 16 17 #define initialize_ureg_error_table() 7 18 8 19 #define UREG_ALREADY_REGISTERED (-1094196992L) 9 20 #define UREG_USER_NOT_FOUND (-1094196991L) … … 23 34 #define UREG_ENROLLED (-1094196977L) 24 35 #define UREG_ENROLL_NOT_ALLOWED (-1094196976L) 25 36 #define UREG_HALF_ENROLLED (-1094196975L) 26 extern const struct error_table et_ureg_error_table;27 extern void initialize_ureg_error_table(void);28 29 /* For compatibility with Heimdal */30 extern void initialize_ureg_error_table_r(struct et_list **list);31 32 37 #define ERROR_TABLE_BASE_ureg (-1094196992L) 33 38 34 /* for compatibility with older versions... */ 35 #define init_ureg_err_tbl initialize_ureg_error_table 36 #define ureg_err_base ERROR_TABLE_BASE_ureg 39 #ifdef __cplusplus 40 } 41 #endif 42 43 #endif /* __ERROR_TABLE_ureg_H__ */