🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13656

need info on stat(...), fstat(...), make utilities

#13656
From: ZZFRICK
Date: Mon, 12 Feb 1990 19:14
25 lines
1781 bytes
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>
Technical Details
Message-ID: <9002121914.AA28818@ucbvax.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!DHVRRZN1.BITNET!ZZFRICK

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!DHVRRZN1.BITNET!ZZFRICK
From: ZZFRICK@DHVRRZN1.BITNET
Newsgroups: comp.sys.amiga.tech
Subject: need info on stat(...), fstat(...), make utilities
Message-ID: <9002121914.AA28818@ucbvax.Berkeley.EDU>
Date: 12 Feb 90 19:14:50 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 25
X-Unparsable-Date: Mon, 12 Feb 90 19:02:09 MEZ