Imported Upstream version 2.2.51
[platform/upstream/acl.git] / man / man3 / acl_delete_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_DELETE_ENTRY 3
26 .Os "Linux ACL"
27 .Sh NAME
28 .Nm acl_delete_entry
29 .Nd delete 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_delete_entry "acl_t acl" "acl_entry_t entry_d"
37 .Sh DESCRIPTION
38 The
39 .Fn acl_delete_entry
40 function removes the ACL entry indicated by the
41 .Va entry_d
42 descriptor from the ACL pointed to by
43 .Va acl .
44 Any existing ACL entry descriptors that refer to entries in
45 .Va acl
46 other than that referred to by
47 .Va entry_d
48 continue to refer to the same entries. The argument
49 .Va entry_d
50 and any other ACL entry descriptors that refer to the same ACL entry are
51 undefined after this function completes. Any existing ACL pointers that
52 refer to the ACL referred to by
53 .Va acl
54 continue to refer to the ACL.
55 .Sh RETURN VALUE
56 .Rv -std acl_delete_entry
57 .Sh ERRORS
58 If any of the following conditions occur, the
59 .Fn acl_delete_entry
60 function returns
61 .Li -1
62 and sets
63 .Va errno
64 to the corresponding value:
65 .Bl -tag -width Er
66 .It Bq Er EINVAL
67 The argument
68 .Va acl_p
69 is not a valid pointer to an ACL.
70 .Pp
71 The argument
72 .Va entry_d
73 is not a valid pointer to an ACL entry.
74 .El
75 .Sh STANDARDS
76 IEEE Std 1003.1e draft 17 (\(lqPOSIX.1e\(rq, abandoned)
77 .Sh SEE ALSO
78 .Xr acl_copy_entry 3 ,
79 .Xr acl_create_entry 3 ,
80 .Xr acl_get_entry 3 ,
81 .Xr acl 5
82 .Sh AUTHOR
83 Derived from the FreeBSD manual pages written by
84 .An "Robert N M Watson" Aq rwatson@FreeBSD.org ,
85 and adapted for Linux by
86 .An "Andreas Gruenbacher" Aq a.gruenbacher@bestbits.at .