Re: g_get_home_dir, g_get_tmp_dir
- From: Tor Lillqvist <tml hemuli tte vtt fi>
- To: gtk-devel-list redhat com
- Subject: Re: g_get_home_dir, g_get_tmp_dir
- Date: Wed, 28 Oct 1998 12:16:37 +0200 (EET)
> Should HOME be used on a Unix system in preference to querying
> someone's home directory via the UID/EUID of the process, and using
> getpwuid() ?
I think so, yes. What would be the purpose of HOME otherwise, if th
passwd entry had precedence? Isn't this how HOME is usually used?
> What about using P_tmpdir from <stdio.h> if it's defined, rather than
> /tmp? Using /tmp on Solaris, for example is a bad idea, since that's
> your swap space.
You're correct.
> At the very least, "/var/tmp" should be used.
Not all Unixen have a /var/tmp... P_tmpdir is good, and as a last
resort "/tmp".
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]