How do I decrease the file size?
I have increased the file size with
lseek(fd, size, SEEK_SET);
write(fd,"",1);
Now, how would I decrease the same file?
Type: Posts; User: forumuser06
How do I decrease the file size?
I have increased the file size with
lseek(fd, size, SEEK_SET);
write(fd,"",1);
Now, how would I decrease the same file?
Hi,
anyone knows if mremap round off the new_memory parameter or it has to be done manually?
Hi,
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...