Print this page
12288 getfacl and setfacl could stand improvement
*** 6,16 ****
.TH ACLTOTEXT 3SEC "Dec 10, 2001"
.SH NAME
acltotext, aclfromtext \- convert internal representation to or from external
representation
.SH SYNOPSIS
- .LP
.nf
\fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lsec\fR [ \fIlibrary\fR... ]
#include <sys/acl.h>
\fBchar *\fR\fBacltotext\fR(\fBaclent_t *\fR\fIaclbufp\fR, \fBint\fR \fIaclcnt\fR);
--- 6,15 ----
*** 20,35 ****
.nf
\fBaclent_t *\fR\fBaclfromtext\fR(\fBchar *\fR\fIacltextp\fR, \fBint *\fR\fIaclcnt\fR);
.fi
.SH DESCRIPTION
- .sp
- .LP
The \fBacltotext()\fR function converts an internal \fBACL\fR representation
pointed to by \fIaclbufp\fR into an external \fBACL\fR representation. The
space for the external text string is obtained using \fBmalloc\fR(3C). The
! caller is responsible for freeing the space upon completion..
.sp
.LP
The \fBaclfromtext()\fR function converts an external \fBACL\fR representation
pointed to by \fIacltextp\fR into an internal \fBACL\fR representation. The
space for the list of \fBACL\fR entries is obtained using \fBmalloc\fR(3C). The
--- 19,32 ----
.nf
\fBaclent_t *\fR\fBaclfromtext\fR(\fBchar *\fR\fIacltextp\fR, \fBint *\fR\fIaclcnt\fR);
.fi
.SH DESCRIPTION
The \fBacltotext()\fR function converts an internal \fBACL\fR representation
pointed to by \fIaclbufp\fR into an external \fBACL\fR representation. The
space for the external text string is obtained using \fBmalloc\fR(3C). The
! caller is responsible for freeing the space upon completion.
.sp
.LP
The \fBaclfromtext()\fR function converts an external \fBACL\fR representation
pointed to by \fIacltextp\fR into an internal \fBACL\fR representation. The
space for the list of \fBACL\fR entries is obtained using \fBmalloc\fR(3C). The
*** 204,224 ****
.RS 9n
no access
.RE
.SH RETURN VALUES
- .sp
- .LP
Upon successful completion, the \fBacltotext()\fR function returns a pointer to
a text string. Otherwise, it returns \fBNULL\fR.
.sp
.LP
Upon successful completion, the \fBaclfromtext()\fR function returns a pointer
to a list of \fBACL\fR entries. Otherwise, it returns \fBNULL\fR.
.SH ATTRIBUTES
- .sp
- .LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.sp
.TS
--- 201,217 ----
*** 231,238 ****
_
MT-Level Unsafe
.TE
.SH SEE ALSO
- .sp
- .LP
\fBacl\fR(2), \fBmalloc\fR(3C), \fBattributes\fR(5)
--- 224,229 ----