]>
git.saurik.com Git - apple/xnu.git/blob - bsd/isofs/cd9660/cd9660_rrip.h
2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
25 /* $NetBSD: cd9660_rrip.h,v 1.6 1994/12/13 22:33:24 mycroft Exp $ */
28 * Copyright (c) 1993, 1994
29 * The Regents of the University of California. All rights reserved.
31 * This code is derived from software contributed to Berkeley
32 * by Pace Willisson (pace@blitz.com). The Rock Ridge Extension
33 * Support code is derived from software contributed to Berkeley
34 * by Atsushi Murai (amurai@spec.co.jp).
36 * Redistribution and use in source and binary forms, with or without
37 * modification, are permitted provided that the following conditions
39 * 1. Redistributions of source code must retain the above copyright
40 * notice, this list of conditions and the following disclaimer.
41 * 2. Redistributions in binary form must reproduce the above copyright
42 * notice, this list of conditions and the following disclaimer in the
43 * documentation and/or other materials provided with the distribution.
44 * 3. All advertising materials mentioning features or use of this software
45 * must display the following acknowledgement:
46 * This product includes software developed by the University of
47 * California, Berkeley and its contributors.
48 * 4. Neither the name of the University nor the names of its contributors
49 * may be used to endorse or promote products derived from this software
50 * without specific prior written permission.
52 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
53 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
54 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
55 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
56 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
57 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
58 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
59 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
60 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
61 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
64 * @(#)cd9660_rrip.h 8.2 (Berkeley) 12/5/94
66 #ifndef __ISOFS_CD9660_CD9660_RRIP_H__
67 #define __ISOFS_CD9660_CD9660_RRIP_H__
69 #include <sys/appleapiopts.h>
71 #ifdef __APPLE_API_PRIVATE
73 char type
[ISODCL ( 0, 1)];
74 u_char length
[ISODCL ( 2, 2)]; /* 711 */
75 u_char version
[ISODCL ( 3, 3)];
80 char mode
[ISODCL ( 4, 11)]; /* 733 */
81 char links
[ISODCL ( 12, 19)]; /* 733 */
82 char uid
[ISODCL ( 20, 27)]; /* 733 */
83 char gid
[ISODCL ( 28, 35)]; /* 733 */
88 char dev_t_high
[ISODCL ( 4, 11)]; /* 733 */
89 char dev_t_low
[ISODCL ( 12, 19)]; /* 733 */
92 #define ISO_SUSP_CFLAG_CONTINUE 0x01
93 #define ISO_SUSP_CFLAG_CURRENT 0x02
94 #define ISO_SUSP_CFLAG_PARENT 0x04
95 #define ISO_SUSP_CFLAG_ROOT 0x08
96 #define ISO_SUSP_CFLAG_VOLROOT 0x10
97 #define ISO_SUSP_CFLAG_HOST 0x20
100 u_char cflag
[ISODCL ( 1, 1)];
101 u_char clen
[ISODCL ( 2, 2)];
102 u_char name
[1]; /* XXX */
103 } ISO_RRIP_SLINK_COMPONENT
;
104 #define ISO_RRIP_SLSIZ 2
108 u_char flags
[ISODCL ( 4, 4)];
109 u_char component
[ISODCL ( 5, 5)];
114 char flags
[ISODCL ( 4, 4)];
119 char dir_loc
[ISODCL ( 4, 11)]; /* 733 */
124 char dir_loc
[ISODCL ( 4, 11)]; /* 733 */
131 #define ISO_SUSP_TSTAMP_FORM17 0x80
132 #define ISO_SUSP_TSTAMP_FORM7 0x00
133 #define ISO_SUSP_TSTAMP_CREAT 0x01
134 #define ISO_SUSP_TSTAMP_MODIFY 0x02
135 #define ISO_SUSP_TSTAMP_ACCESS 0x04
136 #define ISO_SUSP_TSTAMP_ATTR 0x08
137 #define ISO_SUSP_TSTAMP_BACKUP 0x10
138 #define ISO_SUSP_TSTAMP_EXPIRE 0x20
139 #define ISO_SUSP_TSTAMP_EFFECT 0x40
143 u_char flags
[ISODCL ( 4, 4)];
144 u_char time
[ISODCL ( 5, 5)];
149 u_char flags
[ISODCL ( 4, 4)];
154 char len_id
[ISODCL ( 4, 4)];
155 char len_des
[ISODCL ( 5, 5)];
156 char len_src
[ISODCL ( 6, 6)];
157 char version
[ISODCL ( 7, 7)];
162 char check
[ISODCL ( 4, 5)];
163 char skip
[ISODCL ( 6, 6)];
168 char location
[ISODCL ( 4, 11)];
169 char offset
[ISODCL ( 12, 19)];
170 char length
[ISODCL ( 20, 27)];
173 #endif /* __APPLE_API_PRIVATE */
174 #endif /* __ISOFS_CD9660_CD9660_RRIP_H__ */