Lines Matching defs:label
29 * atohexlabel - Convert a human readable label to its internal
44 #include <tsol/label.h>
61 gettext("atohexlabel: bad previous label\n"));
81 m_label_t *label = NULL; /* binary labels */
82 char ascii[PIPE_BUF]; /* human readable label */
83 char *hex = NULL; /* internal label to print */
84 int err = 0; /* label error */
108 gettext("usage: %s [-c] [human readable label]\n"),
115 /* use label on command line */
119 /* read label from standard input */
121 perror(gettext("reading ASCII coded label"));
138 if (str_to_label(ascii, &label, USER_CLEAR, L_NO_CORRECTION,
142 if (label_to_str(label, &hex, M_INTERNAL, DEF_NAMES) != 0) {
147 m_label_free(label);
150 if (str_to_label(ascii, &label, MAC_LABEL, L_NO_CORRECTION,
154 if (label_to_str(label, &hex, M_INTERNAL, DEF_NAMES) != 0) {
159 m_label_free(label);