Deleted Added
full compact
savecore.c (96049) savecore.c (96103)
1/*-
2 * Copyright (c) 2002 Poul-Henning Kamp
3 * Copyright (c) 2002 Networks Associates Technology, Inc.
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp
7 * and NAI Labs, the Security Research Division of Network Associates, Inc.
8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the

--- 51 unchanged lines hidden (view full) ---

60 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
61 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
62 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
63 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
64 * SUCH DAMAGE.
65 */
66
67#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002 Poul-Henning Kamp
3 * Copyright (c) 2002 Networks Associates Technology, Inc.
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp
7 * and NAI Labs, the Security Research Division of Network Associates, Inc.
8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the

--- 51 unchanged lines hidden (view full) ---

60 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
61 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
62 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
63 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
64 * SUCH DAMAGE.
65 */
66
67#include <sys/cdefs.h>
68__FBSDID("$FreeBSD: head/sbin/savecore/savecore.c 96049 2002-05-05 01:04:00Z fenner $");
68__FBSDID("$FreeBSD: head/sbin/savecore/savecore.c 96103 2002-05-06 08:27:21Z marcel $");
69
70#include <sys/param.h>
71#include <sys/disk.h>
72#include <sys/kerneldump.h>
73#include <sys/param.h>
74#include <sys/mount.h>
75#include <sys/stat.h>
76#include <errno.h>

--- 336 unchanged lines hidden (view full) ---

413 "write error on vmcore.%d file: %m", bounds);
414 syslog(LOG_WARNING,
415 "WARNING: vmcore may be incomplete");
416 nerr++;
417 goto closeall;
418 }
419 if (verbose) {
420 dmpcnt += wl;
69
70#include <sys/param.h>
71#include <sys/disk.h>
72#include <sys/kerneldump.h>
73#include <sys/param.h>
74#include <sys/mount.h>
75#include <sys/stat.h>
76#include <errno.h>

--- 336 unchanged lines hidden (view full) ---

413 "write error on vmcore.%d file: %m", bounds);
414 syslog(LOG_WARNING,
415 "WARNING: vmcore may be incomplete");
416 nerr++;
417 goto closeall;
418 }
419 if (verbose) {
420 dmpcnt += wl;
421 printf("%llu\r", dmpcnt);
421 printf("%llu\r", (unsigned long long)dmpcnt);
422 fflush(stdout);
423 }
424 dumpsize -= wl;
425 }
426 if (verbose)
427 printf("\n");
428
429 if (fclose(fp) < 0) {

--- 113 unchanged lines hidden ---
422 fflush(stdout);
423 }
424 dumpsize -= wl;
425 }
426 if (verbose)
427 printf("\n");
428
429 if (fclose(fp) < 0) {

--- 113 unchanged lines hidden ---