printf("Version: $KTH: testlwp.c,v 1.2 1998/07/15 12:50:58 map Exp $\n");
printf("Version: $KTH: testlwp.c,v 1.3 1998/10/25 19:37:33 joda Exp $\n");
int main(int argc, char **argv){    PROCESS pid;    char *progname = strdup(argv[0]);    if (progname == NULL)	progname = "foo";    if (argc <= 1 ) 	usage(progname);        printf("starting LWP support\n");    if (LWP_InitializeProcessSupport(LWP_NORMAL_PRIORITY, &pid))	errx(1, "LWP_InitializeProcessSupport()\n");    printf("starting IOMGR support\n");    if (IOMGR_Initialize())	errx(1, "IOMGR_Initialize()\n");    while (argv[1]) {	if (strcasecmp("pc", argv[1]) == 0) {	    startPCtest();	} else if (strcasecmp("sleep", argv[1]) == 0) {	    putMrSleeptoBed();	} else if (strcasecmp("selectproducer", argv[1]) == 0) {	    SelectProducer(NULL); 	    exit(1); /* Special case */	} else if (strcasecmp("selectconsumer", argv[1]) == 0) {	    startSelectPC (progname);	} else if (strcasecmp("cancel", argv[1]) == 0) {	    yaEndlessLoop();	 	} else if (strcasecmp("version", argv[1]) == 0) {	    printf("Version: $KTH: testlwp.c,v 1.2 1998/07/15 12:50:58 map Exp $\n");	} else {	    printf("unknown command %s\n", argv[1]);	}	argc--;	argv++;    }    LWP_WaitProcess((char *) main);    return 0;}