]>
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 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * fs.h - Externs for the File System Modules
25 * Copyright (c) 1999-2000 Apple Computer, Inc.
34 extern long LoadFile(char *fileSpec
);
35 extern long CopyFile(char *fileSpec
, char **addr
, long *length
);
36 extern long GetFileInfo(char *dirSpec
, char *name
, long *flags
, long *time
);
37 extern long GetDirEntry(char *dirSpec
, long *dirIndex
, char **name
,
38 long *flags
, long *time
);
39 extern long DumpDir(char *dirSpec
);
41 // Externs for cache.c
42 extern unsigned long gCacheHits
;
43 extern unsigned long gCacheMisses
;
44 extern unsigned long gCacheEvicts
;
46 extern void CacheInit(CICell ih
, long chunkSize
);
47 extern long CacheRead(CICell ih
, char *buffer
, long long offset
,
48 long length
, long cache
);
51 extern CICell
NetInitPartition(char *devSpec
);
52 extern long NetLoadFile(CICell ih
, char *filePath
);
53 extern long NetGetDirEntry(CICell ih
, char *dirPath
,
54 long *dirIndex
, char **name
,
55 long *flags
, long *time
);
58 extern long HFSInitPartition(CICell ih
);
59 extern long HFSLoadFile(CICell ih
, char *filePath
);
60 extern long HFSGetDirEntry(CICell ih
, char *dirPath
,
61 long *dirIndex
, char **name
,
62 long *flags
, long *time
);
65 extern long UFSInitPartition(CICell ih
);
66 extern long UFSLoadFile(CICell ih
, char *filePath
);
67 extern long UFSGetDirEntry(CICell ih
, char *dirPath
,
68 long *dirIndex
, char **name
,
69 long *flags
, long *time
);
72 extern long Ext2InitPartition(CICell ih
);
73 extern long Ext2LoadFile(CICell ih
, char *filePath
);
74 extern long Ext2GetDirEntry(CICell ih
, char *dirPath
,
75 long *dirIndex
, char **name
,
76 long *flags
, long *time
);
78 #endif /* ! _BOOTX_FS_H_ */