Re: _SC_GETPW_R_SIZE_MAX undefined in sysconf.c, what is correct value?

2011-10-26 Thread Christopher J. Ruwe
On Tue, 25 Oct 2011 16:27:38 -0500 Dan Nelson dnel...@allantgroup.com wrote: In the last episode (Oct 25), Christopher J. Ruwe said: On Mon, 24 Oct 2011 15:42:10 -0500 Dan Nelson dnel...@allantgroup.com wrote: In the last episode (Oct 24), Christopher J. Ruwe said: On Sun, 23 Oct 2011

Re: _SC_GETPW_R_SIZE_MAX undefined in sysconf.c, what is correct value?

2011-10-25 Thread Christopher J. Ruwe
On Mon, 24 Oct 2011 15:42:10 -0500 Dan Nelson dnel...@allantgroup.com wrote: In the last episode (Oct 24), Christopher J. Ruwe said: On Sun, 23 Oct 2011 19:10:34 -0500 Dan Nelson dnel...@allantgroup.com wrote: In the last episode (Oct 23), Christopher J. Ruwe said: I need to get the

Re: _SC_GETPW_R_SIZE_MAX undefined in sysconf.c, what is correct value?

2011-10-25 Thread Dan Nelson
In the last episode (Oct 25), Christopher J. Ruwe said: On Mon, 24 Oct 2011 15:42:10 -0500 Dan Nelson dnel...@allantgroup.com wrote: In the last episode (Oct 24), Christopher J. Ruwe said: On Sun, 23 Oct 2011 19:10:34 -0500 Dan Nelson dnel...@allantgroup.com wrote: In the last

Re: _SC_GETPW_R_SIZE_MAX undefined in sysconf.c, what is correct value?

2011-10-24 Thread Christopher J. Ruwe
On Sun, 23 Oct 2011 19:10:34 -0500 Dan Nelson dnel...@allantgroup.com wrote: In the last episode (Oct 23), Christopher J. Ruwe said: I need to get the maximum size of an pwd-entry to determine the correct buffersize for calling getpwnam_r(uname,pwd, buf, bufsize, pwdp). I would like to

Re: _SC_GETPW_R_SIZE_MAX undefined in sysconf.c, what is correct value?

2011-10-24 Thread Dan Nelson
In the last episode (Oct 24), Christopher J. Ruwe said: On Sun, 23 Oct 2011 19:10:34 -0500 Dan Nelson dnel...@allantgroup.com wrote: In the last episode (Oct 23), Christopher J. Ruwe said: I need to get the maximum size of an pwd-entry to determine the correct buffersize for calling

_SC_GETPW_R_SIZE_MAX undefined in sysconf.c, what is correct value?

2011-10-23 Thread Christopher J. Ruwe
I need to get the maximum size of an pwd-entry to determine the correct buffersize for calling getpwnam_r(uname,pwd, buf, bufsize, pwdp). I would like to use sysconf(_SC_GETPW_R_SIZE_MAX) to determine bufsize, which unfornutately fails (returns -1). Currently, I used 16384, which seems to be too

Re: _SC_GETPW_R_SIZE_MAX undefined in sysconf.c, what is correct value?

2011-10-23 Thread Dan Nelson
In the last episode (Oct 23), Christopher J. Ruwe said: I need to get the maximum size of an pwd-entry to determine the correct buffersize for calling getpwnam_r(uname,pwd, buf, bufsize, pwdp). I would like to use sysconf(_SC_GETPW_R_SIZE_MAX) to determine bufsize, which unfornutately fails