]> git.saurik.com Git - apple/xnu.git/blame - bsd/isofs/cd9660/iso_rrip.h
xnu-344.49.tar.gz
[apple/xnu.git] / bsd / isofs / cd9660 / iso_rrip.h
CommitLineData
1c79356b 1/*
9bccf70c 2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
1c79356b
A
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
43866e37 6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
1c79356b 7 *
43866e37
A
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
13 * file.
14 *
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
1c79356b
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
43866e37
A
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.
1c79356b
A
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25/* $NetBSD: iso_rrip.h,v 1.3 1994/06/29 06:32:02 cgd Exp $ */
26
27/*-
28 * Copyright (c) 1993, 1994
29 * The Regents of the University of California. All rights reserved.
30 *
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).
35 *
36 * Redistribution and use in source and binary forms, with or without
37 * modification, are permitted provided that the following conditions
38 * are met:
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.
51 *
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
62 * SUCH DAMAGE.
63 *
64 * @(#)iso_rrip.h 8.2 (Berkeley) 1/23/94
65 */
9bccf70c
A
66#ifndef __ISOFS_CD9660_ISO_RRIP_H__
67#define __ISOFS_CD9660_ISO_RRIP_H__
1c79356b 68
9bccf70c 69#include <sys/appleapiopts.h>
1c79356b 70
9bccf70c
A
71
72#ifdef __APPLE_API_PRIVATE
1c79356b
A
73/*
74 * Analyze function flag (similar to RR field bits)
75 */
76#define ISO_SUSP_ATTR 0x0001
77#define ISO_SUSP_DEVICE 0x0002
78#define ISO_SUSP_SLINK 0x0004
79#define ISO_SUSP_ALTNAME 0x0008
80#define ISO_SUSP_CLINK 0x0010
81#define ISO_SUSP_PLINK 0x0020
82#define ISO_SUSP_RELDIR 0x0040
83#define ISO_SUSP_TSTAMP 0x0080
84#define ISO_SUSP_IDFLAG 0x0100
85#define ISO_SUSP_EXTREF 0x0200
86#define ISO_SUSP_CONT 0x0400
87#define ISO_SUSP_OFFSET 0x0800
88#define ISO_SUSP_STOP 0x1000
89#define ISO_SUSP_UNKNOWN 0x8000
90
91typedef struct {
92 struct iso_node *inop;
93 int fields; /* interesting fields in this analysis */
94 daddr_t iso_ce_blk; /* block of continuation area */
95 off_t iso_ce_off; /* offset of continuation area */
96 int iso_ce_len; /* length of continuation area */
97 struct iso_mnt *imp; /* mount structure */
98 ino_t *inump; /* inode number pointer */
99 char *outbuf; /* name/symbolic link output area */
100 u_short *outlen; /* length of above */
101 u_short maxlen; /* maximum length of above */
102 int cont; /* continuation of above */
103} ISO_RRIP_ANALYZE;
104
105int cd9660_rrip_analyze __P((struct iso_directory_record *isodir,
106 struct iso_node *inop, struct iso_mnt *imp));
107int cd9660_rrip_getname __P((struct iso_directory_record *isodir,
108 char *outbuf, u_short *outlen,
109 ino_t *inump, struct iso_mnt *imp));
110int cd9660_rrip_getsymname __P((struct iso_directory_record *isodir,
111 char *outbuf, u_short *outlen,
112 struct iso_mnt *imp));
113int cd9660_rrip_offset __P((struct iso_directory_record *isodir,
114 struct iso_mnt *imp));
9bccf70c
A
115#endif /* __APPLE_API_PRIVATE */
116#endif /* __ISOFS_CD9660_ISO_RRIP_H__ */