U
Unknown Soldier
Hello,
I have a couple queries about mmap() that ppl here might be able to help
with.
1. What's the best way to resize an mmap()d area when you've enlarged
the file? Can you call mmap() again with the existing mapped location,
or do you need to remap it from scratch?
2. If I have a file descriptor returned by a call to socket(), can I
used mmap() as an alterantive to read()? Will there be problems
depending on whether the socket is blocking?
Thanks.
I have a couple queries about mmap() that ppl here might be able to help
with.
1. What's the best way to resize an mmap()d area when you've enlarged
the file? Can you call mmap() again with the existing mapped location,
or do you need to remap it from scratch?
2. If I have a file descriptor returned by a call to socket(), can I
used mmap() as an alterantive to read()? Will there be problems
depending on whether the socket is blocking?
Thanks.