예제 #1
0
파일: main.c 프로젝트: Protovision/io-lua
void	quit(int sig)
{
	if (sig != -1) {
		script_call("shutdown", NULL);
	}
	base_shutdown();
	video_shutdown();
	audio_shutdown();
	common_shutdown();
	exit(0);
}
예제 #2
0
void
machine_power_off(void)
{
	common_shutdown(LINUX_REBOOT_CMD_POWER_OFF, NULL);
}
예제 #3
0
void
machine_halt(void)
{
	common_shutdown(LINUX_REBOOT_CMD_HALT, NULL);
}
예제 #4
0
void
machine_restart(char *restart_cmd)
{
	common_shutdown(LINUX_REBOOT_CMD_RESTART, restart_cmd);
}
예제 #5
0
status_t
_user_shutdown_socket(int socket, int how)
{
	SyscallRestartWrapper<status_t> error;
	return error = common_shutdown(socket, how, false);
}
예제 #6
0
int
shutdown(int socket, int how)
{
	SyscallFlagUnsetter _;
	RETURN_AND_SET_ERRNO(common_shutdown(socket, how, true));
}