Date: 30-JUL-1987 14:06:06 From: David Sizeland Via: SYSKERMIT%vax1.central.lancaster.ac.uk@Cs.Ucl.AC.UK Subject: Update to BOO-maker program MSBMKB.C I have made some mods to msbmkb.c as it doesn't run properly on Unix systems as is. The changes are in the code to open the output file. Under Unix, open won't create the file if it doesn't exist, you have to use creat instead. Also, I am not sure about the 0x1ff in the open for the input file, the compiler doesn't give an error but it is certainly superfluous. The diffs are from the old file to the new. David. 15a16 > * [2] Unix code for opening output file modified by David Sizeland, UMDS 52,53c53,54 < #define MSDOS -1 < #define UNIX 0 --- > #define MSDOS 0 > #define UNIX 1 63c64,65 < #endif /* [1] */ --- > #define PMODE 0644 > #endif /* [1][2] */ 163c165 < #if (MSDOS | UNIX) --- > #if MSDOS /* [2] */ 165a168,172 > #if UNIX > ofd = open(ofile,O_WRONLY); > if (ofd < 0) > ofd = creat(ofile,PMODE); > #else 168c175 < > #endif /* [2] */ ------