toaruos/base/usr/include/pthread.h

20 lines
444 B
C
Raw Normal View History

2018-02-25 11:14:43 +03:00
#pragma once
#include <stdint.h>
#include <syscall.h>
typedef struct {
uint32_t id;
char * stack;
void * ret_val;
} pthread_t;
typedef unsigned int pthread_attr_t;
2018-03-01 17:15:37 +03:00
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);
2018-02-25 11:14:43 +03:00
2018-03-01 17:15:37 +03:00
extern int clone(uintptr_t,uintptr_t,void*);
extern int gettid();
2018-02-25 11:14:43 +03:00