From: millert Date: Mon, 19 Jan 2015 23:41:32 +0000 (+0000) Subject: Explicitly mention that PATH_MAX includes the NUL in the ENAMETOOLONG X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a8c238b04a02d1c814e32f4ba9ff97623214142e;p=openbsd Explicitly mention that PATH_MAX includes the NUL in the ENAMETOOLONG description. --- diff --git a/lib/libc/sys/mount.2 b/lib/libc/sys/mount.2 index f51b5070f63..bbb8e26010c 100644 --- a/lib/libc/sys/mount.2 +++ b/lib/libc/sys/mount.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mount.2,v 1.42 2014/12/10 19:19:00 schwarze Exp $ +.\" $OpenBSD: mount.2,v 1.43 2015/01/19 23:41:32 millert Exp $ .\" $NetBSD: mount.2,v 1.12 1996/02/29 23:47:48 jtc Exp $ .\" .\" Copyright (c) 1980, 1989, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)mount.2 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: December 10 2014 $ +.Dd $Mdocdate: January 19 2015 $ .Dt MOUNT 2 .Os .Sh NAME @@ -366,10 +366,11 @@ A component of the path is not a directory. An argument given was invalid. .It Bq Er ENAMETOOLONG A component of a pathname exceeded -.Dv {NAME_MAX} -characters, or an entire path name exceeded -.Dv {PATH_MAX} -characters. +.Dv NAME_MAX +characters, or an entire pathname (including the terminating NUL) +exceeded +.Dv PATH_MAX +bytes. .It Bq Er ELOOP Too many symbolic links were encountered in translating the pathname. .It Bq Er EINVAL