1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
the new initinal bufsize for getpwuid_r on systems, that support
this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.
+1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
+ the new initinal bufsize for getpwuid_r on systems, that support
+ this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.
+
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
+1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
+ the new initinal bufsize for getpwuid_r on systems, that support
+ this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.
+
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
+1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
+ the new initinal bufsize for getpwuid_r on systems, that support
+ this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.
+
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
+1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
+ the new initinal bufsize for getpwuid_r on systems, that support
+ this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.
+
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
+1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
+ the new initinal bufsize for getpwuid_r on systems, that support
+ this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.
+
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
+1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
+ the new initinal bufsize for getpwuid_r on systems, that support
+ this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.
+
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
+1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
+ the new initinal bufsize for getpwuid_r on systems, that support
+ this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.
+
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
+1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
+ the new initinal bufsize for getpwuid_r on systems, that support
+ this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.
+
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
# ifdef HAVE_GETPWUID_R
struct passwd pwd;
# ifdef HAVE_GETPWUID_R
struct passwd pwd;
+# ifdef _SC_GETPW_R_SIZE_MAX
+ /* This reurns the maximum length */
+ guint bufsize = sysconf (_SC_GETPW_R_SIZE_MAX);
+# else /* _SC_GETPW_R_SIZE_MAX */
+# endif /* _SC_GETPW_R_SIZE_MAX */
# ifdef HAVE_GETPWUID_R
struct passwd pwd;
# ifdef HAVE_GETPWUID_R
struct passwd pwd;
+# ifdef _SC_GETPW_R_SIZE_MAX
+ /* This reurns the maximum length */
+ guint bufsize = sysconf (_SC_GETPW_R_SIZE_MAX);
+# else /* _SC_GETPW_R_SIZE_MAX */
+# endif /* _SC_GETPW_R_SIZE_MAX */