Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1065 → Rev 1061

/uspace/trunk/init/init.c
32,15 → 32,7
#include <unistd.h>
#include <stdlib.h>
#include <ns.h>
#include <thread.h>
 
extern void utest(void *arg);
void utest(void *arg)
{
// printf("Uspace thread created.\n");
for (;;)
;
}
 
static void test_printf(void)
{
184,8 → 176,6
 
int main(int argc, char *argv[])
{
int tid;
char *stack;
version_print();
 
/* test_printf(); */
193,15 → 183,5
// test_async_ipc();
// test_advanced_ipc();
test_connection_ipc();
stack = (char *) malloc(getpagesize());
if (!stack) {
printf("Malloc failed.\n");
} else {
if ((tid = thread_create(utest, NULL, stack, "utest") != -1)) {
printf("Created thread tid=%d\n", tid);
}
}
return 0;
}
/uspace/trunk/libc/include/thread.h
File deleted
/uspace/trunk/libc/generic/thread.c
File deleted
/uspace/trunk/libc/generic/libc.c
28,10 → 28,9
 
#include <libc.h>
#include <unistd.h>
#include <thread.h>
 
void _exit(int status) {
thread_exit(status);
__SYSCALL0(SYS_CTL);
}
 
void __main(void) {
/uspace/trunk/libc/Makefile
43,7 → 43,6
generic/libc.c \
generic/mmap.c \
generic/string.c \
generic/thread.c \
generic/io/io.c \
generic/io/print.c \
malloc/malloc.c