[BACK]Return to rawfs.h CVS log [TXT][DIR] Up to [local] / sys / arch / mvme68k / stand / bootst

File: [local] / sys / arch / mvme68k / stand / bootst / rawfs.h (download)

Revision 1.1, Tue Mar 4 16:07:38 2008 UTC (16 years, 3 months ago) by nbrk
Branch point for: MAIN

Initial revision

/*	$OpenBSD: rawfs.h,v 1.4 2006/01/16 18:03:54 deraadt 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,
		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);