labelclipping, Xbsltos, Xbcleartos - translate a binary label and clip to the specified width
cc [flag...] file... -ltsol -lDtTsol [library...]
#include <Dt/label_clipping.h> XmString Xbsltos(Display *display, const m_label_t *senslabel, Dimension width, const XmFontList fontlist, const int flags);
XmString Xbcleartos(Display *display, const m_label_t *clearance, Dimension width, const XmFontList fontlist, const int flags);
The calling process must have PRIV_SYS_TRANS_LABEL in its set of effective privileges to translate labels or clearances that dominate the current process' sensitivity label.
display
senslabel
clearance
width
fontlist
flags
These functions return a compound string that represents the character-coded form of the sensitivity label or clearance that is translated. The compound string uses the language and fonts specified in fontlist and is clipped to width. These functions return NULL if the label or clearance is not a valid, required type as defined in the label_encodings(4) file, or not dominated by the process' sensitivity label and the PRIV_SYS_TRANS_LABEL privilege is not asserted.
/usr/dt/include/Dt/label_clipping.h
/etc/security/tsol/label_encodings
Example 1 Translate and Clip a Clearance.
This example translates a clearance to text using the long words specified in the label_encodings(4) file, a font list, and clips the translated clearance to a width of 72 pixels.
xmstr = Xbcleartos(XtDisplay(topLevel), &clearance, 72, fontlist, LONG_WORDS
See attributes(5) for descriptions of the following attributes:
|
The labelclipping functions, Xbsltos() and Xbcleartos(), are obsolete. Use the label_to_str(3TSOL) function instead.
bltos(3TSOL), label_to_str(3TSOL), libtsol(3LIB), label_encodings(4), attributes(5)
See XmStringDraw(3) and FontList(3) for information on the creation and structure of a font list.
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |