Deleted Added
full compact
acl_to_text.3 (131504) acl_to_text.3 (194955)
1.\"-
2.\" Copyright (c) 2000, 2002 Robert N. M. Watson
3.\" All rights reserved.
4.\"
5.\" This software was developed by Robert Watson for the TrustedBSD Project.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

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

20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
1.\"-
2.\" Copyright (c) 2000, 2002 Robert N. M. Watson
3.\" All rights reserved.
4.\"
5.\" This software was developed by Robert Watson for the TrustedBSD Project.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

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

20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" $FreeBSD: head/lib/libc/posix1e/acl_to_text.3 131504 2004-07-02 23:52:20Z ru $
28.\" $FreeBSD: head/lib/libc/posix1e/acl_to_text.3 194955 2009-06-25 12:46:59Z trasz $
29.\"
30.Dd January 28, 2000
31.Dt ACL_TO_TEXT 3
32.Os
33.Sh NAME
29.\"
30.Dd January 28, 2000
31.Dt ACL_TO_TEXT 3
32.Os
33.Sh NAME
34.Nm acl_to_text
34.Nm acl_to_text ,
35.Nm acl_to_text_np
35.Nd convert an ACL to text
36.Sh LIBRARY
37.Lb libc
38.Sh SYNOPSIS
39.In sys/types.h
40.In sys/acl.h
41.Ft char *
42.Fn acl_to_text "acl_t acl" "ssize_t *len_p"
36.Nd convert an ACL to text
37.Sh LIBRARY
38.Lb libc
39.Sh SYNOPSIS
40.In sys/types.h
41.In sys/acl.h
42.Ft char *
43.Fn acl_to_text "acl_t acl" "ssize_t *len_p"
44.Ft char *
45.Fn acl_to_text_np "acl_t acl" "ssize_t *len_p" "int flags"
43.Sh DESCRIPTION
44The
45.Fn acl_to_text
46.Sh DESCRIPTION
47The
48.Fn acl_to_text
46function translates the ACL pointed to by argument
49and
50.Fn acl_to_text_np
51functions translate the ACL pointed to by argument
47.Va acl
48into a NULL terminated character string.
49If the pointer
50.Va len_p
51is not NULL, then the function shall return the length of the string (not
52including the NULL terminator) in the location pointed to by
53.Va len_p .
52.Va acl
53into a NULL terminated character string.
54If the pointer
55.Va len_p
56is not NULL, then the function shall return the length of the string (not
57including the NULL terminator) in the location pointed to by
58.Va len_p .
54The format of the text string returned by
59If the ACL is POSIX.1e, the format of the text string returned by
55.Fn acl_to_text
60.Fn acl_to_text
56shall be the POSIX.1e long ACL form.
61shall be the POSIX.1e long ACL form. If the ACL is NFSv4, the format
62of the text string shall be the compact form, unless the
63.Va ACL_TEXT_VERBOSE
64flag is given.
57.Pp
65.Pp
66The flags specified are formed by
67.Em or Ns 'ing
68the following values
69.Pp
70.Bl -column -offset 3n "ACL_TEXT_NUMERIC_IDS"
71.It ACL_TEXT_VERBOSE Format ACL using verbose form
72.It ACL_TEXT_NUMERIC_IDS Do not resolve IDs into user or group names
73.It ACL_TEXT_APPEND_ID In addition to user and group names, append numeric IDs
74.El
75.Pp
58This function allocates any memory necessary to contain the string and
59returns a pointer to the string.
60The caller should free any releasable
61memory, when the new string is no longer required, by calling
62.Xr acl_free 3
63with the
64.Va (void*)char
65as an argument.

--- 76 unchanged lines hidden ---
76This function allocates any memory necessary to contain the string and
77returns a pointer to the string.
78The caller should free any releasable
79memory, when the new string is no longer required, by calling
80.Xr acl_free 3
81with the
82.Va (void*)char
83as an argument.

--- 76 unchanged lines hidden ---