]>
Commit | Line | Data |
---|---|---|
1c79356b | 1 | /* |
5d5c5d0d A |
2 | * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved. |
3 | * | |
8ad349bb | 4 | * @APPLE_LICENSE_OSREFERENCE_HEADER_START@ |
1c79356b | 5 | * |
8ad349bb A |
6 | * This file contains Original Code and/or Modifications of Original Code |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. The rights granted to you under the | |
10 | * License may not be used to create, or enable the creation or | |
11 | * redistribution of, unlawful or unlicensed copies of an Apple operating | |
12 | * system, or to circumvent, violate, or enable the circumvention or | |
13 | * violation of, any terms of an Apple operating system software license | |
14 | * agreement. | |
15 | * | |
16 | * Please obtain a copy of the License at | |
17 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
18 | * file. | |
19 | * | |
20 | * The Original Code and all software distributed under the License are | |
21 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
22 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
23 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
24 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
25 | * Please see the License for the specific language governing rights and | |
26 | * limitations under the License. | |
27 | * | |
28 | * @APPLE_LICENSE_OSREFERENCE_HEADER_END@ | |
1c79356b A |
29 | */ |
30 | /* $NetBSD: iso_rrip.h,v 1.3 1994/06/29 06:32:02 cgd Exp $ */ | |
31 | ||
32 | /*- | |
33 | * Copyright (c) 1993, 1994 | |
34 | * The Regents of the University of California. All rights reserved. | |
35 | * | |
36 | * This code is derived from software contributed to Berkeley | |
37 | * by Pace Willisson (pace@blitz.com). The Rock Ridge Extension | |
38 | * Support code is derived from software contributed to Berkeley | |
39 | * by Atsushi Murai (amurai@spec.co.jp). | |
40 | * | |
41 | * Redistribution and use in source and binary forms, with or without | |
42 | * modification, are permitted provided that the following conditions | |
43 | * are met: | |
44 | * 1. Redistributions of source code must retain the above copyright | |
45 | * notice, this list of conditions and the following disclaimer. | |
46 | * 2. Redistributions in binary form must reproduce the above copyright | |
47 | * notice, this list of conditions and the following disclaimer in the | |
48 | * documentation and/or other materials provided with the distribution. | |
49 | * 3. All advertising materials mentioning features or use of this software | |
50 | * must display the following acknowledgement: | |
51 | * This product includes software developed by the University of | |
52 | * California, Berkeley and its contributors. | |
53 | * 4. Neither the name of the University nor the names of its contributors | |
54 | * may be used to endorse or promote products derived from this software | |
55 | * without specific prior written permission. | |
56 | * | |
57 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
58 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
59 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
60 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
61 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
62 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
63 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
64 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
65 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
66 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
67 | * SUCH DAMAGE. | |
68 | * | |
69 | * @(#)iso_rrip.h 8.2 (Berkeley) 1/23/94 | |
70 | */ | |
9bccf70c A |
71 | #ifndef __ISOFS_CD9660_ISO_RRIP_H__ |
72 | #define __ISOFS_CD9660_ISO_RRIP_H__ | |
1c79356b | 73 | |
9bccf70c | 74 | #include <sys/appleapiopts.h> |
1c79356b | 75 | |
9bccf70c A |
76 | |
77 | #ifdef __APPLE_API_PRIVATE | |
1c79356b A |
78 | /* |
79 | * Analyze function flag (similar to RR field bits) | |
80 | */ | |
81 | #define ISO_SUSP_ATTR 0x0001 | |
82 | #define ISO_SUSP_DEVICE 0x0002 | |
83 | #define ISO_SUSP_SLINK 0x0004 | |
84 | #define ISO_SUSP_ALTNAME 0x0008 | |
85 | #define ISO_SUSP_CLINK 0x0010 | |
86 | #define ISO_SUSP_PLINK 0x0020 | |
87 | #define ISO_SUSP_RELDIR 0x0040 | |
88 | #define ISO_SUSP_TSTAMP 0x0080 | |
89 | #define ISO_SUSP_IDFLAG 0x0100 | |
90 | #define ISO_SUSP_EXTREF 0x0200 | |
91 | #define ISO_SUSP_CONT 0x0400 | |
92 | #define ISO_SUSP_OFFSET 0x0800 | |
93 | #define ISO_SUSP_STOP 0x1000 | |
94 | #define ISO_SUSP_UNKNOWN 0x8000 | |
95 | ||
96 | typedef struct { | |
97 | struct iso_node *inop; | |
98 | int fields; /* interesting fields in this analysis */ | |
99 | daddr_t iso_ce_blk; /* block of continuation area */ | |
100 | off_t iso_ce_off; /* offset of continuation area */ | |
101 | int iso_ce_len; /* length of continuation area */ | |
102 | struct iso_mnt *imp; /* mount structure */ | |
103 | ino_t *inump; /* inode number pointer */ | |
104 | char *outbuf; /* name/symbolic link output area */ | |
105 | u_short *outlen; /* length of above */ | |
106 | u_short maxlen; /* maximum length of above */ | |
107 | int cont; /* continuation of above */ | |
108 | } ISO_RRIP_ANALYZE; | |
109 | ||
91447636 A |
110 | int cd9660_rrip_analyze(struct iso_directory_record *isodir, |
111 | struct iso_node *inop, struct iso_mnt *imp); | |
112 | int cd9660_rrip_getname(struct iso_directory_record *isodir, | |
1c79356b | 113 | char *outbuf, u_short *outlen, |
91447636 A |
114 | ino_t *inump, struct iso_mnt *imp); |
115 | int cd9660_rrip_getsymname(struct iso_directory_record *isodir, | |
1c79356b | 116 | char *outbuf, u_short *outlen, |
91447636 A |
117 | struct iso_mnt *imp); |
118 | int cd9660_rrip_offset(struct iso_directory_record *isodir, | |
119 | struct iso_mnt *imp); | |
9bccf70c A |
120 | #endif /* __APPLE_API_PRIVATE */ |
121 | #endif /* __ISOFS_CD9660_ISO_RRIP_H__ */ |