ZZFRICK@DHVRRZN1.BITNET (02/13/90)
I'm currently trying to port the f2c fortran to c compiler to Lattice C 5.04 on the amiga. I was able to compile and run the compiler itself (code size~650k with full debugging info). However, I can't compile the libraries because I haven't got includes and library routines for the stat and fstat OS calls. I'm under the impression that these routines return information about a supplied file name or file handle. f2c uses the st_mode and st_nlink fields to determine wether a file can be seek'd. What is the AmigaDos equivalent of this test? The more program on the workbench disk seems to do such a check - it has less options available when operating, for instance, on a pipe. Another routine from f2c named isdev(..) returns 0 when stat.st_mode&S_IFMT==S_IFREG or stat.st_mode$ST_IFMT==S_IFDIR, 1 otherwise. What does this mean? Related questions: I found out that Lattice LMK is mostly incompatible with UNIX make. Anybody found a way how to specify an action with an embedded '#'-character, e.g. a sed command? Alternativly, are there any decent make commands available for the Amiga? I tried DMake and another make from an older Fish disk, but both have several deficiencies. Is there a GNU make? Sorry, this request is rather long. Any help would be greatly appreciated. Please EMAIL responses to sender. Thank You, Harald Fricke <ZZFRICK@DHVRRZN1.BITNET>