home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / newc_dev / info_src.arc / POSTER < prev   
Internet Message Format  |  1988-05-27  |  2KB

  1. Path: l5comp!stride!utah-gr!utah-cs!ut-sally!seismo!rutgers!ames!oliveb!sun!cmcmanis
  2. From: cmcmanis@sun.uucp (Chuck McManis)
  3. Newsgroups: comp.sys.amiga
  4. Subject: Info command replacement
  5. Keywords: BCPL just say no
  6. Message-ID: <19063@sun.uucp>
  7. Date: 18 May 87 03:36:31 GMT
  8. Organization: Sun Microsystems, Inc. - Mtn View, CA
  9. Lines: 371
  10.  
  11. The enclosed program is a C version of the AmigaDOS info command. I wrote it
  12. as part of a program sponsered by Charlie Heath on BIX who has set
  13. out to replace all of the AmigaDOS commands on the Workbench disk with
  14. versions written in C and assembler. The purpose being that C commands
  15. do not require the funky BCPL setup and can therefore be used in 
  16. Execute calls and Lattice fork() calls. You also have the advantage of
  17. getting source to the AmigaDOS commands. 
  18.   This program was written to minimize the size of the executable, and
  19. to do that I have eliminated nearly all of the references to the Lattice
  20. library lc.lib, what remains are the calls for 32 bit multiply and divide.
  21. I used Carolyn's TWStartup.asm file for the startup code, thus eliminating
  22. any reference to the Lattice stdio package however that means compiling
  23. with the -v option (disable stack checking). For compactness I also compiled
  24. with the -r option which causes the use of PC relative branching rather than
  25. long branching. Blink switches include NODEBUG, SMALLCODE and SMALLDATA. 
  26. see the .lnk command file outline in the main comment. 
  27.   Also I took some artistic license and switched the output of the Volumes
  28. available and the Disk statistics. Since I am usually more interested
  29. in how much space a given diskette has rather that the fact that it is
  30. mounted or not. To make it *really* info compatible you will have to
  31. switch the Pass 1 and Pass 2 code.
  32.  
  33. Watch out for the signature at the end of the message...
  34. --Chuck 
  35. -- 
  36. --Chuck McManis
  37. uucp: {anywhere}!sun!cmcmanis   BIX: cmcmanis  ARPAnet: cmcmanis@sun.com
  38. These opinions are my own and no one elses. But you knew that, didn't you.
  39.  
  40.