if (c->call_name == _SC_UINT_MAX || c->call_name == _SC_ULONG_MAX) printf ("%lu\n", value); else puts (_("undefined"));
{ if (c->call_name == _SC_UINT_MAX || c->call_name == _SC_ULONG_MAX) printf ("%lu\n", value); else puts (_("undefined")); }
main (int argc, char *argv[]){  register const struct conf *c;  /* Set locale.  Do not set LC_ALL because the other categories must     not be affected (according to POSIX.2).  */  setlocale (LC_CTYPE, "");  setlocale (LC_MESSAGES, "");  /* Initialize the message catalog.  */  textdomain (PACKAGE);  if (argc > 1 && strcmp (argv[1], "--version") == 0)    {      fprintf (stderr, "getconf (GNU %s) %s\n", PACKAGE, VERSION);      fprintf (stderr, gettext ("\Copyright (C) %s Free Software Foundation, Inc.\n\This is free software; see the source for copying conditions.  There is NO\n\warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\"), "1991, 1992, 1995, 1996, 1997, 1998");      fprintf (stderr, gettext ("Written by %s.\n"), "Roland McGrath");      return 0;    }  if (argc < 2 || argc > 3)    usage ();  for (c = vars; c->name != NULL; ++c)    if (!strcmp (c->name, argv[1]))      {	long int value;	size_t clen;	char *cvalue;	switch (c->call)	  {	  case PATHCONF:	    if (argc < 3)	      usage ();	    errno = 0;	    value = pathconf (argv[2], c->call_name);	    if (value == -1)	      {		if (errno)		  error (3, errno, "pathconf: %s", argv[2]);		else		  puts (_("undefined"));	      }	    else	      printf ("%ld\n", value);	    exit (0);	  case SYSCONF:	    if (argc > 2)	      usage ();	    value = sysconf (c->call_name);	    if (value == -1l)	      if (c->call_name == _SC_UINT_MAX		  || c->call_name == _SC_ULONG_MAX)		printf ("%lu\n", value);	      else		puts (_("undefined"));	    else	      printf ("%ld\n", value);	    exit (0);	  case CONFSTR:	    if (argc > 2)	      usage ();	    clen = confstr (c->call_name, (char *) NULL, 0);	    cvalue = (char *) malloc (clen);	    if (cvalue == NULL)	      error (3, 0, _("memory exhausted"));	    if (confstr (c->call_name, cvalue, clen) != clen)	      error (3, errno, "confstr");	    printf ("%.*s\n", (int) clen, cvalue);	    exit (0);	  }      }  error (2, 0, _("Unrecognized variable `%s'"), argv[1]);  /* NOTREACHED */  return 2;}