]> git.saurik.com Git - apple/xnu.git/blame - bsd/isofs/cd9660/cd9660_mount.h
xnu-792.18.15.tar.gz
[apple/xnu.git] / bsd / isofs / cd9660 / cd9660_mount.h
CommitLineData
1c79356b 1/*
5d5c5d0d
A
2 * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
3 *
8f6c56a5 4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
1c79356b 5 *
8f6c56a5
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 License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
8ad349bb 24 * limitations under the License.
8f6c56a5
A
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
1c79356b
A
27 */
28/*
29 * Copyright (c) 1995
30 * The Regents of the University of California. All rights reserved.
31 *
32 * This code is derived from software contributed to Berkeley
33 * by Pace Willisson (pace@blitz.com). The Rock Ridge Extension
34 * Support code is derived from software contributed to Berkeley
35 * by Atsushi Murai (amurai@spec.co.jp).
36 *
37 * Redistribution and use in source and binary forms, with or without
38 * modification, are permitted provided that the following conditions
39 * are met:
40 * 1. Redistributions of source code must retain the above copyright
41 * notice, this list of conditions and the following disclaimer.
42 * 2. Redistributions in binary form must reproduce the above copyright
43 * notice, this list of conditions and the following disclaimer in the
44 * documentation and/or other materials provided with the distribution.
45 * 3. All advertising materials mentioning features or use of this software
46 * must display the following acknowledgement:
47 * This product includes software developed by the University of
48 * California, Berkeley and its contributors.
49 * 4. Neither the name of the University nor the names of its contributors
50 * may be used to endorse or promote products derived from this software
51 * without specific prior written permission.
52 *
53 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
54 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
55 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
56 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
57 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
58 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
59 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
60 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
61 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
62 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
63 * SUCH DAMAGE.
64 *
65 * @(#)cd9660_mount.h 8.1 (Berkeley) 5/24/95
66 */
67
9bccf70c
A
68#ifndef __ISOFS_CD9660_CD9660_MOUNT_H__
69#define __ISOFS_CD9660_CD9660_MOUNT_H__
70
71#include <sys/appleapiopts.h>
91447636 72#include <sys/cdefs.h>
9bccf70c
A
73
74#ifdef __APPLE_API_UNSTABLE
1c79356b
A
75/*
76 * Arguments to mount ISO 9660 filesystems.
77 */
55e303ae 78struct CDTOC;
1c79356b 79struct iso_args {
91447636 80#ifndef KERNEL
1c79356b 81 char *fspec; /* block special device to mount */
91447636 82#endif
1c79356b
A
83 int flags; /* mounting flags, see below */
84 int ssector; /* starting sector, 0 for 1st session */
55e303ae
A
85 int toc_length; /* Size of *toc, including the toc.length field */
86 struct CDTOC *toc;
1c79356b
A
87};
88#define ISOFSMNT_NORRIP 0x00000001 /* disable Rock Ridge Ext.*/
89#define ISOFSMNT_GENS 0x00000002 /* enable generation numbers */
90#define ISOFSMNT_EXTATT 0x00000004 /* enable extended attributes */
91#define ISOFSMNT_NOJOLIET 0x00000008 /* disable Joliet Ext.*/
55e303ae 92#define ISOFSMNT_TOC 0x00000010 /* iso_args.toc is valid */
9bccf70c 93
91447636
A
94#ifdef KERNEL
95/* LP64 version of iso_args. all pointers
96 * grow when we're dealing with a 64-bit process.
97 * WARNING - keep in sync with iso_args
98 */
99/* LP64todo - should this move? */
100
91447636
A
101struct user_iso_args {
102 int flags; /* mounting flags, see below */
103 int ssector; /* starting sector, 0 for 1st session */
104 int toc_length; /* Size of *toc, including the toc.length field */
89b3af67 105 user_addr_t toc __attribute((aligned(8)));
91447636
A
106};
107
91447636
A
108#endif /* KERNEL */
109
9bccf70c
A
110#endif /* __APPLE_API_UNSTABLE */
111#endif /* __ISOFS_CD9660_CD9660_MOUNT_H__ */