diff options
Diffstat (limited to 'usr/src/man/man3c/truncate.3c')
-rw-r--r-- | usr/src/man/man3c/truncate.3c | 63 |
1 files changed, 8 insertions, 55 deletions
diff --git a/usr/src/man/man3c/truncate.3c b/usr/src/man/man3c/truncate.3c index 4120e6632d..009b026809 100644 --- a/usr/src/man/man3c/truncate.3c +++ b/usr/src/man/man3c/truncate.3c @@ -1,13 +1,13 @@ '\" te .\" Copyright 1989 AT&T Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved -.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at +.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at .\" http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. .\" This notice shall appear on any product containing this material. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH truncate 3C "5 Apr 2002" "SunOS 5.11" "Standard C Library Functions" +.TH TRUNCATE 3C "Apr 5, 2002" .SH NAME truncate, ftruncate \- set a file to a specified length .SH SYNOPSIS @@ -90,56 +90,46 @@ the error. The \fBftruncate()\fR and \fBtruncate()\fR functions will fail if: .sp .ne 2 -.mk .na \fB\fBEINTR\fR\fR .ad .RS 19n -.rt A signal was caught during execution. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 19n -.rt The \fIlength\fR argument was less than 0. .RE .sp .ne 2 -.mk .na \fB\fBEFBIG\fR or \fBEINVAL\fR\fR .ad .RS 19n -.rt The \fIlength\fR argument was greater than the maximum file size. .RE .sp .ne 2 -.mk .na \fB\fBEIO\fR\fR .ad .RS 19n -.rt An I/O error occurred while reading from or writing to a file system. .RE .sp .ne 2 -.mk .na \fB\fBEROFS\fR\fR .ad .RS 19n -.rt The named file resides on a read-only file system. .RE @@ -148,126 +138,104 @@ The named file resides on a read-only file system. The \fBtruncate()\fR function will fail if: .sp .ne 2 -.mk .na \fB\fBEACCES\fR\fR .ad .RS 16n -.rt A component of the path prefix denies search permission, or write permission is denied on the file. .RE .sp .ne 2 -.mk .na \fB\fBEFAULT\fR\fR .ad .RS 16n -.rt The \fIpath\fR argument points outside the process' allocated address space. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n -.rt The \fIpath\fR argument is not an ordinary file. .RE .sp .ne 2 -.mk .na \fB\fBEISDIR\fR\fR .ad .RS 16n -.rt The named file is a directory. .RE .sp .ne 2 -.mk .na \fB\fBELOOP\fR\fR .ad .RS 16n -.rt Too many symbolic links were encountered in resolving \fIpath\fR. .RE .sp .ne 2 -.mk .na \fB\fBEMFILE\fR\fR .ad .RS 16n -.rt The maximum number of file descriptors available to the process has been reached. .RE .sp .ne 2 -.mk .na \fB\fBENAMETOOLONG\fR\fR .ad .RS 16n -.rt The length of the specified pathname exceeds {\fBPATH_MAX\fR} bytes, or the length of a component of the pathname exceeds {\fBNAME_MAX\fR} bytes. .RE .sp .ne 2 -.mk .na \fB\fBENOENT\fR\fR .ad .RS 16n -.rt A component of \fIpath\fR does not name an existing file or \fIpath\fR is an empty string. .RE .sp .ne 2 -.mk .na \fB\fBENFILE\fR\fR .ad .RS 16n -.rt Additional space could not be allocated for the system file table. .RE .sp .ne 2 -.mk .na \fB\fBENOTDIR\fR\fR .ad .RS 16n -.rt A component of the path prefix of \fIpath\fR is not a directory. .RE .sp .ne 2 -.mk .na \fB\fBENOLINK\fR\fR .ad .RS 16n -.rt The \fIpath\fR argument points to a remote machine and the link to that machine is no longer active. .RE @@ -277,70 +245,58 @@ is no longer active. The \fBftruncate()\fR function will fail if: .sp .ne 2 -.mk .na \fB\fBEAGAIN\fR\fR .ad .RS 19n -.rt The file exists, mandatory file/record locking is set, and there are outstanding record locks on the file (see \fBchmod\fR(2)). .RE .sp .ne 2 -.mk .na \fB\fBEBADF\fR or \fBEINVAL\fR\fR .ad .RS 19n -.rt The \fIfildes\fR argument is not a file descriptor open for writing. .RE .sp .ne 2 -.mk .na \fB\fBEFBIG\fR\fR .ad .RS 19n -.rt The file is a regular file and \fIlength\fR is greater than the offset maximum established in the open file description associated with \fIfildes\fR. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 19n -.rt The \fIfildes\fR argument references a file that was opened without write permission. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 19n -.rt The \fIfildes\fR argument does not correspond to an ordinary file. .RE .sp .ne 2 -.mk .na \fB\fBENOLINK\fR\fR .ad .RS 19n -.rt The \fIfildes\fR argument points to a remote machine and the link to that machine is no longer active. .RE @@ -350,12 +306,10 @@ machine is no longer active. The \fBtruncate()\fR function may fail if: .sp .ne 2 -.mk .na \fB\fBENAMETOOLONG\fR\fR .ad .RS 16n -.rt Pathname resolution of a symbolic link produced an intermediate result whose length exceeds {\fBPATH_MAX\fR}. .RE @@ -373,15 +327,14 @@ See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface StabilityStandard +Interface Stability Standard _ -MT-LevelMT-Safe +MT-Level MT-Safe .TE .SH SEE ALSO |