summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>1998-09-07 16:36:54 +0000
committerespie <espie@openbsd.org>1998-09-07 16:36:54 +0000
commit84682f94cee44a63984fbbdf08f75659a0cfaafe (patch)
treeacda11e1c144bfdd6c785f551f9da96f2ae5a766
parentinstall the xfs includes (diff)
downloadwireguard-openbsd-84682f94cee44a63984fbbdf08f75659a0cfaafe.tar.xz
wireguard-openbsd-84682f94cee44a63984fbbdf08f75659a0cfaafe.zip
Nitpicking max filename length: add .Xr to pathconf/fpathconf.
-rw-r--r--lib/libc/sys/intro.219
1 files changed, 17 insertions, 2 deletions
diff --git a/lib/libc/sys/intro.2 b/lib/libc/sys/intro.2
index 8babf0b1819..fb8ef34cf74 100644
--- a/lib/libc/sys/intro.2
+++ b/lib/libc/sys/intro.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: intro.2,v 1.8 1998/07/06 18:27:42 deraadt Exp $
+.\" $OpenBSD: intro.2,v 1.9 1998/09/07 16:36:54 espie Exp $
.\" $NetBSD: intro.2,v 1.6 1995/02/27 12:33:41 cgd Exp $
.\"
.\" Copyright (c) 1980, 1983, 1986, 1991, 1993
@@ -565,6 +565,15 @@ or
as part of
file names because of the special meaning attached to these characters
by the shell.
+.Pp
+Note also that
+.Pq Dv MAXNAMELEN
+is an upper limit fixed by the kernel, meant to be used for sizing buffers.
+Some filesystems may have additional restrictions. These can be queried
+using
+.Xr pathconf 2
+and
+.Xr fpathconf 2 .
.It Path Name
A path name is a
.Tn NUL Ns -terminated
@@ -575,7 +584,13 @@ followed by zero or more directory names separated
by slashes, optionally followed by a file name.
The total length of a path name must be less than 1024
.Pq Dv MAXPATHLEN
-characters.
+characters.
+Additional restrictions may apply, depending upon the filesystem, to be
+queried with
+.Xr pathconf 2
+or
+.Xr fpathconf 2
+if needed.
.Pp
If a path name begins with a slash, the path search begins at the
.Em root