This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: the directory named TEMP or TMP
- To: cygwin at sources dot redhat dot com
- Subject: Re: the directory named TEMP or TMP
- From: Martin Pirker <crf at sbox dot tu-graz dot ac dot at>
- Date: Mon, 7 Aug 2000 02:13:42 +0200 (MEST)
Hi!
--- Corinna Vinschen <corinna@vinschen.de> wrote:
> Cygwin itself doesn't need /tmp (nor does it ever
> need it) but many
> UNIX tools need it. Bash for example still warns the
> user if it can't
> find /tmp.
>
> However, if you use the current setup tool, it
> creates /tmp by itself.
I have a somewhat related problem:
Given: Unix program ported/crosscompiled with cygwin to run under Win.
-> Executable + cygwin1.dll on target machine, _no_ full cygwin
environment.
However unix code uses "tmpnam" for temp filename.
Creation of returned file "/tmp/whatever" fails...
I think this is no miracle, since there's no full cygwin enviroment,
so where should /tmp files go to ?
Options:
- Edit unix sources on all places with tmpnam
Not a good idea...
- Patch Cygwin somewhere so propor filenames are returned.
Don't like that either.
- Maybe this is setupable with a enviroment var ?
I have to assume the end users are too dumb to do this every time :/
- There's some magic to fix this better...
Now that would be nice :)
Hints greatly appreciated.....
Regards,
Martin
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com