Boost logo

Boost :

Subject: [boost] [filesystem] truncate() function?
From: Beman Dawes (bdawes_at_[hidden])
Date: 2009-10-14 10:45:52

There was a request on the users list for a file truncate() function
similar to the POSIX function of the same name. Since Windows provides a
function with virtually identical semantics, this seems like a
reasonable request.

The POSIX spec includes:

"If the request would cause the file size to exceed the soft file size
limit for the process, the request shall fail and the implementation
shall generate the SIGXFSZ signal for the process."

I have no knowledge of or experience with POSIX signals, so need advice.

Does the POSIX implementation need to do anything to cope with the
possibility of a SIGXFSZ signal? If so what?



Boost list run by bdawes at, gregod at, cpdaniel at, john at