diff options
author | phk <phk@FreeBSD.org> | 2002-03-09 19:15:37 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-03-09 19:15:37 +0000 |
commit | 921d35246c1815bb4d8a9b599783bebc4a3052f1 (patch) | |
tree | 5991d951f663e932859acb313b9717b11228e1ae /sys/sys/diskpc98.h | |
parent | 2731e7d254920adf7f3097194cd2a70da6d4a974 (diff) | |
download | FreeBSD-src-921d35246c1815bb4d8a9b599783bebc4a3052f1.zip FreeBSD-src-921d35246c1815bb4d8a9b599783bebc4a3052f1.tar.gz |
Hide the DIOCGPART ioctl from userland where it has no decent use.
It's use in the kernel is also highly suspect due to the total absense
of any kind of lifetime definition of the passed pointers.
Diffstat (limited to 'sys/sys/diskpc98.h')
-rw-r--r-- | sys/sys/diskpc98.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/diskpc98.h b/sys/sys/diskpc98.h index a3a2689..980e795 100644 --- a/sys/sys/diskpc98.h +++ b/sys/sys/diskpc98.h @@ -333,6 +333,7 @@ struct format_op { int df_reg[8]; /* result */ }; +#ifdef _KERNEL /* * Structure used internally to retrieve information about a partition * on a disk. @@ -341,6 +342,7 @@ struct partinfo { struct disklabel *disklab; struct partition *part; }; +#endif /* DOS partition table -- located in boot block */ @@ -404,7 +406,9 @@ struct dos_partition { #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 #define DIOCGDVIRGIN _IOR('d', 105, struct disklabel)/* get virgin label */ #define DIOCWLABEL _IOW('d', 109, int) /* write en/disable label */ |