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

@@ -122,7 +122,7 @@ void handle_fs_requests(void)
default:
printf("%s: Unrecognised ipc tag (%d) "
"received from tid: %d. Ignoring.\n", __TASKNAME__,
mr[MR_TAG], sender);
mr[MR_TAG], senderid);
}
/* Reply */

View File

@@ -192,7 +192,7 @@ struct superblock *memfs_get_superblock(void *block)
return 0;
}
if (sb->magic != MEMFS_MAGIC) {
printf("%s: Magic number not match: %s\n", __FUNCTION__, sb->magic);
printf("%s: Magic number not match: %u\n", __FUNCTION__, sb->magic);
return 0;
}

View File

@@ -88,11 +88,17 @@
#ifndef _ERRNO_H_
#define _ERRNO_H_
#ifndef EDOM
#define EDOM 1
#endif
#ifndef EILSEQ
#define EILSEQ 2
#endif
#ifndef ERANGE
#define ERANGE 3
#endif
#include <l4/thread.h>
//#include <l4/thread.h>
#ifndef THREAD_SAFE
extern int errno;

View File

@@ -111,7 +111,9 @@ typedef __SIZE_TYPE__ size_t;
things such as varargs and printf */
typedef __WCHAR_TYPE__ wchar_t;
#endif
#ifndef NULL
#define NULL ((void *)0)
#endif
#define offsetof(type, member) ((size_t) &((type *)0)->member)
#endif /* _STDDEF_H_ */

View File

@@ -136,9 +136,15 @@ typedef long fpos_t; /* same */
#define FILENAME_MAX 37
#define L_tmpnam 37
#ifndef SEEK_CUR
#define SEEK_CUR 0
#endif
#ifndef SEEK_END
#define SEEK_END 1
#endif
#ifndef SEEK_SET
#define SEEK_SET 2
#endif
#define TMP_MAX 37

Some files were not shown because too many files have changed in this diff Show More