hsfs_susp.h revision 5dd69ca1b9d54efcddf4f5b9fc472658299d134d
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
*/
/*
* ISO 9660 RRIP extension filesystem specifications
* Copyright (c) 1991,1997-1998,2000 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _SYS_FS_HSFS_SUSP_H
#define _SYS_FS_HSFS_SUSP_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#define DEBUGGING_ALL 0
#define DEBUGGING 0
/*
* return values from SUA parsing
*/
#define SUA_NULL_POINTER -1
#define END_OF_SUA_PARSING -2
#define END_OF_SUA -3
#define GET_CONTINUATION -4
#define SUA_ENOMEM -5
#define SUA_EINVAL -6
/*
* For dealing with implemented bits...
* These here expect the fsp and a bit as an agument
*/
#define HAVE_SUSP 0 /* have a SUSP */
/*
* For dealing with implemented bits...
* These here expect just the fsp->hsfs_ext_impl
*/
#define SUSP_VERSION 1
/*
* SUSP signagure definitions
*/
#define SUSP_SP "SP"
#define SUSP_CE "CE"
#define SUSP_PD "PD"
#define SUSP_ER "ER"
#define SUSP_ST "ST"
/*
* Generic System Use Field (SUF) Macros and declarations
*/
/* signature field */
/*
* Extension Reference Macros
*/
/* length */
/* length */
/* description length */
/* description length */
/* length */
/* length */
/* string begins */
/* extension id string */
/* ext. description string */
ER_DES_LEN(x)])
/* ext. source string */
/*
* Continuation Area Macros
*/
/*
* Sharing Protocol (SP) Macros
*/
(SP_CHK_BYTE_2(x) == SUSP_CHECK_BYTE_2))
/*
* Forward declarations
*/
#ifdef _KERNEL
extern uchar_t *share_protocol();
extern uchar_t *share_ext_ref();
extern uchar_t *share_continue();
extern uchar_t *share_padding();
extern uchar_t *share_stop();
#endif
/*
* Extension signature structure, to corrolate the handler functions
* with the signatures
*/
struct extension_signature_struct {
char *ext_signature; /* extension signature */
};
typedef struct extension_signature_struct ext_signature_t;
/*
* Extension name structure, to corrolate the extensions with their own
* signature tables.
*/
struct extension_name_struct {
char *extension_name; /* ER field identifier */
/* table for appropriate */
/* extension */
};
typedef struct extension_name_struct extension_name_t;
/*
* Extern declaration for all supported extensions
*/
struct cont_info_struct {
};
typedef struct cont_info_struct cont_info_t;
/*
* Structure for passing arguments to sig_handler()'s. Since there are
* so many sig_handler()'s, it would be slower to pass multiple
* arguments to all of them. It would also ease maintainance
*/
struct sig_args_struct {
int *name_len_p; /* dir entry name length */
short flags; /* misc flags */
};
typedef struct sig_args_struct sig_args_t;
/*
* Extern declaration for all supported extensions
*/
#ifdef _KERNEL
extern ext_signature_t rrip_signature_table[];
extern ext_signature_t susp_signature_table[];
extern extension_name_t extension_name_table[];
extern ext_signature_t *susp_sp;
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_FS_HSFS_SUSP_H */