sysconf
The normal return value from sysconf is the value you requested. A value of -1 is returned both if the implementation does not impose a limit, and in case of an error.
The following errno error conditions are defined for this function:
EINVAL