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_defs.h>
12
13#include <stdio.h>
14#include <string.h>
15
16
17int
18main(int argc, char **argv)
19{
20	uint32 version = 0;
21	status_t status = _kern_generic_syscall(LAUNCH_SPEEDUP_SYSCALLS, B_SYSCALL_INFO,
22		&version, sizeof(version));
23	if (status != B_OK) {
24		// the launch speedup module is not available
25		fprintf(stderr, "\"launch_speedup\" module not available.\n");
26		return 1;
27	}
28
29	_kern_generic_syscall(LAUNCH_SPEEDUP_SYSCALLS, LAUNCH_SPEEDUP_STOP_SESSION,
30		(void *)"system boot", strlen("system boot"));
31	return 0;
32}
33
34