1: # include <stdio.h>
2: # include <sccs.h>
3:
4: SCCSID(@(#)IIsyserr.c 8.1 12/31/84)
5:
6:
7: /*
8: ** SYSERR -- SYStem ERRor message print and abort
9: **
10: ** Syserr acts like a printf with up to five arguments.
11: **
12: ** If the first argument to syserr is not zero,
13: ** the message "SYSERR:" is prepended.
14: **
15: ** If the extern variable `IIproc_name' is assigned to a
16: ** string, that string is prepended to the message.
17: **
18: ** All arguments must be null-terminated.
19: **
20: ** The function pointed to by `Exitfn' is then called.
21: ** It is initialized to be `exit'.
22: */
23:
24: extern char *IIproc_name;
25:
26: IIsyserr(pv)
27: char *pv;
28: {
29: int pid;
30: register char **p;
31: extern int errno;
32: register int usererr;
33:
34: p = &pv;
35: printf("\n");
36: usererr = pv == 0;
37:
38: if (!usererr)
39: {
40: if (IIproc_name)
41: printf("%s ", IIproc_name);
42: printf("SYSERR: ");
43: }
44: else
45: p++;
46: printf(p[0], p[1], p[2], p[3], p[4], p[5]);
47: printf("\n");
48: if (!usererr && errno)
49: printf("\tsystem error %d\n", errno);
50: fflush(stdout);
51: exit (-1);
52: }
Defined functions
IIsyserr
defined in line
26; used 38 times
- in /usr/ingres/source/libq/IIcvar.c line
54
- in /usr/ingres/source/libq/IIexit.c line
34
- in /usr/ingres/source/libq/IIgettup.c line
43-46(2)
- in /usr/ingres/source/libq/IIingres.c line
52-57(2),
84-92(3),
120,
158,
167-171(2),
182,
189,
196
- in /usr/ingres/source/libq/IIn_get.c line
58-62(2)
- in /usr/ingres/source/libq/IIn_ret.c line
51,
94,
136-141(2)
- in /usr/ingres/source/libq/IIp_err.c line
56,
63,
69,
83
- in /usr/ingres/source/libq/IIpb_read.c line
53,
90
- in /usr/ingres/source/libq/IIpb_wphys.c line
29
- in /usr/ingres/source/libq/IIreadinp.c line
22,
69,
87,
148,
167
- in /usr/ingres/source/libq/IIresync.c line
63
- in /usr/ingres/source/libq/IIretrieve.c line
55
- in /usr/ingres/source/libq/IIwrite.c line
27-29(2)