dump.h (179275) | dump.h (226520) |
---|---|
1/*- 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)dump.h 8.2 (Berkeley) 4/28/95 30 * | 1/*- 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)dump.h 8.2 (Berkeley) 4/28/95 30 * |
31 * $FreeBSD: head/sbin/dump/dump.h 179275 2008-05-24 05:20:46Z mckusick $ | 31 * $FreeBSD: head/sbin/dump/dump.h 226520 2011-10-18 18:42:26Z mckusick $ |
32 */ 33 34/* 35 * Dump maps used to describe what is to be dumped. 36 */ 37int mapsize; /* size of the state maps */ 38char *usedinomap; /* map of allocated inodes */ 39char *dumpdirmap; /* map of directories to be dumped */ --- 126 unchanged lines hidden (view full) --- 166struct dumpdates **ddatev; /* the arrayfied version */ 167void initdumptimes(void); 168void getdumptime(void); 169void putdumptime(void); 170#define ITITERATE(i, ddp) \ 171 if (ddatev != NULL) \ 172 for (ddp = ddatev[i = 0]; i < nddates; ddp = ddatev[++i]) 173 | 32 */ 33 34/* 35 * Dump maps used to describe what is to be dumped. 36 */ 37int mapsize; /* size of the state maps */ 38char *usedinomap; /* map of allocated inodes */ 39char *dumpdirmap; /* map of directories to be dumped */ --- 126 unchanged lines hidden (view full) --- 166struct dumpdates **ddatev; /* the arrayfied version */ 167void initdumptimes(void); 168void getdumptime(void); 169void putdumptime(void); 170#define ITITERATE(i, ddp) \ 171 if (ddatev != NULL) \ 172 for (ddp = ddatev[i = 0]; i < nddates; ddp = ddatev[++i]) 173 |
174#define DUMPOUTFMT "%-32s %d %s" /* for printf */ | 174#define DUMPFMTLEN 53 /* max device pathname length */ 175#define DUMPOUTFMT "%-*s %d %s" /* for printf */ |
175 /* name, level, ctime(date) */ | 176 /* name, level, ctime(date) */ |
176#define DUMPINFMT "%32s %d %[^\n]\n" /* inverse for scanf */ | 177#define DUMPINFMT "%s %d %[^\n]\n" /* inverse for scanf */ |
177 178void sig(int signo); 179 180#ifndef _PATH_FSTAB 181#define _PATH_FSTAB "/etc/fstab" 182#endif | 178 179void sig(int signo); 180 181#ifndef _PATH_FSTAB 182#define _PATH_FSTAB "/etc/fstab" 183#endif |