2 * This file has been modified for the cdrkit suite.
4 * The behaviour and appearence of the program code below can differ to a major
5 * extent from the version distributed by the original author(s).
7 * For details, see Changelog file distributed with the cdrkit package. If you
8 * received this file from another source then ask the distributing person for
9 * a log of modifications.
13 /* @(#)file.h 1.1 00/03/05 joerg */
15 * hfsutils - tools for reading and writing Macintosh HFS volumes
16 * Copyright (C) 1996, 1997 Robert Leslie
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation; either version 2 of the License, or
21 * (at your option) any later version.
23 * This program is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU General Public License for more details.
28 * You should have received a copy of the GNU General Public License
29 * along with this program; if not, write to the Free Software
30 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
38 void f_selectfork(hfsfile *, int);
39 void f_getptrs(hfsfile *, unsigned long **, unsigned long **, ExtDataRec **);
41 int f_doblock(hfsfile *, unsigned long, block *,
42 int (*)(hfsvol *, unsigned int, unsigned int, block *));
44 # define f_getblock(file, num, bp) f_doblock(file, num, bp, b_readab)
45 # define f_putblock(file, num, bp) f_doblock(file, num, bp, b_writeab)
47 int f_alloc(hfsfile *);
48 int f_flush(hfsfile *);