|
|
1.1 ! root 1: # include <ingres.h> ! 2: # include <sccs.h> ! 3: ! 4: SCCSID(@(#)printdesc.c 7.1 2/5/81) ! 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] & 0377, d->relxtra[i], d->relgiven[i]); ! 39: } ! 40: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.