Date: Sun, 12 Jul 1998 19:06:45 +0300 (IDT) From: Eli Zaretskii To: Gerhard Gruber cc: djgpp AT delorie DOT com Subject: Re: Compile gives Abort! error In-Reply-To: <35ab1c76.18464183@news.Austria.EU.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Thu, 9 Jul 1998, Gerhard Gruber wrote: > >I think I should add a test for TMPDIR to DJVERIFY, except that I still > >haven't figured out how to test a drive/directory for writeability... > >any ideas? > > Shouldn't fstat do the job? You probably mean stat, not fstat. Anyway, stat cannot be the solution here because DOS itself doesn't set the read-only attribute for directories on non-writable filesystems, at least not in all cases. > I don't know about dos but under unix > this returns also the information wether you habe write access or > not. If the function is pretty much the same you can use it. Unix is *very* different from DOS in this context.