Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys * Note string termination behaviour of NAME_MAX...



details:   https://anonhg.NetBSD.org/src/rev/d4a5f5febd5f
branches:  trunk
changeset: 566742:d4a5f5febd5f
user:      kleink <kleink%NetBSD.org@localhost>
date:      Wed May 19 11:40:51 2004 +0000

description:
* Note string termination behaviour of NAME_MAX vs. PATH_MAX.
* Replace reference to non-existant KERN_NAME_MAX appropriately with
  {NAME_MAX}.

diffstat:

 lib/libc/sys/pathconf.2 |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 35723a9f347c -r d4a5f5febd5f lib/libc/sys/pathconf.2
--- a/lib/libc/sys/pathconf.2   Wed May 19 11:29:32 2004 +0000
+++ b/lib/libc/sys/pathconf.2   Wed May 19 11:40:51 2004 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pathconf.2,v 1.16 2004/05/13 10:20:58 wiz Exp $
+.\"    $NetBSD: pathconf.2,v 1.17 2004/05/19 11:40:51 kleink Exp $
 .\"
 .\" Copyright (c) 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -81,9 +81,11 @@
 The minimum maximum number of bytes for which space is available in
 a terminal input queue.
 .It Li _PC_NAME_MAX
-The maximum number of bytes in a file name.
+The maximum number of bytes in a filename,
+not including a terminating null character.
 .It Li _PC_PATH_MAX
-The maximum number of bytes in a pathname.
+The maximum number of bytes in a pathname,
+including the terminating null character.
 .It Li _PC_PIPE_BUF
 The maximum number of bytes which will be written atomically to a pipe.
 .It Li _PC_CHOWN_RESTRICTED
@@ -91,7 +93,9 @@
 .Xr chown 2
 system call, otherwise 0.
 .It Li _PC_NO_TRUNC
-Return 1 if file names longer than KERN_NAME_MAX are truncated.
+Return 1 if filenames longer than
+.Dv {NAME_MAX}
+are truncated.
 .It Li _PC_VDISABLE
 Returns the terminal character disabling value.
 .It Li _PC_SYNC_IO



Home | Main Index | Thread Index | Old Index