Message15710
| Author |
myers_carpenter |
| Recipients |
| Date |
2003年04月27日.17:44:53 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
In the resize method under win32 you have something
like this:
/* Move to the desired EOF position */
SetFilePointer (self->file_handle,
new_size, NULL, FILE_BEGIN);
/* Change the size of the file */
SetEndOfFile (self->file_handle);
Which resizes the file
Under Unix you need to call
ftruncate(self->fileno, new_size)
before calling remap() to make it do the same thing.
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 14:12:53 | admin | link | issue728515 messages |
| 2007年08月23日 14:12:53 | admin | create |
|