152c8e07fSIngo Weinhold/*
2cc586449SIngo Weinhold * Copyright 2002-2009, Haiku Inc. All Rights Reserved.
352c8e07fSIngo Weinhold * Distributed under the terms of the MIT license.
452c8e07fSIngo Weinhold *
552c8e07fSIngo Weinhold * Authors:
652c8e07fSIngo Weinhold *		Ingo Weinhold, bonefish@cs.tu-berlin.de.
752c8e07fSIngo Weinhold *		Axel D��rfler, axeld@pinc-software.de.
852c8e07fSIngo Weinhold */
952c8e07fSIngo Weinhold
1052c8e07fSIngo Weinhold#include <signal.h>
11b6620cccSIngo Weinhold#include <stdlib.h>
1252c8e07fSIngo Weinhold#include <stdio.h>
1352c8e07fSIngo Weinhold#include <string>
1452c8e07fSIngo Weinhold
1552c8e07fSIngo Weinhold#include <KernelExport.h>
1652c8e07fSIngo Weinhold
17b6620cccSIngo Weinhold#include <heap.h>
18b6620cccSIngo Weinhold
1952c8e07fSIngo Weinhold
2052c8e07fSIngo Weinholdthread_id
2152c8e07fSIngo Weinholdspawn_kernel_thread(thread_func func, const char *name, int32 priority,
2252c8e07fSIngo Weinhold	void *data)
2352c8e07fSIngo Weinhold{
2452c8e07fSIngo Weinhold	return spawn_thread(func, name, priority, data);
2552c8e07fSIngo Weinhold}
2652c8e07fSIngo Weinhold
2752c8e07fSIngo Weinhold
2852c8e07fSIngo Weinholdextern "C" int
2952c8e07fSIngo Weinholdsend_signal_etc(pid_t thread, uint signal, uint32 flags)
3052c8e07fSIngo Weinhold{
3152c8e07fSIngo Weinhold	return send_signal(thread, signal);
3252c8e07fSIngo Weinhold}
33b6620cccSIngo Weinhold
34b6620cccSIngo Weinhold
35b6620cccSIngo Weinholdvoid*
36b6620cccSIngo Weinholdmemalign_etc(size_t alignment, size_t size, uint32 flags)
37b6620cccSIngo Weinhold{
38b6620cccSIngo Weinhold	return memalign(alignment, size);
39b6620cccSIngo Weinhold}
40b6620cccSIngo Weinhold
41b6620cccSIngo Weinhold
42b6620cccSIngo Weinholdvoid
43b6620cccSIngo Weinholdfree_etc(void* address, uint32 flags)
44b6620cccSIngo Weinhold{
45b6620cccSIngo Weinhold	free(address);
46b6620cccSIngo Weinhold}
47