Deleted Added
full compact
kern_shutdown.c (193511) kern_shutdown.c (194118)
1/*-
2 * Copyright (c) 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
35 */
36
37#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 193511 2009-06-05 14:55:22Z rwatson $");
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 194118 2009-06-13 15:39:12Z jamie $");
39
40#include "opt_ddb.h"
41#include "opt_kdb.h"
42#include "opt_panic.h"
43#include "opt_show_busybufs.h"
44#include "opt_sched.h"
45
46#include <sys/param.h>

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

687 bzero(kdh, sizeof(*kdh));
688 strncpy(kdh->magic, magic, sizeof(kdh->magic));
689 strncpy(kdh->architecture, MACHINE_ARCH, sizeof(kdh->architecture));
690 kdh->version = htod32(KERNELDUMPVERSION);
691 kdh->architectureversion = htod32(archver);
692 kdh->dumplength = htod64(dumplen);
693 kdh->dumptime = htod64(time_second);
694 kdh->blocksize = htod32(blksz);
39
40#include "opt_ddb.h"
41#include "opt_kdb.h"
42#include "opt_panic.h"
43#include "opt_show_busybufs.h"
44#include "opt_sched.h"
45
46#include <sys/param.h>

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

687 bzero(kdh, sizeof(*kdh));
688 strncpy(kdh->magic, magic, sizeof(kdh->magic));
689 strncpy(kdh->architecture, MACHINE_ARCH, sizeof(kdh->architecture));
690 kdh->version = htod32(KERNELDUMPVERSION);
691 kdh->architectureversion = htod32(archver);
692 kdh->dumplength = htod64(dumplen);
693 kdh->dumptime = htod64(time_second);
694 kdh->blocksize = htod32(blksz);
695 strncpy(kdh->hostname, prison0.pr_host, sizeof(kdh->hostname));
695 strncpy(kdh->hostname, prison0.pr_hostname, sizeof(kdh->hostname));
696 strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
697 if (panicstr != NULL)
698 strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));
699 kdh->parity = kerneldump_parity(kdh);
700}
696 strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
697 if (panicstr != NULL)
698 strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));
699 kdh->parity = kerneldump_parity(kdh);
700}