void quit(int sig) { if (sig != -1) { script_call("shutdown", NULL); } base_shutdown(); video_shutdown(); audio_shutdown(); common_shutdown(); exit(0); }
void machine_power_off(void) { common_shutdown(LINUX_REBOOT_CMD_POWER_OFF, NULL); }
void machine_halt(void) { common_shutdown(LINUX_REBOOT_CMD_HALT, NULL); }
void machine_restart(char *restart_cmd) { common_shutdown(LINUX_REBOOT_CMD_RESTART, restart_cmd); }
status_t _user_shutdown_socket(int socket, int how) { SyscallRestartWrapper<status_t> error; return error = common_shutdown(socket, how, false); }
int shutdown(int socket, int how) { SyscallFlagUnsetter _; RETURN_AND_SET_ERRNO(common_shutdown(socket, how, true)); }