Use fixed-size types.

This commit is contained in:
thorpej 1998-07-07 04:29:42 +00:00
parent 14f912df15
commit 8f2575ec87
6 changed files with 66 additions and 66 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: disklabel_mbr.h,v 1.1 1998/06/08 20:21:18 mark Exp $ */
/* $NetBSD: disklabel_mbr.h,v 1.2 1998/07/07 04:30:46 thorpej Exp $ */
/*
* Copyright (c) 1994, 1998 Christopher G. Demetriou
@ -44,16 +44,16 @@
#ifndef __ASSEMBLER__
struct mbr_partition {
unsigned char mbrp_flag; /* bootstrap flags */
unsigned char mbrp_shd; /* starting head */
unsigned char mbrp_ssect; /* starting sector */
unsigned char mbrp_scyl; /* starting cylinder */
unsigned char mbrp_typ; /* partition type (see below) */
unsigned char mbrp_ehd; /* end head */
unsigned char mbrp_esect; /* end sector */
unsigned char mbrp_ecyl; /* end cylinder */
unsigned long mbrp_start; /* absolute starting sector number */
unsigned long mbrp_size; /* partition size in sectors */
u_int8_t mbrp_flag; /* bootstrap flags */
u_int8_t mbrp_shd; /* starting head */
u_int8_t mbrp_ssect; /* starting sector */
u_int8_t mbrp_scyl; /* starting cylinder */
u_int8_t mbrp_typ; /* partition type (see below) */
u_int8_t mbrp_ehd; /* end head */
u_int8_t mbrp_esect; /* end sector */
u_int8_t mbrp_ecyl; /* end cylinder */
u_int32_t mbrp_start; /* absolute starting sector number */
u_int32_t mbrp_size; /* partition size in sectors */
};
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: disklabel.h,v 1.2 1998/05/28 08:45:00 sakamoto Exp $ */
/* $NetBSD: disklabel.h,v 1.3 1998/07/07 04:36:15 thorpej Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
@ -44,16 +44,16 @@
#define NDOSPART 4
struct dos_partition {
unsigned char dp_flag; /* bootstrap flags */
unsigned char dp_shd; /* starting head */
unsigned char dp_ssect; /* starting sector */
unsigned char dp_scyl; /* starting cylinder */
unsigned char dp_typ; /* partition type (see below) */
unsigned char dp_ehd; /* end head */
unsigned char dp_esect; /* end sector */
unsigned char dp_ecyl; /* end cylinder */
unsigned long dp_start; /* absolute starting sector number */
unsigned long dp_size; /* partition size in sectors */
u_int8_t dp_flag; /* bootstrap flags */
u_int8_t dp_shd; /* starting head */
u_int8_t dp_ssect; /* starting sector */
u_int8_t dp_scyl; /* starting cylinder */
u_int8_t dp_typ; /* partition type (see below) */
u_int8_t dp_ehd; /* end head */
u_int8_t dp_esect; /* end sector */
u_int8_t dp_ecyl; /* end cylinder */
u_int32_t dp_start; /* absolute starting sector number */
u_int32_t dp_size; /* partition size in sectors */
};
/* Known DOS partition types. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: disklabel.h,v 1.6 1998/02/22 14:45:43 drochner Exp $ */
/* $NetBSD: disklabel.h,v 1.7 1998/07/07 04:29:42 thorpej Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
@ -45,16 +45,16 @@
#ifndef __ASSEMBLER__
struct dos_partition {
unsigned char dp_flag; /* bootstrap flags */
unsigned char dp_shd; /* starting head */
unsigned char dp_ssect; /* starting sector */
unsigned char dp_scyl; /* starting cylinder */
unsigned char dp_typ; /* partition type (see below) */
unsigned char dp_ehd; /* end head */
unsigned char dp_esect; /* end sector */
unsigned char dp_ecyl; /* end cylinder */
unsigned long dp_start; /* absolute starting sector number */
unsigned long dp_size; /* partition size in sectors */
u_int8_t dp_flag; /* bootstrap flags */
u_int8_t dp_shd; /* starting head */
u_int8_t dp_ssect; /* starting sector */
u_int8_t dp_scyl; /* starting cylinder */
u_int8_t dp_typ; /* partition type (see below) */
u_int8_t dp_ehd; /* end head */
u_int8_t dp_esect; /* end sector */
u_int8_t dp_ecyl; /* end cylinder */
u_int32_t dp_start; /* absolute starting sector number */
u_int32_t dp_size; /* partition size in sectors */
};
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: disklabel.h,v 1.1 1998/05/15 10:15:52 tsubai Exp $ */
/* $NetBSD: disklabel.h,v 1.2 1998/07/07 04:36:15 thorpej Exp $ */
/*-
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -47,16 +47,16 @@
#define MBRMAGIC 0xaa55 /* Actual magic number */
struct mbr_partition {
unsigned char mbr_flag; /* default boot flag */
unsigned char mbr_shd; /* start head, IsN't Always Meaningful */
unsigned char mbr_ssect; /* start sector, INAM */
unsigned char mbr_scyl; /* start cylinder, INAM */
unsigned char mbr_type; /* partition type */
unsigned char mbr_ehd; /* end head, INAM */
unsigned char mbr_esect; /* end sector, INAM */
unsigned char mbr_ecyl; /* end cylinder, INAM */
unsigned long mbr_start; /* absolute start sector number */
unsigned long mbr_size; /* partition size in sectors */
u_int8_t mbr_flag; /* default boot flag */
u_int8_t mbr_shd; /* start head, IsN't Always Meaningful */
u_int8_t mbr_ssect; /* start sector, INAM */
u_int8_t mbr_scyl; /* start cylinder, INAM */
u_int8_t mbr_type; /* partition type */
u_int8_t mbr_ehd; /* end head, INAM */
u_int8_t mbr_esect; /* end sector, INAM */
u_int8_t mbr_ecyl; /* end cylinder, INAM */
u_int32_t mbr_start; /* absolute start sector number */
u_int32_t mbr_size; /* partition size in sectors */
};
/* Known partition types: */

View File

@ -1,4 +1,4 @@
/* $NetBSD: disklabel.h,v 1.3 1998/03/02 16:18:17 drochner Exp $ */
/* $NetBSD: disklabel.h,v 1.4 1998/07/07 04:36:15 thorpej Exp $ */
/*-
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -47,16 +47,16 @@
#define MBRMAGIC 0xaa55 /* Actual magic number */
struct mbr_partition {
unsigned char mbr_flag; /* default boot flag */
unsigned char mbr_shd; /* start head, IsN't Always Meaningful */
unsigned char mbr_ssect; /* start sector, INAM */
unsigned char mbr_scyl; /* start cylinder, INAM */
unsigned char mbr_type; /* partition type */
unsigned char mbr_ehd; /* end head, INAM */
unsigned char mbr_esect; /* end sector, INAM */
unsigned char mbr_ecyl; /* end cylinder, INAM */
unsigned long mbr_start; /* absolute start sector number */
unsigned long mbr_size; /* partition size in sectors */
u_int8_t mbr_flag; /* default boot flag */
u_int8_t mbr_shd; /* start head, IsN't Always Meaningful */
u_int8_t mbr_ssect; /* start sector, INAM */
u_int8_t mbr_scyl; /* start cylinder, INAM */
u_int8_t mbr_type; /* partition type */
u_int8_t mbr_ehd; /* end head, INAM */
u_int8_t mbr_esect; /* end sector, INAM */
u_int8_t mbr_ecyl; /* end cylinder, INAM */
u_int32_t mbr_start; /* absolute start sector number */
u_int32_t mbr_size; /* partition size in sectors */
};
/* Known partition types: */

View File

@ -1,4 +1,4 @@
/* $NetBSD: disklabel.h,v 1.1.1.1 1996/03/13 04:58:07 jonathan Exp $ */
/* $NetBSD: disklabel.h,v 1.2 1998/07/07 04:36:15 thorpej Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
@ -46,16 +46,16 @@
#define NDOSPART 4
struct dos_partition {
unsigned char dp_flag; /* bootstrap flags */
unsigned char dp_shd; /* starting head */
unsigned char dp_ssect; /* starting sector */
unsigned char dp_scyl; /* starting cylinder */
unsigned char dp_typ; /* partition type (see below) */
unsigned char dp_ehd; /* end head */
unsigned char dp_esect; /* end sector */
unsigned char dp_ecyl; /* end cylinder */
unsigned long dp_start; /* absolute starting sector number */
unsigned long dp_size; /* partition size in sectors */
u_int8_t dp_flag; /* bootstrap flags */
u_int8_t dp_shd; /* starting head */
u_int8_t dp_ssect; /* starting sector */
u_int8_t dp_scyl; /* starting cylinder */
u_int8_t dp_typ; /* partition type (see below) */
u_int8_t dp_ehd; /* end head */
u_int8_t dp_esect; /* end sector */
u_int8_t dp_ecyl; /* end cylinder */
u_int32_t dp_start; /* absolute starting sector number */
u_int32_t dp_size; /* partition size in sectors */
} dos_partitions[NDOSPART];
/* Known DOS partition types. */