Home | History | Annotate | Download | only in ss
      1 /*
      2  * ss_err.c:
      3  * This file is automatically generated; please do not edit it.
      4  */
      5 
      6 #include <stdlib.h>
      7 
      8 #define N_(a) a
      9 
     10 static const char * const text[] = {
     11 	N_(	"Subsystem aborted"),
     12 	N_(	"Version mismatch"),
     13 	N_(	"No current invocation"),
     14 	N_(	"No info directory"),
     15 	N_(	"Command not found"),
     16 	N_(	"Command line aborted"),
     17 	N_(	"End-of-file reached"),
     18 	N_(	"Permission denied"),
     19 	N_(	"Request table not found"),
     20 	N_(	"No info available"),
     21 	N_(	"Shell escapes are disabled"),
     22 	N_(	"Sorry, this request is not yet implemented"),
     23     0
     24 };
     25 
     26 struct error_table {
     27     char const * const * msgs;
     28     long base;
     29     int n_msgs;
     30 };
     31 struct et_list {
     32     struct et_list *next;
     33     const struct error_table * table;
     34 };
     35 extern struct et_list *_et_list;
     36 
     37 const struct error_table et_ss_error_table = { text, 748800L, 12 };
     38 
     39 static struct et_list link = { 0, 0 };
     40 
     41 void initialize_ss_error_table_r(struct et_list **list);
     42 void initialize_ss_error_table(void);
     43 
     44 void initialize_ss_error_table(void) {
     45     initialize_ss_error_table_r(&_et_list);
     46 }
     47 
     48 /* For Heimdal compatibility */
     49 void initialize_ss_error_table_r(struct et_list **list)
     50 {
     51     struct et_list *et, **end;
     52 
     53     for (end = list, et = *list; et; end = &et->next, et = et->next)
     54         if (et->table->msgs == text)
     55             return;
     56     et = malloc(sizeof(struct et_list));
     57     if (et == 0) {
     58         if (!link.table)
     59             et = &link;
     60         else
     61             return;
     62     }
     63     et->table = &et_ss_error_table;
     64     et->next = 0;
     65     *end = et;
     66 }
     67