From a1b159bb3e7892a51d54aeb699e2c6284924323a Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Tue, 15 Apr 2025 00:03:19 +0200 Subject: [PATCH] symlink.2: document EOPNOTSUPP When the file system does not support symbolic links (like in the case of MSDOS), symlink() returns -1 and sets errno to EOPNOTSUPP. Document this behavior. Reviewed by: glebius, markj Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D49803 (cherry picked from commit dd9e59beebbb346f329dfd1de26a84da8afdcb1d) --- lib/libc/sys/symlink.2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/symlink.2 b/lib/libc/sys/symlink.2 index bae615be506..48d5cdeec11 100644 --- a/lib/libc/sys/symlink.2 +++ b/lib/libc/sys/symlink.2 @@ -27,7 +27,7 @@ .\" .\" @(#)symlink.2 8.1 (Berkeley) 6/4/93 .\" -.Dd March 30, 2020 +.Dd April 15, 2025 .Dt SYMLINK 2 .Os .Sh NAME @@ -94,6 +94,10 @@ or the entire length of either path name exceeded 1023 characters. A component of the .Fa name2 path prefix does not exist. +.It Bq Er EOPNOTSUPP +The file system containing the file named by +.Fa name2 +does not support symbolic links. .It Bq Er EACCES A component of the .Fa name2