24 lines
497 B
C
24 lines
497 B
C
#pragma once
|
|
|
|
#include <_cheader.h>
|
|
#include <stdint.h>
|
|
#include <syscall.h>
|
|
|
|
_Begin_C_Header
|
|
|
|
typedef struct {
|
|
uint32_t id;
|
|
char * stack;
|
|
void * ret_val;
|
|
} pthread_t;
|
|
typedef unsigned int pthread_attr_t;
|
|
|
|
extern int pthread_create(pthread_t * thread, pthread_attr_t * attr, void *(*start_routine)(void *), void * arg);
|
|
extern void pthread_exit(void * value);
|
|
extern int pthread_kill(pthread_t thread, int sig);
|
|
|
|
extern int clone(uintptr_t,uintptr_t,void*);
|
|
extern int gettid();
|
|
|
|
_End_C_Header
|