|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1989 The Regents of the University of California. ! 3: * All rights reserved. ! 4: * ! 5: * Redistribution and use in source and binary forms are permitted ! 6: * provided that: (1) source distributions retain this entire copyright ! 7: * notice and comment, and (2) distributions including binaries display ! 8: * the following acknowledgement: ``This product includes software ! 9: * developed by the University of California, Berkeley and its contributors'' ! 10: * in the documentation or other materials provided with the distribution ! 11: * and in all advertising materials mentioning features or use of this ! 12: * software. Neither the name of the University nor the names of its ! 13: * contributors may be used to endorse or promote products derived ! 14: * from this software without specific prior written permission. ! 15: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ! 16: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ! 17: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 18: * ! 19: * @(#)hexdump.h 5.4 (Berkeley) 6/1/90 ! 20: */ ! 21: ! 22: typedef struct _pr { ! 23: struct _pr *nextpr; /* next print unit */ ! 24: #define F_ADDRESS 0x001 /* print offset */ ! 25: #define F_BPAD 0x002 /* blank pad */ ! 26: #define F_C 0x004 /* %_c */ ! 27: #define F_CHAR 0x008 /* %c */ ! 28: #define F_DBL 0x010 /* %[EefGf] */ ! 29: #define F_INT 0x020 /* %[di] */ ! 30: #define F_P 0x040 /* %_p */ ! 31: #define F_STR 0x080 /* %s */ ! 32: #define F_U 0x100 /* %_u */ ! 33: #define F_UINT 0x200 /* %[ouXx] */ ! 34: #define F_TEXT 0x400 /* no conversions */ ! 35: u_int flags; /* flag values */ ! 36: int bcnt; /* byte count */ ! 37: char *cchar; /* conversion character */ ! 38: char *fmt; /* printf format */ ! 39: char *nospace; /* no whitespace version */ ! 40: } PR; ! 41: ! 42: typedef struct _fu { ! 43: struct _fu *nextfu; /* next format unit */ ! 44: struct _pr *nextpr; /* next print unit */ ! 45: #define F_IGNORE 0x01 /* %_A */ ! 46: #define F_SETREP 0x02 /* rep count set, not default */ ! 47: u_int flags; /* flag values */ ! 48: int reps; /* repetition count */ ! 49: int bcnt; /* byte count */ ! 50: char *fmt; /* format string */ ! 51: } FU; ! 52: ! 53: typedef struct _fs { /* format strings */ ! 54: struct _fs *nextfs; /* linked list of format strings */ ! 55: struct _fu *nextfu; /* linked list of format units */ ! 56: int bcnt; ! 57: } FS; ! 58: ! 59: extern FS *fshead; /* head of format strings list */ ! 60: extern int blocksize; /* data block size */ ! 61: enum _vflag { ALL, DUP, FIRST, WAIT }; /* -v values */ ! 62: char *emalloc();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.