git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Framework for exporting system header to user space (#59)
[lunaix-os.git]
/
lunaix-os
/
usr
/
libc
/
src
/
pthread.c
diff --git
a/lunaix-os/usr/libc/src/pthread.c
b/lunaix-os/usr/libc/src/pthread.c
index 26d6abfb18c4f50a8bdc3fd5015094ba0853fb95..5a51b1c7ef4b821b6f48caf14b078cfbf28376aa 100644
(file)
--- a/
lunaix-os/usr/libc/src/pthread.c
+++ b/
lunaix-os/usr/libc/src/pthread.c
@@
-1,4
+1,4
@@
-#include <
lunaix/
syscall.h>
+#include <syscall.h>
#include <pthread.h>
int
#include <pthread.h>
int
@@
-14,7
+14,7
@@
pthread_create(pthread_t* thread,
th_param.arg1 = arg;
extern void th_trampoline();
th_param.arg1 = arg;
extern void th_trampoline();
- ret = do_lunaix_syscall(__
SYSCALL
_th_create, thread,
+ ret = do_lunaix_syscall(__
NR__lxsys
_th_create, thread,
&th_param, th_trampoline);
return ret;
}
&th_param, th_trampoline);
return ret;
}
@@
-22,29
+22,29
@@
pthread_create(pthread_t* thread,
int
pthread_detach(pthread_t thread)
{
int
pthread_detach(pthread_t thread)
{
- return do_lunaix_syscall(__
SYSCALL
_th_detach, thread);
+ return do_lunaix_syscall(__
NR__lxsys
_th_detach, thread);
}
void
pthread_exit(void *value_ptr)
{
}
void
pthread_exit(void *value_ptr)
{
- do_lunaix_syscall(__
SYSCALL
_th_exit, value_ptr);
+ do_lunaix_syscall(__
NR__lxsys
_th_exit, value_ptr);
}
int
pthread_join(pthread_t thread, void **value_ptr)
{
}
int
pthread_join(pthread_t thread, void **value_ptr)
{
- return do_lunaix_syscall(__
SYSCALL
_th_join, thread, value_ptr);
+ return do_lunaix_syscall(__
NR__lxsys
_th_join, thread, value_ptr);
}
int
pthread_kill(pthread_t thread, int sig)
{
}
int
pthread_kill(pthread_t thread, int sig)
{
- return do_lunaix_syscall(__
SYSCALL
_th_kill, thread, sig);
+ return do_lunaix_syscall(__
NR__lxsys
_th_kill, thread, sig);
}
pthread_t
pthread_self(void)
{
}
pthread_t
pthread_self(void)
{
- return do_lunaix_syscall(__
SYSCALL
_th_self);
+ return do_lunaix_syscall(__
NR__lxsys
_th_self);
}
}