/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_FS_HSFS_SPEC_H
#define _SYS_FS_HSFS_SPEC_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* High Sierra filesystem specification
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
/* routines required for date parsing */
#endif /* _KERNEL */
/* macros to parse binary integers */
#define MSB_INT(x) \
#define LSB_INT(x) \
#define BOTH_SHORT(x) (short)*((short *)x)
#define BOTH_INT(x) (int)*((int *)x)
/*
* SPARC machines requires that integer must
* be in a full word boundary. CD-ROM data aligns
* to even word boundary only. Because of this mismatch,
* we have to move integer data from CD-ROM to memory one
* byte at a time. LSB data starts first. We therefore
* use this to do byte by byte copying.
*/
#endif
/*
* The following describes actual on-disk structures.
* To achieve portability, all structures are #defines
* rather than a structure definition. Macros are provided
* to get either the data or address of individual fields.
*/
/* Overall High Sierra disk structure */
/* Standard File Structure Volume Descriptor */
enum hs_voldesc_type {
};
/* macros to get the address of each field */
/* macros to get the values of each field (strings are returned as ptrs) */
/* Standard File Structure Volume Descriptor date fields */
((x)[1] - '0'))
(((x)[1] - '0') * 100) + \
(((x)[2] - '0') * 10) + \
((x)[3] - '0'))
/* Path table enry */
/* fix size of path table entry */
/* macros to get the address of each field */
/* macros to get the values of each field */
#if defined(__sparc)
#else
#endif
/* root record */
/* max size of a name */
/* Directory Entry (Directory Record) */
/* macros to get the address of each field */
/* **UNIX extension*** */
/* macros to get the values of each field (strings are returned as ptrs) */
/* **UNIX EXTENSION**** */
/* mask bits for HDE_FLAGS */
/* Directory Record date fields */
/* tests for Interchange Levels 1 & 2 file types */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_FS_HSFS_SPEC_H */