Module Name:    src
Committed By:   njoly
Date:           Tue Nov 11 08:10:02 UTC 2014

Modified Files:
        src/lib/libc/sys: extattr_get_file.2 ktrace.2 revoke.2 undelete.2

Log Message:
Do not hardcode values for ENAMETOOLONG, use symblic constants.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/sys/extattr_get_file.2
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/sys/ktrace.2
cvs rdiff -u -r1.15 -r1.16 src/lib/libc/sys/revoke.2 \
    src/lib/libc/sys/undelete.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/sys/extattr_get_file.2
diff -u src/lib/libc/sys/extattr_get_file.2:1.5 src/lib/libc/sys/extattr_get_file.2:1.6
--- src/lib/libc/sys/extattr_get_file.2:1.5	Wed Aug  3 09:48:12 2011
+++ src/lib/libc/sys/extattr_get_file.2	Tue Nov 11 08:10:02 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: extattr_get_file.2,v 1.5 2011/08/03 09:48:12 wiz Exp $
+.\"	$NetBSD: extattr_get_file.2,v 1.6 2014/11/11 08:10:02 njoly Exp $
 .\"
 .\" Copyright (c) 2001 Dima Dorfman <[email protected]>
 .\" Copyright (c) 2003 Robert Watson <[email protected]>
@@ -231,8 +231,12 @@ calls may also fail due to the following
 .It Bq Er EACCES
 Search permission is denied for a component of the path prefix.
 .It Bq Er ENAMETOOLONG
-A component of a pathname exceeded 255 characters,
-or an entire path name exceeded 1023 characters.
+A component of a pathname exceeded
+.Brq Dv NAME_MAX
+characters,
+or an entire path name exceeded
+.Brq Dv PATH_MAX
+characters.
 .It Bq Er ENOENT
 A component of the path name that must exist does not exist.
 .It Bq Er ENOTDIR

Index: src/lib/libc/sys/ktrace.2
diff -u src/lib/libc/sys/ktrace.2:1.17 src/lib/libc/sys/ktrace.2:1.18
--- src/lib/libc/sys/ktrace.2:1.17	Thu May 13 10:20:58 2004
+++ src/lib/libc/sys/ktrace.2	Tue Nov 11 08:10:02 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ktrace.2,v 1.17 2004/05/13 10:20:58 wiz Exp $
+.\"	$NetBSD: ktrace.2,v 1.18 2014/11/11 08:10:02 njoly Exp $
 .\"
 .\" Copyright (c) 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -152,8 +152,12 @@ A component of the path prefix is not a 
 .It Bq Er EINVAL
 The pathname contains a character with the high-order bit set.
 .It Bq Er ENAMETOOLONG
-A component of a pathname exceeded 255 characters,
-or an entire path name exceeded 1023 characters.
+A component of a pathname exceeded
+.Brq Dv NAME_MAX
+characters,
+or an entire path name exceeded
+.Brq Dv PATH_MAX
+characters.
 .It Bq Er ENOENT
 The named tracefile does not exist.
 .It Bq Er EACCES

Index: src/lib/libc/sys/revoke.2
diff -u src/lib/libc/sys/revoke.2:1.15 src/lib/libc/sys/revoke.2:1.16
--- src/lib/libc/sys/revoke.2:1.15	Fri Jul  8 19:26:19 2011
+++ src/lib/libc/sys/revoke.2	Tue Nov 11 08:10:02 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: revoke.2,v 1.15 2011/07/08 19:26:19 wiz Exp $
+.\"	$NetBSD: revoke.2,v 1.16 2014/11/11 08:10:02 njoly Exp $
 .\"
 .\" Copyright (c) 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -84,8 +84,12 @@ points outside the process's allocated a
 .It Bq Er ELOOP
 Too many symbolic links were encountered in translating the pathname.
 .It Bq Er ENAMETOOLONG
-A component of a pathname exceeded 255 characters,
-or an entire path name exceeded 1024 characters.
+A component of a pathname exceeded
+.Brq Dv NAME_MAX
+characters,
+or an entire path name exceeded
+.Brq Dv PATH_MAX
+characters.
 .It Bq Er ENOENT
 The named file or a component of the path name does not exist.
 .It Bq Er ENOTDIR
Index: src/lib/libc/sys/undelete.2
diff -u src/lib/libc/sys/undelete.2:1.15 src/lib/libc/sys/undelete.2:1.16
--- src/lib/libc/sys/undelete.2:1.15	Sun Jan 11 02:46:30 2009
+++ src/lib/libc/sys/undelete.2	Tue Nov 11 08:10:02 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: undelete.2,v 1.15 2009/01/11 02:46:30 christos Exp $
+.\"	$NetBSD: undelete.2,v 1.16 2014/11/11 08:10:02 njoly Exp $
 .\"
 .\" Copyright (c) 1994
 .\"	The Regents of the University of California.  All rights reserved.
@@ -106,8 +106,12 @@ An I/O error occurred while updating the
 .It Bq Er ELOOP
 Too many symbolic links were encountered in translating the pathname.
 .It Bq Er ENAMETOOLONG
-A component of a pathname exceeded 255 characters,
-or an entire path name exceeded 1023 characters.
+A component of a pathname exceeded
+.Brq Dv NAME_MAX
+characters,
+or an entire path name exceeded
+.Brq Dv PATH_MAX
+characters.
 .It Bq Er ENOENT
 The named whiteout does not exist.
 .It Bq Er ENOTDIR

Reply via email to