Talk:Truncate a file: Difference between revisions
Content added Content deleted
(→Assumes unix: new section) |
(→Assumes unix: is it?) |
||
Line 5: | Line 5: | ||
It's pretty clear that this task assumes unix file system semantics. So, can we ignore other operating systems in this task? --[[User:Rdm|Rdm]] 14:33, 19 July 2011 (UTC) |
It's pretty clear that this task assumes unix file system semantics. So, can we ignore other operating systems in this task? --[[User:Rdm|Rdm]] 14:33, 19 July 2011 (UTC) |
||
:Why is it clear the task assumes unix behavior? --[[User:Ledrug|Ledrug]] 14:37, 19 July 2011 (UTC) |
Revision as of 14:37, 19 July 2011
So just to be sure, if the actual file size is smaller than the given truncated size, it's an error? It doesn't just leave the file alone? --Mwn3d 14:09, 19 July 2011 (UTC)
- POSIX truncate() and ftruncate() extends the file if specified size is larger than original. It's convenient when you want to reserve some disk space. --Ledrug 14:25, 19 July 2011 (UTC)
Assumes unix
It's pretty clear that this task assumes unix file system semantics. So, can we ignore other operating systems in this task? --Rdm 14:33, 19 July 2011 (UTC)
- Why is it clear the task assumes unix behavior? --Ledrug 14:37, 19 July 2011 (UTC)