resetting manifest requested domain to floor
[platform/upstream/acl.git] / man / man3 / acl_copy_entry.3
1 .\" Access Control Lists manual pages
2 .\"
3 .\" (C) 2002 Andreas Gruenbacher, <a.gruenbacher@bestbits.at>
4 .\"
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\"
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
14 .\"
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 .\" GNU General Public License for more details.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual.  If not, see
22 .\" <http://www.gnu.org/licenses/>.
23 .\"
24 .Dd March 23, 2002
25 .Dt ACL_COPY_ENTRY 3
26 .Os "Linux ACL"
27 .Sh NAME
28 .Nm acl_copy_entry
29 .Nd copy an ACL entry
30 .Sh LIBRARY
31 Linux Access Control Lists library (libacl, \-lacl).
32 .Sh SYNOPSIS
33 .In sys/types.h
34 .In sys/acl.h
35 .Ft int
36 .Fn acl_copy_entry "acl_entry_t dest_d" "acl_entry_t src_d"
37 .Sh DESCRIPTION
38 The
39 .Fn acl_copy_entry
40 function copies the contents of the ACL entry indicated by the
41 .Va src_d
42 descriptor to the existing ACL entry indicated by the
43 .Va dest_d
44 descriptor. The
45 .Va src_d
46 and
47 .Va dest_d
48 descriptors may refer to entries in different ACLs.
49 .Sh RETURN VALUE
50 .Rv -std acl_copy_entry
51 .Sh ERRORS
52 If any of the following conditions occur, the
53 .Fn acl_copy_entry
54 function returns
55 .Li -1
56 and sets
57 .Va errno
58 to the corresponding value:
59 .Bl -tag -width Er
60 .It Bq Er EINVAL
61 The argument
62 .Va src_d
63 or
64 .Va dest_d
65 is not a valid descriptor for an ACL entry.
66 .Pp
67 The arguments
68 .Va src_d
69 and
70 .Va dest_d
71 reference the same ACL entry.
72 .El
73 .Sh STANDARDS
74 IEEE Std 1003.1e draft 17 (\(lqPOSIX.1e\(rq, abandoned)
75 .Sh SEE ALSO
76 .Xr acl_get_entry 3 ,
77 .Xr acl 5
78 .Sh AUTHOR
79 Derived from the FreeBSD manual pages written by
80 .An "Robert N M Watson" Aq rwatson@FreeBSD.org ,
81 and adapted for Linux by
82 .An "Andreas Gruenbacher" Aq a.gruenbacher@bestbits.at .