summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-04-29 18:28:43 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-04-29 18:28:43 +0000
commit746c7274e722cfceab69ccae607ae6d1a89168e7 (patch)
treec7906714c9ac4c0e0bbf0f835e2b671bbbcb430a /lib
parent7bd0ea9cb2fe0fb49e4ac279354c30f454fe33d4 (diff)
mention that write updates timestamps
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/write.28
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2
index 56a32fb542d..9f732a66bb1 100644
--- a/lib/libc/sys/write.2
+++ b/lib/libc/sys/write.2
@@ -91,7 +91,7 @@ starts at a position
given by the pointer associated with
.Fa d
(see
-.Xr lseek 2 ) .
+.Xr lseek 2 . )
Upon return from
.Fn write ,
the pointer is incremented by the number of bytes which were written.
@@ -109,6 +109,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