home *** CD-ROM | disk | FTP | other *** search
/ MACD 4 / MACD4.iso / Emulatory / AROS / include / clib / dos_protos.bak < prev    next >
Encoding:
Text File  |  1978-03-06  |  23.2 KB  |  730 lines

  1. #ifndef CLIB_DOS_PROTOS_H
  2. #define CLIB_DOS_PROTOS_H
  3.  
  4. #ifndef AROS_LIBCALL_H
  5. #   include <aros/libcall.h>
  6. #endif
  7. #ifndef DOS_DOS_H
  8. #   include <dos/dos.h>
  9. #endif
  10.  
  11. #ifndef DOSBase
  12. extern struct DosLibrary *DOSBase;
  13. #endif
  14.  
  15. /*
  16.     Prototypes
  17. */
  18. AROS_LP2(BOOL, AddBuffers,
  19.     AROS_LPA(STRPTR, devicename, D1),
  20.     AROS_LPA(LONG,   numbuffers, D2),
  21.     struct DosLibrary *, DOSBase, 122, Dos)
  22. #define AddBuffers(devicename, numbuffers) \
  23.     AROS_LC2(BOOL, AddBuffers, \
  24.     AROS_LCA(STRPTR, devicename, D1), \
  25.     AROS_LCA(LONG,   numbuffers, D2), \
  26.     struct DosLibrary *, DOSBase, 122, Dos)
  27.  
  28. AROS_LP1(LONG, AddDosEntry,
  29.     AROS_LPA(struct DosList *, dlist, D1),
  30.     struct DosLibrary *, DOSBase, 113, Dos)
  31. #define AddDosEntry(dlist) \
  32.     AROS_LC1(LONG, AddDosEntry, \
  33.     AROS_LCA(struct DosList *, dlist, D1), \
  34.     struct DosLibrary *, DOSBase, 113, Dos)
  35.  
  36. AROS_LP2(APTR, AllocDosObject,
  37.     AROS_LPA(ULONG,            type, D1),
  38.     AROS_LPA(struct TagItem *, tags, D2),
  39.     struct DosLibrary *, DOSBase, 38, Dos)
  40. #define AllocDosObject(type, tags) \
  41.     AROS_LC2(APTR, AllocDosObject, \
  42.     AROS_LCA(ULONG,            type, D1), \
  43.     AROS_LCA(struct TagItem *, tags, D2), \
  44.     struct DosLibrary *, DOSBase, 38, Dos)
  45.  
  46. AROS_LP2(BOOL, AssignLock,
  47.     AROS_LPA(STRPTR, name, D1),
  48.     AROS_LPA(BPTR,   lock, D2),
  49.     struct DosLibrary *, DOSBase, 102, Dos)
  50. #define AssignLock(name, lock) \
  51.     AROS_LC2(BOOL, AssignLock, \
  52.     AROS_LCA(STRPTR, name, D1), \
  53.     AROS_LCA(BPTR,   lock, D2), \
  54.     struct DosLibrary *, DOSBase, 102, Dos)
  55.  
  56. AROS_LP1(struct DosList *, AttemptLockDosList,
  57.     AROS_LPA(ULONG, flags, D1),
  58.     struct DosLibrary *, DOSBase, 111, Dos)
  59. #define AttemptLockDosList(flags) \
  60.     AROS_LC1(struct DosList *, AttemptLockDosList, \
  61.     AROS_LCA(ULONG, flags, D1), \
  62.     struct DosLibrary *, DOSBase, 111, Dos)
  63.  
  64. AROS_LP3(BOOL, ChangeMode,
  65.     AROS_LPA(ULONG, type,    D1),
  66.     AROS_LPA(BPTR,  object,  D2),
  67.     AROS_LPA(ULONG, newmode, D3),
  68.     struct DosLibrary *, DOSBase, 75, Dos)
  69. #define ChangeMode(type, object, newmode) \
  70.     AROS_LC3(BOOL, ChangeMode, \
  71.     AROS_LCA(ULONG, type,    D1), \
  72.     AROS_LCA(BPTR,  object,  D2), \
  73.     AROS_LCA(ULONG, newmode, D3), \
  74.     struct DosLibrary *, DOSBase, 75, Dos)
  75.  
  76. AROS_LP0(struct CommandLineInterface *, Cli,
  77.     struct DosLibrary *, DOSBase, 82, Dos)
  78. #define Cli() \
  79.     AROS_LC0(struct CommandLineInterface *, Cli, \
  80.     struct DosLibrary *, DOSBase, 82, Dos)
  81.  
  82. AROS_LP1(BOOL, Close,
  83.     AROS_LPA(BPTR, file, D1),
  84.     struct DosLibrary *, DOSBase, 6, Dos)
  85. #define Close(file) \
  86.     AROS_LC1(BOOL, Close, \
  87.     AROS_LCA(BPTR, file, D1), \
  88.     struct DosLibrary *, DOSBase, 6, Dos)
  89.  
  90. AROS_LP1(BOOL, UnLock,
  91.     AROS_LPA(BPTR, lock, D1),
  92.     struct DosLibrary *, DOSBase, 15, Dos)
  93. #define UnLock(lock) \
  94.     AROS_LC1(BOOL, UnLock, \
  95.     AROS_LCA(BPTR, lock, D1), \
  96.     struct DosLibrary *, DOSBase, 15, Dos)
  97.  
  98. AROS_LP1(BPTR, CreateDir,
  99.     AROS_LPA(STRPTR, name, D1),
  100.     struct DosLibrary *, DOSBase, 20, Dos)
  101. #define CreateDir(name) \
  102.     AROS_LC1(BPTR, CreateDir, \
  103.     AROS_LCA(STRPTR, name, D1), \
  104.     struct DosLibrary *, DOSBase, 20, Dos)
  105.  
  106. AROS_LP1(struct Process *, CreateNewProc,
  107.     AROS_LPA(struct TagItem *, tags, D1),
  108.     struct DosLibrary *, DOSBase, 83, Dos)
  109. #define CreateNewProc(tags) \
  110.     AROS_LC1(struct Process *, CreateNewProc, \
  111.     AROS_LCA(struct TagItem *, tags, D1), \
  112.     struct DosLibrary *, DOSBase, 83, Dos)
  113.  
  114. AROS_LP1(BPTR, CurrentDir,
  115.     AROS_LPA(BPTR, lock, D1),
  116.     struct DosLibrary *, DOSBase, 21, Dos)
  117. #define CurrentDir(lock) \
  118.     AROS_LC1(BPTR, CurrentDir, \
  119.     AROS_LCA(BPTR, lock, D1), \
  120.     struct DosLibrary *, DOSBase, 21, Dos)
  121.  
  122. AROS_LP1(BOOL, DateToStr,
  123.     AROS_LPA(struct DateTime *, datetime, D1),
  124.     struct DosLibrary *, DOSBase, 124, Dos)
  125. #define DateToStr(datetime) \
  126.     AROS_LC1(BOOL, DateToStr, \
  127.     AROS_LCA(struct DateTime *, datetime, D1), \
  128.     struct DosLibrary *, DOSBase, 124, Dos)
  129.  
  130. AROS_LP1(void, Delay,
  131.     AROS_LPA(ULONG, timeout, D1),
  132.     struct DosLibrary *, DOSBase, 33, Dos)
  133. #define Delay(timeout) \
  134.     AROS_LC1(void, Delay, \
  135.     AROS_LCA(ULONG, timeout, D1), \
  136.     struct DosLibrary *, DOSBase, 33, Dos)
  137.  
  138. AROS_LP1(BOOL, DeleteFile,
  139.     AROS_LPA(STRPTR, name, D1),
  140.     struct DosLibrary *, DOSBase, 12, Dos)
  141. #define DeleteFile(name) \
  142.     AROS_LC1(BOOL, DeleteFile, \
  143.     AROS_LCA(STRPTR, name, D1), \
  144.     struct DosLibrary *, DOSBase, 12, Dos)
  145.  
  146. AROS_LP1(BPTR, DupLock,
  147.     AROS_LPA(BPTR, lock, D1),
  148.     struct DosLibrary *, DOSBase, 16, Dos)
  149. #define DupLock(lock) \
  150.     AROS_LC1(BPTR, DupLock, \
  151.     AROS_LCA(BPTR, lock, D1), \
  152.     struct DosLibrary *, DOSBase, 16, Dos)
  153.  
  154. AROS_LP1(BPTR, DupLockFromFH,
  155.     AROS_LPA(BPTR, fh, D1),
  156.     struct DosLibrary *, DOSBase, 62, Dos)
  157. #define DupLockFromFH(fh) \
  158.     AROS_LC1(BPTR, DupLockFromFH, \
  159.     AROS_LCA(BPTR, fh, D1), \
  160.     struct DosLibrary *, DOSBase, 62, Dos)
  161.  
  162. AROS_LP5(BOOL, ExAll,
  163.     AROS_LPA(BPTR,                  lock,    D1),
  164.     AROS_LPA(struct ExAllData *,    buffer,  D2),
  165.     AROS_LPA(LONG,                  size,    D3),
  166.     AROS_LPA(LONG,                  data,    D4),
  167.     AROS_LPA(struct ExAllControl *, control, D5),
  168.     struct DosLibrary *, DOSBase, 72, Dos)
  169. #define ExAll(lock, buffer, size, data, control) \
  170.     AROS_LC5(BOOL, ExAll, \
  171.     AROS_LCA(BPTR,                  lock,    D1), \
  172.     AROS_LCA(struct ExAllData *,    buffer,  D2), \
  173.     AROS_LCA(LONG,                  size,    D3), \
  174.     AROS_LCA(LONG,                  data,    D4), \
  175.     AROS_LCA(struct ExAllControl *, control, D5), \
  176.     struct DosLibrary *, DOSBase, 72, Dos)
  177.  
  178. AROS_LP5(void, ExAllEnd,
  179.     AROS_LPA(BPTR,                  lock,    D1),
  180.     AROS_LPA(struct ExAllData *,    buffer,  D2),
  181.     AROS_LPA(LONG,                  size,    D3),
  182.     AROS_LPA(LONG,                  data,    D4),
  183.     AROS_LPA(struct ExAllControl *, control, D5),
  184.     struct DosLibrary *, DOSBase, 165, Dos)
  185. #define ExAllEnd(lock, buffer, size, data, control) \
  186.     AROS_LC5(void, ExAllEnd, \
  187.     AROS_LCA(BPTR,                  lock,    D1), \
  188.     AROS_LCA(struct ExAllData *,    buffer,  D2), \
  189.     AROS_LCA(LONG,                  size,    D3), \
  190.     AROS_LCA(LONG,                  data,    D4), \
  191.     AROS_LCA(struct ExAllControl *, control, D5), \
  192.     struct DosLibrary *, DOSBase, 165, Dos)
  193.  
  194. AROS_LP2(BOOL, Examine,
  195.     AROS_LPA(BPTR,                   lock, D1),
  196.     AROS_LPA(struct FileInfoBlock *, fib,  D2),
  197.     struct DosLibrary *, DOSBase, 17, Dos)
  198. #define Examine(lock, fib) \
  199.     AROS_LC2(BOOL, Examine, \
  200.     AROS_LCA(BPTR,                   lock, D1), \
  201.     AROS_LCA(struct FileInfoBlock *, fib,  D2), \
  202.     struct DosLibrary *, DOSBase, 17, Dos)
  203.  
  204. AROS_LP2(BOOL, ExamineFH,
  205.     AROS_LPA(BPTR                  , fh, D1),
  206.     AROS_LPA(struct FileInfoBlock *, fib, D2),
  207.     struct DosLibrary *, DOSBase, 65, Dos)
  208. #define ExamineFH(fh, fib) \
  209.     AROS_LC2(BOOL, ExamineFH, \
  210.     AROS_LCA(BPTR                  , fh, D1), \
  211.     AROS_LCA(struct FileInfoBlock *, fib, D2), \
  212.     struct DosLibrary *, DOSBase, 65, Dos)
  213.  
  214. AROS_LP1(LONG, FGetC,
  215.     AROS_LPA(BPTR, file, D1),
  216.     struct DosLibrary *, DOSBase, 51, Dos)
  217. #define FGetC(file) \
  218.     AROS_LC1(LONG, FGetC, \
  219.     AROS_LCA(BPTR, file, D1), \
  220.     struct DosLibrary *, DOSBase, 51, Dos)
  221.  
  222. AROS_LP1(STRPTR, FilePart,
  223.     AROS_LPA(STRPTR, path, D1),
  224.     struct DosLibrary *, DOSBase, 145, Dos)
  225. #define FilePart(path) \
  226.     AROS_LC1(STRPTR, FilePart, \
  227.     AROS_LCA(STRPTR, path, D1), \
  228.     struct DosLibrary *, DOSBase, 145, Dos)
  229.  
  230. AROS_LP2(LONG, FindArg,
  231.     AROS_LPA(STRPTR, template, D1),
  232.     AROS_LPA(STRPTR, keyword,  D2),
  233.     struct DosLibrary *, DOSBase, 134, Dos)
  234. #define FindArg(template, keyword) \
  235.     AROS_LC2(LONG, FindArg, \
  236.     AROS_LCA(STRPTR, template, D1), \
  237.     AROS_LCA(STRPTR, keyword,  D2), \
  238.     struct DosLibrary *, DOSBase, 134, Dos)
  239.  
  240. AROS_LP3(struct DosList *, FindDosEntry,
  241.     AROS_LPA(struct DosList *, dlist, D1),
  242.     AROS_LPA(STRPTR,           name,  D2),
  243.     AROS_LPA(ULONG,            flags, D3),
  244.     struct DosLibrary *, DOSBase, 114, Dos)
  245. #define FindDosEntry(dlist, name, flags) \
  246.     AROS_LC3(struct DosList *, FindDosEntry, \
  247.     AROS_LCA(struct DosList *, dlist, D1), \
  248.     AROS_LCA(STRPTR,           name,  D2), \
  249.     AROS_LCA(ULONG,            flags, D3), \
  250.     struct DosLibrary *, DOSBase, 114, Dos)
  251.  
  252. AROS_LP1(LONG, Flush,
  253.     AROS_LPA(BPTR, file, D1),
  254.     struct DosLibrary *, DOSBase, 60, Dos)
  255. #define Flush(file) \
  256.     AROS_LC1(LONG, Flush, \
  257.     AROS_LCA(BPTR, file, D1), \
  258.     struct DosLibrary *, DOSBase, 60, Dos)
  259.  
  260. AROS_LP3(BOOL, Format,
  261.     AROS_LPA(STRPTR, devicename, D1),
  262.     AROS_LPA(STRPTR, volumename, D2),
  263.     AROS_LPA(ULONG,  dostype,    D3),
  264.     struct DosLibrary *, DOSBase, 119, Dos)
  265. #define Format(devicename, volumename, dostype) \
  266.     AROS_LC3(BOOL, Format, \
  267.     AROS_LCA(STRPTR, devicename, D1), \
  268.     AROS_LCA(STRPTR, volumename, D2), \
  269.     AROS_LCA(ULONG,  dostype,    D3), \
  270.     struct DosLibrary *, DOSBase, 119, Dos)
  271.  
  272. AROS_LP2(LONG, FPutC,
  273.     AROS_LPA(BPTR, file,      D1),
  274.     AROS_LPA(LONG, character, D2),
  275.     struct DosLibrary *, DOSBase, 52, Dos)
  276. #define FPutC(file, character) \
  277.     AROS_LC2(LONG, FPutC, \
  278.     AROS_LCA(BPTR, file,      D1), \
  279.     AROS_LCA(LONG, character, D2), \
  280.     struct DosLibrary *, DOSBase, 52, Dos)
  281.  
  282. AROS_LP2(LONG, FPuts,
  283.     AROS_LPA(BPTR,   file,   D1),
  284.     AROS_LPA(STRPTR, string, D2),
  285.     struct DosLibrary *, DOSBase, 56, Dos)
  286. #define FPuts(file, string) \
  287.     AROS_LC2(LONG, FPuts, \
  288.     AROS_LCA(BPTR,   file,   D1), \
  289.     AROS_LCA(STRPTR, string, D2), \
  290.     struct DosLibrary *, DOSBase, 56, Dos)
  291.  
  292. AROS_LP1(void, FreeArgs,
  293.     AROS_LPA(struct RDArgs *, args, D1),
  294.     struct DosLibrary *, DOSBase, 143, Dos)
  295. #define FreeArgs(args) \
  296.     AROS_LC1(void, FreeArgs, \
  297.     AROS_LCA(struct RDArgs *, args, D1), \
  298.     struct DosLibrary *, DOSBase, 143, Dos)
  299.  
  300. AROS_LP1(void, FreeDosEntry,
  301.     AROS_LPA(struct DosList *, dlist, D1),
  302.     struct DosLibrary *, DOSBase, 117, Dos)
  303. #define FreeDosEntry(dlist) \
  304.     AROS_LC1(void, FreeDosEntry, \
  305.     AROS_LCA(struct DosList *, dlist, D1), \
  306.     struct DosLibrary *, DOSBase, 117, Dos)
  307.  
  308. AROS_LP2(void, FreeDosObject,
  309.     AROS_LPA(ULONG, type, D1),
  310.     AROS_LPA(APTR,  ptr,  D2),
  311.     struct DosLibrary *, DOSBase, 39, Dos)
  312. #define FreeDosObject(type, ptr) \
  313.     AROS_LC2(void, FreeDosObject, \
  314.     AROS_LCA(ULONG, type, D1), \
  315.     AROS_LCA(APTR,  ptr,  D2), \
  316.     struct DosLibrary *, DOSBase, 39, Dos)
  317.  
  318. AROS_LP0(STRPTR, GetArgStr,
  319.     struct DosLibrary *, DOSBase, 89, Dos)
  320. #define GetArgStr() \
  321.     AROS_LC0(STRPTR, GetArgStr, \
  322.     struct DosLibrary *, DOSBase, 89, Dos)
  323.  
  324. AROS_LP0(BPTR, Input,
  325.     struct DosLibrary *, DOSBase, 9, Dos)
  326. #define Input() \
  327.     AROS_LC0(BPTR, Input, \
  328.     struct DosLibrary *, DOSBase, 9, Dos)
  329.  
  330. AROS_LP0(LONG, IoErr,
  331.     struct DosLibrary *, DOSBase, 22, Dos)
  332. #define IoErr() \
  333.     AROS_LC0(LONG, IoErr, \
  334.     struct DosLibrary *, DOSBase, 22, Dos)
  335.  
  336. AROS_LP1(BOOL, IsFileSystem,
  337.     AROS_LPA(STRPTR, devicename, D1),
  338.     struct DosLibrary *, DOSBase, 118, Dos)
  339. #define IsFileSystem(devicename) \
  340.     AROS_LC1(BOOL, IsFileSystem, \
  341.     AROS_LCA(STRPTR, devicename, D1), \
  342.     struct DosLibrary *, DOSBase, 118, Dos)
  343.  
  344. AROS_LP1(BOOL, IsInteractive,
  345.     AROS_LPA(BPTR, file, D1),
  346.     struct DosLibrary *, DOSBase, 36, Dos)
  347. #define IsInteractive(file) \
  348.     AROS_LC1(BOOL, IsInteractive, \
  349.     AROS_LCA(BPTR, file, D1), \
  350.     struct DosLibrary *, DOSBase, 36, Dos)
  351.  
  352. AROS_LP1(BPTR, LoadSeg,
  353.     AROS_LPA(STRPTR, name, D1),
  354.     struct DosLibrary *, DOSBase, 25, Dos)
  355. #define LoadSeg(name) \
  356.     AROS_LC1(BPTR, LoadSeg, \
  357.     AROS_LCA(STRPTR, name, D1), \
  358.     struct DosLibrary *, DOSBase, 25, Dos)
  359.  
  360. AROS_LP2(BPTR, Lock,
  361.     AROS_LPA(STRPTR, name,       D1),
  362.     AROS_LPA(LONG,   accessMode, D2),
  363.     struct DosLibrary *, DOSBase, 14, Dos)
  364. #define Lock(name, accessMode) \
  365.     AROS_LC2(BPTR, Lock, \
  366.     AROS_LCA(STRPTR, name,       D1), \
  367.     AROS_LCA(LONG,   accessMode, D2), \
  368.     struct DosLibrary *, DOSBase, 14, Dos)
  369.  
  370. AROS_LP1(struct DosList *, LockDosList,
  371.     AROS_LPA(ULONG, flags, D1),
  372.     struct DosLibrary *, DOSBase, 109, Dos)
  373. #define LockDosList(flags) \
  374.     AROS_LC1(struct DosList *, LockDosList, \
  375.     AROS_LCA(ULONG, flags, D1), \
  376.     struct DosLibrary *, DOSBase, 109, Dos)
  377.  
  378. AROS_LP2(struct DosList *, MakeDosEntry,
  379.     AROS_LPA(STRPTR, name, D1),
  380.     AROS_LPA(LONG,   type, D2),
  381.     struct DosLibrary *, DOSBase, 116, Dos)
  382. #define MakeDosEntry(name, type) \
  383.     AROS_LC2(struct DosList *, MakeDosEntry, \
  384.     AROS_LCA(STRPTR, name, D1), \
  385.     AROS_LCA(LONG,   type, D2), \
  386.     struct DosLibrary *, DOSBase, 116, Dos)
  387.  
  388. AROS_LP2(BOOL, MatchPattern,
  389.     AROS_LPA(STRPTR, pat, D1),
  390.     AROS_LPA(STRPTR, str, D2),
  391.     struct DosLibrary *, DOSBase, 141, Dos)
  392. #define MatchPattern(pat, str) \
  393.     AROS_LC2(BOOL, MatchPattern, \
  394.     AROS_LCA(STRPTR, pat, D1), \
  395.     AROS_LCA(STRPTR, str, D2), \
  396.     struct DosLibrary *, DOSBase, 141, Dos)
  397.  
  398. AROS_LP2(BOOL, MatchPatternNoCase,
  399.     AROS_LPA(STRPTR, pat, D1),
  400.     AROS_LPA(STRPTR, str, D2),
  401.     struct DosLibrary *, DOSBase, 162, Dos)
  402. #define MatchPatternNoCase(pat, str) \
  403.     AROS_LC2(BOOL, MatchPatternNoCase, \
  404.     AROS_LCA(STRPTR, pat, D1), \
  405.     AROS_LCA(STRPTR, str, D2), \
  406.     struct DosLibrary *, DOSBase, 162, Dos)
  407.  
  408. AROS_LP0(ULONG, MaxCli,
  409.     struct DosLibrary *, DOSBase, 92, Dos)
  410. #define MaxCli() \
  411.     AROS_LC0(ULONG, MaxCli, \
  412.     struct DosLibrary *, DOSBase, 92, Dos)
  413.  
  414. AROS_LP3(BOOL, NameFromLock,
  415.     AROS_LPA(BPTR,   lock,   D1),
  416.     AROS_LPA(STRPTR, buffer, D2),
  417.     AROS_LPA(LONG,   length, D3),
  418.     struct DosLibrary *, DOSBase, 67, Dos)
  419. #define NameFromLock(lock, buffer, length) \
  420.     AROS_LC3(BOOL, NameFromLock, \
  421.     AROS_LCA(BPTR,   lock,   D1), \
  422.     AROS_LCA(STRPTR, buffer, D2), \
  423.     AROS_LCA(LONG,   length, D3), \
  424.     struct DosLibrary *, DOSBase, 67, Dos)
  425.  
  426. AROS_LP3(LONG, NameFromFH,
  427.     AROS_LPA(BPTR  , fh, D1),
  428.     AROS_LPA(STRPTR, buffer, D2),
  429.     AROS_LPA(long  , len, D3),
  430.     struct DosLibrary *, DOSBase, 68, Dos)
  431. #define NameFromFH(fh, buffer, len) \
  432.     AROS_LC3(LONG, NameFromFH, \
  433.     AROS_LCA(BPTR  , fh, D1), \
  434.     AROS_LCA(STRPTR, buffer, D2), \
  435.     AROS_LCA(long  , len, D3), \
  436.     struct DosLibrary *, DOSBase, 68, Dos)
  437.  
  438. AROS_LP2(BPTR, Open,
  439.     AROS_LPA(STRPTR, name,       D1),
  440.     AROS_LPA(LONG,   accessMode, D2),
  441.     struct DosLibrary *, DOSBase, 5, Dos)
  442. #define Open(name, accessMode) \
  443.     AROS_LC2(BPTR, Open, \
  444.     AROS_LCA(STRPTR, name,       D1), \
  445.     AROS_LCA(LONG,   accessMode, D2), \
  446.     struct DosLibrary *, DOSBase, 5, Dos)
  447.  
  448. AROS_LP1(BPTR, OpenFromLock,
  449.     AROS_LPA(BPTR, lock, D1),
  450.     struct DosLibrary *, DOSBase, 63, Dos)
  451. #define OpenFromLock(lock) \
  452.     AROS_LC1(BPTR, OpenFromLock, \
  453.     AROS_LCA(BPTR, lock, D1), \
  454.     struct DosLibrary *, DOSBase, 63, Dos)
  455.  
  456. AROS_LP0(BPTR, Output,
  457.     struct DosLibrary *, DOSBase, 10, Dos)
  458. #define Output() \
  459.     AROS_LC0(BPTR, Output, \
  460.     struct DosLibrary *, DOSBase, 10, Dos)
  461.  
  462. AROS_LP3(LONG, ParsePattern,
  463.     AROS_LPA(STRPTR, Source,      D1),
  464.     AROS_LPA(STRPTR, Dest,        D2),
  465.     AROS_LPA(LONG,   DestLength,  D3),
  466.     struct DosLibrary *, DOSBase, 140, Dos)
  467. #define ParsePattern(Source, Dest, DestLength) \
  468.     AROS_LC3(LONG, ParsePattern, \
  469.     AROS_LCA(STRPTR, Source,      D1), \
  470.     AROS_LCA(STRPTR, Dest,        D2), \
  471.     AROS_LCA(LONG,   DestLength,  D3), \
  472.     struct DosLibrary *, DOSBase, 140, Dos)
  473.  
  474. AROS_LP3(LONG, ParsePatternNoCase,
  475.     AROS_LPA(STRPTR, Source,      D1),
  476.     AROS_LPA(STRPTR, Dest,        D2),
  477.     AROS_LPA(LONG,   DestLength,  D3),
  478.     struct DosLibrary *, DOSBase, 161, Dos)
  479. #define ParsePatternNoCase(Source, Dest, DestLength) \
  480.     AROS_LC3(LONG, ParsePatternNoCase, \
  481.     AROS_LCA(STRPTR, Source,      D1), \
  482.     AROS_LCA(STRPTR, Dest,        D2), \
  483.     AROS_LCA(LONG,   DestLength,  D3), \
  484.     struct DosLibrary *, DOSBase, 161, Dos)
  485.  
  486. AROS_LP1(STRPTR, PathPart,
  487.     AROS_LPA(STRPTR, path, D1),
  488.     struct DosLibrary *, DOSBase, 146, Dos)
  489. #define PathPart(path) \
  490.     AROS_LC1(STRPTR, PathPart, \
  491.     AROS_LCA(STRPTR, path, D1), \
  492.     struct DosLibrary *, DOSBase, 146, Dos)
  493.  
  494. AROS_LP2(BOOL, PrintFault,
  495.     AROS_LPA(LONG,   code,   D1),
  496.     AROS_LPA(STRPTR, header, D2),
  497.     struct DosLibrary *, DOSBase, 79, Dos)
  498. #define PrintFault(code, header) \
  499.     AROS_LC2(BOOL, PrintFault, \
  500.     AROS_LCA(LONG,   code,   D1), \
  501.     AROS_LCA(STRPTR, header, D2), \
  502.     struct DosLibrary *, DOSBase, 79, Dos)
  503.  
  504. AROS_LP1(LONG, PutStr,
  505.     AROS_LPA(STRPTR, string, D1),
  506.     struct DosLibrary *, DOSBase, 158, Dos)
  507. #define PutStr(string) \
  508.     AROS_LC1(LONG, PutStr, \
  509.     AROS_LCA(STRPTR, string, D1), \
  510.     struct DosLibrary *, DOSBase, 158, Dos)
  511.  
  512. AROS_LP3(LONG, Read,
  513.     AROS_LPA(BPTR, file,   D1),
  514.     AROS_LPA(APTR, buffer, D2),
  515.     AROS_LPA(LONG, length, D3),
  516.     struct DosLibrary *, DOSBase, 7, Dos)
  517. #define Read(file, buffer, length) \
  518.     AROS_LC3(LONG, Read, \
  519.     AROS_LCA(BPTR, file,   D1), \
  520.     AROS_LCA(APTR, buffer, D2), \
  521.     AROS_LCA(LONG, length, D3), \
  522.     struct DosLibrary *, DOSBase, 7, Dos)
  523.  
  524. AROS_LP3(struct RDArgs *, ReadArgs,
  525.     AROS_LPA(STRPTR,          template, D1),
  526.     AROS_LPA(IPTR *,          array,    D2),
  527.     AROS_LPA(struct RDArgs *, rdargs,   D3),
  528.     struct DosLibrary *, DOSBase, 133, Dos)
  529. #define ReadArgs(template, array, rdargs) \
  530.     AROS_LC3(struct RDArgs *, ReadArgs, \
  531.     AROS_LCA(STRPTR,          template, D1), \
  532.     AROS_LCA(IPTR *,          array,    D2), \
  533.     AROS_LCA(struct RDArgs *, rdargs,   D3), \
  534.     struct DosLibrary *, DOSBase, 133, Dos)
  535.  
  536. AROS_LP3(LONG, ReadItem,
  537.     AROS_LPA(STRPTR,           buffer,   D1),
  538.     AROS_LPA(LONG,             maxchars, D2),
  539.     AROS_LPA(struct CSource *, input,    D3),
  540.     struct DosLibrary *, DOSBase, 135, Dos)
  541. #define ReadItem(buffer, maxchars, input) \
  542.     AROS_LC3(LONG, ReadItem, \
  543.     AROS_LCA(STRPTR,           buffer,   D1), \
  544.     AROS_LCA(LONG,             maxchars, D2), \
  545.     AROS_LCA(struct CSource *, input,    D3), \
  546.     struct DosLibrary *, DOSBase, 135, Dos)
  547.  
  548. AROS_LP1(LONG, RemDosEntry,
  549.     AROS_LPA(struct DosList *, dlist, D1),
  550.     struct DosLibrary *, DOSBase, 112, Dos)
  551. #define RemDosEntry(dlist) \
  552.     AROS_LC1(LONG, RemDosEntry, \
  553.     AROS_LCA(struct DosList *, dlist, D1), \
  554.     struct DosLibrary *, DOSBase, 112, Dos)
  555.  
  556. AROS_LP4(LONG, RunCommand,
  557.     AROS_LPA(BPTR,   segList,   D1),
  558.     AROS_LPA(ULONG,  stacksize, D2),
  559.     AROS_LPA(STRPTR, argptr,    D3),
  560.     AROS_LPA(ULONG,  argsize,   D4),
  561.     struct DosLibrary *, DOSBase, 84, Dos)
  562. #define RunCommand(segList, stacksize, argptr, argsize) \
  563.     AROS_LC4(LONG, RunCommand, \
  564.     AROS_LCA(BPTR,   segList,   D1), \
  565.     AROS_LCA(ULONG,  stacksize, D2), \
  566.     AROS_LCA(STRPTR, argptr,    D3), \
  567.     AROS_LCA(ULONG,  argsize,   D4), \
  568.     struct DosLibrary *, DOSBase, 84, Dos)
  569.  
  570. AROS_LP3(LONG, Seek,
  571.     AROS_LPA(BPTR, file,     D1),
  572.     AROS_LPA(LONG, position, D2),
  573.     AROS_LPA(LONG, mode,     D3),
  574.     struct DosLibrary *, DOSBase, 11, Dos)
  575. #define Seek(file, position, mode) \
  576.     AROS_LC3(LONG, Seek, \
  577.     AROS_LCA(BPTR, file,     D1), \
  578.     AROS_LCA(LONG, position, D2), \
  579.     AROS_LCA(LONG, mode,     D3), \
  580.     struct DosLibrary *, DOSBase, 11, Dos)
  581.  
  582. AROS_LP1(BPTR, SelectInput,
  583.     AROS_LPA(BPTR, fh, D1),
  584.     struct DosLibrary *, DOSBase, 49, Dos)
  585. #define SelectInput(fh) \
  586.     AROS_LC1(BPTR, SelectInput, \
  587.     AROS_LCA(BPTR, fh, D1), \
  588.     struct DosLibrary *, DOSBase, 49, Dos)
  589.  
  590. AROS_LP1(BPTR, SelectOutput,
  591.     AROS_LPA(BPTR, fh, D1),
  592.     struct DosLibrary *, DOSBase, 50, Dos)
  593. #define SelectOutput(fh) \
  594.     AROS_LC1(BPTR, SelectOutput, \
  595.     AROS_LCA(BPTR, fh, D1), \
  596.     struct DosLibrary *, DOSBase, 50, Dos)
  597.  
  598. AROS_LP2(BOOL, SetComment,
  599.     AROS_LPA(STRPTR, name,    D1),
  600.     AROS_LPA(STRPTR, comment, D2),
  601.     struct DosLibrary *, DOSBase, 30, Dos)
  602. #define SetComment(name, comment) \
  603.     AROS_LC2(BOOL, SetComment, \
  604.     AROS_LCA(STRPTR, name,    D1), \
  605.     AROS_LCA(STRPTR, comment, D2), \
  606.     struct DosLibrary *, DOSBase, 30, Dos)
  607.  
  608. AROS_LP2(BOOL, SetFileDate,
  609.     AROS_LPA(STRPTR,             name, D1),
  610.     AROS_LPA(struct DateStamp *, date, D2),
  611.     struct DosLibrary *, DOSBase, 66, Dos)
  612. #define SetFileDate(name, date) \
  613.     AROS_LC2(BOOL, SetFileDate, \
  614.     AROS_LCA(STRPTR,             name, D1), \
  615.     AROS_LCA(struct DateStamp *, date, D2), \
  616.     struct DosLibrary *, DOSBase, 66, Dos)
  617.  
  618. AROS_LP3(LONG, SetFileSize,
  619.     AROS_LPA(BPTR, file,   D1),
  620.     AROS_LPA(LONG, offset, D2),
  621.     AROS_LPA(LONG, mode,   D3),
  622.     struct DosLibrary *, DOSBase, 76, Dos)
  623. #define SetFileSize(file, offset, mode) \
  624.     AROS_LC3(LONG, SetFileSize, \
  625.     AROS_LCA(BPTR, file,   D1), \
  626.     AROS_LCA(LONG, offset, D2), \
  627.     AROS_LCA(LONG, mode,   D3), \
  628.     struct DosLibrary *, DOSBase, 76, Dos)
  629.  
  630. AROS_LP1(LONG, SetIoErr,
  631.     AROS_LPA(LONG, result, D1),
  632.     struct DosLibrary *, DOSBase, 77, Dos)
  633. #define SetIoErr(result) \
  634.     AROS_LC1(LONG, SetIoErr, \
  635.     AROS_LCA(LONG, result, D1), \
  636.     struct DosLibrary *, DOSBase, 77, Dos)
  637.  
  638. AROS_LP2(BOOL, SetOwner,
  639.     AROS_LPA(STRPTR, name,       D1),
  640.     AROS_LPA(ULONG,  owner_info, D2),
  641.     struct DosLibrary *, DOSBase, 166, Dos)
  642. #define SetOwner(name, owner_info) \
  643.     AROS_LC2(BOOL, SetOwner, \
  644.     AROS_LCA(STRPTR, name,       D1), \
  645.     AROS_LCA(ULONG,  owner_info, D2), \
  646.     struct DosLibrary *, DOSBase, 166, Dos)
  647.  
  648. AROS_LP2(BOOL, SetProtection,
  649.     AROS_LPA(STRPTR, name,    D1),
  650.     AROS_LPA(ULONG,  protect, D2),
  651.     struct DosLibrary *, DOSBase, 31, Dos)
  652. #define SetProtection(name, protect) \
  653.     AROS_LC2(BOOL, SetProtection, \
  654.     AROS_LCA(STRPTR, name,    D1), \
  655.     AROS_LCA(ULONG,  protect, D2), \
  656.     struct DosLibrary *, DOSBase, 31, Dos)
  657.  
  658. AROS_LP2I(LONG, StrToLong,
  659.     AROS_LPA(STRPTR, string, D1),
  660.     AROS_LPA(LONG *, value,  D2),
  661.     struct DosLibrary *, DOSBase, 136, Dos)
  662. #define StrToLong(string, value) \
  663.     AROS_LC2I(LONG, StrToLong, \
  664.     AROS_LCA(STRPTR, string, D1), \
  665.     AROS_LCA(LONG *, value,  D2), \
  666.     struct DosLibrary *, DOSBase, 136, Dos)
  667.  
  668. AROS_LP2(LONG, UnGetC,
  669.     AROS_LPA(BPTR, file,      D1),
  670.     AROS_LPA(LONG, character, D2),
  671.     struct DosLibrary *, DOSBase, 53, Dos)
  672. #define UnGetC(file, character) \
  673.     AROS_LC2(LONG, UnGetC, \
  674.     AROS_LCA(BPTR, file,      D1), \
  675.     AROS_LCA(LONG, character, D2), \
  676.     struct DosLibrary *, DOSBase, 53, Dos)
  677.  
  678. AROS_LP1(void, UnLoadSeg,
  679.     AROS_LPA(BPTR, seglist, D1),
  680.     struct DosLibrary *, DOSBase, 26, Dos)
  681. #define UnLoadSeg(seglist) \
  682.     AROS_LC1(void, UnLoadSeg, \
  683.     AROS_LCA(BPTR, seglist, D1), \
  684.     struct DosLibrary *, DOSBase, 26, Dos)
  685.  
  686. AROS_LP1(void, UnLockDosList,
  687.     AROS_LPA(ULONG, flags, D1),
  688.     struct DosLibrary *, DOSBase, 110, Dos)
  689. #define UnLockDosList(flags) \
  690.     AROS_LC1(void, UnLockDosList, \
  691.     AROS_LCA(ULONG, flags, D1), \
  692.     struct DosLibrary *, DOSBase, 110, Dos)
  693.  
  694. AROS_LP3(LONG, VFPrintf,
  695.     AROS_LPA(BPTR,   file,     D1),
  696.     AROS_LPA(STRPTR, format,   D2),
  697.     AROS_LPA(IPTR *, argarray, D3),
  698.     struct DosLibrary *, DOSBase, 59, Dos)
  699. #define VFPrintf(file, format, argarray) \
  700.     AROS_LC3(LONG, VFPrintf, \
  701.     AROS_LCA(BPTR,   file,     D1), \
  702.     AROS_LCA(STRPTR, format,   D2), \
  703.     AROS_LCA(IPTR *, argarray, D3), \
  704.     struct DosLibrary *, DOSBase, 59, Dos)
  705.  
  706. AROS_LP2(LONG, VPrintf,
  707.     AROS_LPA(STRPTR, format,   D1),
  708.     AROS_LPA(IPTR *, argarray, D2),
  709.     struct DosLibrary *, DOSBase, 159, Dos)
  710. #define VPrintf(format, argarray) \
  711.     AROS_LC2(LONG, VPrintf, \
  712.     AROS_LCA(STRPTR, format,   D1), \
  713.     AROS_LCA(IPTR *, argarray, D2), \
  714.     struct DosLibrary *, DOSBase, 159, Dos)
  715.  
  716. AROS_LP3(LONG, Write,
  717.     AROS_LPA(BPTR, file,   D1),
  718.     AROS_LPA(APTR, buffer, D2),
  719.     AROS_LPA(LONG, length, D3),
  720.     struct DosLibrary *, DOSBase, 8, Dos)
  721. #define Write(file, buffer, length) \
  722.     AROS_LC3(LONG, Write, \
  723.     AROS_LCA(BPTR, file,   D1), \
  724.     AROS_LCA(APTR, buffer, D2), \
  725.     AROS_LCA(LONG, length, D3), \
  726.     struct DosLibrary *, DOSBase, 8, Dos)
  727.  
  728.  
  729. #endif /* CLIB_DOS_PROTOS_H */
  730.