Added new routines that map and check the validity of user buffers.

mmap uses this mechanism to get arguments. It needs to be tested.
This commit is contained in:
Bahadir Balban
2008-11-03 11:27:10 +02:00
parent 87d1b91743
commit ca8959eee0
11 changed files with 131 additions and 59 deletions

View File

@@ -8,6 +8,7 @@
#include <tests.h>
int global = 0;
extern pid_t pid;
int forktest(void)
{
@@ -18,6 +19,7 @@ int forktest(void)
fork();
myid = getpid();
pid = myid;
if (global != 0) {
printf("-- FAILED --\n");
goto out;