summaryrefslogtreecommitdiff
path: root/testglib.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1999-01-23 02:16:11 +0000
committerTim Janik <timj@src.gnome.org>1999-01-23 02:16:11 +0000
commit63cc3f3cfb1ef2e4447ef962fd028ee58a8ec1c8 (patch)
tree2f57b3880059fff015ff9024ed164d88ad12b13c /testglib.c
parent73fabcee297500a3d00cf2f8c3669c9fd41d0676 (diff)
downloadglib-63cc3f3cfb1ef2e4447ef962fd028ee58a8ec1c8.tar.gz
cleaned up the errno mess for GETPWUID. we especially don't want to
Sat Jan 23 02:14:28 1999 Tim Janik <timj@gtk.org> * gutils.c (g_get_any_init): cleaned up the errno mess for GETPWUID. we especially don't want to g_error() out here! the warning for G_THREADS_ENABLED and !HAVE_GETPWUID_R isn't gcc related. if !HAVE_PWD_H and !NATIVE_WIN32, g_free the home dir before resetting it to NULL, why are we doing this anyways? reordered code a bit so we always provide defaults (except for g_home_dir).
Diffstat (limited to 'testglib.c')
-rw-r--r--testglib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/testglib.c b/testglib.c
index 9601f412a..3d63ebbcb 100644
--- a/testglib.c
+++ b/testglib.c
@@ -341,6 +341,10 @@ main (int argc,
string = g_get_current_dir ();
g_print ("cwd: %s\n", string);
g_free (string);
+ g_print ("user: %s\n", g_get_user_name ());
+ g_print ("real: %s\n", g_get_real_name ());
+ g_print ("home: %s\n", g_get_home_dir ());
+ g_print ("tmp-dir: %s\n", g_get_tmp_dir ());
/* type sizes */
g_print ("checking size of gint8: %d", (int)sizeof (gint8));