2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
7 * This file is just a dummy nonfunctional template. These functions
8 * need host-specific implementations.
11 #include <dos/dosasl.h>
13 #include "emul_intern.h"
15 LONG
DoOpen(struct emulbase
*emulbase
, struct filehandle
*fh
, LONG mode
, LONG protect
, BOOL AllowDir
)
17 /* Open file or directory */
18 return ERROR_NOT_IMPLEMENTED
;
21 void DoClose(struct emulbase
*emulbase
, struct filehandle
*fh
)
26 size_t DoRead(struct emulbase
*emulbase
, struct filehandle
*fh
, APTR buff
, size_t len
, SIPTR
*err
)
28 /* Read from a file */
29 *err
= ERROR_NOT_IMPLEMENTED
;
33 size_t DoWrite(struct emulbase
*emulbase
, struct filehandle
*fh
, CONST_APTR buff
, size_t len
, SIPTR
*err
)
36 *err
= ERROR_NOT_IMPLEMENTED
;
40 off_t
DoSeek(struct emulbase
*emulbase
, struct filehandle
*fh
, off_t Offset
, ULONG Mode
, SIPTR
*err
)
42 /* Adjust file position */
43 *err
= ERROR_NOT_IMPLEMENTED
;
47 LONG
DoRewindDir(struct emulbase
*emulbase
, struct filehandle
*fh
)
49 /* Reset directory search position */
50 return ERROR_NOT_IMPLEMENTED
;
53 LONG
DoMkDir(struct emulbase
*emulbase
, struct filehandle
*fh
, ULONG protect
)
55 /* Create directory */
56 return ERROR_NOT_IMPLEMENTED
;
59 LONG
DoDelete(struct emulbase
*emulbase
, char *name
)
61 /* Delete file or directory */
62 return ERROR_NOT_IMPLEMENTED
;
65 LONG
DoChMod(struct emulbase
*emulbase
, char *filename
, ULONG prot
)
67 /* Change protection bits */
68 return ERROR_NOT_IMPLEMENTED
;
71 LONG
DoHardLink(struct emulbase
*emulbase
, char *fn
, char *oldfile
)
73 /* Create a hard link */
74 return ERROR_NOT_IMPLEMENTED
;
77 LONG
DoSymLink(struct emulbase
*emulbase
, char *dest
, char *src
)
79 /* Create a symlink */
80 return ERROR_NOT_IMPLEMENTED
;
83 int DoReadLink(struct emulbase
*emulbase
, char *filename
, char *buffer
, ULONG size
, LONG
*err
)
86 *err
= ERROR_NOT_IMPLEMENTED
;
90 LONG
DoRename(struct emulbase
*emulbase
, char *filename
, char *newfilename
)
93 return ERROR_NOT_IMPLEMENTED
;
96 LONG
DoSetDate(struct emulbase
*emulbase
, char *fullname
, struct DateStamp
*date
)
99 return ERROR_NOT_IMPLEMENTED
;
102 SIPTR
DoSetSize(struct emulbase
*emulbase
, struct filehandle
*fh
, SIPTR offset
, ULONG mode
, SIPTR
*err
)
105 *err
= ERROR_NOT_IMPLEMENTED
;
109 LONG
DoStatFS(struct emulbase
*emulbase
, char *path
, struct InfoData
*id
)
111 /* Get disk information */
112 return ERROR_NOT_IMPLEMENTED
;
115 LONG
DoExamineEntry(struct emulbase
*emulbase
, struct filehandle
*fh
, char *name
,
116 struct ExAllData
*ead
, ULONG size
, ULONG type
)
118 /* Examine named object */
119 return ERROR_NOT_IMPLEMENTED
;
122 LONG
examine_next(struct emulbase
*emulbase
, struct filehandle
*fh
, struct FileInfoBlock
*FIB
)
124 /* Examine next directory entry */
125 return ERROR_NOT_IMPLEMENTED
;
128 LONG
examine_all(struct emulbase
*emulbase
, struct filehandle
*fh
, struct ExAllData
*ead
,
129 struct ExAllControl
*eac
, ULONG size
, ULONG type
)
131 /* Examine all directory entries */
132 return ERROR_NOT_IMPLEMENTED
;
135 LONG
examine_all_end(struct emulbase
*emulbase
, struct filehandle
*fh
)
137 /* Finish directory search */
138 return ERROR_NOT_IMPLEMENTED
;
141 char *GetHomeDir(struct emulbase
*emulbase
, char *user
)
143 /* Get user's home directory */
147 ULONG
GetCurrentDir(struct emulbase
*emulbase
, char *path
, ULONG len
)
149 /* Get AROS root directory */
153 BOOL
CheckDir(struct emulbase
*emulbase
, char *name
)
155 /* Check if the directory is accessible */