Make definition of b_cylinder global.
This commit is contained in:
parent
10fc499f8c
commit
46b2bb599f
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: subr_disk.c,v 1.12 1994/06/29 06:32:56 cgd Exp $ */
|
||||
/* $NetBSD: subr_disk.c,v 1.13 1995/03/29 20:57:35 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988, 1993
|
||||
@ -62,13 +62,6 @@
|
||||
* allocated.
|
||||
*/
|
||||
|
||||
/*
|
||||
* For portability with historic industry practice, the
|
||||
* cylinder number has to be maintained in the `b_resid'
|
||||
* field.
|
||||
*/
|
||||
#define b_cylinder b_resid
|
||||
|
||||
void
|
||||
disksort(ap, bp)
|
||||
register struct buf *ap, *bp;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: buf.h,v 1.18 1995/03/26 20:23:54 jtc Exp $ */
|
||||
/* $NetBSD: buf.h,v 1.19 1995/03/29 20:57:38 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
@ -78,6 +78,12 @@ struct buf {
|
||||
int b_validend; /* Offset of end of valid region. */
|
||||
};
|
||||
|
||||
/*
|
||||
* For portability with historic industry practice, the cylinder number has
|
||||
* to be maintained in the `b_resid' field.
|
||||
*/
|
||||
#define b_cylinder b_resid /* Cylinder number for disksort(). */
|
||||
|
||||
/* Device driver compatibility definitions. */
|
||||
#define b_active b_bcount /* Driver queue head: drive active. */
|
||||
#define b_data b_un.b_addr /* b_un.b_addr is not changeable. */
|
||||
|
Loading…
Reference in New Issue
Block a user