mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
use sysconf (_SC_GETPW_R_SIZE_MAX) as the new initinal bufsize for
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>.
This commit is contained in:
parent
68b24cb4a8
commit
737d9c6714
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* glib.h, gstring.c: Add new g_string functions for reading
|
* glib.h, gstring.c: Add new g_string functions for reading
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* glib.h, gstring.c: Add new g_string functions for reading
|
* glib.h, gstring.c: Add new g_string functions for reading
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* glib.h, gstring.c: Add new g_string functions for reading
|
* glib.h, gstring.c: Add new g_string functions for reading
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* glib.h, gstring.c: Add new g_string functions for reading
|
* glib.h, gstring.c: Add new g_string functions for reading
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* glib.h, gstring.c: Add new g_string functions for reading
|
* glib.h, gstring.c: Add new g_string functions for reading
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* glib.h, gstring.c: Add new g_string functions for reading
|
* glib.h, gstring.c: Add new g_string functions for reading
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* glib.h, gstring.c: Add new g_string functions for reading
|
* glib.h, gstring.c: Add new g_string functions for reading
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* glib.h, gstring.c: Add new g_string functions for reading
|
* glib.h, gstring.c: Add new g_string functions for reading
|
||||||
|
@ -452,7 +452,12 @@ g_get_any_init (void)
|
|||||||
|
|
||||||
# ifdef HAVE_GETPWUID_R
|
# ifdef HAVE_GETPWUID_R
|
||||||
struct passwd pwd;
|
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 */
|
||||||
guint bufsize = 64;
|
guint bufsize = 64;
|
||||||
|
# endif /* _SC_GETPW_R_SIZE_MAX */
|
||||||
gint error;
|
gint error;
|
||||||
|
|
||||||
do
|
do
|
||||||
|
5
gutils.c
5
gutils.c
@ -452,7 +452,12 @@ g_get_any_init (void)
|
|||||||
|
|
||||||
# ifdef HAVE_GETPWUID_R
|
# ifdef HAVE_GETPWUID_R
|
||||||
struct passwd pwd;
|
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 */
|
||||||
guint bufsize = 64;
|
guint bufsize = 64;
|
||||||
|
# endif /* _SC_GETPW_R_SIZE_MAX */
|
||||||
gint error;
|
gint error;
|
||||||
|
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user