git: dd9e59beebbb - main - symlink.2: document EOPNOTSUPP

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Mon, 14 Apr 2025 22:05:47 UTC
The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=dd9e59beebbb346f329dfd1de26a84da8afdcb1d

commit dd9e59beebbb346f329dfd1de26a84da8afdcb1d
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-04-14 22:03:19 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-04-14 22:03:19 +0000

    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
    MFC after:              3 days
    Sponsored by:           Netflix, Inc.
    Differential Revision:  https://reviews.freebsd.org/D49803
---
 lib/libsys/symlink.2 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/libsys/symlink.2 b/lib/libsys/symlink.2
index 6892586f69f2..b5d878aaae50 100644
--- a/lib/libsys/symlink.2
+++ b/lib/libsys/symlink.2
@@ -25,7 +25,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd March 30, 2020
+.Dd April 15, 2025
 .Dt SYMLINK 2
 .Os
 .Sh NAME
@@ -92,6 +92,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