/*
* 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 System Use Sharing Protocol extension filesystem specifications
* Copyright (c) 1991,2000,2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/sysmacros.h>
#include <sys/pathname.h>
/*
* Common Signatures for all SUSP
*/
};
/*
* These are global pointers referring to the above table, so the
* positions must not change as marked on the right above.
*/
/*
* ext name version implemented signature table
*
* the SUSP must be the first entry in the table.
* the RRIP must be the second entry in the table. We need to be able
* to check the RRIP bit being set, so we must know it's position.
* RRIP_BIT is set to 2 in rrip.h
*/
};
/*
* share_protocol()
*
* sig_handler() for SUSP signature "SP"
*
* This function looks for the "SP" signature field, which means that
* the SUSP is supported on the current CD-ROM. It looks for the word
* 0xBEEF in the signature. If that exists, the SUSP is implemented.
* The function will then set the implemented bit in the "SUSP" entry
* of the extention_name_table[]. If the bytes don't match, then we
* return a big fat NULL and treat this as an ISO 9660 CD-ROM.
*/
uchar_t *
{
/* Let's check the check bytes */
if (!CHECK_BYTES_OK(sp_ptr))
/*
* Ah, we have the go ahead, so let's set the implemented bit
* of the SUSP in the extension_name_table[]
*/
"System Use Sharing Protocol ver. %d:not supported\n",
}
}
/*
* share_ext_ref()
*
* sig_handler() for SUSP signature "ER"
*
* This function looks for the "ER" signature field, which lists an
* extension that is implemented on the current CD-ROM. The function
* will then search through the extention_name_table[], looking for the
* extension reference in this SUF.
*
* If the correct extension reference is found, and the version number
* in the "ER" SUF is less than or equal to the version specified in
* the extension_name_table, the implemented bit will be set to 1.
*
* If the version number in the "ER" field is greater than that in the
* extension_name_table or no reference can be matched, the reference
* will be skipped the function will return the next field.
*/
uchar_t *
{
int index;
/*
* Find appropriate extension and signature table
*/
}
}
}
/*
* share_continue()
*
* sig_handler() for SUSP signature "CE"
*
* This function looks for the "CE" signature field. This means that
* the SUA is continued in another block on the CD-ROM. Because it is
* not a requirement that this "CE" field come at the end of the SUA,
* this function will only set up a structure containing the
* information needed to read the next SUA, somewhere on the disk.
*
* The end of the SUA is signaled by 2 NULL bytes, where the next
* signature would have been.
*
* This one will be tough to implement.
*/
uchar_t *
{
}
/*
* share_padding()
*
* sig_handler() for SUSP signature "PD"
*
* All this function is needed for is bypassing a certain number of
* bytes. So, we just advance past this field and we're set.
*/
uchar_t *
{
}
/*
* share_stop()
*
* sig_handler() for SUSP signature "ST"
*
* All this is used for is signaling the end of an SUA.
* It fills the flag variable with the
*/
uchar_t *
{
}