]>
git.saurik.com Git - apple/bootx.git/blob - bootx.tproj/include.subproj/fs.h
2 * Copyright (c) 2000 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@
26 * fs.h - Externs for the File System Modules
28 * Copyright (c) 1999-2000 Apple Computer, Inc.
37 extern long LoadFile(char *fileSpec
);
38 extern long GetFileInfo(char *dirSpec
, char *name
, long *flags
, long *time
);
39 extern long GetDirEntry(char *dirSpec
, long *dirIndex
, char **name
,
40 long *flags
, long *time
);
41 extern long DumpDir(char *dirSpec
);
43 // Externs for cache.c
44 extern unsigned long gCacheHits
;
45 extern unsigned long gCacheMisses
;
46 extern unsigned long gCacheEvicts
;
48 extern void CacheInit(CICell ih
, long chunkSize
);
49 extern long CacheRead(CICell ih
, char *buffer
, long long offset
,
50 long length
, long cache
);
53 extern CICell
NetInitPartition(char *devSpec
);
54 extern long NetLoadFile(CICell ih
, char *filePath
);
55 extern long NetGetDirEntry(CICell ih
, char *dirPath
,
56 long *dirIndex
, char **name
,
57 long *flags
, long *time
);
60 extern long HFSInitPartition(CICell ih
);
61 extern long HFSLoadFile(CICell ih
, char *filePath
);
62 extern long HFSGetDirEntry(CICell ih
, char *dirPath
,
63 long *dirIndex
, char **name
,
64 long *flags
, long *time
);
67 extern long UFSInitPartition(CICell ih
);
68 extern long UFSLoadFile(CICell ih
, char *filePath
);
69 extern long UFSGetDirEntry(CICell ih
, char *dirPath
,
70 long *dirIndex
, char **name
,
71 long *flags
, long *time
);
74 extern long Ext2InitPartition(CICell ih
);
75 extern long Ext2LoadFile(CICell ih
, char *filePath
);
76 extern long Ext2GetDirEntry(CICell ih
, char *dirPath
,
77 long *dirIndex
, char **name
,
78 long *flags
, long *time
);
80 #endif /* ! _BOOTX_FS_H_ */