NetBSD/sys/arch/sun3/stand/tapeboot/rawfs.h
gwr ca022f8909 Re-write of tapeboot, using a "rawfs" abstraction to hide the fact
that the device only supports block access.  (Even works now!)
1995-10-17 22:58:10 +00:00

16 lines
565 B
C

/* $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 __P((char *path, struct open_file *f));
int rawfs_close __P((struct open_file *f));
int rawfs_read __P((struct open_file *f, void *buf,
u_int size, u_int *resid));
int rawfs_write __P((struct open_file *f, void *buf,
u_int size, u_int *resid));
off_t rawfs_seek __P((struct open_file *f, off_t offset, int where));
int rawfs_stat __P((struct open_file *f, struct stat *sb));