1SYSERRLST(5)                  File Formats Manual                 SYSERRLST(5)
2
3
4

NAME

6       syserrlst - error message file format
7

DESCRIPTION

9       mkerrlst(1), creates error message files in the format described below.
10
11       An  ``error message file'' consists of a header, an array of structures
12       specifying the offset and length of each message, and the array of mes‐
13       sage strings separated by newlines.
14
15       The  message  strings are separated by newlines but the newline charac‐
16       ters are not included in the size of the message.  These newline  char‐
17       acters  serve only to make the file editable or printable (after strip‐
18       ping off the header).
19
20       The file format is:
21
22       /*
23        * Definitions used by the 'mkerrlst' program which creates error message
24        * files.
25        *
26        * The format of the file created is:
27        *
28        *   struct    ERRLSTHDR ehdr;
29        *   struct    ERRLST  emsg[num_of_messages];
30        *   struct    {
31        *        char msg[] = "error message string";
32        *        char lf = '0;
33        *        } [num_of_messages];
34        *
35        * Note:  the newlines are NOT included in the message lengths, the newlines
36        *        are present to make it easy to 'cat' or 'vi' the file.
37       */
38
39            struct    ERRLSTHDR
40                 {
41                 short     magic;
42                 short     maxmsgnum;
43                 short     maxmsglen;
44                 short     pad[5];        /* Reserved */
45                 };
46
47            struct    ERRLST
48                 {
49                 off_t     offmsg;
50                 short     lenmsg;
51                 };
52
53       #define   ERRMAGIC  012345
54

SEE ALSO

56       mkerrlst(1), syserrlst(3)
57

BUGS

59       Format of the file isn't necessarily portable between machines.
60

HISTORY

62       This file format is new with 2.11BSD.
63
64
65
663rd Berkeley Distribution        March 7, 1996                    SYSERRLST(5)
Impressum