Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/sys Do not hardcode values for ENAMETOOLONG, use sy...



details:   https://anonhg.NetBSD.org/src/rev/fb4a34de0b6b
branches:  trunk
changeset: 333618:fb4a34de0b6b
user:      njoly <njoly%NetBSD.org@localhost>
date:      Tue Nov 11 08:10:02 2014 +0000

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

diffstat:

 lib/libc/sys/extattr_get_file.2 |  10 +++++++---
 lib/libc/sys/ktrace.2           |  10 +++++++---
 lib/libc/sys/revoke.2           |  10 +++++++---
 lib/libc/sys/undelete.2         |  10 +++++++---
 4 files changed, 28 insertions(+), 12 deletions(-)

diffs (96 lines):

diff -r 20c15f666c29 -r fb4a34de0b6b lib/libc/sys/extattr_get_file.2
--- a/lib/libc/sys/extattr_get_file.2   Tue Nov 11 03:29:24 2014 +0000
+++ b/lib/libc/sys/extattr_get_file.2   Tue Nov 11 08:10:02 2014 +0000
@@ -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 <dima%unixfreak.org@localhost>
 .\" Copyright (c) 2003 Robert Watson <rwatson%FreeBSD.org@localhost>
@@ -231,8 +231,12 @@
 .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
diff -r 20c15f666c29 -r fb4a34de0b6b lib/libc/sys/ktrace.2
--- a/lib/libc/sys/ktrace.2     Tue Nov 11 03:29:24 2014 +0000
+++ b/lib/libc/sys/ktrace.2     Tue Nov 11 08:10:02 2014 +0000
@@ -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 @@
 .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
diff -r 20c15f666c29 -r fb4a34de0b6b lib/libc/sys/revoke.2
--- a/lib/libc/sys/revoke.2     Tue Nov 11 03:29:24 2014 +0000
+++ b/lib/libc/sys/revoke.2     Tue Nov 11 08:10:02 2014 +0000
@@ -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 @@
 .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
diff -r 20c15f666c29 -r fb4a34de0b6b lib/libc/sys/undelete.2
--- a/lib/libc/sys/undelete.2   Tue Nov 11 03:29:24 2014 +0000
+++ b/lib/libc/sys/undelete.2   Tue Nov 11 08:10:02 2014 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index