1 /*
2  * The ARAnyM MetaDOS driver.
3  *
4  * 2002 STan
5  *
6  * Based on:
7  * dosdir.h,v 1.2 2001/06/13 20:21:14 fna Exp
8  *
9  * This file has been modified as part of the FreeMiNT project. See
10  * the file Changes.MH for details and dates.
11  */
12 
13 # ifndef _dosdir_h
14 # define _dosdir_h
15 
16 # include "mintfake.h"
17 
18 /* local interpretation of the 'struct dirent' */
19 typedef struct {
20 	LIST	*list;
21 	FCOOKIE	*current;
22 	short	mode;
23 } DIR;
24 
25 long __CDECL sys_dl_opendir (DIR *dirh, LIST *list, int flag);
26 long __CDECL sys_dl_readdir (DIR *dirh, char *buf, int len);
27 long __CDECL sys_dl_closedir (DIR *dirh);
28 long __CDECL sys_dl_readlabel (char *buf, int buflen);
29 
30 long __CDECL sys_d_free	    	(MetaDOSDir long *buf, int d);
31 long __CDECL sys_d_create	(MetaDOSDir const char *path);
32 long __CDECL sys_d_delete	(MetaDOSDir const char *path);
33 long __CDECL sys_f_sfirst	(MetaDOSDTA const char *path, int attrib);
34 long __CDECL sys_f_snext	(MetaDOSDTA0);
35 long __CDECL sys_f_attrib	(MetaDOSFile const char *name, int rwflag, int attr);
36 long __CDECL sys_f_delete	(MetaDOSFile const char *name);
37 long __CDECL sys_f_rename	(MetaDOSFile int junk, const char *old, const char *new);
38 long __CDECL sys_d_pathconf	(MetaDOSDir const char *name, int which);
39 long __CDECL sys_d_opendir	(MetaDOSDir const char *path, int flags);
40 long __CDECL sys_d_readdir	(MetaDOSDir int len, long handle, char *buf);
41 long __CDECL sys_d_xreaddir	(MetaDOSDir int len, long handle, char *buf, struct xattr *xattr, long *xret);
42 long __CDECL sys_d_rewind	(MetaDOSDir long handle);
43 long __CDECL sys_d_closedir	(MetaDOSDir long handle);
44 long __CDECL sys_f_xattr	(MetaDOSFile int flag, const char *name, struct xattr *xattr);
45 long __CDECL sys_d_readlabel	(MetaDOSDir const char *path, char *label, int maxlen);
46 long __CDECL sys_d_writelabel	(MetaDOSDir const char *path, const char *label);
47 
48 
49 # endif /* _dosdir_h */
50