shithub: npe

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