Deleted Added
full compact
acl_get_entry.3 (108037) acl_get_entry.3 (131504)
1.\"-
2.\" Copyright (c) 2001 Chris D. Faulhaber
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24.\" POSSIBILITY OF SUCH DAMAGE.
25.\"
1.\"-
2.\" Copyright (c) 2001 Chris D. Faulhaber
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24.\" POSSIBILITY OF SUCH DAMAGE.
25.\"
26.\" $FreeBSD: head/lib/libc/posix1e/acl_get_entry.3 108037 2002-12-18 12:45:11Z ru $
26.\" $FreeBSD: head/lib/libc/posix1e/acl_get_entry.3 131504 2004-07-02 23:52:20Z ru $
27.\"
28.Dd April 13, 2001
29.Dt ACL_GET_ENTRY 3
30.Os
31.Sh NAME
32.Nm acl_get_entry
33.Nd retrieve an ACL entry from an ACL
34.Sh LIBRARY

--- 42 unchanged lines hidden (view full) ---

77.Fn acl_valid ,
78then the result is unspecified.
79.Sh RETURN VALUES
80If the
81.Fn acl_get_entry
82function successfully obtains an ACL entry, a value of 1 is returned.
83If the ACL has no ACL entries, the
84.Fn acl_get_entry
27.\"
28.Dd April 13, 2001
29.Dt ACL_GET_ENTRY 3
30.Os
31.Sh NAME
32.Nm acl_get_entry
33.Nd retrieve an ACL entry from an ACL
34.Sh LIBRARY

--- 42 unchanged lines hidden (view full) ---

77.Fn acl_valid ,
78then the result is unspecified.
79.Sh RETURN VALUES
80If the
81.Fn acl_get_entry
82function successfully obtains an ACL entry, a value of 1 is returned.
83If the ACL has no ACL entries, the
84.Fn acl_get_entry
85returns a value of 0. If the value of
85returns a value of 0.
86If the value of
86.Fa entry_id
87is
88.Dv ACL_NEXT_ENTRY
89and the last ACL entry in the ACL has already been returned by a
90previous call to
91.Fn acl_get_entry ,
92a value of 0 will be returned until a successful call with
93.Fa entry_id
94of
95.Dv ACL_FIRST_ENTRY
87.Fa entry_id
88is
89.Dv ACL_NEXT_ENTRY
90and the last ACL entry in the ACL has already been returned by a
91previous call to
92.Fn acl_get_entry ,
93a value of 0 will be returned until a successful call with
94.Fa entry_id
95of
96.Dv ACL_FIRST_ENTRY
96is made. Otherwise, a value of -1 will be returned and
97is made.
98Otherwise, a value of -1 will be returned and
97the global variable
98.Va errno
99will be set to indicate the error.
100.Sh ERRORS
101The
102.Fn acl_get_entry
103fails if:
104.Bl -tag -width Er
105.It Bq Er EINVAL
106Argument
107.Fa acl
99the global variable
100.Va errno
101will be set to indicate the error.
102.Sh ERRORS
103The
104.Fn acl_get_entry
105fails if:
106.Bl -tag -width Er
107.It Bq Er EINVAL
108Argument
109.Fa acl
108does not point to a valid ACL. Argument
110does not point to a valid ACL.
111Argument
109.Fa entry_id
110is neither
111.Dv ACL_FIRST_ENTRY
112nor
113.Dv ACL_NEXT_ENTRY .
114.El
115.Sh SEE ALSO
116.Xr acl 3 ,

--- 26 unchanged lines hidden ---
112.Fa entry_id
113is neither
114.Dv ACL_FIRST_ENTRY
115nor
116.Dv ACL_NEXT_ENTRY .
117.El
118.Sh SEE ALSO
119.Xr acl 3 ,

--- 26 unchanged lines hidden ---