All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fsync.2: no writability requirements, must operate on directories
@ 2023-08-03 11:52 наб
  2023-08-03 13:22 ` Alejandro Colomar
  2023-08-03 16:07 ` [PATCH] fsync.2: no writability requirements, must operate on directories Sam James
  0 siblings, 2 replies; 13+ messages in thread
From: наб @ 2023-08-03 11:52 UTC (permalink / raw)
  To: Alejandro Colomar (man-pages); +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 1164 bytes --]

POSIX has for a long time implied that directories are fsyncable,
and since Issue 8 explicitly specifies directory syncing semantics:
  https://www.austingroupbugs.net/view.php?id=672

Simultaneously, directories being unopenable for writing is a
Longest-Standing UNIX Semantic, present in the UNIX Programmer's Manual
under directory (V), and has always been enshrined in the standards.

Kill the FUD that says that some UNIXes require the fd to be writable:
they /must not/ and this confuses users:
  https://101010.pl/@eater@cijber.social/110824211348995583

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
---
 man2/fsync.2 | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/man2/fsync.2 b/man2/fsync.2
index 1043e6a1b..9ced40b28 100644
--- a/man2/fsync.2
+++ b/man2/fsync.2
@@ -155,12 +155,6 @@ .SH VERSIONS
 .\" POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
 .\" -1: unavailable, 0: ask using sysconf().
 .\" glibc defines them to 1.
-.PP
-On some UNIX systems (but not Linux),
-.I fd
-must be a
-.I writable
-file descriptor.
 .SH STANDARDS
 POSIX.1-2008.
 .SH HISTORY
-- 
2.39.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-08-11 23:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03 11:52 [PATCH] fsync.2: no writability requirements, must operate on directories наб
2023-08-03 13:22 ` Alejandro Colomar
2023-08-03 13:32   ` Alejandro Colomar
2023-08-03 14:20   ` наб
2023-08-03 15:18     ` Jakub Wilk
2023-08-03 16:54       ` наб
2023-08-03 18:59         ` G. Branden Robinson
2023-08-04 10:07     ` Guillem Jover
2023-08-04 15:03       ` наб
2023-08-04 15:03         ` [PATCH v3] fsync.2: no writability requirements наб
2023-08-11 23:01           ` Alejandro Colomar
2023-08-03 16:07 ` [PATCH] fsync.2: no writability requirements, must operate on directories Sam James
2023-08-03 16:44   ` наб

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.