summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjedgar <jedgar@FreeBSD.org>2001-03-23 11:30:31 +0000
committerjedgar <jedgar@FreeBSD.org>2001-03-23 11:30:31 +0000
commit3f5bbae0c4035dc8b5339fcc37cee61d1ae84e19 (patch)
tree70c2f43b1a7875ba1a8910a2b5e75069ca4715db /lib
parent89f49c75bbef5c24b80a9e87936fdb73de452ce5 (diff)
downloadFreeBSD-src-3f5bbae0c4035dc8b5339fcc37cee61d1ae84e19.zip
FreeBSD-src-3f5bbae0c4035dc8b5339fcc37cee61d1ae84e19.tar.gz
Correct the acl_set_permset and acl_set_tag_type man pages
which somehow got mixed up with the acl_get_* man pages. Submitted by: ru
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/posix1e/acl_set_permset.331
-rw-r--r--lib/libc/posix1e/acl_set_tag_type.332
-rw-r--r--lib/libposix1e/acl_set_permset.331
-rw-r--r--lib/libposix1e/acl_set_tag_type.332
4 files changed, 60 insertions, 66 deletions
diff --git a/lib/libc/posix1e/acl_set_permset.3 b/lib/libc/posix1e/acl_set_permset.3
index 512246c..3a877d0 100644
--- a/lib/libc/posix1e/acl_set_permset.3
+++ b/lib/libc/posix1e/acl_set_permset.3
@@ -26,27 +26,24 @@
.\" $FreeBSD$
.\"
.Dd March 10, 2001
-.Dt ACL_GET_PERMSET 3
+.Dt ACL_SET_PERMSET 3
.Os
.Sh NAME
-.Nm acl_get_permset
-.Nd Retrieve permset from an ACL entry
+.Nm acl_set_permset
+.Nd set the permissions of an ACL entry
.Sh LIBRARY
.Lb libposix1e
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <sys/acl.h>
.Ft int
-.Fn acl_get_permset "acl_entry_t entry_d" "acl_permset_t *permset_p"
+.Fn acl_set_permset "acl_entry_t entry_d" "acl_permset_t permset_d"
.Sh DESCRIPTION
-.Fn acl_get_permset
-is a POSIX.1e call that returns via
-.Ar permset_p
-a descriptor to the permission set in the ACL entry
-.Ar entry_d .
-Subsequent operations using the returned permission set operate
-on the permission set within the ACL entry.
-.Ar perm .
+.Fn acl_set_permset
+is a POSIX.1e call that sets the permissions of ACL entry
+.Fa entry_d
+with the permissions contained in
+.Fa permset_d .
.Sh RETURN VALUES
Upon successful completion, the function will return a value of
.Va 0 .
@@ -57,7 +54,7 @@ will be returned, and
will be set to indicate the error.
.Sh ERRORS
If the following condition occurs, the
-.Fn acl_get_permset
+.Fn acl_set_permset
function will return a value of
.Va -1
and set
@@ -66,7 +63,7 @@ to the corresponding value:
.Bl -tag -width Er
.It Bq Er EINVAL
Argument
-.Ar entry_d
+.Fa entry_d
is not a valid descriptor for an ACL entry.
.El
.Sh SEE ALSO
@@ -74,7 +71,7 @@ is not a valid descriptor for an ACL entry.
.Xr acl_add_perm 3 ,
.Xr acl_clear_perms 3 ,
.Xr acl_delete_perm 3 ,
-.Xr acl_set_permset 3 ,
+.Xr acl_get_permset 3 ,
.Xr posix1e 3
.Sh STANDARDS
POSIX.1e is described in IEEE POSIX.1e draft 17.
@@ -82,11 +79,11 @@ POSIX.1e is described in IEEE POSIX.1e draft 17.
POSIX.1e support was introduced in
.Fx 4.0 .
The
-.Fn acl_get_permset
+.Fn acl_set_permset
function was added in
.Fx 5.0 .
.Sh AUTHORS
The
-.Fn acl_get_permset
+.Fn acl_set_permset
function was written by
.An Chris D. Faulhaber Aq jedgar@fxp.org .
diff --git a/lib/libc/posix1e/acl_set_tag_type.3 b/lib/libc/posix1e/acl_set_tag_type.3
index 08c62be..9eeceba 100644
--- a/lib/libc/posix1e/acl_set_tag_type.3
+++ b/lib/libc/posix1e/acl_set_tag_type.3
@@ -26,26 +26,24 @@
.\" $FreeBSD$
.\"
.Dd March 10, 2001
-.Dt ACL_GET_TAG_TYPE 3
+.Dt ACL_SET_TAG_TYPE 3
.Os
.Sh NAME
-.Nm acl_get_tag_type
-.Nd Calculate and set ACL mask permissions
+.Nm acl_set_tag_type
+.Nd set the tag type of an ACL entry
.Sh LIBRARY
.Lb libposix1e
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <sys/acl.h>
.Ft int
-.Fn acl_get_tag_type "acl_entry_t entry_d, acl_tag_t *tag_type_p"
+.Fn acl_set_tag_type "acl_entry_t entry_d" "acl_tag_t tag_type"
.Sh DESCRIPTION
-.Fn acl_get_tag_type
-is a POSIX.1e call that returs the tag type for the ACL entry
-.Ar entry_d .
-Upon successful completion, the location referred to by the argument
-.Ar tag_type_p
-shall be set to the tag type of the ACL entry
-.Ar entry_d .
+.Fn acl_set_tag_type
+is a POSIX.1e call that sets the ACL tag type of ACL entry
+.Fa entry_d
+to the value of
+.Fa tag_type .
.Sh RETURN VALUES
Upon successful completion, the function will return a value of
.Va 0 .
@@ -56,7 +54,7 @@ will be returned, and
will be set to indicate the error.
.Sh ERRORS
If any of the following conditions occur, the
-.Fn acl_get_tag_type
+.Fn acl_set_tag_type
function will return a value of
.Va -1
and set
@@ -65,8 +63,10 @@ to the corresponding value:
.Bl -tag -width Er
.It Bq Er EINVAL
Argument
-.Ar entry_d
-is not a valid descriptor for an ACL entry;
+.Fa entry_d
+is not a valid descriptor for an ACL entry. Argument
+.Fa tag_type
+is not a valid ACL tag type.
.El
.Sh SEE ALSO
.Xr acl 3 ,
@@ -78,11 +78,11 @@ POSIX.1e is described in IEEE POSIX.1e draft 17.
POSIX.1e support was introduced in
.Fx 4.0 .
The
-.Fn acl_get_tag_type
+.Fn acl_set_tag_type
function was added in
.Fx 5.0 .
.Sh AUTHORS
The
-.Fn acl_get_tag_type
+.Fn acl_set_tag_type
function was written by
.An Chris D. Faulhaber Aq jedgar@fxp.org .
diff --git a/lib/libposix1e/acl_set_permset.3 b/lib/libposix1e/acl_set_permset.3
index 512246c..3a877d0 100644
--- a/lib/libposix1e/acl_set_permset.3
+++ b/lib/libposix1e/acl_set_permset.3
@@ -26,27 +26,24 @@
.\" $FreeBSD$
.\"
.Dd March 10, 2001
-.Dt ACL_GET_PERMSET 3
+.Dt ACL_SET_PERMSET 3
.Os
.Sh NAME
-.Nm acl_get_permset
-.Nd Retrieve permset from an ACL entry
+.Nm acl_set_permset
+.Nd set the permissions of an ACL entry
.Sh LIBRARY
.Lb libposix1e
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <sys/acl.h>
.Ft int
-.Fn acl_get_permset "acl_entry_t entry_d" "acl_permset_t *permset_p"
+.Fn acl_set_permset "acl_entry_t entry_d" "acl_permset_t permset_d"
.Sh DESCRIPTION
-.Fn acl_get_permset
-is a POSIX.1e call that returns via
-.Ar permset_p
-a descriptor to the permission set in the ACL entry
-.Ar entry_d .
-Subsequent operations using the returned permission set operate
-on the permission set within the ACL entry.
-.Ar perm .
+.Fn acl_set_permset
+is a POSIX.1e call that sets the permissions of ACL entry
+.Fa entry_d
+with the permissions contained in
+.Fa permset_d .
.Sh RETURN VALUES
Upon successful completion, the function will return a value of
.Va 0 .
@@ -57,7 +54,7 @@ will be returned, and
will be set to indicate the error.
.Sh ERRORS
If the following condition occurs, the
-.Fn acl_get_permset
+.Fn acl_set_permset
function will return a value of
.Va -1
and set
@@ -66,7 +63,7 @@ to the corresponding value:
.Bl -tag -width Er
.It Bq Er EINVAL
Argument
-.Ar entry_d
+.Fa entry_d
is not a valid descriptor for an ACL entry.
.El
.Sh SEE ALSO
@@ -74,7 +71,7 @@ is not a valid descriptor for an ACL entry.
.Xr acl_add_perm 3 ,
.Xr acl_clear_perms 3 ,
.Xr acl_delete_perm 3 ,
-.Xr acl_set_permset 3 ,
+.Xr acl_get_permset 3 ,
.Xr posix1e 3
.Sh STANDARDS
POSIX.1e is described in IEEE POSIX.1e draft 17.
@@ -82,11 +79,11 @@ POSIX.1e is described in IEEE POSIX.1e draft 17.
POSIX.1e support was introduced in
.Fx 4.0 .
The
-.Fn acl_get_permset
+.Fn acl_set_permset
function was added in
.Fx 5.0 .
.Sh AUTHORS
The
-.Fn acl_get_permset
+.Fn acl_set_permset
function was written by
.An Chris D. Faulhaber Aq jedgar@fxp.org .
diff --git a/lib/libposix1e/acl_set_tag_type.3 b/lib/libposix1e/acl_set_tag_type.3
index 08c62be..9eeceba 100644
--- a/lib/libposix1e/acl_set_tag_type.3
+++ b/lib/libposix1e/acl_set_tag_type.3
@@ -26,26 +26,24 @@
.\" $FreeBSD$
.\"
.Dd March 10, 2001
-.Dt ACL_GET_TAG_TYPE 3
+.Dt ACL_SET_TAG_TYPE 3
.Os
.Sh NAME
-.Nm acl_get_tag_type
-.Nd Calculate and set ACL mask permissions
+.Nm acl_set_tag_type
+.Nd set the tag type of an ACL entry
.Sh LIBRARY
.Lb libposix1e
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <sys/acl.h>
.Ft int
-.Fn acl_get_tag_type "acl_entry_t entry_d, acl_tag_t *tag_type_p"
+.Fn acl_set_tag_type "acl_entry_t entry_d" "acl_tag_t tag_type"
.Sh DESCRIPTION
-.Fn acl_get_tag_type
-is a POSIX.1e call that returs the tag type for the ACL entry
-.Ar entry_d .
-Upon successful completion, the location referred to by the argument
-.Ar tag_type_p
-shall be set to the tag type of the ACL entry
-.Ar entry_d .
+.Fn acl_set_tag_type
+is a POSIX.1e call that sets the ACL tag type of ACL entry
+.Fa entry_d
+to the value of
+.Fa tag_type .
.Sh RETURN VALUES
Upon successful completion, the function will return a value of
.Va 0 .
@@ -56,7 +54,7 @@ will be returned, and
will be set to indicate the error.
.Sh ERRORS
If any of the following conditions occur, the
-.Fn acl_get_tag_type
+.Fn acl_set_tag_type
function will return a value of
.Va -1
and set
@@ -65,8 +63,10 @@ to the corresponding value:
.Bl -tag -width Er
.It Bq Er EINVAL
Argument
-.Ar entry_d
-is not a valid descriptor for an ACL entry;
+.Fa entry_d
+is not a valid descriptor for an ACL entry. Argument
+.Fa tag_type
+is not a valid ACL tag type.
.El
.Sh SEE ALSO
.Xr acl 3 ,
@@ -78,11 +78,11 @@ POSIX.1e is described in IEEE POSIX.1e draft 17.
POSIX.1e support was introduced in
.Fx 4.0 .
The
-.Fn acl_get_tag_type
+.Fn acl_set_tag_type
function was added in
.Fx 5.0 .
.Sh AUTHORS
The
-.Fn acl_get_tag_type
+.Fn acl_set_tag_type
function was written by
.An Chris D. Faulhaber Aq jedgar@fxp.org .
OpenPOWER on IntegriCloud