shithub: riscv

ref: 3c8246a31ce776976ee95310efa2c6e64a471993
dir: /sys/src/ape/lib/ap/plan9/pause.c/

View raw version
#include "lib.h"
#include <unistd.h>
#include "sys9.h"

int
pause(void)
{
	for(;;)
		if(_SLEEP(1000*1000) < 0)
			return -1;
}