In that case someone with the knowledge should take a look at the mmap
problem caused by the program posted recently by John Carter or by the
program listed below...
#include <stdio.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
void main ()
{
int fd;
void *p;
char buf[1024];
fd = open("test", O_RDONLY);
p = mmap(NULL, 200, PROT_WRITE, MAP_PRIVATE, fd, 0);
strncpy (buf, p, 100);
printf ("%s\n", buf);
munmap (p, 200);
exit (0);
}
This has been discussed several times allready but no one has yet come
up with a patch that fixes the problem...
-- Johnny Stenback