summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/stand/bootst/rawfs.h
blob: 837bfd67cf9322a502a61b3e4ce8ca9f0aeae19a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*	$OpenBSD: rawfs.h,v 1.3 2006/01/16 18:03:54 deraadt Exp $	*/

/*
 * Raw file system - for stream devices like tapes.
 * No random access, only sequential read allowed.
 */

int	rawfs_open(char *path, struct open_file *f);
int	rawfs_close(struct open_file *f);
int	rawfs_read(struct open_file *f, void *buf,
		size_t size, size_t *resid);
int	rawfs_write(struct open_file *f, void *buf,
		size_t size, size_t *resid);
off_t	rawfs_seek(struct open_file *f, off_t offset, int where);
int	rawfs_stat(struct open_file *f, struct stat *sb);