shithub: riscv

ref: d6923e0f149eec4f9ba8c83fbb286b92ae7da25a
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;
}