shithub: riscv

ref: d116b2d47ca4d0e5895c360f4cbcb51d6a19e0da
dir: /sys/src/ape/lib/bsd/shutdown.c/

View raw version
#include <sys/types.h>
#include <unistd.h>

int
shutdown(int fd, int how)
{
	if(how == 2)
		close(fd);

	return 0;
}