shithub: npe

ref: 16bd4782f88ee554cba6c749a632c1c2296369d3
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");
}