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)
This commit is contained in:
Michael Tuexen 2025-04-15 00:03:19 +02:00
parent 25f9717663
commit a1b159bb3e

View file

@ -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