1: # include   <ingres.h>
   2: # include   <sccs.h>
   3: 
   4: SCCSID(@(#)printdesc.c	8.2	1/17/85)
   5: 
   6: /*
   7: **  PRINT RELATION DESCRIPTOR (for debugging)
   8: **
   9: **	A pointer of a file descriptor is passed.  All pertinent
  10: **	info in that descriptor is printed on the standard output.
  11: **
  12: **	For debugging purposes only
  13: */
  14: 
  15: printdesc(d)
  16: register DESC   *d;
  17: {
  18:     register int    i;
  19:     register int    end;
  20: 
  21:     printf("Descriptor @ %x %.12s %.2s (%.12s)\n", d,
  22:         d->reldum.relid, d->reldum.relowner, d->relvname);
  23:     printf("spec %d, indxd %d, stat %d, save %s",
  24:         d->reldum.relspec, d->reldum.relindxd, d->reldum.relstat,
  25:         ctime(&d->reldum.relsave));
  26:     printf("tups %ld, atts %d, wid %d, prim %ld, stamp %s",
  27:         d->reldum.reltups, d->reldum.relatts, d->reldum.relwid,
  28:         d->reldum.relprim, ctime(&d->reldum.relstamp));
  29:     printf("fp %d, opn %d, adds %ld, ",
  30:         d->relfp, d->relopn, d->reladds);
  31:     dumptid(&d->reltid);
  32: 
  33:     end = d->reldum.relatts;
  34:     for (i = 0; i <= end; i++)
  35:     {
  36:         printf("[%2d] off %3d fmt %c%3d, xtra %3d, given %3d\n",
  37:             i, d->reloff[i], d->relfrmt[i],
  38:             d->relfrml[i] & I1MASK, d->relxtra[i], d->relgiven[i]);
  39:     }
  40: }
Last modified: 1986-04-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 915
Valid CSS Valid XHTML 1.0 Strict