main.c (86470) | main.c (86473) |
---|---|
1/*- 2 * Copyright (c) 1980, 1991, 1993, 1994 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 --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/1/95"; 43#endif 44static const char rcsid[] = | 1/*- 2 * Copyright (c) 1980, 1991, 1993, 1994 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 --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/1/95"; 43#endif 44static const char rcsid[] = |
45 "$FreeBSD: head/sbin/dump/main.c 86470 2001-11-16 22:13:44Z iedowse $"; | 45 "$FreeBSD: head/sbin/dump/main.c 86473 2001-11-17 00:06:55Z iedowse $"; |
46#endif /* not lint */ 47 48#include <sys/param.h> 49#include <sys/stat.h> 50#include <sys/time.h> | 46#endif /* not lint */ 47 48#include <sys/param.h> 49#include <sys/stat.h> 50#include <sys/time.h> |
51#ifdef sunos 52#include <sys/vnode.h> | |
53 | 51 |
54#include <ufs/inode.h> 55#include <ufs/fs.h> 56#else | |
57#include <ufs/ufs/dinode.h> 58#include <ufs/ffs/fs.h> | 52#include <ufs/ufs/dinode.h> 53#include <ufs/ffs/fs.h> |
59#endif | |
60 61#include <protocols/dumprestore.h> 62 63#include <ctype.h> 64#include <err.h> 65#include <fcntl.h> 66#include <fstab.h> 67#include <signal.h> --- 25 unchanged lines hidden (view full) --- 93static void usage __P((void)); 94 95int 96main(argc, argv) 97 int argc; 98 char *argv[]; 99{ 100 struct stat sb; | 54 55#include <protocols/dumprestore.h> 56 57#include <ctype.h> 58#include <err.h> 59#include <fcntl.h> 60#include <fstab.h> 61#include <signal.h> --- 25 unchanged lines hidden (view full) --- 87static void usage __P((void)); 88 89int 90main(argc, argv) 91 int argc; 92 char *argv[]; 93{ 94 struct stat sb; |
101 register ino_t ino; 102 register int dirty; 103 register struct dinode *dp; 104 register struct fstab *dt; 105 register char *map; 106 register int ch; | 95 ino_t ino; 96 int dirty; 97 struct dinode *dp; 98 struct fstab *dt; 99 char *map; 100 int ch; |
107 int i, anydirskipped, bflag = 0, Tflag = 0, honorlevel = 1; 108 ino_t maxino; 109 char *tmsg; 110 time_t t; 111 112 spcl.c_date = time_to_time32(time(NULL)); 113 114 tsize = 0; /* Default later, based on 'c' option for cart tapes */ --- 552 unchanged lines hidden --- | 101 int i, anydirskipped, bflag = 0, Tflag = 0, honorlevel = 1; 102 ino_t maxino; 103 char *tmsg; 104 time_t t; 105 106 spcl.c_date = time_to_time32(time(NULL)); 107 108 tsize = 0; /* Default later, based on 'c' option for cart tapes */ --- 552 unchanged lines hidden --- |