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

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

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

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

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

[1] IEEE Std 1003.1-1988, Section 5.2.1 "Change Current Working
Directory".
[2] IEEE Std 1003.1-1990, Section 5.2.1 "Change Current Working
Directory".

Signed-off-by: Seth McDonald <redacted>
---
 man/man2/chdir.2 | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/man/man2/chdir.2 b/man/man2/chdir.2
index be53f87454e4..a313071d2e1e 100644
--- a/man/man2/chdir.2
+++ b/man/man2/chdir.2
@@ -113,6 +113,13 @@ .SH HISTORY
 SVr4,
 4.4BSD,
 POSIX.1-2001.
+.P
+POSIX.1-1988 initially specified the function signature of
+.BR chdir ()
+with a non-const-qualified
+.I path
+parameter.
+This was remedied in POSIX.1-1990.
 .SH NOTES
 The current working directory is the starting point for interpreting
 relative pathnames (those not starting with \[aq]/\[aq]).
-- 
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