Chameleon

Chameleon Svn Source Tree

Root/tags/2.0/i386/include/ufs/ffs/ffs_extern.h

Source at commit 1551 created 12 years 10 months ago.
By ifabio, Added Macedonian Language Add 1280x768 Resolution choice (pkg) Update all the language Renamed postinstall.in in postinstall correct it also into buildpkg.sh
1/*
2 * Copyright (c) 2000-2008 Apple, Inc. All rights reserved.
3 *
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5 *
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
24 * limitations under the License.
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 */
28/* Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved */
29
30/*-
31 * Copyright (c) 1991, 1993, 1994
32 *The Regents of the University of California. All rights reserved.
33 *
34 * Redistribution and use in source and binary forms, with or without
35 * modification, are permitted provided that the following conditions
36 * are met:
37 * 1. Redistributions of source code must retain the above copyright
38 * notice, this list of conditions and the following disclaimer.
39 * 2. Redistributions in binary form must reproduce the above copyright
40 * notice, this list of conditions and the following disclaimer in the
41 * documentation and/or other materials provided with the distribution.
42 * 3. All advertising materials mentioning features or use of this software
43 * must display the following acknowledgement:
44 *This product includes software developed by the University of
45 *California, Berkeley and its contributors.
46 * 4. Neither the name of the University nor the names of its contributors
47 * may be used to endorse or promote products derived from this software
48 * without specific prior written permission.
49 *
50 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
51 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
52 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
53 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
54 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
55 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
56 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
57 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
58 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
59 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
60 * SUCH DAMAGE.
61 *
62 *@(#)ffs_extern.h8.6 (Berkeley) 3/30/95
63 */
64#ifndef __UFS_FFS_FFS_EXTERN_H__
65#define __UFS_FFS_FFS_EXTERN_H__
66
67#include <sys/appleapiopts.h>
68
69#ifdef __APPLE_API_UNSTABLE
70/*
71 * Sysctl values for the fast filesystem.
72 */
73#define FFS_CLUSTERREAD1/* cluster reading enabled */
74#define FFS_CLUSTERWRITE2/* cluster writing enabled */
75#define FFS_REALLOCBLKS3/* block reallocation enabled */
76#define FFS_ASYNCFREE4/* asynchronous block freeing enabled */
77#defineFFS_MAXID5/* number of valid ffs ids */
78
79#define FFS_NAMES { \
80{ 0, 0 }, \
81{ "doclusterread", CTLTYPE_INT }, \
82{ "doclusterwrite", CTLTYPE_INT }, \
83{ "doreallocblks", CTLTYPE_INT }, \
84{ "doasyncfree", CTLTYPE_INT }, \
85}
86#endif /* __APPLE_API_UNSTABLE */
87
88struct buf;
89struct fs;
90struct inode;
91struct mount;
92struct nameidata;
93struct proc;
94struct vfsstatfs;
95struct timeval;
96#ifndef _KAUTH_CRED_T
97#define_KAUTH_CRED_T
98struct ucred;
99typedef struct ucred *kauth_cred_t;
100#endif/* !_KAUTH_CRED_T */
101struct uio;
102struct vnode;
103struct mbuf;
104struct vfsconf;
105
106#ifdef __APPLE_API_PRIVATE
107__BEGIN_DECLS
108intffs_fsync_internal(vnode_t, int);
109
110intffs_blkatoff(vnode_t, off_t, char **, buf_t *);
111
112intffs_alloc(struct inode *,
113 ufs_daddr_t, ufs_daddr_t, int, kauth_cred_t, ufs_daddr_t *);
114intffs_balloc(struct inode *,
115 ufs_daddr_t, int, kauth_cred_t, struct buf **, int, int *);
116int ffs_blkalloc(struct inode *ip, ufs_daddr_t lbn,int size,
117kauth_cred_t cred, int flags);
118voidffs_blkfree(struct inode *, ufs_daddr_t, int32_t);
119ufs_daddr_t ffs_blkpref(struct inode *, ufs_daddr_t, int, ufs_daddr_t *);
120voidffs_clrblock(struct fs *, u_char *, ufs_daddr_t);
121intffs_fhtovp(struct mount *, int, unsigned char *, struct vnode **, vfs_context_t);
122voidffs_fragacct(struct fs *, int, int32_t [], int);
123intffs_fsync(struct vnop_fsync_args *);
124intffs_init(struct vfsconf *);
125intffs_isblock(struct fs *, u_char *, ufs_daddr_t);
126intffs_mount(struct mount *, vnode_t , user_addr_t, vfs_context_t);
127intffs_mountfs(struct vnode *, struct mount *, vfs_context_t);
128intffs_mountroot(mount_t, vnode_t, vfs_context_t);
129intffs_read(struct vnop_read_args *);
130intffs_realloccg(struct inode *,
131 ufs_daddr_t, ufs_daddr_t, int, int, kauth_cred_t, struct buf **);
132intffs_reclaim(struct vnop_reclaim_args *);
133voidffs_setblock(struct fs *, u_char *, ufs_daddr_t);
134intffs_vfs_getattr(struct mount *, struct vfs_attr *, vfs_context_t);
135intffs_vfs_setattr(struct mount *, struct vfs_attr *, vfs_context_t);
136intffs_sync(struct mount *, int, vfs_context_t);
137intffs_sysctl(int *, u_int, user_addr_t, size_t *, user_addr_t, size_t, vfs_context_t);
138intffs_unmount(struct mount *, int, vfs_context_t);
139intffs_update(struct vnode *, struct timeval *, struct timeval *, int);
140intffs_valloc(vnode_t dvp, mode_t mode, kauth_cred_t cred, vnode_t *vpp);
141intffs_vfree(struct vnode *vp, ino_t ino, int mode);
142intffs_vget(struct mount *, ino64_t, struct vnode **, vfs_context_t);
143intffs_vptofh(struct vnode *, int *, unsigned char *, vfs_context_t);
144intffs_write(struct vnop_write_args *);
145int ffs_pagein(struct vnop_pagein_args *);
146int ffs_pageout(struct vnop_pageout_args *);
147int ffs_blktooff(struct vnop_blktooff_args *);
148int ffs_offtoblk(struct vnop_offtoblk_args *);
149
150__END_DECLS
151
152extern int (**ffs_vnodeop_p)(void *);
153extern int (**ffs_specop_p)(void *);
154#if FIFO
155extern int (**ffs_fifoop_p)(void *);
156#define FFS_FIFOOPS ffs_fifoop_p
157#else
158#define FFS_FIFOOPS NULL
159#endif
160
161#endif /* __APPLE_API_PRIVATE */
162#endif /* __UFS_FFS_FFS_EXTERN_H__ */
163

Archive Download this file

Revision: 1551