Hi, I have a question about mmap's behavior when one tries to map a file asking for a length greater than the actual file size. When I run the attached code on a 100 bytes file, I have the following output: (... file content followed by zeros...) n=4096 write: Bad address So, it seems that the actual memory area provided by mmap is one page large and not the requested length of filesize+10000. I guess that 'write' writes less than requested because it was interrupted by the SIGBUS signal. And my question is: shouldn't mmap either complain about the requested length or provide an accessible area of the requested length, instead of silently failing ? Best regards, Sébastien Paumier