/*
 * nice() `emulation' by Dave Gymer
 * I've never been too sure what this should return; my SysV quick
 * ref seems to say "-20 to +19,  or -1 on error". Hmm.
 */

#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <mintbind.h>

extern long __mint;

int
nice(p)
	int p;
{
	if (__mint)
		return Pnice(p);
	else {
		errno = EINVAL;
		return -1;
	}
}
