Moved userspace libc to posix container directory.

Issues:
- MM0 needs separate subset of libc and not link with libposix
- FS0 needs separate subset of libc and not link with libposix
- libposix need transforming into a full-blown uclibc for test0
- libc really is a pseudo-libc that needs to be replaced as above.
- Done some hacking to avoid conflicts between pseudo-libc and libposix headers.

Now system working as original, (e.g. execve etc. working)
This commit is contained in:
Bahadir Balban
2009-08-29 15:56:28 +03:00
parent 2bbb963848
commit 7b5a3c2845
139 changed files with 42 additions and 22 deletions

View File

@@ -5,7 +5,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sched.h>
#include <bits/sched.h>
#include <errno.h>
#include <tests.h>

View File

@@ -16,7 +16,7 @@
void print_fsize(struct stat *s)
{
printf("%d", s->st_size);
printf("%lu", s->st_size);
}
void print_flink(struct stat *s)

View File

@@ -9,7 +9,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <posix/errno.h>
extern char _start_test_exec[];
extern char _end_test_exec[];

View File

@@ -26,7 +26,7 @@ void main(void)
{
wait_pager(0);
if (getpid() == 2) {
printf("EXECVE TEST -- PASSED --\n", getpid());
printf("EXECVE TEST -- PASSED --\n");
printf("\nThread (%d): Continues to sync with the pager...\n\n", getpid());
while (1)
wait_pager(0);