summaryrefslogtreecommitdiff
path: root/lib/libc/sys/write.2
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1995-02-27 12:31:34 +0000
committercgd <cgd@NetBSD.org>1995-02-27 12:31:34 +0000
commit4eab61bd40c07b2fc612ad50cface2b77fc110d0 (patch)
tree7118747f1d9919499fdea5d7c6908c5cfe04e5a8 /lib/libc/sys/write.2
parentc67e54a2e2b9f3d455a30d68ea4e09e56d7b9136 (diff)
merge with lite, keeping most local changes. clean up Ids
Diffstat (limited to 'lib/libc/sys/write.2')
-rw-r--r--lib/libc/sys/write.224
1 files changed, 13 insertions, 11 deletions
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2
index a3ebc4e2690..bb4813789d3 100644
--- a/lib/libc/sys/write.2
+++ b/lib/libc/sys/write.2
@@ -1,5 +1,7 @@
-.\" Copyright (c) 1980, 1991 Regents of the University of California.
-.\" All rights reserved.
+.\" $NetBSD: write.2,v 1.6 1995/02/27 12:39:43 cgd Exp $
+.\"
+.\" Copyright (c) 1980, 1991, 1993
+.\" The Regents of the University of California. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
@@ -29,10 +31,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)write.2 6.6 (Berkeley) 3/10/91
-.\" $Id: write.2,v 1.5 1994/09/16 03:08:47 mycroft Exp $
+.\" @(#)write.2 8.5 (Berkeley) 4/2/94
.\"
-.Dd March 10, 1991
+.Dd April 2, 1994
.Dt WRITE 2
.Os BSD 4
.Sh NAME
@@ -40,13 +41,13 @@
.Nm writev
.Nd write output
.Sh SYNOPSIS
-.Fd #include <unistd.h>
.Fd #include <sys/types.h>
.Fd #include <sys/uio.h>
+.Fd #include <unistd.h>
.Ft ssize_t
.Fn write "int d" "const void *buf" "size_t nbytes"
-.Ft int
-.Fn writev "int d" "struct iovec *iov" "int iovcnt"
+.Ft ssize_t
+.Fn writev "int d" "const struct iovec *iov" "int iovcnt"
.Sh DESCRIPTION
.Fn Write
attempts to write
@@ -68,10 +69,11 @@ For
the
.Fa iovec
structure is defined as:
+.Pp
.Bd -literal -offset indent -compact
struct iovec {
- caddr_t iov_base;
- int iov_len;
+ void *iov_base;
+ size_t iov_len;
};
.Ed
.Pp
@@ -156,7 +158,7 @@ The user's quota of disk blocks on the file system
containing the file has been exhausted.
.It Bq Er EIO
An I/O error occurred while reading from or writing to the file system.
-.It Bq Er EWOULDBLOCK
+.It Bq Er EAGAIN
The file was marked for non-blocking I/O,
and no data could be written immediately.
.El