Path: utzoo!utgpu!water!watmath!clyde!burl!codas!killer!fritz From: fritz@killer.UUCP (Fritz Whittington) Newsgroups: comp.sources.d Subject: Re: Advsys & NetHack under Turbo C Message-ID: <2567@killer.UUCP> Date: 24 Dec 87 17:14:52 GMT References: <962@sask.UUCP> <1030004@hpcltjb.HP.COM> Reply-To: fritz@killer.UUCP (Fritz Whittington) Organization: The Unix(R) Connection BBS, Dallas, Tx Lines: 26 Newsgroups: comp.sources.d Subject: Re: Advsys & NetHack under Turbo C Summary: Expires: References: <962@sask.UUCP> <1030004@hpcltjb.HP.COM> Sender: Reply-To: fritz@killer.UUCP (Fritz Whittington) Followup-To: Distribution: Organization: The Unix(R) Connection BBS, Dallas, Tx Keywords: In article <1030004@hpcltjb.HP.COM> brengle@hpcltjb.HP.COM (Tim Brengle) writes: >|Advsys has trouble dealing with files, and I suspect that it has something >|to do with the #defines for RB and WB in the file adltypes.h. > >Are you talking about AdvSys or ADL? > Sounds like ADL to me. I had a similar difficulty getting it to work on MSDOS using MSC5.0 to compile. The problem is in the optional third parm to open(), which specifies the permission bits if open has to create the file. Under MSDOS, the default permission for a new file is "read-only", that is, "write-protected", and the compiler can't use its temp files. The fix is to supply the third parm on all the open() calls. -- Fritz Whittington {ihnp4, gatech!codas}!killer!fritz