Hide the kernel-only stuff inside #ifdef KERNEL.

XXX should be #ifdef _KERNEL
XXX^2 the !KERNEL part should probably be moved out into a publically
      visible header file anyway.
This commit is contained in:
Joerg Wunsch 1997-05-07 13:23:04 +00:00
parent 2e9cf7f041
commit 08ed607a09
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25531
2 changed files with 28 additions and 10 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)iso.h 8.6 (Berkeley) 5/10/95
* $Id: iso.h,v 1.14 1997/05/04 15:24:22 joerg Exp $
* $Id: iso.h,v 1.15 1997/05/04 16:17:49 joerg Exp $
*/
#define ISODCL(from, to) (to - from + 1)
@ -171,6 +171,8 @@ struct iso_extended_attributes {
u_char len_au [ISODCL (247, 250)]; /* 723 */
};
#ifdef KERNEL
/* CD-ROM Format type */
enum ISO_FTYPE { ISO_FTYPE_DEFAULT, ISO_FTYPE_9660, ISO_FTYPE_RRIP,
ISO_FTYPE_ECMA, ISO_FTYPE_HIGH_SIERRA };
@ -219,6 +221,17 @@ extern vop_t **cd9660_vnodeop_p;
extern vop_t **cd9660_specop_p;
extern vop_t **cd9660_fifoop_p;
int isofncmp __P((u_char *, int, u_char *, int));
void isofntrans __P((u_char *, int, u_char *, u_short *, int, int));
ino_t isodirino __P((struct iso_directory_record *, struct iso_mnt *));
#endif /* KERNEL */
/*
* The isonum_xxx functions are inlined anyway, and could come handy even
* outside the kernel. Thus we don't hide them here.
*/
static __inline int isonum_711 __P((u_char *));
static __inline int
isonum_711(p)
@ -293,10 +306,6 @@ isonum_733(p)
#endif /* UNALIGNED_ACCESS */
int isofncmp __P((u_char *, int, u_char *, int));
void isofntrans __P((u_char *, int, u_char *, u_short *, int, int));
ino_t isodirino __P((struct iso_directory_record *, struct iso_mnt *));
/*
* Associated files have a leading '='.
*/

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)iso.h 8.6 (Berkeley) 5/10/95
* $Id: iso.h,v 1.14 1997/05/04 15:24:22 joerg Exp $
* $Id: iso.h,v 1.15 1997/05/04 16:17:49 joerg Exp $
*/
#define ISODCL(from, to) (to - from + 1)
@ -171,6 +171,8 @@ struct iso_extended_attributes {
u_char len_au [ISODCL (247, 250)]; /* 723 */
};
#ifdef KERNEL
/* CD-ROM Format type */
enum ISO_FTYPE { ISO_FTYPE_DEFAULT, ISO_FTYPE_9660, ISO_FTYPE_RRIP,
ISO_FTYPE_ECMA, ISO_FTYPE_HIGH_SIERRA };
@ -219,6 +221,17 @@ extern vop_t **cd9660_vnodeop_p;
extern vop_t **cd9660_specop_p;
extern vop_t **cd9660_fifoop_p;
int isofncmp __P((u_char *, int, u_char *, int));
void isofntrans __P((u_char *, int, u_char *, u_short *, int, int));
ino_t isodirino __P((struct iso_directory_record *, struct iso_mnt *));
#endif /* KERNEL */
/*
* The isonum_xxx functions are inlined anyway, and could come handy even
* outside the kernel. Thus we don't hide them here.
*/
static __inline int isonum_711 __P((u_char *));
static __inline int
isonum_711(p)
@ -293,10 +306,6 @@ isonum_733(p)
#endif /* UNALIGNED_ACCESS */
int isofncmp __P((u_char *, int, u_char *, int));
void isofntrans __P((u_char *, int, u_char *, u_short *, int, int));
ino_t isodirino __P((struct iso_directory_record *, struct iso_mnt *));
/*
* Associated files have a leading '='.
*/