Tizen 2.0 Release
[framework/base/acl.git] / man / man3 / acl_set_tag_type.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_SET_TAG_TYPE 3
26 .Os "Linux ACL"
27 .Sh NAME
28 .Nm acl_set_tag_type
29 .Nd set the tag type of 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_set_tag_type "acl_entry_t entry_d" "acl_tag_t tag_type"
37 .Sh DESCRIPTION
38 The
39 .Fn acl_set_tag_type
40 function sets the tag type of the ACL entry indicated by the argument
41 .Va entry_d
42 to the value of the argument
43 .Va tag_type .
44 .Pp
45 Any ACL entry descriptors that refer to the entry referred to by
46 .Va entry_d
47 continue to refer to that entry.
48 .Sh RETURN VALUE
49 .Rv -std acl_set_tag_type
50 .Sh ERRORS
51 If any of the following conditions occur, the
52 .Fn acl_set_tag_type
53 function returns
54 .Li -1
55 and sets
56 .Va errno
57 to the corresponding value:
58 .Bl -tag -width Er
59 .It Bq Er EINVAL
60 The argument
61 .Va entry_d
62 is not a valid descriptor for an ACL entry.
63 .Pp
64 The argument
65 .Va tag_type
66 is not a valid tag type.
67 .El
68 .Sh STANDARDS
69 IEEE Std 1003.1e draft 17 (\(lqPOSIX.1e\(rq, abandoned)
70 .Sh SEE ALSO
71 .Xr acl_create_entry 3 ,
72 .Xr acl_get_permset 3 ,
73 .Xr acl_get_qualifier 3 ,
74 .Xr acl_get_tag_type 3 ,
75 .Xr acl_set_entry 3 ,
76 .Xr acl_set_permset 3 ,
77 .Xr acl_set_qualifier 3 ,
78 .Xr acl 5
79 .Sh AUTHOR
80 Derived from the FreeBSD manual pages written by
81 .An "Robert N M Watson" Aq rwatson@FreeBSD.org ,
82 and adapted for Linux by
83 .An "Andreas Gruenbacher" Aq a.gruenbacher@bestbits.at .