# 2.11BSD#431 - /usr/ingres/source/gutil/syserr.c

##### Functions

    syserr            X

##### Variables

    Accerror          X
    Proc_name         X

       1: /*
       2: **  SYSERR -- SYStem ERRor message print and abort
       3: **
       4: **	Syserr acts like a printf with up to five arguments.
       5: **
       6: **	If the first argument to syserr is not zero,
       7: **	the message "SYSERR:" is prepended.
       8: **
       9: **	If the extern variable `Proc_name' is assigned to a
      10: **	string, that string is prepended to the message.
      11: **
      12: **	All arguments must be null-terminated.
      13: **
      14: **	The function pointed to by `Exitfn' is then called.
      15: **	It is initialized to be `exit'.
      16: */
      17:
      18: char    *Proc_name;
      19: int Accerror;
      20: extern  exit();
      21: int (*Exitfn)() =   &exit;
      22:
      23: syserr(pv)
      24: char    *pv;
      25: {
      26:     int     pid;
      27:     register char   **p;
      28:     extern int  errno;
      29:     register int    usererr;
      30:     register int    exitvalue;
      31:
      32:     p = &pv;
      33:     printf("\n");
      34:     usererr = pv == 0;
      35:
      36:     if (!usererr)
      37:     {
      38:         if (Proc_name)
      39:             printf("%s ", Proc_name);
      40:         printf("\007SYSERR: ");
      41:     }
      42:     else
      43:         p++;
      44:     printf(p[0], p[1], p[2], p[3], p[4], p[5]);
      45:     printf("\007\n");
      46:     exitvalue = -1;
      47:     if (!usererr)
      48:     {
      49:         if (errno)
      50:         {
      51:             exitvalue = errno;
      52:             printf("\tUNIX error %d\n", exitvalue);
      53:         }
      54:         if (Accerror != 0)
      55:         {
      56:             printf("\taccess method error %d\n", Accerror);
      57:         }
      58:     }
      59:     flush();
      60:     (*Exitfn)(exitvalue);
      61: }

#### Defined functions

syserr defined in line 23; used 565 times

- in /usr/ingres/source/access/accbuf.c line 263
- in /usr/ingres/source/access/batch.c line 52, 93, 106, 133, 205-209(2)
- in /usr/ingres/source/access/batchxtra.c line 15-17(2)
- in /usr/ingres/source/access/closecatalog.c line 72-77(2)
- in /usr/ingres/source/access/find.c line 91
- in /usr/ingres/source/access/get_tuple.c line 85
- in /usr/ingres/source/access/last_page.c line 28
- in /usr/ingres/source/access/opencatalog.c line 107, 127, 146
- in /usr/ingres/source/access/openr.c line 144
- in /usr/ingres/source/access/page.c line 60, 129
- in /usr/ingres/source/access/readadmin.c line 122-124(2), 130-133(2), 143, 149
- in /usr/ingres/source/access/setkey.c line 62
- in /usr/ingres/source/access/writebatch.c line 49
- in /usr/ingres/source/dbu/copy.c line 120, 178-180(2), 188, 256, 273, 301-304(2), 356, 448, 680, 756
- in /usr/ingres/source/dbu/create.c line 336, 342, 366-369(2), 522
- in /usr/ingres/source/dbu/dbuproctab.c line 100, 131
- in /usr/ingres/source/dbu/destroy.c line 92, 101, 111, 130
- in /usr/ingres/source/dbu/display.c line 105, 111, 173, 196, 308, 317
- in /usr/ingres/source/dbu/get_p_tid.c line 60-63(2)
- in /usr/ingres/source/dbu/get_seq_atts.c line 54, 118
- in /usr/ingres/source/dbu/help.c line 38, 141, 154, 189, 229, 340, 352
- in /usr/ingres/source/dbu/index.c line 64, 103, 154, 163, 176-179(2), 195, 204-207(2)
- in /usr/ingres/source/dbu/ksort.c line 66, 104, 202, 230, 283, 367, 420
- in /usr/ingres/source/dbu/main.c line 223, 281, 288, 298
- in /usr/ingres/source/dbu/modify.c line 111, 124, 210, 225, 235, 343, 541, 593-596(2), 607, 613, 621-624(2), 654, 688-691(2), 713, 720, 747-751(2), 760, 774, 932-937(3), 970, 979, 991, 1002, 1009
- in /usr/ingres/source/dbu/modupdate.c line 47, 58, 64, 75-82(3), 93, 103, 110-117(3), 127-131(2), 149, 165-169(2)
- in /usr/ingres/source/dbu/pr_prot.c line 145, 160, 216
- in /usr/ingres/source/dbu/pr_tree.c line 244, 364, 437, 476, 628
- in /usr/ingres/source/dbu/print.c line 84, 150
- in /usr/ingres/source/dbu/purgetup.c line 30-39(3)
- in /usr/ingres/source/dbu/rdwrbatch.c line 27, 74, 84, 92, 110, 116
- in /usr/ingres/source/dbu/readtree.c line 120, 126, 144, 184, 308, 414
- in /usr/ingres/source/dbu/resetrel.c line 26-34(4), 40
- in /usr/ingres/source/dbu/rmqm.c line 113, 122, 129, 292, 455, 462-465(2), 472, 535-540(2), 547, 597, 604, 610-614(3), 681, 737, 752-754(2)
- in /usr/ingres/source/dbu/save.c line 144
- in /usr/ingres/source/dbu/secupdate.c line 43, 58-62(2), 127-130(2), 141, 151, 158-165(3)
- in /usr/ingres/source/dbu/update.c line 42, 60, 74, 86, 94-98(2), 107
- in /usr/ingres/source/dbu/userdestroy.c line 59, 65, 77-80(2), 91, 97-109(4)
- in /usr/ingres/source/decomp/call_dbu.c line 56
- in /usr/ingres/source/decomp/call_dbu70.c line 94
- in /usr/ingres/source/decomp/call_ovqp.c line 163, 203-207(3), 256-260(2), 331
- in /usr/ingres/source/decomp/call_ovqp70.c line 135, 308, 317
- in /usr/ingres/source/decomp/decomp.c line 231
- in /usr/ingres/source/decomp/openrs.c line 181, 374, 383, 465, 538, 557
- in /usr/ingres/source/decomp/readq.c line 77, 124
- in /usr/ingres/source/decomp/reformat.c line 76, 498
- in /usr/ingres/source/decomp/rnum.c line 38, 59, 80, 114
- in /usr/ingres/source/decomp/selectv.c line 135
- in /usr/ingres/source/decomp/tempvar.c line 84, 146
- in /usr/ingres/source/decomp/usubr.c line 89
- in /usr/ingres/source/equel/comment.c line 70-74(2)
- in /usr/ingres/source/equel/getch.c line 215
- in /usr/ingres/source/equel/prtout.c line 144
- in /usr/ingres/source/gutil/freebuf.c line 85
- in /usr/ingres/source/gutil/fullwait.c line 36, 42, 63
- in /usr/ingres/source/gutil/need.c line 107
- in /usr/ingres/source/gutil/ztack.c line 27
- in /usr/ingres/source/iutil/getnuser.c line 51
- in /usr/ingres/source/iutil/getuser.c line 44
- in /usr/ingres/source/iutil/initucode.c line 257-262(2), 278, 290, 296, 383, 412, 435-439(2), 537, 551, 727, 746-750(2)
- in /usr/ingres/source/iutil/paramd.c line 70
- in /usr/ingres/source/iutil/printup.c line 75, 97, 118, 204, 222, 233
- in /usr/ingres/source/iutil/proc_error.c line 25
- in /usr/ingres/source/iutil/rdpipe.c line 143, 173, 179, 191, 197
- in /usr/ingres/source/iutil/rub.c line 44
- in /usr/ingres/source/iutil/trbuild.c line 58, 77
- in /usr/ingres/source/iutil/wrpipe.c line 112, 130
- in /usr/ingres/source/monitor/buf.c line 268
- in /usr/ingres/source/monitor/clear.c line 21
- in /usr/ingres/source/monitor/edit.c line 35, 51
- in /usr/ingres/source/monitor/eval.c line 34-37(2), 47, 56, 62
- in /usr/ingres/source/monitor/expr.c line 498, 584, 603
- in /usr/ingres/source/monitor/go.c line 38
- in /usr/ingres/source/monitor/mac.c line 1261
- in /usr/ingres/source/monitor/main.c line 133, 258, 286, 308, 314, 356
- in /usr/ingres/source/monitor/monitor.c line 175
- in /usr/ingres/source/monitor/print.c line 27
- in /usr/ingres/source/monitor/shell.c line 35, 54
- in /usr/ingres/source/monitor/trapquery.c line 83
- in /usr/ingres/source/monitor/writeout.c line 42
- in /usr/ingres/source/monitor/xwait.c line 49
- in /usr/ingres/source/ovqp/getqry.c line 97, 140
- in /usr/ingres/source/ovqp/interp.c line 181, 450, 503, 618, 646
- in /usr/ingres/source/ovqp/interp1.c line 77, 87, 116
- in /usr/ingres/source/ovqp/rdsym.c line 27, 41, 99
- in /usr/ingres/source/ovqp/scan.c line 162, 196, 220-225(2), 273-287(4)
- in /usr/ingres/source/ovqp/strategy.c line 93, 124, 192, 198
- in /usr/ingres/source/ovqp/support.c line 49, 75, 138, 200, 224
- in /usr/ingres/source/parser/attfcn.c line 81
- in /usr/ingres/source/parser/call_p.c line 49
- in /usr/ingres/source/parser/format.c line 121, 180, 190-199(3), 218, 233, 313
- in /usr/ingres/source/parser/getscr.c line 55
- in /usr/ingres/source/parser/main.c line 111
- in /usr/ingres/source/parser/master.grammar line 98, 383, 407
- in /usr/ingres/source/parser/norml.c line 260, 272-276(2)
- in /usr/ingres/source/parser/p_util.c line 371
- in /usr/ingres/source/parser/rngfcn.c line 68, 119, 259, 335
- in /usr/ingres/source/parser/tree.c line 131
- in /usr/ingres/source/parser/xdot.c line 45
- in /usr/ingres/source/parser/yyerror.y line 88
- in /usr/ingres/source/qrymod/d_integ.c line 85-91(4), 170-172(2), 185-191(3)
- in /usr/ingres/source/qrymod/d_prot.c line 129, 163, 187, 195, 241-247(3), 275, 284-286(2)
- in /usr/ingres/source/qrymod/d_view.c line 81, 90-96(4)
- in /usr/ingres/source/qrymod/define.c line 115, 233, 250, 332-337(2), 353
- in /usr/ingres/source/qrymod/fillprotup.c line 56-58(2), 65-70(2), 86, 125, 133
- in /usr/ingres/source/qrymod/integrity.c line 105, 112, 174
- in /usr/ingres/source/qrymod/issue.c line 144
- in /usr/ingres/source/qrymod/protect.c line 276, 412, 425, 532, 561, 731
- in /usr/ingres/source/qrymod/range.c line 161
- in /usr/ingres/source/qrymod/readtree.c line 105, 111, 130, 166, 329
- in /usr/ingres/source/qrymod/treepr.c line 244
- in /usr/ingres/source/qrymod/trscan.c line 137, 370, 400
- in /usr/ingres/source/qrymod/util.c line 149, 162, 426-431(3), 501
- in /usr/ingres/source/qrymod/view.c line 457
- in /usr/ingres/source/scanner/comment.c line 20
- in /usr/ingres/source/scanner/inout.c line 43
- in /usr/ingres/source/scanner/yylex.c line 77
- in /usr/ingres/source/support/creatdb.c line 304, 312, 391, 401, 415, 421-444(7), 469, 490-492(2), 503-505(2), 617, 648, 659, 665, 673, 785, 1138, 1146-1149(2), 1210-1213(2), 1278, 1491, 1619, 1638, 1668, 1743-1745(2), 1751-1754(2)
- in /usr/ingres/source/support/destroydb.c line 79, 113-115(2), 127, 139, 153
- in /usr/ingres/source/support/error.c line 36, 55-60(2)
- in /usr/ingres/source/support/helpr.c line 62, 72
- in /usr/ingres/source/support/ingres.c line 247, 350-352(2), 624, 739, 754, 861, 987, 1135, 1265, 1280, 1289-1292(2), 1500, 1524, 1531
- in /usr/ingres/source/support/printr.c line 66, 208
- in /usr/ingres/source/support/purge.c line 170
- in /usr/ingres/source/support/restore.c line 197, 228-231(2), 305, 332, 346, 353, 360, 386, 396, 409, 434, 457, 482, 498, 513, 549, 558, 576, 583, 620, 638, 651, 667, 701, 708, 747, 754, 791, 798, 824, 833, 851, 859, 887, 902, 923, 931, 948, 956, 973-976(2), 990, 1010, 1018, 1035, 1043, 1060-1063(2), 1077
- in /usr/ingres/source/support/subs.c line 65, 120, 203, 271
- in /usr/ingres/source/support/sysmod.c line 127
- in /usr/ingres/source/support/usersetup.c line 43, 58, 66-68(2), 75-80(3)

#### Defined variables

Accerror defined in line 19; used 2 times

- in line 54-56(2)

Proc_name defined in line 18; used 2 times

- in line 38-39(2)

Last modified: 1995-02-04 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 543 |