home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d1xx
/
d168
/
dillonstuff.lha
/
doc
/
dres
/
runlib.doc
< prev
next >
Wrap
Text File
|
1988-11-22
|
3KB
|
92 lines
DRES.LIBRARY
OVERVIEW OF FUNCTIONS
This document is meant to give a simple overview of library functions,
not to provide complete explanations. Please refer to the separate
document files for various command groups for more detailed information.
* All function arguments are 32 bits unless otherwise specified
* Any Address register may be used to hold the library base pointer
when calling library routines from assembly.
IPC
ipcport = OpenIPC(name, 0)
(void) = CloseIPC(ipcport)
ipcmsg = SendIPC(name, buf, len, flags)
ipcmsg = SendIPC2(name, ipcmsg)
(void) = ReplyIPC(msg, buf, len, flags)
(void) = FreeIPC(msg)
(void) = DoIPC2(name, msg, handler, ipcport)
argc = ParseCmd(str, &argv, varget, varfree, &error, NULL)
FreeParseCmd(argv)
QINTS
handle = OpenQInts()
(void) = CloseQInts(handle)
(void) = SetQPri(handle, pri)
oldvect = SetQVector(handle, vector, signo, arg, pri)
MISC
BOOL = WildCmp(wildcard, filename)
msg = WaitMsg(msg)
msg/NULL= CheckMsg(msg)
msg/NULL= CheckPort(port)
(void) = LockAddr(&varlock) (long varlock[2] = { 0,0 })
(void) = LockAddrB(bitno, &varlock)
(void) = UnLockAddr(&varlock)
(void) = UnLockAddrB(bitno, &varlock)
(void) = DoSyncMsg(port, msg) (do not setup reply port for message)
node/NULL= FindName2(list, name) (ignores NULL ln_Name fields)
ptr = GetTaskData(name, bytes)
(void) = FreeTaskData(name)
LISTS
node = GetHead(list)
node = GetTail(list)
node = GetSucc(list/node)
node = GetPred(node)
sptr = GetHeadOff(list, offset)
sptr = GetTailOff(list, offset)
sptr = GetSuccOff(sptr, offset)
sptr = GetPredOff(sptr, offset)
(void) = EnqueueLong(list, start, node, valoff)
(void) = EnqueueOffLong(list, start, sptr, off, valoff)
rval = SearchFwdNode(node, function, arg)
rval = SearchRvsNode(node, function, arg)
rval = SearchFwdList(list, function, arg)
rval = SearchRvsList(list, function, arg)
rval = SearchFwdNodeOff(sptr, function, off, arg)
rval = SearchRvsNodeOff(sptr, function, off, arg)
rval = SearchFwdListOff(list, function, off, arg)
rval = SearchRvsListOff(list, function, off, arg)
>> function(sptr:4(sp)orA2, arg:8(sp)orD4)
MEMORY
(void) = BZero(buf, bytes)
(void) = BSet(buf, bytes, char)
(void) = BMov(src, dest, bytes)
BOOL = BCmp(src, dest, bytes) 0=failed, 1=success
TIMEDATE
DOSBOOL = SetFileDate(file, date) 0=failed, -1=success
char * = DateToS(datestamp, buf, format)
RESOURCES (NOT IMPLEMENTED YET)