summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authornjoly <njoly@NetBSD.org>2014-11-11 08:10:02 +0000
committernjoly <njoly@NetBSD.org>2014-11-11 08:10:02 +0000
commit7f4d54e6d53a2cfe681874fb95efad465bf64b07 (patch)
tree3c23956ae71a810769d19fc9f784cc15de36cd1a /lib/libc/sys
parentabcfa452967e488b102d88951bb0bfe506357294 (diff)
Do not hardcode values for ENAMETOOLONG, use symblic constants.
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/extattr_get_file.210
-rw-r--r--lib/libc/sys/ktrace.210
-rw-r--r--lib/libc/sys/revoke.210
-rw-r--r--lib/libc/sys/undelete.210
4 files changed, 28 insertions, 12 deletions
diff --git a/lib/libc/sys/extattr_get_file.2 b/lib/libc/sys/extattr_get_file.2
index 211b44394ad..7c053d39581 100644
--- a/lib/libc/sys/extattr_get_file.2
+++ b/lib/libc/sys/extattr_get_file.2
@@ -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>
.\" Copyright (c) 2003 Robert Watson <rwatson@FreeBSD.org>
@@ -231,8 +231,12 @@ calls may also fail due to the following errors:
.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 --git a/lib/libc/sys/ktrace.2 b/lib/libc/sys/ktrace.2
index 43cbd389ada..b44815ba52c 100644
--- a/lib/libc/sys/ktrace.2
+++ b/lib/libc/sys/ktrace.2
@@ -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 directory.
.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 --git a/lib/libc/sys/revoke.2 b/lib/libc/sys/revoke.2
index 2ea279c6f88..8a2b9a1e26a 100644
--- a/lib/libc/sys/revoke.2
+++ b/lib/libc/sys/revoke.2
@@ -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 address space.
.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 --git a/lib/libc/sys/undelete.2 b/lib/libc/sys/undelete.2
index be98d7a6365..beab99d1d38 100644
--- a/lib/libc/sys/undelete.2
+++ b/lib/libc/sys/undelete.2
@@ -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 directory entry.
.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