Limit DIOCGPART and struct partinfo visibility to _KERNEL.
This commit is contained in:
parent
8b5875c7e6
commit
ca10ccf636
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: disklabel.h,v 1.106 2009/11/20 17:43:35 pooka Exp $ */
|
||||
/* $NetBSD: disklabel.h,v 1.107 2009/12/22 18:55:25 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1988, 1993
|
||||
|
@ -425,6 +425,7 @@ struct format_op {
|
|||
int df_reg[8]; /* result */
|
||||
};
|
||||
|
||||
#ifdef _KERNEL
|
||||
/*
|
||||
* Structure used internally to retrieve information about a partition
|
||||
* on a disk.
|
||||
|
@ -434,8 +435,6 @@ struct partinfo {
|
|||
struct partition *part;
|
||||
};
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
struct disk;
|
||||
|
||||
int disk_read_sectors(void (*)(struct buf *), const struct disklabel *,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dkio.h,v 1.14 2007/08/17 11:05:03 pavel Exp $ */
|
||||
/* $NetBSD: dkio.h,v 1.15 2009/12/22 18:55:25 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1988, 1993
|
||||
|
@ -42,7 +42,10 @@
|
|||
#define DIOCGDINFO _IOR('d', 101, struct disklabel)/* get */
|
||||
#define DIOCSDINFO _IOW('d', 102, struct disklabel)/* set */
|
||||
#define DIOCWDINFO _IOW('d', 103, struct disklabel)/* set, update disk */
|
||||
|
||||
#ifdef _KERNEL
|
||||
#define DIOCGPART _IOW('d', 104, struct partinfo) /* get partition */
|
||||
#endif
|
||||
|
||||
#if defined(__HAVE_OLD_DISKLABEL) && defined(_KERNEL)
|
||||
#define ODIOCGDINFO _IOR('d', 101, struct olddisklabel)/* get */
|
||||
|
|
Loading…
Reference in New Issue