shithub: npe

ref: 5cade7073c5e1ed971b525e49c3c0dd43d6a9feb
dir: /libnpe/_main.c/

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

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

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

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