Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!sri-spam!mordor!lll-tis!ptsfa!well!ewhac From: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Newsgroups: comp.sys.amiga Subject: Re: What is clist.library? Message-ID: <3616@well.UUCP> Date: Fri, 24-Jul-87 15:08:27 EDT Article-I.D.: well.3616 Posted: Fri Jul 24 15:08:27 1987 Date-Received: Sat, 25-Jul-87 15:58:28 EDT References: <18102@cca.CCA.COM> Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Organization: Bob's Mortuary. You stab 'em, we slab 'em. Lines: 34 Keywords: amiga programming,libraries,documentation Summary: The orphan of the Amiga OS. In article <18102@cca.CCA.COM> bryan@cca.CCA.COM (Bryan Pendleton) writes: > 1) Does anyone use the clist.library? Is it possible? What is it for? > Is there any doc. on it other than the function call descriptions > in the Libraries and Devices manual. These entries do a reasonable > job of explaining what and how, but not why. Also, a couple of > examples would help! > I asked -=RJ=- about this at the Commodore Show early this year. Apparently, it's a set of (debugged) string manipulation routines, similar to string operations you might find in LISP (-=RJ=-'s words). A scan of available Amiga software some months back revealed that *nobody* uses that library. If and when 1.3 comes out, the clist.library will probably be pulled out of the ROM and tossed onto the WorkBench disk. > 2) Several parts of the doc mention the ability of cli-run programs to > be aware of, and respond to, 'break' requests (ctl-C, etc.) from the > keyboard. Just how is this supposed to be done? Is one supposed to > poll some locations in some data structure? Or is one signalled at > the appropriate time? Or is a message sent? > When you hit ^C (or ^D, ^E, or ^F), DOS generates a signal and sends it to your process. This signal may be Wait()ed on, or plugged into an exception mask. The signals are defined in libraries/dos.h, and are SIGBREAKF_CTRL_C, SIGBREAKF_CTRL_D, SIGBREAKF_CTRL_E, and SIGBREAKF_CTRL_F. I think both C compilers also provide a function called ChkAbort() which allows polled checking for ^C, but this always struck me as a sleazy way of doing it. _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Leo L. Schwab -- The Guy in The Cape ihnp4!ptsfa -\ \_ -_ Bike shrunk by popular demand, dual ---> !{well,unicom}!ewhac O----^o But it's still the only way to fly. hplabs / (pronounced "AE-wack") "Work FOR? I don't work FOR anybody! I'm just having fun." -- The Doctor