summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/stand/bootst/rawfs.h
blob: daac3710be357ca04dab736380dd82225e5ae7a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*	$OpenBSD: rawfs.h,v 1.3 2002/03/14 01:26:38 millert Exp $	*/
/*	$NetBSD: rawfs.h,v 1.1 1995/10/17 22:58:29 gwr 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,
		u_int size, u_int *resid);
int	rawfs_write(struct open_file *f, void *buf,
		u_int size, u_int *resid);
off_t	rawfs_seek(struct open_file *f, off_t offset, int where);
int	rawfs_stat(struct open_file *f, struct stat *sb);