Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Sep 2023 10:06:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 273962] copy_file_range does not work on shared memory objects
Message-ID:  <bug-273962-9-SvQnfzpWKv@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-273962-9@https.bugs.freebsd.org/bugzilla/>
References:  <bug-273962-9@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273962

--- Comment #10 from Konstantin Belousov <kib@FreeBSD.org> ---
(In reply to David Chisnall from comment #9)
>From IEEE Standard for Information Technology=E2=80=94
Portable Operating System Interface (POSIX=C2=AE)
Base Specifications, Issue 7

2.9.7 Thread Interactions with Regular File Operations
All of the following functions shall be atomic with respect to each other in
the effects specified in
POSIX.1-2017 when they operate on regular files or symbolic links:
chmod( )
chown( )
close( )
creat( )
dup2( )
fchmod( )
fchmodat( )
fchown( )
fchownat( )
fcntl( )
fstat( )
fstatat( )
ftruncate( )
lchown( )
link( )
linkat( )
lseek( )
lstat( )
open( )
openat( )
pread( )
read( )
readlink( )
readlinkat( )
readv( )
pwrite( )
rename( )
renameat( )
stat( )
symlink( )
symlinkat( )
truncate( )
unlink( )
unlinkat( )
utime( )
utimensat( )
utimes( )
write( )
writev( )

If two threads each call one of these functions, each call shall either see=
 all
of the specified effects
of the other call, or none of them. The requirement on the close( ) function
shall also apply
whenever a file descriptor is successfully closed, however caused (for exam=
ple,
as a consequence
of calling close( ), calling dup2( ), or of process termination).

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273962-9-SvQnfzpWKv>