Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Limit DIOCGPART and struct partinfo visibility to _K...
details: https://anonhg.NetBSD.org/src/rev/9cfc2b9d8aaa
branches: trunk
changeset: 750271:9cfc2b9d8aaa
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Dec 22 18:55:25 2009 +0000
description:
Limit DIOCGPART and struct partinfo visibility to _KERNEL.
diffstat:
sys/sys/disklabel.h | 5 ++---
sys/sys/dkio.h | 5 ++++-
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (46 lines):
diff -r 915ef2daa166 -r 9cfc2b9d8aaa sys/sys/disklabel.h
--- a/sys/sys/disklabel.h Tue Dec 22 18:36:02 2009 +0000
+++ b/sys/sys/disklabel.h Tue Dec 22 18:55:25 2009 +0000
@@ -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 @@
int df_reg[8]; /* result */
};
+#ifdef _KERNEL
/*
* Structure used internally to retrieve information about a partition
* on a disk.
@@ -434,8 +435,6 @@
struct partition *part;
};
-#ifdef _KERNEL
-
struct disk;
int disk_read_sectors(void (*)(struct buf *), const struct disklabel *,
diff -r 915ef2daa166 -r 9cfc2b9d8aaa sys/sys/dkio.h
--- a/sys/sys/dkio.h Tue Dec 22 18:36:02 2009 +0000
+++ b/sys/sys/dkio.h Tue Dec 22 18:55:25 2009 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index