home *** CD-ROM | disk | FTP | other *** search
- {$if not def DOS_LIB_H} CONST DOS_LIB_H=0;
-
- { *********************************************************
- ** KickPascal-Include-Datei "dos.lib" zu Kickstart 3.0 **
- ********************************************************* }
-
- {$if not def DOS_DOS_H;incl "dos/dos.h";endif}
- {$if not def DOS_DOSTAGS_H;incl "dos/dostags.h";endif}
- {$if not def DOS_DOSEXTENS_H;incl "dos/dosextens.h";endif}
- {$if not def DOS_RECORD_H;incl "dos/record.h";endif}
- {$if not def DOS_RDARGS_H;incl "dos/rdargs.h";endif}
- {$if not def DOS_DOSASL_H;incl "dos/dosasl.h";endif}
- {$if not def DOS_VAR_H;incl "dos/var.h";endif}
- {$if not def DOS_EXALL_H;incl "dos/exall.h";endif}
- {$if not def DOS_NOTIFY_H;incl "dos/notify.h";endif}
- {$if not def DOS_DATETIME_H;incl "dos/datetime.h";endif}
- {$if not def UNTILITY_TAGITEM_H;incl "utility/tagitem.h";endif}
-
- LIBRARY DosBase :
-
- -30 : FUNCTION Open(D1:Str; D2:LongInt): BPTR;
- -30 : FUNCTION _Open(D1:Str; D2:LongInt): BPTR;
- -30 : FUNCTION DOSOpen(D1:Str; D2:LongInt): BPTR;
- -36 : FUNCTION _Close(D1:BPTR): LongInt;
- -36 : FUNCTION DOSClose(D1:BPTR): LongInt;
- -42 : FUNCTION _Read(D1:BPTR; D2:Ptr; D3:LongInt): LongInt;
- -42 : FUNCTION DOSRead(D1:BPTR; D2:Ptr; D3:LongInt): LongInt;
- -48 : FUNCTION _Write(D1:BPTR; D2:Ptr; D3:LongInt): LongInt;
- -48 : FUNCTION DOSWrite(D1:BPTR; D2:Ptr; D3:LongInt): LongInt;
- -54 : FUNCTION _Input: BPTR;
- -54 : FUNCTION DOSInput: BPTR;
- -60 : FUNCTION _Output: BPTR;
- -60 : FUNCTION DOSOutput: BPTR;
- -66 : FUNCTION _Seek(D1:BPTR; D2,D3:LongInt): LongInt;
- -66 : FUNCTION DOSSeek(D1:BPTR; D2,D3:LongInt): LongInt;
- -72 : FUNCTION DeleteFile(D1:Str): LongInt;
- -78 : FUNCTION Rename(D1,D2:Str): LongInt;
- -84 : FUNCTION Lock(D1:Str; D2:LongInt): BPTR;
- -90 : PROCEDURE UnLock(D1:BPTR);
- -96 : FUNCTION DupLock(D1:BPTR): BPTR;
- -102 : FUNCTION Examine(D1:BPTR; D2:p_FileInfoBlock): LongInt;
- -108 : FUNCTION ExNext(D1:BPTR; D2:p_FileInfoBlock): LongInt;
- -114 : FUNCTION Info(D1:BPTR; D2:p_InfoData): LongInt;
- -120 : FUNCTION CreateDir(D1:Str): BPTR;
- -126 : FUNCTION CurrentDir(D1:BPTR): BPTR;
- -132 : FUNCTION IoErr: LongInt;
- -138 : FUNCTION CreateProc(D1:Str; D2:LongInt; D3:BPTR; D4:LongInt): p_MsgPort;
- -144 : PROCEDURE _Exit(D1:LongInt);
- -144 : PROCEDURE DOSExit(D1:LongInt);
- -150 : FUNCTION LoadSeg(D1:Str): BPTR;
- -156 : PROCEDURE UnLoadSeg(D1:BPTR);
- { *** private Routinen *** }
- -174 : FUNCTION DeviceProc(D1:Str): p_MsgPort;
- -180 : FUNCTION SetComment(D1,D2:Str): LongInt;
- -186 : FUNCTION SetProtection(D1:Str; D2:LongInt): LongInt;
- -192 : FUNCTION _DateStamp(D1:p_DateStamp): p_DateStamp;
- -192 : FUNCTION DOSDateStamp(D1:p_DateStamp): p_DateStamp;
- -198 : PROCEDURE _Delay(D1:LongInt);
- -198 : PROCEDURE DOSDelay(D1:LongInt);
- -204 : FUNCTION WaitForChar(D1:BPTR; D2:LongInt): LongInt;
- -210 : FUNCTION ParentDir(D1:BPTR): BPTR;
- -216 : FUNCTION IsInteractive(D1:BPTR): LongInt;
- -222 : FUNCTION Execute(D1:Str; D2,D3:BPTR): LongInt;
-
- { **** Routinen ab V36 / Kickstart Release 2.0 **** }
-
- -228 : FUNCTION AllocDosObject(D0:Long; D1:p_TagItem): Ptr;
- -228 : FUNCTION AllocDosObjectTagList(D0:Long; D1:p_TagItem): Ptr;
- -234 : PROCEDURE FreeDosObject(D1:Long; D2:Ptr);
- -240 : FUNCTION DoPkt(D1:p_MsgPort; D2,D3,D4,D5,D6,D7:LongInt): LongInt;
- -246 : PROCEDURE SendPkt(D1:p_DosPacket; D2,D3:p_MsgPort);
- -252 : FUNCTION WaitPkt: p_DosPacket;
- -258 : PROCEDURE ReplyPkt(D1:p_DosPacket; D2,D3:LongInt);
- -264 : PROCEDURE AbortPkt(D1:p_MsgPort; D2:p_DosPacket);
- -270 : FUNCTION LockRecord(D1:BPTR; D2,D3,D4,D5:Long): Boolean;
- -276 : FUNCTION LockRecords(D1:p_RecordLock; D2:Long): Boolean;
- -282 : FUNCTION UnLockRecord(D1:BPTR; D2,D3:Long): Boolean;
- -288 : FUNCTION UnLockRecords(D1:p_RecordLock): Boolean;
- -294 : FUNCTION SelectInput(D1:BPTR): BPTR;
- -300 : FUNCTION SelectOutput(D1:BPTR): BPTR;
- -306 : FUNCTION FGetC(D1:BPTR): LongInt;
- -312 : PROCEDURE FPutC(D1:BPTR; D2:Long);
- -318 : FUNCTION UnGetC(D1:BPTR; D2:LongInt): LongInt;
- -324 : FUNCTION FRead(D1:BPTR; D2:Ptr; D3,D4:Long): LongInt;
- -330 : FUNCTION FWrite(D1:BPTR; D2:Ptr; D3,D4:Long): LongInt;
- -336 : FUNCTION FGets(D1:BPTR; D2:Ptr; D3:Long): Ptr;
- -342 : FUNCTION FPuts(D1:BPTR; D2:Ptr): LongInt;
- -348 : PROCEDURE VFWritef(D1:BPTR; D2:Ptr; D3:Ptr);
- -354 : FUNCTION VFPrintf(D1:BPTR; D2:Ptr; D3:Ptr): LongInt;
- -360 : PROCEDURE Flush(D1:BPTR);
- -366 : FUNCTION SetVBuf(D1:BPTR; D2:Ptr; D3,D4:LongInt): LongInt;
- -372 : FUNCTION DupLockFromFH(D1:BPTR): BPTR;
- -378 : FUNCTION OpenFromLock(D1:BPTR): BPTR;
- -384 : FUNCTION ParentOfFH(D1:BPTR): BPTR;
- -390 : FUNCTION ExamineFH(D1:BPTR; D2:p_FileInfoBlock): Boolean;
- -396 : FUNCTION SetFileDate(D1:Str; D2:p_DateStamp): LongInt;
- -402 : FUNCTION NameFromLock(D1:BPTR; D2:Str; D3:LongInt): LongInt;
- -408 : FUNCTION NameFromFH(D1:BPTR; D2:Str; D3:LongInt): LongInt;
- -414 : FUNCTION SplitName(D1:Str; D2:Long; D3:Ptr; D4,D5:LongInt): Integer;
- -420 : FUNCTION SameLock(D1,D2:BPTR): LongInt;
- -426 : FUNCTION SetMode(D1:BPTR; D2:LongInt): LongInt;
- -432 : FUNCTION ExAll(D1:BPTR; D2:p_ExAllData; D3,D4:LongInt; D5:p_ExAllControl): LongInt;
- -438 : FUNCTION ReadLink(D1:p_MsgPort; D2:BPTR; D3,D4: Ptr; D5:Long): LongInt;
- -444 : FUNCTION MakeLink(D1:Str; D2,D3:LongInt): LongInt;
- -450 : FUNCTION ChangeMode(D1:LongInt; D2:BPTR; D3:LongInt): LongInt;
- -456 : FUNCTION SetFileSize(D1:BPTR; D2,D3:LongInt): LongInt;
- -462 : FUNCTION SetIoErr(D1:LongInt): LongInt;
- -468 : FUNCTION Fault(D1:LongInt; D2,D3:Ptr; D4:LongInt): Boolean;
- -474 : FUNCTION PrintFault(D1:LongInt; D2:Ptr): Boolean;
- -480 : FUNCTION ErrorReport(D1,D2:LongInt, D3:Long; D4:p_MsgPort): LongInt;
- { *** ein "Slot" reserviert *** }
- -492 : FUNCTION Cli: p_CommandLineInterface;
- -498 : FUNCTION CreateNewProc(D1:p_TagItem): p_Process;
- -498 : FUNCTION CreateNewProcTagList(D1:p_TagItem): p_Process;
- -504 : FUNCTION RunCommand(D1:BPTR; D2:LongInt; D3:Str; D4:LongInt):LongInt;
- -510 : FUNCTION GetConsoleTask: p_MsgPort;
- -516 : FUNCTION SetConsoleTask(D1:p_MsgPort): p_MsgPort;
- -522 : FUNCTION GetFileSysTask: p_MsgPort;
- -528 : FUNCTION SetFileSysTask(D1:p_MsgPort): p_MsgPort;
- -534 : FUNCTION GetArgStr: Str;
- -540 : FUNCTION SetArgStr(D1:Str): Str;
- -546 : FUNCTION FindCliProc(D1:Long): p_Process;
- -552 : FUNCTION MaxCli: Long;
- -558 : FUNCTION SetCurrentDirName(D1:Str): Boolean;
- -564 : FUNCTION GetCurrentDirName(D1:Str; D2:LongInt): Boolean;
- -570 : FUNCTION SetProgramName(D1:Str): Boolean;
- -576 : FUNCTION GetProgramName(D1:Str; D2:LongInt): Boolean;
- -582 : FUNCTION SetPrompt(D1:Str): Boolean;
- -588 : FUNCTION GetPrompt(D1:Str; D2:LongInt): Boolean;
- -594 : FUNCTION SetProgramDir(D1:BPTR): BPTR;
- -600 : FUNCTION GetProgramDir: BPTR;
- -606 : FUNCTION SystemTagList(D1: Str; D2:p_TagItem): LongInt;
- -606 : FUNCTION System(D1: Str; D2:p_TagItem): LongInt;
- -612 : FUNCTION AssignLock(D1:Str; D2:BPTR): LongInt;
- -618 : FUNCTION AssignLate(D1,D2:Str): Boolean;
- -624 : FUNCTION AssignPath(D1,D2:Str): Boolean;
- -630 : FUNCTION AssignAdd(D1:Str; D2:BPTR): Boolean;
- -636 : FUNCTION RemAssignList(D1:Str; D2:BPTR): LongInt;
- -642 : FUNCTION GetDeviceProc(D1:Str; D2:p_DevProc): p_DevProc;
- -648 : PROCEDURE FreeDeviceProc(D1:p_DevProc);
- -654 : FUNCTION LockDosList(D1:Long): p_DosList;
- -660 : PROCEDURE UnLockDosList(D1:Long);
- -666 : FUNCTION AttemptLockDosList(D1:Long): p_DosList;
- -672 : FUNCTION RemDosEntry(D1:p_DosList): Boolean;
- -678 : FUNCTION AddDosEntry(D1:p_DosList): p_DosList;
- -684 : FUNCTION FindDosEntry(D1:p_DosList; D2:Str; D3:Long): p_DosList;
- -690 : FUNCTION NextDosEntry(D1:p_DosList; D2:Long): p_DosList;
- -696 : FUNCTION MakeDosEntry(D1:Str; D2:LongInt): p_DosList;
- -702 : PROCEDURE FreeDosEntry(D1:p_DosList);
- -708 : FUNCTION IsFileSystem(D1:Str): Boolean;
- -714 : FUNCTION Format(D1:Ptr; D2:Str; D3:Long): Boolean;
- -720 : FUNCTION Relabel(D1:Ptr; D2:Str): LongInt;
- -726 : FUNCTION Inhibit(D1:Str; D2:LongInt): LongInt;
- -732 : FUNCTION AddBuffers(D1:Str; D2:LongInt): LongInt;
- -738 : FUNCTION CompareDates(D1,D2:p_DateStamp): LongInt;
- -744 : FUNCTION DateToStr(d1:p_DateTime): LongInt;
- -750 : FUNCTION StrToDate(d1:p_DateTime): LongInt;
- -756 : FUNCTION InternalLoadSeg(D0:BPTR; A0:BPTR; A1,A2:Ptr): BPTR;
- -762 : PROCEDURE InternalUnLoadSeg(D1:BPTR; A1:Ptr);
- -768 : FUNCTION NewLoadSeg(D1:Str; D2:p_TagItem): BPTR;
- -768 : FUNCTION NewLoadSegTagList(D1:Str; D2:p_TagItem): BPTR;
- -774 : FUNCTION AddSegment(D1:Str; D2:BPTR; D3:LongInt): LongInt;
- -780 : FUNCTION FindSegment(D1:Str; D2:p_Segment; D3:LongInt): p_Segment;
- -786 : FUNCTION RemSegment(D1:p_Segment): LongInt;
- -792 : FUNCTION CheckSignal(D1:LongInt): LongInt;
- -798 : FUNCTION ReadArgs(D1:Ptr; D2:Ptr; D3:p_RDArgs): p_RDArgs;
- -804 : FUNCTION FindArg(D1,D2:Ptr): LongInt;
- -810 : FUNCTION ReadItem(D1:Ptr; D2:LongInt; D3:p_CSource): LongInt;
- -816 : FUNCTION StrToLong(D1:Str; D2:Ptr): LONG;
- -822 : FUNCTION MatchFirst(D1:Ptr; D2:AnchorPath): LongInt;
- -828 : FUNCTION MatchNext(D1:p_AnchorPath): LongInt;
- -834 : PROCEDURE MatchEnd(D1:AnchorPath);
- -840 : FUNCTION ParsePattern(D1,D2:Ptr; D3:LongInt): LongInt;
- -846 : FUNCTION MatchPattern(D1,D2:Ptr): Boolean;
- { *** noch nicht funtionsfähige Routine *** }
- -858 : PROCEDURE FreeArgs(D1:p_RDArgs);
- { *** ein "Slot" reserviert *** }
- -870 : FUNCTION FilePart(D1:Str): Str;
- -876 : FUNCTION PathPart(D1:Str): Str;
- -882 : FUNCTION AddPart(D1,D2:Str; D3:Long): Boolean;
- -888 : FUNCTION StartNotify(D1:p_NotifyRequest): Boolean;
- -894 : PROCEDURE EndNotify(D1:p_NotifyRequest);
- -900 : FUNCTION SetVar(D1:Str; D2:Ptr; D3,D4:LongInt): Boolean;
- -906 : FUNCTION GetVar(D1:Str; D2:Ptr; D3,D4:LongInt): LongInt;
- -912 : FUNCTION DeleteVar(D1:Str; D2:Long): LongInt;
- -918 : FUNCTION FindVar(D1:Str; D2:Long): p_LocalVar;
- -924 : FUNCTION CliInit(D1:p_DosPacket): LongInt;
- -930 : FUNCTION CliInitNewcli(D1:p_DosPacket): LongInt;
- -936 : FUNCTION CliInitRun(D1:p_DosPacket): LongInt;
- -942 : FUNCTION WriteChars(D1:Ptr; D2:Long): LongInt;
- -948 : FUNCTION PutStr(D1:Str): LongInt;
- -954 : FUNCTION VPrintf(D1:Str; D2:Ptr): LongInt;
- { *** ein "Slot" reserviert *** }
- { --- Routinen erst ab DOS 36.147 --- }
- -966 : FUNCTION ParsePatternNoCase(D1,D2: Ptr; D3:LongInt): LongInt;
- -972 : FUNCTION MatchPatternNoCase(D1,D2: Ptr): Boolean;
- { *** private Routine *** }
- { **** Routinen ab V37 / Kickstart 2.04 **** }
- -984 : FUNCTION SameDevice(D1,D2: BPTR): Boolean;
- { **** Routinen ab V39 / Kickstart 3.0 **** }
- -990 : PROCEDURE ExAllEnd(D1: BPTR; D2: p_ExAllData; D3: LongInt; D4: LongInt; D5: p_ExAllControl);
- -996 : FUNCTION SetOwner(D1: Str; D2: LongInt): Boolean;
- { *** private Routinen *** }
-
- END;
- {$endif}
-