Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys - write updates st_[cm]time.



details:   https://anonhg.NetBSD.org/src/rev/5353862fb0ca
branches:  trunk
changeset: 535415:5353862fb0ca
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Aug 18 05:55:24 2002 +0000

description:
- write updates st_[cm]time.
- a minor fix
from openbsd.

diffstat:

 lib/libc/sys/write.2 |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r a56ea24dfebd -r 5353862fb0ca lib/libc/sys/write.2
--- a/lib/libc/sys/write.2      Sun Aug 18 05:34:34 2002 +0000
+++ b/lib/libc/sys/write.2      Sun Aug 18 05:55:24 2002 +0000
@@ -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 @@
 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 @@
 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



Home | Main Index | Thread Index | Old Index