Hola Juanjo,
> -bash-3.2$ perl -e 'use POSIX; print sysconf("_SC_GETGR_R_SIZE_MAX") . "\n"'
> 131072
Yes, but that command does not return the value of "_SC_GETGR_R_SIZE_MAX"!
It returns the value of some "random" parameter instead of complaining that
the function was called with an unexpected argument... :-(
Use the C program instead:
----------------------------------------------------------------------
#include <stdio.h>
#include <unistd.h>
main()
{
return !printf("%d\n", sysconf(_SC_GETGR_R_SIZE_MAX));
}
----------------------------------------------------------------------
|