OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / acl / original / man3 / acl_copy_entry.3
1 .\" Access Control Lists manual pages
2 .\"
3 .\" (C) 2002 Andreas Gruenbacher, <a.gruenbacher@bestbits.at>
4 .\"
5 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
6 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
7 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
8 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
9 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
10 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
11 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
12 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
13 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
14 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
15 .\" SUCH DAMAGE.
16 .\"
17 .Dd March 23, 2002
18 .Dt ACL_COPY_ENTRY 3
19 .Os "Linux ACL"
20 .Sh NAME
21 .Nm acl_copy_entry
22 .Nd copy an ACL entry
23 .Sh LIBRARY
24 Linux Access Control Lists library (libacl, \-lacl).
25 .Sh SYNOPSIS
26 .In sys/types.h
27 .In sys/acl.h
28 .Ft int
29 .Fn acl_copy_entry "acl_entry_t dest_d" "acl_entry_t src_d"
30 .Sh DESCRIPTION
31 The
32 .Fn acl_copy_entry
33 function copies the contents of the ACL entry indicated by the
34 .Va src_d
35 descriptor to the existing ACL entry indicated by the
36 .Va dest_d
37 descriptor. The
38 .Va src_d
39 and
40 .Va dest_d
41 descriptors may refer to entries in different ACLs.
42 .Sh RETURN VALUE
43 .Rv -std acl_copy_entry
44 .Sh ERRORS
45 If any of the following conditions occur, the
46 .Fn acl_copy_entry
47 function returns
48 .Li -1
49 and sets
50 .Va errno
51 to the corresponding value:
52 .Bl -tag -width Er
53 .It Bq Er EINVAL
54 The argument
55 .Va src_d
56 or
57 .Va dest_d
58 is not a valid descriptor for an ACL entry.
59 .Pp
60 The arguments
61 .Va src_d
62 and
63 .Va dest_d
64 reference the same ACL entry.
65 .El
66 .Sh STANDARDS
67 IEEE Std 1003.1e draft 17 (\(lqPOSIX.1e\(rq, abandoned)
68 .Sh SEE ALSO
69 .Xr acl_get_entry 3 ,
70 .Xr acl 5
71 .Sh AUTHOR
72 Derived from the FreeBSD manual pages written by
73 .An "Robert N M Watson" Aq rwatson@FreeBSD.org ,
74 and adapted for Linux by
75 .An "Andreas Gruenbacher" Aq a.gruenbacher@bestbits.at .