#! rnews 12227 Path: van-bc!ubc-vision!alberta!mnetor!seismo!rutgers!ames!oliveb!sun!cmcmanis From: cmcmanis@sun.uucp (Chuck McManis) Newsgroups: comp.sys.amiga Subject: Info command replacement Keywords: BCPL just say no Message-ID: <19063@sun.uucp> Date: 18 May 87 03:36:31 GMT Organization: Sun Microsystems, Inc. - Mtn View, CA Lines: 371 The enclosed program is a C version of the AmigaDOS info command. I wrote it as part of a program sponsered by Charlie Heath on BIX who has set out to replace all of the AmigaDOS commands on the Workbench disk with versions written in C and assembler. The purpose being that C commands do not require the funky BCPL setup and can therefore be used in Execute calls and Lattice fork() calls. You also have the advantage of getting source to the AmigaDOS commands. This program was written to minimize the size of the executable, and to do that I have eliminated nearly all of the references to the Lattice library lc.lib, what remains are the calls for 32 bit multiply and divide. I used Carolyn's TWStartup.asm file for the startup code, thus eliminating any reference to the Lattice stdio package however that means compiling with the -v option (disable stack checking). For compactness I also compiled with the -r option which causes the use of PC relative branching rather than long branching. Blink switches include NODEBUG, SMALLCODE and SMALLDATA. see the .lnk command file outline in the main comment. Also I took some artistic license and switched the output of the Volumes available and the Disk statistics. Since I am usually more interested in how much space a given diskette has rather that the fact that it is mounted or not. To make it *really* info compatible you will have to switch the Pass 1 and Pass 2 code. Watch out for the signature at the end of the message... --Chuck