Thread (28 messages) 28 messages, 2 authors, 2026-01-21

[PATCH v1 11/19] man/man2/chmod.2: HISTORY: Specify different chmod(2) prototypes

From: Seth McDonald <hidden>
Date: 2026-01-19 11:57:07
Subsystem: the rest · Maintainer: Linus Torvalds

chmod(2) was specified in POSIX.1-1988 with the prototype
int chmod(char *path, mode_t mode); [1]

POSIX.1-1990 then changed the prototype to
int chmod(const char *path, mode_t mode); [2]

[1] IEEE Std 1003.1-1988, Section 5.6.4 "Change File Modes".
[2] IEEE Std 1003.1-1990, Section 5.6.4 "Change File Modes".

Signed-off-by: Seth McDonald <redacted>
---
 man/man2/chmod.2 | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/man/man2/chmod.2 b/man/man2/chmod.2
index d9e316747f98..78bd4d05139f 100644
--- a/man/man2/chmod.2
+++ b/man/man2/chmod.2
@@ -361,6 +361,13 @@ .SH HISTORY
 .B AT_SYMLINK_NOFOLLOW
 glibc 2.32,
 Linux 6.5.
+.P
+POSIX.1-1988 initially specified the function signature of
+.BR chmod ()
+with a non-const-qualified
+.I path
+parameter.
+This was remedied in POSIX.1-1990.
 .SH SEE ALSO
 .BR chmod (1),
 .BR chown (2),
-- 
2.47.3

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help