while ((ch = getopt(argc, argv, "d:h:lmt")) != EOF)
while ((ch = getopt(argc, argv, "C:cd:h:lM:mNt")) != EOF)
main(argc, argv)	int argc;	char *argv[];{	extern char *optarg;	extern int optind;	DB *dbp;	DB_ENV *dbenv;	test_t ttype;	int ch;	char *db, *home;	ttype = T_NOTSET;	db = home = NULL;	while ((ch = getopt(argc, argv, "d:h:lmt")) != EOF)		switch (ch) {		case 'd':			db = optarg;			ttype = T_DB;			break;		case 'h':			home = optarg;			break;		case 'l':			ttype = T_LOG;			break;		case 'm':			ttype = T_MPOOL;			break;		case 't':			ttype = T_TXN;			break;		case '?':		default:			usage();		}	argc -= optind;	argv += optind;	if (argc != 0 || ttype == T_NOTSET)		usage();	dbenv = db_init(home, ttype);	(void)signal(SIGINT, onint);	switch (ttype) {	case T_DB:		if ((errno = db_open(db, DB_UNKNOWN,		    DB_RDONLY, 0, dbenv, NULL, &dbp)) != 0)			return (1);		switch (dbp->type) {		case DB_BTREE:		case DB_RECNO:			btree_stats(dbp);			break;		case DB_HASH:			hash_stats(dbp);			break;		case DB_UNKNOWN:			abort();		/* Impossible. */			/* NOTREACHED */		}		(void)dbp->close(dbp, 0);		break;	case T_LOG:		log_stats(dbenv);		break;	case T_MPOOL:		mpool_stats(dbenv);		break;	case T_TXN:		txn_stats(dbenv);		break;	case T_NOTSET:		abort();			/* Impossible. */		/* NOTREACHED */	}	(void)db_appexit(dbenv);	if (interrupted) {		(void)signal(SIGINT, SIG_DFL);		(void)raise(SIGINT);		/* NOTREACHED */	}	return (0);}