1 /* 2 * Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include "launch_speedup.h" 8 9 #include <OS.h> 10 #include <syscalls.h> 11 #include <generic_syscall.h> 12 13 #include <stdio.h> 14 15 16 int 17 main(int argc, char **argv) 18 { 19 uint32 version = 0; 20 status_t status = _kern_generic_syscall(LAUNCH_SPEEDUP_SYSCALLS, B_SYSCALL_INFO, 21 &version, sizeof(version)); 22 if (status != B_OK) { 23 // the launch speedup module is not available 24 fprintf(stderr, "\"launch_speedup\" module not available.\n"); 25 return 1; 26 } 27 28 _kern_generic_syscall(LAUNCH_SPEEDUP_SYSCALLS, LAUNCH_SPEEDUP_STOP_SESSION, 29 (void *)"system boot", strlen("system boot")); 30 return 0; 31 } 32 33