# 2.11BSD#431 - /usr/include/errlst.h

##### Macros

    ERRMAGIC          X
    _PATH_SYSERRLST   X

##### struct's

    ERRLST            X
    ERRLSTHDR         X

       1: /*
       2:  *      Program Name:   errlst.h
       3:  *      Date: March 6, 1996
       4:  *      Author: S.M. Schultz
       5:  *
       6:  *      -----------------   Modification History   ---------------
       7:  *      Version Date            Reason For Modification
       8:  *      1.0     05Mar96         1. Initial release into the public domain.
       9: */
      10:
      11: /*
      12:  * Definitions used by the 'mkerrlst' program which creates error message
      13:  * files.
      14:  *
      15:  * The format of the file created is:
      16:  *
      17:  *	struct	ERRLSTHDR	ehdr;
      18:  *	struct	ERRLST  emsg[num_of_msgs];
      19:  *	struct	{
      20:  *		char	msg[] = "error message string";
      21:  *		char	lf = '\n';
      22:  *		} [num_of_messages];
      23:  *
      24:  * Note:  the newlines are NOT included in the message lengths, the newlines
      25:  *        are present to make it easy to 'cat' or 'vi' the file.
      26: */
      27:
      28:     struct  ERRLSTHDR
      29:         {
      30:         short   magic;
      31:         short   maxmsgnum;
      32:         short   maxmsglen;
      33:         short   pad[5];     /* Reserved */
      34:         };
      35:
      36:     struct  ERRLST
      37:         {
      38:         off_t   offmsg;
      39:         short   lenmsg;
      40:         };
      41:
      42: #define ERRMAGIC    012345
      43: #define _PATH_SYSERRLST "/etc/syserrlst"

#### Defined struct's

ERRLST defined in line 36; used 6 times

- in /usr/src/lib/libc/gen/syserrlst.c line 53(2), 68(2)
- in /usr/src/usr.bin/mkerrlst/mkerrlst.c line 103(2)

ERRLSTHDR defined in line 28; used 4 times

- in /usr/src/lib/libc/gen/syserrlst.c line 54(2)
- in /usr/src/usr.bin/mkerrlst/mkerrlst.c line 38(2)

#### Defined macros

ERRMAGIC defined in line 42; used 2 times

- in /usr/src/lib/libc/gen/syserrlst.c line 65
- in /usr/src/usr.bin/mkerrlst/mkerrlst.c line 97

_PATH_SYSERRLST defined in line 43; used 2 times

- in /usr/src/lib/libc/gen/syserrlst.c line 35
- in /usr/src/usr.bin/mkerrlst/mkerrlst.c line 67

#### Usage of this include

errlst.h used 2 times

- in /usr/src/lib/libc/gen/syserrlst.c line 25
- in /usr/src/usr.bin/mkerrlst/mkerrlst.c line 31

Last modified: 1996-03-14 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 504 |