shithub: npe

ref: 31f730351e04573e401681991e266cbe84c332b8
dir: /libnpe/_main.c/

View raw version
#include "plan9.h"
#include <thread.h>

void
threadmain(int argc, char **argv)
{
	int npe_main_renamed(int argc, char *argv[]);

	setfcr(getfcr() & ~(FPINVAL|FPOVFL));

	threadexitsall(npe_main_renamed(argc, argv) == 0 ? nil : "error");
}