From b982b8c5a987d91c9c020a306ec84d931ffa13c2 Mon Sep 17 00:00:00 2001 From: kstailey Date: Tue, 29 Apr 1997 18:28:42 +0000 Subject: [PATCH] mention that write updates timestamps --- lib/libc/sys/write.2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.20.1