/*-1* SPDX-License-Identifier: BSD-3-Clause2*3* Copyright (c) 1993, 19944* The Regents of the University of California. All rights reserved.5*6* This code is derived from software contributed to Berkeley7* by Pace Willisson ([email protected]). The Rock Ridge Extension8* Support code is derived from software contributed to Berkeley9* by Atsushi Murai ([email protected]).10*11* Redistribution and use in source and binary forms, with or without12* modification, are permitted provided that the following conditions13* are met:14* 1. Redistributions of source code must retain the above copyright15* notice, this list of conditions and the following disclaimer.16* 2. Redistributions in binary form must reproduce the above copyright17* notice, this list of conditions and the following disclaimer in the18* documentation and/or other materials provided with the distribution.19* 3. Neither the name of the University nor the names of its contributors20* may be used to endorse or promote products derived from this software21* without specific prior written permission.22*23* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND24* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE25* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE26* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE27* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL28* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS29* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)30* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT31* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY32* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF33* SUCH DAMAGE.34*/3536#ifndef _ISOFS_CD9660_CD9660_RRIP_H_37#define _ISOFS_CD9660_CD9660_RRIP_H_3839typedef struct {40char type [ISODCL ( 0, 1)];41u_char length [ISODCL ( 2, 2)]; /* 711 */42u_char version [ISODCL ( 3, 3)];43} ISO_SUSP_HEADER;4445typedef struct {46ISO_SUSP_HEADER h;47char mode [ISODCL ( 4, 11)]; /* 733 */48char links [ISODCL ( 12, 19)]; /* 733 */49char uid [ISODCL ( 20, 27)]; /* 733 */50char gid [ISODCL ( 28, 35)]; /* 733 */51} ISO_RRIP_ATTR;5253typedef struct {54ISO_SUSP_HEADER h;55char dev_t_high [ISODCL ( 4, 11)]; /* 733 */56char dev_t_low [ISODCL ( 12, 19)]; /* 733 */57} ISO_RRIP_DEVICE;5859#define ISO_SUSP_CFLAG_CONTINUE 0x0160#define ISO_SUSP_CFLAG_CURRENT 0x0261#define ISO_SUSP_CFLAG_PARENT 0x0462#define ISO_SUSP_CFLAG_ROOT 0x0863#define ISO_SUSP_CFLAG_VOLROOT 0x1064#define ISO_SUSP_CFLAG_HOST 0x206566typedef struct {67u_char cflag [ISODCL ( 1, 1)];68u_char clen [ISODCL ( 2, 2)];69u_char name [1]; /* XXX */70} ISO_RRIP_SLINK_COMPONENT;71#define ISO_RRIP_SLSIZ 27273typedef struct {74ISO_SUSP_HEADER h;75u_char flags [ISODCL ( 4, 4)];76u_char component [ISODCL ( 5, 5)];77} ISO_RRIP_SLINK;7879typedef struct {80ISO_SUSP_HEADER h;81char flags [ISODCL ( 4, 4)];82} ISO_RRIP_ALTNAME;8384typedef struct {85ISO_SUSP_HEADER h;86char dir_loc [ISODCL ( 4, 11)]; /* 733 */87} ISO_RRIP_CLINK;8889typedef struct {90ISO_SUSP_HEADER h;91char dir_loc [ISODCL ( 4, 11)]; /* 733 */92} ISO_RRIP_PLINK;9394typedef struct {95ISO_SUSP_HEADER h;96} ISO_RRIP_RELDIR;9798#define ISO_SUSP_TSTAMP_FORM17 0x8099#define ISO_SUSP_TSTAMP_FORM7 0x00100#define ISO_SUSP_TSTAMP_CREAT 0x01101#define ISO_SUSP_TSTAMP_MODIFY 0x02102#define ISO_SUSP_TSTAMP_ACCESS 0x04103#define ISO_SUSP_TSTAMP_ATTR 0x08104#define ISO_SUSP_TSTAMP_BACKUP 0x10105#define ISO_SUSP_TSTAMP_EXPIRE 0x20106#define ISO_SUSP_TSTAMP_EFFECT 0x40107108typedef struct {109ISO_SUSP_HEADER h;110u_char flags [ISODCL ( 4, 4)];111u_char time [ISODCL ( 5, 5)];112} ISO_RRIP_TSTAMP;113114typedef struct {115ISO_SUSP_HEADER h;116u_char flags [ISODCL ( 4, 4)];117} ISO_RRIP_IDFLAG;118119typedef struct {120ISO_SUSP_HEADER h;121char len_id [ISODCL ( 4, 4)];122char len_des [ISODCL ( 5, 5)];123char len_src [ISODCL ( 6, 6)];124char version [ISODCL ( 7, 7)];125} ISO_RRIP_EXTREF;126127typedef struct {128ISO_SUSP_HEADER h;129char check [ISODCL ( 4, 5)];130char skip [ISODCL ( 6, 6)];131} ISO_RRIP_OFFSET;132133typedef struct {134ISO_SUSP_HEADER h;135u_char location [ISODCL ( 4, 11)];136u_char offset [ISODCL ( 12, 19)];137u_char length [ISODCL ( 20, 27)];138} ISO_RRIP_CONT;139140#endif /* _ISOFS_CD9660_CD9660_RRIP_H_ */141142143