1 /* 2 * Copyright 2002-2009, Haiku Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT license. 4 * 5 * Authors: 6 * Ingo Weinhold, bonefish@cs.tu-berlin.de. 7 * Axel Dörfler, axeld@pinc-software.de. 8 */ 9 10 #include <signal.h> 11 #include <stdlib.h> 12 #include <stdio.h> 13 #include <string> 14 15 #include <KernelExport.h> 16 17 #include <heap.h> 18 19 20 thread_id 21 spawn_kernel_thread(thread_func func, const char *name, int32 priority, 22 void *data) 23 { 24 return spawn_thread(func, name, priority, data); 25 } 26 27 28 extern "C" int 29 send_signal_etc(pid_t thread, uint signal, uint32 flags) 30 { 31 return send_signal(thread, signal); 32 } 33 34 35 void* 36 memalign_etc(size_t alignment, size_t size, uint32 flags) 37 { 38 return memalign(alignment, size); 39 } 40 41 42 void 43 free_etc(void* address, uint32 flags) 44 { 45 free(address); 46 } 47