boot0cfg.c (7747001b125d7bdc64fa4b06fa4d6b940e38453f) boot0cfg.c (5b990a9463bc31358684aa1f363ab131bd47c673)
1/*
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2008 Luigi Rizzo
5 * Copyright (c) 1999 Robert Nordier
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

40#include <fcntl.h>
41#include <libgeom.h>
42#include <paths.h>
43#include <stdio.h>
44#include <stdlib.h>
45#include <string.h>
46#include <unistd.h>
47
1/*
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2008 Luigi Rizzo
5 * Copyright (c) 1999 Robert Nordier
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

40#include <fcntl.h>
41#include <libgeom.h>
42#include <paths.h>
43#include <stdio.h>
44#include <stdlib.h>
45#include <string.h>
46#include <unistd.h>
47
48#define MBRSIZE 512 /* main boot record size */
48#define MBRSIZE 512 /* master boot record size */
49
50#define OFF_VERSION 0x1b0 /* offset: version number, only boot0version */
51#define OFF_SERIAL 0x1b8 /* offset: volume serial number */
52#define OFF_PTBL 0x1be /* offset: partition table */
53#define OFF_MAGIC 0x1fe /* offset: magic number */
54/*
55 * Offsets to the parameters of the 512-byte boot block.
56 * For historical reasons they are set as macros

--- 546 unchanged lines hidden ---
49
50#define OFF_VERSION 0x1b0 /* offset: version number, only boot0version */
51#define OFF_SERIAL 0x1b8 /* offset: volume serial number */
52#define OFF_PTBL 0x1be /* offset: partition table */
53#define OFF_MAGIC 0x1fe /* offset: magic number */
54/*
55 * Offsets to the parameters of the 512-byte boot block.
56 * For historical reasons they are set as macros

--- 546 unchanged lines hidden ---