shithub: npe

ref: 506bc7e3c3e89cd84ec4d0e74927bd12ad5486c4
dir: /libnpe/_main.c/

View raw version
#include <u.h>
#include <libc.h>
#include <thread.h>

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

void
threadmain(int argc, char *argv[])
{
	setfcr(getfcr() & ~(FPINVAL|FPOVFL));

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