#include <stdio.h>
#include <sys/types.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#define INVAL_FLAG -1
int main()
{
int retval;
errno = 0;
retval = sysconf (INVAL_FLAG);
if (retval != -1)
{
printf ("sysconf succeeded for invalid flag (%i), retval=%d errno=%d\n",
INVAL_FLAG, retval, errno);
abort ();
}