Re: Measuring memory footprint in C/C++ code on FreeBSD

2011-10-23 Thread Razmig K
Hello Thanks to everyone for tips and insight you gave me on this discussion. ~Razmig ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

_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