Merge branch 'less_closed'
[unleashed.git] / usr / src / man / man3tsol / blcompare.3tsol
blob2d6536997caaddf627b49864ff7ef1b636af29e8
1 '\" te
2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH BLCOMPARE 3TSOL "Jul 20, 2007"
7 .SH NAME
8 blcompare, blequal, bldominates, blstrictdom, blinrange \- compare binary
9 labels
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fBcc\fR [\fIflag\fR...] \fIfile\fR... \fB-ltsol\fR [\fIlibrary\fR...]
14 #include <tsol/label.h>
16 \fBint\fR \fBblequal\fR(\fBconst m_label_t *\fR\fIlabel1\fR, \fBconst m_label_t *\fR\fIlabel2\fR);
17 .fi
19 .LP
20 .nf
21 \fBint\fR \fBbldominates\fR(\fBconst m_label_t *\fR\fIlabel1\fR, \fBconst m_label_t *\fR\fIlabel2\fR);
22 .fi
24 .LP
25 .nf
26 \fBint\fR \fBblstrictdom\fR(\fBconst m_label_t *\fR\fIlabel1\fR, \fBconst m_label_t *\fR\fIlabel2\fR);
27 .fi
29 .LP
30 .nf
31 \fBint\fR \fBblinrange\fR(\fBconst m_label_t *\fR\fIlabel\fR, \fBconst brange_t *\fR\fIrange\fR);
32 .fi
34 .SH DESCRIPTION
35 .sp
36 .LP
37 These functions compare binary labels for meeting a particular condition.
38 .sp
39 .LP
40 The \fBblequal()\fR function compares two labels for equality.
41 .sp
42 .LP
43 The \fBbldominates()\fR  function compares label \fIlabel1\fR for dominance
44 over label \fIlabel2\fR.
45 .sp
46 .LP
47 The \fBblstrictdom()\fR  function compares label \fIlabel1\fR for strict
48 dominance over label \fIlabel2\fR.
49 .sp
50 .LP
51 The \fBblinrange()\fR  function compares label \fIlabel\fR for dominance over
52 \fIrange\fR\(->\fIlower_bound\fR and \fIrange\fR\(->\fIupper_bound\fR for
53 dominance over level \fIlabel\fR.
54 .SH RETURN VALUES
55 .sp
56 .LP
57 These functions return non-zero if their respective conditions are met,
58 otherwise zero is returned.
59 .SH ATTRIBUTES
60 .sp
61 .LP
62 See \fBattributes\fR(5) for descriptions of the following attributes:
63 .sp
65 .sp
66 .TS
67 box;
68 c | c
69 l | l .
70 ATTRIBUTE TYPE  ATTRIBUTE VALUE
72 Interface Stability     Committed
74 MT-Level        MT-Safe
75 .TE
77 .SH SEE ALSO
78 .sp
79 .LP
80 \fBgetplabel\fR(3TSOL), \fBlabel_to_str\fR(3TSOL), \fBlibtsol\fR(3LIB),
81 \fBucred_getlabel\fR(3C), \fBlabel_encodings\fR(4), \fBattributes\fR(5),
82 \fBlabels\fR(5)
83 .sp
84 .LP
85 \fIDetermining the Relationship Between Two Labels\fR in \fISolaris Trusted
86 Extensions Developer\&'s Guide\fR
87 .SH NOTES
88 .sp
89 .LP
90 The functionality described on this manual page is available only if the system
91 is configured with Trusted Extensions.