koreth@ssyx.ucsc.edu (Steven Grimm) (04/25/88)
Submitted-by: braner@tcgould.tn.cornell.edu (Moshe Braner) Posting-number: Volume 1, Issue 17 Archive-name: mmdummy /* * MMDUMMY * * This file defines as stubs the functions Megamax (1.1) insists on * linking to all programs. If your program does not use UNIX-like * I/O, but rather calls GEMDOS, BIOS, XBIOS routines, then linking * to this file (compiled) will cut the size of the executable file. * For example, the program "main(){Cconws("Hello, world!\r\n");}" * compiles into 410 bytes instead of 1810. First type "mmcc mmdummy.c". * Save mmdummy.o. Later type: "mmlink myprog.o mmdummy.o". * * - by Moshe Braner, 871212 */ #include <osbind.h> open(){} lseek(){} fgetc(){} ungetc(){} getw(){} fputc(){} putw(){} write(){} fflush(){} fclose(){} close(){} _exit(n) int n; { Pterm(n); } exit(n) int n; { _exit(n); }