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 >
Text File  |  1988-11-22  |  3KB  |  92 lines

  1.  
  2.                 DRES.LIBRARY
  3.  
  4.                 OVERVIEW OF FUNCTIONS
  5.  
  6.     This document is meant to give a simple overview of library functions,
  7.     not to provide complete explanations.  Please refer to the separate
  8.     document files for various command groups for more detailed information.
  9.  
  10.     * All function arguments are 32 bits unless otherwise specified
  11.  
  12.     * Any Address register may be used to hold the library base pointer
  13.       when calling library routines from assembly.
  14.  
  15.  
  16.                   IPC
  17.  
  18.     ipcport =    OpenIPC(name, 0)
  19.     (void)  =   CloseIPC(ipcport)
  20.     ipcmsg  =    SendIPC(name, buf, len, flags)
  21.     ipcmsg  =    SendIPC2(name, ipcmsg)
  22.     (void)  =   ReplyIPC(msg, buf, len, flags)
  23.     (void)  =   FreeIPC(msg)
  24.     (void)  =   DoIPC2(name, msg, handler, ipcport)
  25.  
  26.     argc    =    ParseCmd(str, &argv, varget, varfree, &error, NULL)
  27.         FreeParseCmd(argv)
  28.  
  29.                  QINTS
  30.  
  31.     handle  =    OpenQInts()
  32.     (void)  =   CloseQInts(handle)
  33.     (void)  =   SetQPri(handle, pri)
  34.     oldvect =    SetQVector(handle, vector, signo, arg, pri)
  35.  
  36.                  MISC
  37.  
  38.     BOOL    =    WildCmp(wildcard, filename)
  39.     msg     =    WaitMsg(msg)
  40.     msg/NULL=    CheckMsg(msg)
  41.     msg/NULL=    CheckPort(port)
  42.     (void)  =   LockAddr(&varlock)      (long varlock[2] = { 0,0 })
  43.     (void)  =   LockAddrB(bitno, &varlock)
  44.     (void)  =   UnLockAddr(&varlock)
  45.     (void)  =   UnLockAddrB(bitno, &varlock)
  46.     (void)  =   DoSyncMsg(port, msg)    (do not setup reply port for message)
  47.     node/NULL=    FindName2(list, name)   (ignores NULL ln_Name fields)
  48.     ptr     =    GetTaskData(name, bytes)
  49.     (void)  =   FreeTaskData(name)
  50.  
  51.                 LISTS
  52.  
  53.     node    =    GetHead(list)
  54.     node    =    GetTail(list)
  55.  
  56.     node    =    GetSucc(list/node)
  57.     node    =    GetPred(node)
  58.  
  59.     sptr    =    GetHeadOff(list, offset)
  60.     sptr    =    GetTailOff(list, offset)
  61.     sptr    =    GetSuccOff(sptr, offset)
  62.     sptr    =    GetPredOff(sptr, offset)
  63.  
  64.     (void)  =   EnqueueLong(list, start, node, valoff)
  65.     (void)  =   EnqueueOffLong(list, start, sptr, off, valoff)
  66.  
  67.     rval    =    SearchFwdNode(node, function, arg)
  68.     rval    =    SearchRvsNode(node, function, arg)
  69.     rval    =    SearchFwdList(list, function, arg)
  70.     rval    =    SearchRvsList(list, function, arg)
  71.     rval    =    SearchFwdNodeOff(sptr, function, off, arg)
  72.     rval    =    SearchRvsNodeOff(sptr, function, off, arg)
  73.     rval    =    SearchFwdListOff(list, function, off, arg)
  74.     rval    =    SearchRvsListOff(list, function, off, arg)
  75.  
  76.         >>    function(sptr:4(sp)orA2, arg:8(sp)orD4)
  77.  
  78.                   MEMORY
  79.  
  80.     (void)  =   BZero(buf, bytes)
  81.     (void)  =   BSet(buf, bytes, char)
  82.     (void)  =   BMov(src, dest, bytes)
  83.     BOOL    =    BCmp(src, dest, bytes)      0=failed, 1=success
  84.  
  85.                   TIMEDATE
  86.  
  87.     DOSBOOL =    SetFileDate(file, date)     0=failed, -1=success
  88.     char *  =    DateToS(datestamp, buf, format)
  89.  
  90.                   RESOURCES (NOT IMPLEMENTED YET)
  91.  
  92.