git: 1350f1ccc156 - stable/11 - pwrite(2): add a BUGS section

Guangyuan Yang ygy at FreeBSD.org
Sun Feb 28 04:21:05 UTC 2021


The branch stable/11 has been updated by ygy (doc committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=1350f1ccc156299c4de2772afa8784283c8f6ab4

commit 1350f1ccc156299c4de2772afa8784283c8f6ab4
Author:     Guangyuan Yang <ygy at FreeBSD.org>
AuthorDate: 2021-02-20 08:03:15 +0000
Commit:     Guangyuan Yang <ygy at FreeBSD.org>
CommitDate: 2021-02-28 04:20:26 +0000

    pwrite(2): add a BUGS section
    
    Add a BUGS section about using pwrite(2) when O_APPEND is set on the fd.
    
    Submitted by:   Ka Ho Ng <khng300 at gmail.com>
    Reviewed by:    gbe, yuripv
    Differential Revision:  https://reviews.freebsd.org/D28372
    
    (cherry picked from commit 504e64af32ba6c62fdcc894a3b1da76061c64796)
---
 lib/libc/sys/write.2 | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2
index 7c3e4096c708..75574adb0996 100644
--- a/lib/libc/sys/write.2
+++ b/lib/libc/sys/write.2
@@ -28,7 +28,11 @@
 .\"     @(#)write.2	8.5 (Berkeley) 4/2/94
 .\" $FreeBSD$
 .\"
+<<<<<<< HEAD
 .Dd October 23, 2017
+=======
+.Dd February 11, 2021
+>>>>>>> 504e64af32ba (pwrite(2): add a BUGS section)
 .Dt WRITE 2
 .Os
 .Sh NAME
@@ -287,4 +291,22 @@ system call appeared in
 The
 .Fn write
 function appeared in
+<<<<<<< HEAD
 .At v6 .
+=======
+.At v1 .
+.Sh BUGS
+The
+.Fn pwrite
+system call appends the file without changing the file offset if
+.Dv O_APPEND
+is set, contrary to
+.St -p1003.1-2008
+where
+.Fn pwrite
+writes into
+.Fa offset
+regardless of whether
+.Dv O_APPEND
+is set.
+>>>>>>> 504e64af32ba (pwrite(2): add a BUGS section)


More information about the dev-commits-src-all mailing list