home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d1xx
/
d168
/
dillonstuff.lha
/
doc
/
suplib
/
summary.doc
< prev
next >
Wrap
Text File
|
1988-11-22
|
3KB
|
87 lines
SUMMARY.DOC Summary of library functions
-------- ASYNCHRONOUS FILE SUPPORT --------
xfi = xfopen(file, mode, bytes) mode: r-read w-write w+-append
err = xfclose(xfi)
n = xfread(xfi, buf, n) 0 on EOF/error
n = xfgets(xfi, buf, max) -1 on EOF/error else string length
err = xfwrite(xfi, buf, n)
bmov(src,dest,bytes)
bcmp(src,dest,bytes)
bset(src, bytes, c)
bzero(src, bytes)
checkbreak()
resetbreak()
disablebreak() (not available as a run-time library call)
enablebreak() (not available as a run-time library call)
openlibs(flags)
closelibs(flags)
closelibs(-1) close all libraries openned w/ openlibs()
bool = wildcmp(wildstr, namestr)
mountrequest(bool)
fhprintf(fh, ctrlstr, args...)
llink(list, en) (OBSOLETE)
lunlink(en) (OBSOLETE)
SYSTEM SUPPORT
port = CreateUniquePort(name, priority) create port w/unique name
DeleteUniquePort(port) delete port w/unique name
PutSyncMsg(port, msg) normal synchronous message
PutSyncMsgSimple(port, ptr, cmd) simple synchronous message
retcmd = WaitMsg(msg) wait for message to come back
CheckMsg(msg) check if message has come back
GetHead(list)
GetTail(list)
NextNode(node)
IO SUPPORT
dfd = dio_open(name, unit, flags, req/NULL)
dio_close(dfd)
dio_closegrp(dfd)
dio_cact(dfd,bool)
dio_dup(dfd)
sig = dio_signal(dfd)
req = dio_ctl_to(dfd, command, buf, len, to)
req = dio_ctl(dfd, command, buf, len)
bool= dio_isdone(dfd)
req = dio_wait(dfd)
req = dio_abort(dfd)
also a large array of macros are available. if command < 0, then
asyncronous execution is implied. Macros:
SYCHRONOUS ASYNCHRONOUS
dio_simple(dfd,com) 0=ERROR, 1=OK undefined
dio_actual(dfd,com) io_Actual undefined
dio_reset(dfd) 0=ERROR, 1=OK n/a
dio_update(dfd) 0=ERROR, 1=OK n/a
dio_clear(dfd) 0=ERROR, 1=OK n/a
dio_stop(dfd) 0=ERROR, 1=OK n/a
dio_start(dfd) 0=ERROR, 1=OK n/a
dio_flush(dfd) 0=ERROR, 1=OK n/a
dio_getreq(dfd) returns a ptr to the IO request structure
dio_read(dfd,buf,len) returns actual bytes read
dio_write(dfd,buf,len) returns actual bytes written
dio_readto(dfd,buf,len,to) returns actual bytes read
dio_writeto(dfd,buf,len,to) returns actual bytes written
dio_reada(dfd,buf,len) begin asyncronous read
dio_writea(dfd,buf,len) begin asyncronous write