Lines Matching defs:l

63 unhex(const char **h, uchar_t *l, int len)
85 *l++ = byte;
105 htol(const char *s, m_label_t *l)
108 uchar_t *lp = (uchar_t *)&(((_mac_label_impl_t *)l)->_lclass);
113 if (!unhex(&h, lp, 2) || (LCLASS(l) < 0)) {
116 lp = (uchar_t *)&(((_mac_label_impl_t *)l)->_comps);
154 hexstr_to_label(const char *s, m_label_t *l)
160 _LOW_LABEL(l, SUN_MAC_ID);
163 _HIGH_LABEL(l, SUN_MAC_ID);
166 _LOW_LABEL(l, SUN_MAC_ID);
167 if (htol(s, l) == 0)
192 * l = label to create or modify.
202 * Exit l = parsed label value.
206 * e = M_BAD_LABEL (-2 L_BAD_CLASSIFICATION), problems with l
213 * ENOMEM, unable to allocate memory for l.
214 * EINVAL, invalid argument, l != NULL or
220 str_to_label(const char *str, m_label_t **l, const m_label_type_t t, uint_t f,
239 if (*l == NULL) {
240 if ((*l = m_label_alloc(t)) == NULL) {
247 _LOW_LABEL(*l, id);
249 } else if (_MTYPE(*l, SUN_INVALID_ID) &&
251 _LOW_LABEL(*l, id);
253 } else if (!(_MTYPE(*l, SUN_MAC_ID) || _MTYPE(*l, SUN_CLR_ID))) {
286 id = _MGETTYPE(*l);
288 _LOW_LABEL(*l, id);
291 _HIGH_LABEL(*l, id);
294 if (htol(s, *l) != 0) {
314 slcall.label = **l;
337 **l = slret.label;
383 m_label_t *l;
388 if ((l = malloc(sizeof (_mac_label_impl_t))) == NULL) {
391 _MSETTYPE(l, SUN_INVALID_ID);
397 return (l);
403 * Entry l = label to duplicate.
405 * Exit d = duplicate copy of l.
412 * EINVAL, invalid argument, l == NULL or
418 m_label_dup(m_label_t **d, const m_label_t *l)
429 (void) memcpy(*d, l, sizeof (_mac_label_impl_t));
436 * Entry l = label to free.
443 m_label_free(m_label_t *l)
445 if (l)
446 free(l);