[comp.os.os9] Source request.

lavelle@joey.cs.buffalo.edu (Brent LaVelle) (11/18/89)

Does anybody out there have sources for ls,makdir,more for OS9 6809?
I want to write some utilities like ls (more like the unix ls, and one
that doesn't step the head so much on -l), man (with whatis and all),
and lpr(I'm not sure what is out there).  I'd like to see some
examples of how these things are done to save time.

Am I reinventing the ls?  The ls that I saw was a bit different than
the unix version and looked like it could be faster.

Brent LaVelle

rh2y+@andrew.cmu.edu (Russell E. Hoffman, II) (11/18/89)

The source to 'more' may be found in _The Complete Rainbow Guide to OS-9_,
which may be purchased at Radio Shack for $16.95 (well, last time I checked,
anyway.) It's in OS9 6809 assembler on pages 349-354.
Also in this book are the C sources to wc, cat, spint (like grep), and d, an
enhanced directory utility.

    -Hope that helps...

______________
Russell E. Hoffman, II
rh2y+@andrew.cmu.edu
Carnegie Mellon University
"Computers are people, too.  - No, wait... that insults the computer."

wynkoop@esquire.UUCP (Brett Wynkoop) (11/19/89)

There are already examples of all you want to write on CIS.  As far as ls
is  concerned if you make it more like the unix ls it will be slower and
move the disk head more because it will have to go to the password file for
every file listed to be able to print the user name.

-Brett