mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01: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:
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
@@ -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_ */
|
||||
@@ -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
Reference in New Issue
Block a user