| /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/dns-sd/ |
| H A D | ClientCommon.c | 46 const char *GetNextLabel(const char *cstr, char label[64]) argument 48 char *ptr = label; 49 while (*cstr && *cstr != '.') // While we have characters in the label... 60 int val = v0 * 100 + v1 * 10 + v2; local 64 if (val == 0) val = '-'; 65 if (val <= 255) { c = (char)val; cstr += 2; } 69 if (ptr >= label+64) { label[6 [all...] |
| /illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
| H A D | pcibus_hba.c | 66 int e, *val; local 115 INQUIRY_DEVICE_TYPE, &val) == 1) 117 TOPO_STORAGE_DEVICE_TYPE, TOPO_PROP_IMMUTABLE, *val, &e); 254 char *propstrpm, *propstrlabel, *pm, *label; local 263 "pci_receptacle_instanciate: rececptacle label not " 270 "pci_receptacle_instantiate: rececptacle label count %d " 274 label = propstrlabel; 293 if (label) { 294 if (topo_node_label_set(recep, label, &err) < 0) { 301 label [all...] |
| H A D | did_props.c | 76 * be a legacy-hc style FMRI based on the label, so the label needs 226 * 'val' will remained unchanged and we'll return -1. Otherwise 'val' 230 promprop2uint(topo_mod_t *mod, di_node_t n, const char *propnm, uint_t *val) argument 243 bcopy(buf, val, sizeof (uint_t)); 257 * 'val' remains unchanged and we return -1. Otherwise 'val' gets the 261 hwprop2uint(di_node_t n, const char *propnm, uint_t *val) argument 270 bcopy(buf, val, sizeo 629 char *label; local [all...] |
| /illumos-gate/usr/src/lib/libtsol/common/ |
| H A D | btos.c | 29 * Binary label to label string translations. 41 #include <tsol/label.h> 51 static bslabel_t slow; /* static admin_low high sensitivity label */ 52 static bslabel_t shigh; /* static admin_high sensitivity label */ 59 return_string(char **string, int str_len, char *val) argument 62 size_t val_len = strlen(val) + 1; 73 bcopy(val, cpyptr, val_len); 89 alloc_string(char **string, size_t size, char val) argument 96 **string = val; 145 bsltos(const bslabel_t *label, char **string, size_t str_len, int flags) argument 317 sbsltos(const bslabel_t *label, size_t len) argument [all...] |
| /illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
| H A D | bitset.c | 106 log10(int val) argument 112 val /= 10; 113 } while (val); 139 bitset_print(bitset_t *bs, char *label, int width) argument 154 mdb_printf("%s: empty-set", label); 158 label_width = strlen(label) + 1; 184 mdb_printf("%s:", label); 209 bitset_print(bs, "label", 80);
|
| /illumos-gate/usr/src/lib/fm/topo/modules/SUNW,SPARC-Enterprise/ioboard/ |
| H A D | opl_ioboard.c | 95 int val; local 104 if (di_prom_prop_data(pp, &buf) < sizeof (val)) 106 bcopy(buf, &val, sizeof (val)); 107 return (val); 158 * Create the ioboard node. Add fru and label properties, and create room 170 char label[8]; local 205 /* Add label for this ioboard */ 207 (void) snprintf(label, sizeof (label), IKKAKU_LABE [all...] |
| /illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
| H A D | x86pi_subr.c | 179 char *val = NULL; local 310 csn = val = topo_mod_strdup(mod, hcfmri->serial_number); 337 if (val != NULL) { 338 topo_mod_strfree(mod, val); 339 val = NULL; 354 server = val = x86pi_get_serverid(mod); 380 if (val != NULL) 381 topo_mod_strfree(mod, val); 442 * Set the label for a topo node. 445 x86pi_set_label(topo_mod_t *mod, const char *label, cons argument 676 int *val; local [all...] |
| /illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
| H A D | pi_meth.c | 309 mem_fmri_create(topo_mod_t *mod, char *serial, char *label) argument 321 if (label != NULL) 322 err |= nvlist_add_string(fmri, FM_FMRI_MEM_UNUM, label); 339 char *serial = NULL, *label = NULL; local 358 (void) topo_node_label(node, &label, &err); 360 asru = mem_fmri_create(mod, serial, label); 362 if (label != NULL) 363 topo_mod_strfree(mod, label); 410 uint64_t val; local 414 &val) [all...] |
| H A D | pi_subr.c | 447 * to use as the label. 461 * expect the label from the PRI. The "fru" property can not 468 /* This node is not a FRU. It has no label */ 476 * The node is a FRU. Get the NAC name to use as a label. 480 /* No NAC label. Return NULL */ 484 /* Return a copy of the label */ 982 char *val = NULL; local 1014 val = NULL; 1016 &val); 1017 if (result != 0 || val 1269 char *label; local [all...] |
| /illumos-gate/usr/src/cmd/fmtmsg/ |
| H A D | main.c | 111 #define BIGUSAGE "fmtmsg [-a action] [-c class] [-l label] [-s severity] [-t tag]\n [-u subclass[,subclass[,...]]] [text]\n" 215 static char labelbuf[128]; /* Buf for message label */ 368 int val; /* Converted severity value */ 412 val = (int) strtol(noesc(valstr), &p, 0); 413 if ((val > 4) && (p == tokend)) { 430 rtnval->sevvalue = val; 468 * fmtmsg [-a action] [-c classification] [-l label] [-s severity] [-t tag] 482 * -l label String that identifies the source of the message 527 char *label; /* Ptr to user's label */ 364 int val; /* Converted severity value */ local 522 char *label; /* Ptr to user's label */ local [all...] |
| /illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
| H A D | chip.c | 234 char *val = NULL; local 240 if (nvlist_lookup_string(fmri, FM_FMRI_HC_SERIAL_ID, &val) != 0) 244 serial = topo_mod_strdup(mod, val); 355 char *val = NULL; local 361 &val) != 0) 365 serial = topo_mod_strdup(mod, val); 515 * serial, part, revision & label 534 char *label; local 545 label = NULL; 547 label [all...] |
| /illumos-gate/usr/src/cmd/oamuser/user/ |
| H A D | funcs.c | 41 #include <tsol/label.h> 61 static const char label[] = "label"; variable 92 { USERATTR_CLEARANCE, check_label, label }, 93 { USERATTR_MINLABEL, check_label, label }, 157 char *val = keys[i].newvalue; local 161 if (val == NULL) 164 len = strlen(key) + strlen(val) + 2; 167 (void) snprintf(arg, len, "%s=%s", key, val);
|
| /illumos-gate/usr/src/uts/common/os/ |
| H A D | tlabel.c | 37 #include <sys/tsol/label.h> 67 bslabel_t label; local 76 bsllow(&label); 77 l_admin_low = labelalloc(&label, default_doi, KM_SLEEP); 78 bslhigh(&label); 79 l_admin_high = labelalloc(&label, default_doi, KM_SLEEP); 86 labelalloc(const bslabel_t *val, uint32_t doi, int flag) argument 94 if (val == NULL) 97 bcopy(val, &lab->tsl_label, sizeof (bslabel_t)); 107 labeldup(const ts_label_t *val, in argument [all...] |
| /illumos-gate/usr/src/lib/libc/port/gen/ |
| H A D | fmtmsg.c | 109 #define ST_LBL "label" 129 * MV_LBL "label" selected 181 * SEPSTR is the string that separates the "label" from what follows it, 407 int val; /* Converted severity value */ local 451 val = (int)strtol(noesc(valstr), &p, 0); 452 if ((val > 4) && (p == tokend)) { 478 rtnval->sevvalue = val; 573 /* Check for "label" */ 786 * void writemsg(buf, size, verbosity, label, severity, text, action, tag) 793 * const char *label Th 811 writemsg(char *buf, size_t size, int verbosity, const char *label, int severity, const char *text, const char *action, const char *tag) argument 1088 fmtmsg(long class, const char *label, int severity, const char *text, const char *action, const char *tag) argument [all...] |
| /illumos-gate/usr/src/cmd/vscan/vscanadm/ |
| H A D | vscanadm.c | 473 char *val; local 504 if ((val = strchr(argv[i], '=')) == NULL) 507 *val = 0; 508 val++; 519 if ((vs_adm_parse(vap, val, &sep)) != 0) { 521 gettext("invalid property value"), val); 846 char *val; local 859 if ((val = strchr(argv[i], '=')) == NULL) 863 *val = '\0'; 864 val 898 char *label = NULL; local [all...] |
| /illumos-gate/usr/src/lib/fm/topo/modules/common/disk/ |
| H A D | disk_common.c | 33 * in which 'bay'. A disk's 'label' and 'authority' information come from 112 * group: protocol properties: resource, asru, label, fru 128 char *label = NULL; local 132 /* pull the label property down from our parent 'bay' node */ 133 if (topo_node_label(parent, &label, &err) != 0) { 135 "label error %s\n", topo_strerror(err)); 138 if (topo_node_label_set(dtn, label, &err) != 0) { 271 if (label) 272 topo_mod_strfree(mod, label); 860 int *val; local [all...] |
| /illumos-gate/usr/src/lib/libprtdiag/common/ |
| H A D | display_sun4v.c | 199 char val[PICL_PROPNAMELEN_MAX], *p, *q; local 203 if (picl_get_propval_by_name(nodeh, PICL_PROP_BINDING_NAME, val, 204 sizeof (val)) == PICL_SUCCESS) { 205 if (strstr(val, PICL_CLASS_PCIEX)) 208 else if (strstr(val, PICL_CLASS_PCI)) 227 if (strstr(val, "SUNW,") != NULL) 228 p = strchr(val, ',') + 1; 230 p = val; 258 char val[PICL_PROPNAMELEN_MAX]; local 268 err = picl_get_propval_by_name(nodeh, PICL_PROP_LABEL, val, 436 char val[PICL_PROPNAMELEN_MAX]; local 454 char *val = args; local 751 char val[PICL_PROPNAMELEN_MAX]; local 1124 char val[PICL_PROPNAMELEN_MAX]; local 1354 char label[PICL_PROPNAMELEN_MAX]; local 1756 char label[PICL_PROPNAMELEN_MAX]; local 2069 char val[PICL_PROPNAMELEN_MAX]; local [all...] |
| /illumos-gate/usr/src/cmd/picl/plugins/sun4u/littleneck/psvcpolicy/ |
| H A D | psvcpolicy.c | 169 int val; local 184 if (sscanf(s, "%127s %d", var, &val) != 2) 186 if (val < 1) 187 val = 1; /* clamp min value */ 192 *(p->pvar) = val; 414 char label[32]; local 445 status = psvc_get_attr(hdlp, id, PSVC_LABEL_ATTR, label); 472 syslog(LOG_ERR, LOWTEMP_CRITICAL_MSG, temp, label); 476 syslog(LOG_ERR, LOWTEMP_WARNING_MSG, temp, label); 480 syslog(LOG_ERR, HIGHTEMP_CRITICAL_MSG, temp, label); 536 char label[32]; local [all...] |
| /illumos-gate/usr/src/cmd/picl/plugins/sun4u/psvc/psvcpolicy/ |
| H A D | psvcpolicy.c | 182 int val; local 191 if (sscanf(s, "%127s %d", var, &val) != 2) 193 if (val < 1) 194 val = 1; /* clamp min value */ 199 *(p->pvar) = val; 316 char label[32]; local 372 * and just label the sensor bad but not the WHOLE CPU module. 386 status = psvc_get_attr(hdlp, id, PSVC_LABEL_ATTR, label); 415 temp, label); 432 temp, label); 537 char label[32]; local 829 char label[32]; local 904 char label[32]; local 1074 char label[32]; local [all...] |
| /illumos-gate/usr/src/cmd/picl/plugins/sun4v/snmp/ |
| H A D | snmpplugin.c | 268 static void add_prop(picl_nodehdl_t nodeh, picl_prophdl_t *php, char *label, 1393 int val; local 1395 if ((err = snmp_get_int(hdl, oidstr, row, &val, snmp_syserr_p)) != -1) { 1606 add_prop(picl_nodehdl_t nodeh, picl_prophdl_t *php, char *label, argument 1614 int val; local 1757 row, &val, snmp_syserr_p); 1759 if ((ret == 0) && (val == ST_TRUE)) 1769 row, &val, snmp_syserr_p); 1771 if ((ret == 0) && (val == ST_TRUE)) 1781 &val, snmp_syserr_ [all...] |
| /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
| H A D | snoop_ip.c | 48 #include <tsol/label.h> 390 "Flow label = 0x%x", flow); 1037 const char *label[] = {"MLD", "RSVP", "AN"}; local 1047 value < sizeof (label) / sizeof (label[0]) ? 1048 label[value] : "???"); 1153 int val; member in struct:snoop_pair 1177 get_pair_byval(struct snoop_pair pairlist[], int val) argument 1182 if (pairlist[i].val == val) [all...] |
| /illumos-gate/usr/src/cmd/csh/ |
| H A D | sh.func.c | 63 void local_setenv(tchar *name, tchar *val); 82 static struct biltins label = { S_, dolabel, 0, 0 }; local 89 label.bname = cp; 90 return (&label); 924 bferr("label not found"); 1139 local_setenv(tchar *name, tchar *val) argument 1148 /* tprintf("TRACE- local_setenv(%t, %t)\n", name, val); */ 1149 /* printf("IN local_setenv args = (%t)\n", val); */ 1181 cp = strspl(S_EQ, val); 1199 local_setenv(name, val); [all...] |
| /illumos-gate/usr/src/uts/sun4u/sys/ |
| H A D | envctrl_gen.h | 179 uchar_t val; /* chip reading */ member in struct:envctrl_chip 193 char label[ENVCTRL_MAXSTRLEN]; /* indicates temp. sensor location */ member in struct:envctrl_temp
|
| /illumos-gate/usr/src/uts/common/c2/ |
| H A D | audit_token.c | 54 #include <sys/tsol/label.h> 642 int32_t val; local 652 val = -1; 653 adr_int32(&adr, &val, 1); 673 int64_t val; local 683 val = -1; 684 adr_int64(&adr, &val, 1); 1189 * pointer to au_membuf chain containing a label token. 1192 au_to_label(bslabel_t *label) argument 1202 adr_char(&adr, (char *)label, sizeo [all...] |
| /illumos-gate/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/ |
| H A D | psvcpolicy.c | 189 int val; local 204 if (sscanf(s, "%127s %d", var, &val) != 2) 206 if (val < 1) 207 val = 1; /* clamp min value */ 212 *(p->pvar) = val; 1621 char label[PSVC_MAX_STR_LEN]; local 1648 status = psvc_get_attr(hdlp, id, PSVC_LABEL_ATTR, label); 1660 syslog(LOG_ERR, gettext("Device %s inserted"), label); 1697 syslog(LOG_ERR, gettext("Device %s removed"), label);
|