mirror of
https://github.com/drasko/codezero.git
synced 2026-05-29 21:36:00 +02:00
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:
@@ -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>
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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[];
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user