1 /* $MirOS: src/sys/lib/libsa/ustarfs.h,v 1.2 2010/01/16 19:25:22 tg Exp $ */
2 
3 #ifndef _SYS_LIB_LIBSA_USTARFS_H
4 #define _SYS_LIB_LIBSA_USTARFS_H
5 
6 /* ustarfs: offset of ustar archive from begin of filesystem */
7 #ifdef __sparc__
8 #define USTARFS_FIRSTSEC	1
9 #else
10 #define USTARFS_FIRSTSEC	0
11 #endif
12 
13 int ustarfs_open(char *, struct open_file *);
14 int ustarfs_close(struct open_file *);
15 int ustarfs_read(struct open_file *, void *, size_t, size_t *);
16 int ustarfs_write(struct open_file *, void *, size_t, size_t *);
17 off_t ustarfs_seek(struct open_file *, off_t, int);
18 int ustarfs_stat(struct open_file *, struct stat *);
19 int ustarfs_readdir(struct open_file *, char *);
20 
21 #endif
22