Add new strings.
[AROS.git] / rom / dos / dos.conf
blob5c5f4f120201e97650d418232de13b5689e83c92
1 ##begin config
2 version 41.9
3 libbase DOSBase
4 libbasetype struct DosLibrary
5 sysbase_field dl_SysBase
6 libbasetypeextern struct DosLibrary
7 residentpri -120
8 options noexpunge
9 ##end config
11 ##begin cdef
12 #include <dos/dos.h>
13 #include <dos/dosextens.h>
14 #include <dos/record.h>
15 #include <dos/rdargs.h>
16 #include <dos/dosasl.h>
17 #include <dos/var.h>
18 #include <dos/notify.h>
19 #include <dos/datetime.h>
20 #include <dos/dostags.h>
21 #include <dos/exall.h>
22 #include <aros/preprocessor/variadic/cast2iptr.hpp>
24 #define AllocDosObjectTagList(...) AllocDosObject(__VA_ARGS__)
25 #define CreateNewProcTagList(...) CreateNewProc(__VA_ARGS__)
26 #define NewLoadSegTagList(...) NewLoadSeg(__VA_ARGS__)
27 #define System(...) SystemTagList(__VA_ARGS__)
29 /* Prototypes for stubs in amiga.lib */
31 __BEGIN_DECLS
33 APTR AllocDosObjectTags (ULONG type, Tag tag1, ...) __stackparm;
34 struct Process * CreateNewProcTags (Tag tag1, ...) __stackparm;
35 BPTR NewLoadSegTags (STRPTR file, Tag tag1, ...) __stackparm;
36 LONG SystemTags (STRPTR command, Tag tag1, ...) __stackparm;
38 __END_DECLS
40 #if !defined(NO_INLINE_STDARG) && defined(__GNUC__)
41 #define FWritef(fh, format, ...) \
42 ({ \
43     IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
44     VFWritef((fh), (format), __args); \
47 #define FPrintf(fh, format, ...) \
48 ({ \
49     IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
50     VFPrintf((fh), (format), __args); \
53 #define Printf(format, ...) \
54 ({ \
55     IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
56     VFPrintf(Output(), (format), __args); \
58 #endif
60 ##end cdef
62 ##begin cdefprivate
63 #include <dos/dosextens.h>
64 ##end cdefprivate
66 ##begin functionlist
67 BPTR Open(CONST_STRPTR name, LONG accessMode) (D1,D2)
68 BOOL Close(BPTR file) (D1)
69 .alias UnLock
70 LONG Read(BPTR file, APTR buffer, LONG length) (D1, D2, D3)
71 LONG Write(BPTR file, CONST_APTR buffer, LONG length) (D1, D2, D3)
72 BPTR Input() ()
73 BPTR Output() ()
74 LONG Seek(BPTR file, LONG position, LONG mode) (D1,D2,D3)
75 BOOL DeleteFile(CONST_STRPTR name) (D1)
76 LONG Rename(CONST_STRPTR oldName, CONST_STRPTR newName) (D1,D2)
77 BPTR Lock(CONST_STRPTR name, LONG accessMode) (D1,D2)
79 BPTR DupLock(BPTR lock) (D1)
80 .alias DupLockFromFH
81 BOOL Examine(BPTR lock, struct FileInfoBlock* fib) (D1,D2)
82 .alias ExamineFH
83 BOOL ExNext(BPTR lock, struct FileInfoBlock* fileInfoBlock) (D1,D2)
84 BOOL Info(BPTR lock, struct InfoData* parameterBlock) (D1,D2)
85 BPTR CreateDir(CONST_STRPTR name) (D1)
86 BPTR CurrentDir(BPTR lock) (D1)
87 LONG IoErr() ()
88 struct MsgPort* CreateProc(CONST_STRPTR name, LONG pri, BPTR segList, LONG stackSize) (D1,D2,D3,D4)
89 void Exit(LONG returnCode) (D1)
90 BPTR LoadSeg(CONST_STRPTR name) (D1)
91 BOOL UnLoadSeg(BPTR seglist) (D1)
92 .skip 2
93 struct Device *DeviceProc(CONST_STRPTR name) (D1)
94 BOOL SetComment(CONST_STRPTR name, CONST_STRPTR comment) (D1,D2)
95 BOOL SetProtection(CONST_STRPTR name, ULONG protect) (D1,D2)
96 struct DateStamp *DateStamp(struct DateStamp *date) (D1)
97 void Delay(ULONG timeout) (D1)
98 BOOL WaitForChar(BPTR file, LONG timeout) (D1,D2)
99 BPTR ParentDir(BPTR lock) (D1)
100 BOOL IsInteractive(BPTR file) (D1)
101 LONG Execute(CONST_STRPTR string, BPTR input, BPTR output) (D1,D2,D3)
102 APTR AllocDosObject(ULONG type, struct TagItem *tags) (D1,D2)
103 void FreeDosObject(ULONG type, APTR ptr) (D1,D2)
104 LONG DoPkt(struct MsgPort* port, LONG action, LONG arg1, LONG arg2, LONG arg3, LONG arg4, LONG arg5) (D1,D2,D3,D4,D5,D6,D7)
105 void SendPkt(struct DosPacket *dp, struct MsgPort *port, struct MsgPort *replyport) (D1,D2,D3)
106 struct DosPacket *WaitPkt() ()
107 void ReplyPkt(struct DosPacket *dp, LONG res1, LONG res2) (D1,D2,D3)
108 void AbortPkt(struct MsgPort *port, struct DosPacket *pkt) (D1,D2)
109 BOOL LockRecord(BPTR fh, ULONG offset, ULONG length, ULONG mode, ULONG timeout) (D1,D2,D3,D4,D5)
110 BOOL LockRecords(struct RecordLock *recArray, ULONG timeout) (D1,D2)
111 BOOL UnLockRecord(BPTR fh, ULONG offset, ULONG length) (D1,D2,D3)
112 BOOL UnLockRecords(struct RecordLock * recArray) (D1)
113 BPTR SelectInput(BPTR fh) (D1)
114 BPTR SelectOutput(BPTR fh) (D1)
115 LONG FGetC(BPTR file) (D1)
116 LONG FPutC(BPTR file, LONG character) (D1,D2)
117 LONG UnGetC(BPTR file, LONG character) (D1,D2)
118 LONG FRead(BPTR fh, APTR block, ULONG blocklen, ULONG number) (D1,D2,D3,D4)
119 LONG FWrite(BPTR fh, CONST_APTR block, ULONG blocklen, ULONG numblocks) (D1,D2,D3,D4)
120 STRPTR FGets(BPTR fh, STRPTR buf, ULONG buflen) (D1,D2,D3)
121 LONG FPuts(BPTR file, CONST_STRPTR string) (D1,D2)
122 LONG VFWritef(BPTR fh, CONST_STRPTR fmt, const IPTR *argarray) (D1,D2,D3)
123 LONG VFPrintf(BPTR file, CONST_STRPTR format, const IPTR *argarray) (D1,D2,D3)
124 LONG Flush(BPTR file) (D1)
125 LONG SetVBuf(BPTR file, STRPTR buff, LONG type, LONG size) (D1,D2,D3,D4)
127 BPTR OpenFromLock(BPTR lock) (D1)
128 BPTR ParentOfFH(BPTR fh) (D1)
130 BOOL SetFileDate(CONST_STRPTR name, const struct DateStamp *date) (D1,D2)
131 BOOL NameFromLock(BPTR lock, STRPTR buffer, LONG length) (D1,D2,D3)
132 .alias NameFromFH
134 LONG SplitName(CONST_STRPTR name, ULONG separator, STRPTR buf, LONG oldpos, LONG size) (D1,D2,D3,D4,D5)
135 LONG SameLock(BPTR lock1, BPTR lock2) (D1,D2)
136 LONG SetMode(BPTR fh, LONG mode) (D1,D2)
137 BOOL ExAll(BPTR lock, struct ExAllData *buffer, LONG size, LONG data, struct ExAllControl *control) (D1,D2,D3,D4,D5)
138 LONG ReadLink(struct MsgPort *port, BPTR lock, CONST_STRPTR path, STRPTR buffer, ULONG size) (D1,D2,D3,D4,D5)
139 LONG MakeLink(CONST_STRPTR name, APTR dest, LONG soft) (D1,D2,D3)
140 BOOL ChangeMode(ULONG type, BPTR object, ULONG newmode) (D1,D2,D3)
141 LONG SetFileSize(BPTR file, LONG offset, LONG mode) (D1,D2,D3)
142 LONG SetIoErr(LONG result) (D1)
143 BOOL Fault(LONG code, CONST_STRPTR header, STRPTR buffer, LONG len) (D1,D2,D3,D4)
144 BOOL PrintFault(LONG code, CONST_STRPTR header) (D1,D2)
145 BOOL ErrorReport(LONG code, LONG type, IPTR arg1, struct MsgPort *device) (D1,D2,D3,D4)
146 LONG DisplayError(CONST_STRPTR formatStr, ULONG flags, APTR args) (A0,D0,A1)
147 struct CommandLineInterface *Cli() ()
148 struct Process *CreateNewProc(const struct TagItem *tags) (D1)
149 LONG RunCommand(BPTR segList, ULONG stacksize, STRPTR argptr, ULONG argsize) (D1,D2,D3,D4)
150 struct MsgPort *GetConsoleTask() ()
151 struct MsgPort *SetConsoleTask(struct MsgPort *handler) (D1)
152 struct MsgPort *GetFileSysTask() ()
153 struct MsgPort *SetFileSysTask(struct MsgPort *task) (D1)
154 STRPTR GetArgStr() ()
155 STRPTR SetArgStr(CONST_STRPTR string) (D1)
156 struct Process *FindCliProc(ULONG num) (D1)
157 ULONG MaxCli() ()
158 BOOL SetCurrentDirName(CONST_STRPTR name) (D1)
159 BOOL GetCurrentDirName(STRPTR buf, LONG len) (D1,D2)
160 BOOL SetProgramName(CONST_STRPTR name) (D1)
161 BOOL GetProgramName(STRPTR buf, LONG len) (D1,D2)
162 BOOL SetPrompt(CONST_STRPTR name) (D1)
163 BOOL GetPrompt(STRPTR buf, LONG len) (D1,D2)
164 BPTR SetProgramDir(BPTR lock) (D1)
165 BPTR GetProgramDir() ()
166 LONG SystemTagList(CONST_STRPTR command, const struct TagItem *tags) (D1,D2)
167 BOOL AssignLock(CONST_STRPTR name, BPTR lock) (D1,D2)
168 BOOL AssignLate(CONST_STRPTR name, CONST_STRPTR path) (D1,D2)
169 BOOL AssignPath(CONST_STRPTR name, CONST_STRPTR path) (D1,D2)
170 BOOL AssignAdd(CONST_STRPTR name, BPTR lock) (D1,D2)
171 LONG RemAssignList(CONST_STRPTR name, BPTR lock) (D1,D2)
172 struct DevProc *GetDeviceProc(CONST_STRPTR name, struct DevProc *dp) (D1,D2)
173 void FreeDeviceProc(struct DevProc *dp) (D1)
174 struct DosList *LockDosList(ULONG flags) (D1)
175 void UnLockDosList(ULONG flags) (D1)
176 struct DosList *AttemptLockDosList(ULONG flags) (D1)
177 LONG RemDosEntry(struct DosList *dlist) (D1)
178 LONG AddDosEntry(struct DosList *dlist) (D1)
179 struct DosList *FindDosEntry(struct DosList *dlist, CONST_STRPTR name, ULONG flags) (D1,D2,D3)
180 struct DosList *NextDosEntry(struct DosList *dlist, ULONG flags) (D1,D2)
181 struct DosList * MakeDosEntry(CONST_STRPTR name, LONG type) (D1,D2)
182 void FreeDosEntry(struct DosList *dlist) (D1)
183 BOOL IsFileSystem(CONST_STRPTR devicename) (D1)
184 BOOL Format(CONST_STRPTR devicename, CONST_STRPTR volumename, ULONG dostype) (D1,D2,D3)
185 LONG Relabel(CONST_STRPTR drive, CONST_STRPTR newname) (D1,D2)
186 LONG Inhibit(CONST_STRPTR name, LONG onoff) (D1,D2)
187 BOOL AddBuffers(CONST_STRPTR devicename, LONG numbuffers) (D1,D2)
188 LONG CompareDates(const struct DateStamp *date1, const struct DateStamp *date2) (D1,D2)
189 BOOL DateToStr(struct DateTime *datetime) (D1)
190 BOOL StrToDate(struct DateTime *datetime) (D1)
191 BPTR InternalLoadSeg(BPTR fh, BPTR table, LONG_FUNC functionarray, LONG *stack) (D0,A0,A1,A2)
192 BOOL InternalUnLoadSeg(BPTR seglist, VOID_FUNC freefunc) (D1,A1)
193 BPTR NewLoadSeg(CONST_STRPTR file, const struct TagItem *tags) (D1,D2)
194 BOOL AddSegment(CONST_STRPTR name, BPTR seg, LONG type) (D1,D2,D3)
195 struct Segment *FindSegment(CONST_STRPTR name, struct Segment *seg, BOOL system) (D1,D2,D3)
196 LONG RemSegment(struct Segment *seg) (D1)
197 LONG CheckSignal(LONG mask) (D1)
198 struct RDArgs *ReadArgs(CONST_STRPTR template, IPTR *array, struct RDArgs *rdargs) (D1,D2,D3)
199 LONG FindArg(CONST_STRPTR template, CONST_STRPTR keyword) (D1,D2)
200 LONG ReadItem(STRPTR buffer, LONG maxchars, struct CSource *input) (D1,D2,D3)
201 LONG StrToLong(CONST_STRPTR string, LONG *value) (D1,D2)
202 LONG MatchFirst(CONST_STRPTR pat, struct AnchorPath *AP) (D1,D2)
203 LONG MatchNext(struct AnchorPath *AP) (D1)
204 void MatchEnd(struct AnchorPath *AP) (D1)
205 LONG ParsePattern(CONST_STRPTR Source, STRPTR Dest, LONG DestLength) (D1,D2,D3)
206 BOOL MatchPattern(CONST_STRPTR pat, CONST_STRPTR str) (D1,D2)
207 BPTR Error() ()
208 void FreeArgs(struct RDArgs *args) (D1)
209 .novararg
210 BPTR SelectError(BPTR fh) (D1)
211 STRPTR FilePart(CONST_STRPTR path) (D1)
212 STRPTR PathPart(CONST_STRPTR path) (D1)
213 BOOL AddPart(STRPTR dirname, CONST_STRPTR filename, ULONG size) (D1,D2,D3)
214 BOOL StartNotify(struct NotifyRequest *notify) (D1)
215 void EndNotify(struct NotifyRequest *notify) (D1)
216 BOOL SetVar(CONST_STRPTR name, CONST_STRPTR buffer, LONG size, LONG flags) (D1,D2,D3,D4)
217 LONG GetVar(CONST_STRPTR name, STRPTR buffer, LONG size, LONG flags) (D1,D2,D3,D4)
218 LONG DeleteVar(CONST_STRPTR name, ULONG flags) (D1,D2)
219 struct LocalVar *FindVar(CONST_STRPTR name, ULONG type) (D1,D2)
220 STRPTR DosGetLocalizedString(LONG stringNum) (D1)
221 IPTR CliInitNewcli(struct DosPacket *dp) (A0)
222 IPTR CliInitRun(struct DosPacket *dp) (A0)
223 LONG WriteChars(CONST_STRPTR buf, ULONG buflen) (D1,D2)
224 LONG PutStr(CONST_STRPTR string) (D1)
225 LONG VPrintf(CONST_STRPTR format, IPTR *argarray) (D1,D2)
226 LONG Pipe(CONST_STRPTR name, BPTR *reader, BPTR *writer) (D1,D2,D3)
227 LONG ParsePatternNoCase(CONST_STRPTR Source, STRPTR Dest, LONG DestLength) (D1,D2,D3)
228 BOOL MatchPatternNoCase(CONST_STRPTR pat, CONST_STRPTR str) (D1,D2)
229 STRPTR DosGetString(LONG stringNum) (D0)
230 BOOL SameDevice(BPTR lock1, BPTR lock2) (D1,D2)
231 void ExAllEnd(BPTR lock, struct ExAllData *buffer, LONG size, LONG data, struct ExAllControl *control) (D1,D2,D3,D4,D5)
232 BOOL SetOwner(CONST_STRPTR name, ULONG owner_info) (D1,D2)
233 LONG ScanVars(struct Hook * hook, ULONG flags, APTR userdata) (D1,D2,D3)
234 ##end functionlist