Tidy cell types and format strings
[openbios.git] / fs / os.h
blobb0375f7e2394fa646479999736cae180df7a9e7c
1 /*
2 * libhfs - library for reading and writing Macintosh HFS volumes
3 * Copyright (C) 1996-1998, 2003 Robert Leslie
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
18 * MA 02110-1301, USA.
20 * $Id: os.h,v 1.1.1.1 2000/07/25 10:33:40 kkaempf Exp $
23 #ifndef _H_OS
24 #define _H_OS
27 * NAME: os->same()
28 * DESCRIPTION: return 1 iff path is same as the open descriptor
30 int os_same( int fd1, int fd2 );
33 * NAME: os->seek()
34 * DESCRIPTION: set a descriptor's seek pointer (offset in blocks)
36 unsigned long os_seek( int fd, unsigned long offset, int blksize_bits);
39 * NAME: os->read()
40 * DESCRIPTION: read blocks from an open descriptor
42 unsigned long os_read( int fd, void *buf, unsigned long len, int blksize_bits);
45 * NAME: os->write()
46 * DESCRIPTION: write blocks to an open descriptor
48 unsigned long os_write( int fd, const void *buf, unsigned long len, int blksize_bits);
51 * NAME: os->seek_offset()
52 * DESCRIPTION: set a descriptor's seek pointer (offset in bytes)
54 void os_seek_offset( int fd, long long offset );
57 #endif /* _H_OS */