Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/truncate.2
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)truncate.2 8.1 (Berkeley) 6/4/93 | .\" @(#)truncate.2 8.1 (Berkeley) 6/4/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd May 4, 2015 | .Dd August 24, 2019 | ||||
.Dt TRUNCATE 2 | .Dt TRUNCATE 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm truncate , | .Nm truncate , | ||||
.Nm ftruncate | .Nm ftruncate | ||||
.Nd truncate or extend a file to a specified length | .Nd truncate or extend a file to a specified length | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
▲ Show 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | |||||
.Fa fd | .Fa fd | ||||
argument | argument | ||||
references a file descriptor that is not a regular file or shared memory object. | references a file descriptor that is not a regular file or shared memory object. | ||||
.It Bq Er EINVAL | .It Bq Er EINVAL | ||||
The | The | ||||
.Fa fd | .Fa fd | ||||
descriptor | descriptor | ||||
is not open for writing. | is not open for writing. | ||||
.It Bq Er ENOTCAPABLE | |||||
The file descriptor being operated on has insufficient rights. | |||||
kib: Is this addition stil relevant ? | |||||
.El | .El | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr chflags 2 , | .Xr chflags 2 , | ||||
.Xr open 2 , | .Xr open 2 , | ||||
.Xr shm_open 2 | .Xr shm_open 2 | ||||
.Sh HISTORY | .Sh HISTORY | ||||
The | The | ||||
.Fn truncate | .Fn truncate | ||||
Show All 11 Lines |
Is this addition stil relevant ?