-
- rbuf =mmap(0,len,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,0,0);
- if (rbuf == MAP_FAILED) {
- printf("No memory %s\n", strerror(errno));
- return 1;
- }
-
- rc = read(fd, rbuf, len);
+ /* reset all bytes to something nor 0x0 neither 0xab */
+ memset(buf, 0x5e, len);
+ rc = read(fd, buf, len);