summaryrefslogtreecommitdiff
path: root/lib/libc/sys/write.2
diff options
context:
space:
mode:
authoryamt <yamt@NetBSD.org>2002-08-18 05:55:24 +0000
committeryamt <yamt@NetBSD.org>2002-08-18 05:55:24 +0000
commit9c03214612fad195ddc846266e8463e017f8dbe2 (patch)
treed383f03de62e19a262ffc926561cb4739d42c43b /lib/libc/sys/write.2
parent8b91a33de9e015e5c1e68a0a311c9b79333a4c03 (diff)
- write updates st_[cm]time.
- a minor fix from openbsd.
Diffstat (limited to 'lib/libc/sys/write.2')
-rw-r--r--lib/libc/sys/write.212
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2
index d3032caab71..067d321447c 100644
--- a/lib/libc/sys/write.2
+++ b/lib/libc/sys/write.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: write.2,v 1.19 2002/07/10 14:37:17 yamt Exp $
+.\" $NetBSD: write.2,v 1.20 2002/08/18 05:55:24 yamt Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" @(#)write.2 8.5 (Berkeley) 4/2/94
.\"
-.Dd October 16, 2001
+.Dd August 18, 2002
.Dt WRITE 2
.Os
.Sh NAME
@@ -96,6 +96,8 @@ Each
entry specifies the base address and length of an area
in memory from which data should be written.
.Fn writev
+and
+.Fn pwritev
will always write a complete area before proceeding
to the next.
.Pp
@@ -123,6 +125,12 @@ by a user who
a writable set-user-id file
owned by the super-user.
.Pp
+If
+.Fn write
+succeeds it will update the st_ctime and st_mtime fields of the file's
+meta-data (see
+.Xr stat 2 ) .
+.Pp
When using non-blocking I/O on objects such as sockets that are subject
to flow control,
.Fn write