diskmbr.h (95c20645bf61e4050dc625cb401e96c42e8054d9) | diskmbr.h (49ff4debd3d4c155448b2b4e3b95b17d9eb575ed) |
---|---|
1/* 2 * Copyright (c) 1987, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)disklabel.h 8.2 (Berkeley) 7/10/94 | 1/* 2 * Copyright (c) 1987, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)disklabel.h 8.2 (Berkeley) 7/10/94 |
34 * $Id: disklabel.h,v 1.40 1999/07/01 20:34:28 peter Exp $ | 34 * $Id: disklabel.h,v 1.41 1999/08/11 03:02:05 imp Exp $ |
35 */ 36 37#ifndef _SYS_DISKLABEL_H_ 38#define _SYS_DISKLABEL_H_ 39 40#ifndef KERNEL 41#include <sys/types.h> 42#endif --- 406 unchanged lines hidden (view full) --- 449struct buf_queue_head; 450 451int bounds_check_with_label __P((struct buf *bp, struct disklabel *lp, 452 int wlabel)); 453void diskerr __P((struct buf *bp, char *dname, char *what, int pri, 454 int blkdone, struct disklabel *lp)); 455void disksort __P((struct buf *ap, struct buf *bp)); 456u_int dkcksum __P((struct disklabel *lp)); | 35 */ 36 37#ifndef _SYS_DISKLABEL_H_ 38#define _SYS_DISKLABEL_H_ 39 40#ifndef KERNEL 41#include <sys/types.h> 42#endif --- 406 unchanged lines hidden (view full) --- 449struct buf_queue_head; 450 451int bounds_check_with_label __P((struct buf *bp, struct disklabel *lp, 452 int wlabel)); 453void diskerr __P((struct buf *bp, char *dname, char *what, int pri, 454 int blkdone, struct disklabel *lp)); 455void disksort __P((struct buf *ap, struct buf *bp)); 456u_int dkcksum __P((struct disklabel *lp)); |
457char *readdisklabel __P((dev_t dev, void (*strat)(struct buf *bp), 458 struct disklabel *lp)); | 457char *readdisklabel __P((dev_t dev, struct disklabel *lp)); |
459void bufqdisksort __P((struct buf_queue_head *ap, struct buf *bp)); 460int setdisklabel __P((struct disklabel *olp, struct disklabel *nlp, 461 u_long openmask)); | 458void bufqdisksort __P((struct buf_queue_head *ap, struct buf *bp)); 459int setdisklabel __P((struct disklabel *olp, struct disklabel *nlp, 460 u_long openmask)); |
462int writedisklabel __P((dev_t dev, void (*strat)(struct buf *bp), 463 struct disklabel *lp)); | 461int writedisklabel __P((dev_t dev, struct disklabel *lp)); |
464#ifdef __alpha__ 465void alpha_fix_srm_checksum __P((struct buf *bp)); 466#endif 467 468#endif /* KERNEL */ 469 470#endif /* LOCORE */ 471 472#ifndef KERNEL 473__BEGIN_DECLS 474struct disklabel *getdiskbyname __P((const char *)); 475__END_DECLS 476#endif 477 478#endif /* !_SYS_DISKLABEL_H_ */ | 462#ifdef __alpha__ 463void alpha_fix_srm_checksum __P((struct buf *bp)); 464#endif 465 466#endif /* KERNEL */ 467 468#endif /* LOCORE */ 469 470#ifndef KERNEL 471__BEGIN_DECLS 472struct disklabel *getdiskbyname __P((const char *)); 473__END_DECLS 474#endif 475 476#endif /* !_SYS_DISKLABEL_H_ */ |