[libvirt] FreeBSD and sysconf(_SC_GETPW_R_SIZE_MAX)

Daniel Veillard veillard at redhat.com
Mon May 16 07:03:28 UTC 2011


On Sun, May 15, 2011 at 07:22:46AM +0200, Matthias Bolte wrote:
> On FreeBSD virsh fails to enter interactive mode because
> vshReadlineInit fails, because virGetUserDirectory fails, because
> virGetUserEnt fails, because sysconf(_SC_GETPW_R_SIZE_MAX) returns -1
> and sets errno to EINVAL.
> 
> Is this something that gnulib should/could deal with, Eric?
> 
> Or should we work around it in libvrt and fallback to PATH_MAX when
> sysconf(_SC_GETPW_R_SIZE_MAX) fails?

  Hum, I'm also seeing a number of use of sysconf for _SC_GETGR_R_SIZE_MAX
which also isn't listed in my linux man page as one of the possible
values, so I'm wondering how portable this actually is ...

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list