07955c83c6
* Finally bring syscall.h up to speed and include all syscalls in the syscall module of the C library. * Remove the third-party obfuscated C demos (we have nyancat, good enough) * Fix userspace apps to build without complaining about undeclared strtok_r by disable __STRICT_ANSI__ * Fix .eh_frame by including the proper stuff with libgcc.
21 lines
394 B
C
21 lines
394 B
C
#ifndef PTHREAD_H
|
|
#define PTHREAD_H
|
|
|
|
#include <stdint.h>
|
|
#include <syscall.h>
|
|
|
|
typedef struct {
|
|
uint32_t id;
|
|
char * stack;
|
|
void * ret_val;
|
|
} pthread_t;
|
|
typedef unsigned int pthread_attr_t;
|
|
|
|
int pthread_create(pthread_t * thread, pthread_attr_t * attr, void *(*start_routine)(void *), void * arg);
|
|
void pthread_exit(void * value);
|
|
|
|
int clone(uintptr_t,uintptr_t,void*);
|
|
int gettid();
|
|
|
|
#endif
|