source: MondoRescue/branches/2.2.2/mindi-busybox/include/dump.h@ 1247

Last change on this file since 1247 was 821, checked in by Bruno Cornec, 18 years ago

Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)

File size: 1.6 KB
Line 
1#define F_IGNORE 0x01 /* %_A */
2#define F_SETREP 0x02 /* rep count set, not default */
3#define F_ADDRESS 0x001 /* print offset */
4#define F_BPAD 0x002 /* blank pad */
5#define F_C 0x004 /* %_c */
6#define F_CHAR 0x008 /* %c */
7#define F_DBL 0x010 /* %[EefGf] */
8#define F_INT 0x020 /* %[di] */
9#define F_P 0x040 /* %_p */
10#define F_STR 0x080 /* %s */
11#define F_U 0x100 /* %_u */
12#define F_UINT 0x200 /* %[ouXx] */
13#define F_TEXT 0x400 /* no conversions */
14
15enum _vflag { ALL, DUP, FIRST, WAIT }; /* -v values */
16
17typedef struct _pr {
18 struct _pr *nextpr; /* next print unit */
19 unsigned int flags; /* flag values */
20 int bcnt; /* byte count */
21 char *cchar; /* conversion character */
22 char *fmt; /* printf format */
23 char *nospace; /* no whitespace version */
24} PR;
25
26typedef struct _fu {
27 struct _fu *nextfu; /* next format unit */
28 struct _pr *nextpr; /* next print unit */
29 unsigned int flags; /* flag values */
30 int reps; /* repetition count */
31 int bcnt; /* byte count */
32 char *fmt; /* format string */
33} FU;
34
35typedef struct _fs { /* format strings */
36 struct _fs *nextfs; /* linked list of format strings */
37 struct _fu *nextfu; /* linked list of format units */
38 int bcnt;
39} FS;
40
41extern void bb_dump_add(const char *fmt);
42extern int bb_dump_dump (char **argv);
43extern int bb_dump_size(FS * fs);
44
45extern FS *bb_dump_fshead; /* head of format strings */
46extern int bb_dump_blocksize; /* data block size */
47extern int bb_dump_length; /* max bytes to read */
48extern enum _vflag bb_dump_vflag;
49extern off_t bb_dump_skip; /* bytes to skip */
Note: See TracBrowser for help on using the repository browser.