I need to mmap a file so that I can grow and shrink it as needed. In addition to using mremap, the actual file size needs to be modified as well. I do not know how to change the file size, but i've been told to seek past the end of the file. Does any know how to solve this problem?
I open the file with open function.
Thanks for any help.