Copyright clean-up (part 1):
[AROS.git] / arch / all-hosted / filesys / emul_handler / emul_host.c
blob0730e2942a4bc5bd17d4d18860e91f496cc4d5b7
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 /*
7 * This file is just a dummy nonfunctional template. These functions
8 * need host-specific implementations.
9 */
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)
23 /* Close handle */
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;
30 return -1;
33 size_t DoWrite(struct emulbase *emulbase, struct filehandle *fh, CONST_APTR buff, size_t len, SIPTR *err)
35 /* Write to a file */
36 *err = ERROR_NOT_IMPLEMENTED;
37 return -1;
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;
44 return -1;
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)
85 /* Read a symlink */
86 *err = ERROR_NOT_IMPLEMENTED;
87 return -1;
90 LONG DoRename(struct emulbase *emulbase, char *filename, char *newfilename)
92 /* Rename a file */
93 return ERROR_NOT_IMPLEMENTED;
96 LONG DoSetDate(struct emulbase *emulbase, char *fullname, struct DateStamp *date)
98 /* Set file date */
99 return ERROR_NOT_IMPLEMENTED;
102 SIPTR DoSetSize(struct emulbase *emulbase, struct filehandle *fh, SIPTR offset, ULONG mode, SIPTR *err)
104 /* Set file size */
105 *err = ERROR_NOT_IMPLEMENTED;
106 return -1;
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 */
144 return NULL;
147 ULONG GetCurrentDir(struct emulbase *emulbase, char *path, ULONG len)
149 /* Get AROS root directory */
150 return 0;
153 BOOL CheckDir(struct emulbase *emulbase, char *name)
155 /* Check if the directory is accessible */
156 return FALSE;