Fri Dec 16 15:21:13 2011 UTC ()
Do not tell about specific errno, as all xattr copying function
retuenrs error from extattr_list_file and extattr_get_file.


(manu)
diff -r1.1 -r1.2 src/lib/libc/gen/extattr_copy_file.3

cvs diff -r1.1 -r1.2 src/lib/libc/gen/extattr_copy_file.3 (expand / switch to unified diff)

--- src/lib/libc/gen/extattr_copy_file.3 2011/12/16 12:46:00 1.1
+++ src/lib/libc/gen/extattr_copy_file.3 2011/12/16 15:21:13 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: extattr_copy_file.3,v 1.1 2011/12/16 12:46:00 wiz Exp $ 1.\" $NetBSD: extattr_copy_file.3,v 1.2 2011/12/16 15:21:13 manu Exp $
2.\" 2.\"
3.\" Copyright (c) 2001 Dima Dorfman <dd@FreeBSD.org> 3.\" Copyright (c) 2001 Dima Dorfman <dd@FreeBSD.org>
4.\" Copyright (c) 2011 Emmanuel Dreyfus <manu@NetBSD.org> 4.\" Copyright (c) 2011 Emmanuel Dreyfus <manu@NetBSD.org>
5.\" All rights reserved. 5.\" All rights reserved.
6.\" 6.\"
7.\" Redistribution and use in source and binary forms, with or without 7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions 8.\" modification, are permitted provided that the following conditions
9.\" are met: 9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright 10.\" 1. Redistributions of source code must retain the above copyright
11.\" notice, this list of conditions and the following disclaimer. 11.\" notice, this list of conditions and the following disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\" notice, this list of conditions and the following disclaimer in the 13.\" notice, this list of conditions and the following disclaimer in the
14.\" documentation and/or other materials provided with the distribution. 14.\" documentation and/or other materials provided with the distribution.
@@ -75,35 +75,30 @@ respectively work the same was as @@ -75,35 +75,30 @@ respectively work the same was as
75.Fn extattr_copy_fd , 75.Fn extattr_copy_fd ,
76and 76and
77.Fn extattr_copy_link , 77.Fn extattr_copy_link ,
78but will copy extended attributes from all namespaces accessible to the user, 78but will copy extended attributes from all namespaces accessible to the user,
79silently skiping unaccessible namespaces. 79silently skiping unaccessible namespaces.
80.Pp 80.Pp
81Please note that none of the extended attribute copying functions are atomic. 81Please note that none of the extended attribute copying functions are atomic.
82.Sh RETURN VALUES 82.Sh RETURN VALUES
83If any of the calls are unsuccessful, the value \-1 is returned 83If any of the calls are unsuccessful, the value \-1 is returned
84and the global variable 84and the global variable
85.Va errno 85.Va errno
86is set to indicate the error. 86is set to indicate the error.
87.Sh ERRORS 87.Sh ERRORS
88.Bl -tag -width Er 88Extended attribute copying functions may raise errors produced by
89.It Bq Er EINVAL 89.Xr extattr_list_file 2
90The requested namespace could not be identified. 
91.El 
92.Pp 
93Extended attribute copying functions may also raise errors produced by 
94.Fn extattr_list_file 
95and 90and
96.Fn extattr_get_file . 91.Xr extattr_get_file 2 .
97.Sh SEE ALSO 92.Sh SEE ALSO
98.Xr getextattr 1 , 93.Xr getextattr 1 ,
99.Xr extattr_get_file 2 , 94.Xr extattr_get_file 2 ,
100.Xr extattr_namespace_to_string 3 , 95.Xr extattr_namespace_to_string 3 ,
101.Xr extattr 9 96.Xr extattr 9
102.Sh HISTORY 97.Sh HISTORY
103Extended attribute support was developed as part of the 98Extended attribute support was developed as part of the
104.Tn TrustedBSD 99.Tn TrustedBSD
105Project, and introduced in 100Project, and introduced in
106.Fx 5.0 101.Fx 5.0
107and 102and
108.Nx 3.0 . 103.Nx 3.0 .
109It was developed to support security extensions requiring additional labels 104It was developed to support security extensions requiring additional labels