| /illumos-gate/usr/src/lib/libslp/clib/ |
| H A D | slp_config.c | 118 char *val, *p; local 140 if (val = strchr(p, '=')) { 141 *val++ = 0; 142 skip_space(&val); 144 val[strlen(val) - 1] = 0; 148 SLPSetProperty(p, val ? val : ""); 167 * On the first invocation, *state should == the value of the property 172 int slp_get_next_onlist(char **state) { argument [all...] |
| /illumos-gate/usr/src/cmd/lp/filter/postscript/postcomm/ |
| H A D | postcomm.h | 88 * current state. Just helps convert strings representing the current state into 96 char *state; /* printer's current status */ member in struct:__anon800 97 int val; /* value returned by getstatus() */ member in struct:__anon800 110 * when it finds the printer state or encounters an entry with NULL in the state 155 short val; /* and its termio.h value */ member in struct:__anon801
|
| /illumos-gate/usr/src/cmd/sgs/libconv/common/ |
| H A D | globals.c | 40 * val - The value for which a string is desired. 47 * strings corresponding to val. 52 * If val lies in the range [0-(num_msg-1)], then the string 53 * corresponding to it is returned. If val is outside the range, 59 map_msg2str(Conv_inv_buf_t *inv_buf, Conv_elfvalue_t val, argument 63 if ((val < num_msg) && (msg[val] != 0)) 64 return (MSG_ORIG_STRTAB(msg[val], local_sgs_msg)); 67 return (conv_invalid_val(inv_buf, val, flags)); 78 * val i 98 map_vd2str(Conv_inv_buf_t *inv_buf, Conv_elfvalue_t val, Conv_fmt_flags_t flags, const Val_desc *vdp, const char *local_sgs_msg) argument 112 map_vd22str(Conv_inv_buf_t *inv_buf, uchar_t osabi, Half mach, Conv_elfvalue_t val, Conv_fmt_flags_t flags, const Val_desc2 *vdp, const char *local_sgs_msg) argument 349 conv_strtol_uvalue_t *state = (conv_strtol_uvalue_t *)uvalue; local [all...] |
| /illumos-gate/usr/src/uts/sun4u/blade/os/ |
| H A D | blade.c | 175 uint8_t val; local 181 val = pci_config_get8(platform_isa_handle, 0x58); 196 pci_config_put8(platform_isa_handle, 0x58, val & 0xFB); 198 pci_config_put8(platform_isa_handle, 0x58, val); 205 pci_config_put8(platform_isa_handle, 0x58, val & 0xF7); 207 pci_config_put8(platform_isa_handle, 0x58, val); 272 cpu_sgn_update(ushort_t sig, uchar_t state, uchar_t sub_state, int cpuid) argument 277 sc.sig_info.signature = CPU_SIG_BLD(sig, state, sub_state);
|
| /illumos-gate/usr/src/cmd/lp/filter/postscript/postio/ |
| H A D | postio.h | 133 * current state. Just helps convert strings representing the current state into 139 char *state; /* printer's current status */ member in struct:__anon802 140 int val; /* value returned by getstatus() */ member in struct:__anon802 150 * The lookup terminates when we get a match or when an entry with a NULL state 189 short val; /* and its termio.h value */ member in struct:__anon803
|
| /illumos-gate/usr/src/boot/sys/boot/common/ |
| H A D | interp_parse.c | 88 char *val, *p, *q, *copy = NULL; local 91 enum { STR, VAR, WHITE } state; local 98 /* Initialize vector and state */ 100 state = STR; 106 switch (state) { 129 state = WHITE; 142 state = VAR; 153 state = STR; 166 if ((val = variable_lookup(p)) != NULL) { 167 size_t len = strlen(val); [all...] |
| /illumos-gate/usr/src/lib/libdladm/common/ |
| H A D | flowprop.c | 169 prop_db_state_t state; local 171 state.ls_op = process_prop_set; 172 state.ls_name = flow; 173 state.ls_propname = prop_name; 174 state.ls_propval = prop_val; 175 state.ls_valcntp = &val_cnt; 176 state.ls_initop = NULL; 178 return (FLOWPROP_RW_DB(handle, &state, B_TRUE)); 185 prop_db_state_t state; local 187 state 200 prop_db_state_t state; local 295 void *val; local [all...] |
| /illumos-gate/usr/src/lib/libpp/common/ |
| H A D | ppop.c | 44 set(register long* p, register long op, int val) argument 48 r = p == &pp.state ? &pp.ro_state : p == &pp.mode ? &pp.ro_mode : &pp.ro_option; 53 if (val) 58 debug((-7, "set(%s)=%s", p == &pp.state ? "state" : p == &pp.mode ? "mode" : "option", p == &pp.state ? ppstatestr(*p) : p == &pp.mode ? ppmodestr(*p) : ppoptionstr(*p))); 119 old_state = pp.state; 154 pp.state |= (COMPILE|FILEPOP|HEADER|JOINING|STRIP|NOSPACE|PASSEOF); 156 pp.state |= (COMPILE|FILEPOP|HEADER|STRIP|NOSPACE|PASSEOF); 227 pp.state 277 static int state; local [all...] |
| /illumos-gate/usr/src/cmd/prstat/ |
| H A D | prutil.c | 157 Format_pct(char *str, float val, int length) argument 159 if (val > (float)100) 160 val = 100; 161 if (val < 0) 162 val = 0; 164 if (val < (float)9.95) 165 (void) snprintf(str, length, "%1.1f", val); 167 (void) snprintf(str, length, "%.0f", val); 184 Format_state(char *str, char state, processorid_t pr_id, int length) argument 186 switch (state) { [all...] |
| /illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
| H A D | util.c | 79 Dbg_util_dbnotify(Lm_list *lml, rd_event_e event, r_state_e state) argument 100 switch (state) { 285 Dbg_util_lcinterface(Rt_map *lmp, int tag, char *val) argument 299 EC_NATPTR(val));
|
| /illumos-gate/usr/src/cmd/ldapcachemgr/ |
| H A D | cachemgr_discovery.c | 122 * If the term is of the form '(tag=val)', *t_inout and *v_inout 123 * are set to the tag and val strings, respectively. 143 char *val = NULL; local 144 char *state = NULL; local 152 state = *s_inout; 154 /* type: 0 = start, 1 = '(tag=val)' type, 2 = 'tag' type */ 157 switch (*state) { 162 state++; 168 *s_inout = state; 172 switch (*state) { 238 char *tag, *val, *state; local 437 char *attrs, *tag, *val, *state; local [all...] |
| /illumos-gate/usr/src/cmd/svc/svcadm/ |
| H A D | synch.c | 101 read_astring_prop(scf_propertygroup_t *pg, scf_value_t *val, argument 117 if (scf_property_get_value(prop, val) != 0) { 132 if (scf_value_get_astring(val, value, value_sz) <= 0) { 188 scf_value_t *val; local 190 if ((val = scf_value_create(h)) == NULL) 193 r = scf_iter_next_value(iter, val); 201 if (scf_value_get_astring(val, fmri, len) <= 0) { 207 scf_value_destroy(val); 243 * or is in maintenance state). 248 char state[MAX_SCF_STATE_STRING_S local 457 scf_value_t *val; local [all...] |
| /illumos-gate/usr/src/cmd/th_tools/ |
| H A D | th_manage.c | 59 int val; member in struct:__anon1879 93 command = cmd_table[i].val; 119 command = cmd_table[i].val; 141 " th_manage name instance state\n"); 143 " th_manage path state\n"); 196 perror("th_manage - setting state failed"); 259 perror("th_manage - setting state failed"); 307 uint_t state = 0; local 313 if ((devctl_device_getstate(dcp, &state)) == -1) { 319 switch (state) { [all...] |
| /illumos-gate/usr/src/uts/common/io/chxge/com/ |
| H A D | cphy.h | 36 int reg_addr, unsigned int *val); 38 int reg_addr, unsigned int val); 79 int state; /* Link status state machine */ member in struct:cphy 93 int reg_addr, unsigned int *val); 95 int reg_addr, unsigned int val); 107 unsigned int val) 109 return cphy->mdio_write(cphy->adapter, cphy->addr, mmd, reg, val); 119 unsigned int val) 121 return mdio_write(cphy, 0, reg, val); 106 mdio_write(struct cphy *cphy, int mmd, int reg, unsigned int val) argument 118 simple_mdio_write(struct cphy *cphy, int reg, unsigned int val) argument [all...] |
| /illumos-gate/usr/src/lib/libc/port/locale/ |
| H A D | collate.c | 268 compar = key - p->val; 281 int *len, int *pri, int which, const int **state) 295 *state = NULL; 303 if ((sptr = *state) != NULL) { 306 *state = *sptr ? sptr : NULL; 369 *state = *sptr ? sptr : NULL; 389 const int32_t *state; local 398 state = NULL; 437 while (*t || state) { 439 &state); 280 _collate_lookup(const struct lc_collate *lcc, const wchar_t *t, int *len, int *pri, int which, const int **state) argument 516 uint32_t val = (uint32_t)loc->collate->lc_pri_count[pass]; local 538 const int32_t *state; local [all...] |
| /illumos-gate/usr/src/boot/lib/libz/test/ |
| H A D | infcover.c | 248 unsigned next, val; local 254 val = 1; 257 val = (val << 4) + *hex - '0'; 259 val = (val << 4) + *hex - 'A' + 10; 261 val = (val << 4) + *hex - 'a' + 10; 262 else if (val != 1 && val < 3 451 struct inflate_state *state; local [all...] |
| /illumos-gate/usr/src/uts/common/io/ |
| H A D | eventfd.c | 35 kmutex_t efd_lock; /* lock protecting state */ 41 eventfd_state_t *efd_next; /* next state on global list */ 47 static kmutex_t eventfd_lock; /* lock protecting state */ 51 static eventfd_state_t *eventfd_state; /* global list of state */ 57 eventfd_state_t *state; local 75 state = ddi_get_soft_state(eventfd_softstate, minor); 78 state->efd_next = eventfd_state; 79 eventfd_state = state; 90 eventfd_state_t *state; local 92 uint64_t val, ova local 155 eventfd_state_t *state; local 157 uint64_t val, oval; local 217 eventfd_state_t *state; local 243 eventfd_state_t *state; local 268 eventfd_state_t *state, **sp; local [all...] |
| /illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
| H A D | svc.c | 43 * state (present, unusable, service state, and replaced). 520 char *str, *loc, val; local 581 val = *loc; 588 *loc = val; 593 *loc = val; 647 * service state and unusable). 668 * For the "service state" and "unusable" methods svc_get_state goes on 669 * to return the instance state as below, and the two methods map that 673 * Instance state wit 708 scf_value_t *val = NULL; local 712 char *state; local 815 int state; local 839 int state; local 864 int state; local 888 int state; local [all...] |
| /illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/ |
| H A D | prof_solaris.c | 42 void *state = NULL; local 53 PROFILE_ITER_LIST_SECTION, &state); 55 code = profile_iterator(&state, &name, &value); 83 if (state != NULL) 84 profile_iterator_free(&state); 582 void *state = NULL, *state2 = NULL; local 601 PROFILE_ITER_LIST_SECTION, &state); 603 code = profile_iterator(&state, &source, &dummy_val); 647 if (state != NULL) 648 profile_iterator_free(&state); 797 __profile_validate(profile_t profile, int *val_err, char **val) argument [all...] |
| /illumos-gate/usr/src/lib/libshare/autofs/ |
| H A D | libshare_autofs.c | 298 * Want to know if the specified service is in the desired state 305 char *state; local 308 state = smf_get_state(service); 309 if (state != NULL) { 310 /* got the state so get the equality for the return value */ 311 ret = strcmp(state, chkstate) == 0 ? B_TRUE : B_FALSE; 312 free(state); 475 int val; local 477 val = strtoul(value, NULL, 0); 481 if (val < proto_option [all...] |
| /illumos-gate/usr/src/lib/libproject/common/ |
| H A D | setproject.c | 105 unsigned long long val; local 113 val = strtoull(component, &t, 10); 117 rctlblk_set_value(blk, (rctl_qty_t)val); 190 rctl_set(char *ctl_name, char *val, struct ps_prochandle *Pr, int flags) argument 195 uint_t state = 0; local 212 remove_spaces(val); 222 for (tmp = val; *tmp != '\0'; tmp++) { 258 for (; ; val++) { 260 switch (*val) { 262 if (state [all...] |
| /illumos-gate/usr/src/lib/libc/port/gen/ |
| H A D | nftw.c | 150 struct FTW state; member in struct:Var 182 int val = -1; local 297 vp->state.quit = 0; 304 rc = (*fn)(vp->tmppath, &statb, type, &vp->state); 306 val = rc; 307 skip = (vp->state.quit & FTW_SKD); 308 if (rc != 0 || type != FTW_D || (vp->state.quit & FTW_PRUNE)) 334 rc = (*fn)(vp->tmppath, &statb, type, &vp->state); 367 oldbase = vp->state.base; 368 vp->state [all...] |
| /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
| H A D | parms.c | 227 uint32_t state, metric; local 333 state = IS_REMOTE | IS_PASSIVE; 345 state = IS_REMOTE | IS_PASSIVE | IS_EXTERNAL; 366 state = IS_REMOTE; 372 state = IS_REMOTE | IS_PASSIVE | IS_ALIAS; 381 if (0 != (state & (IS_PASSIVE | IS_REMOTE))) 382 state |= IS_NO_RDISC; 383 if (state & IS_PASSIVE) 384 state |= IS_NO_RIP; 389 ((state 496 get_passwd(char *tgt, char *val, struct parm *parmp, uint16_t type, boolean_t safe) argument 610 char delim, *val0 = 0, *tgt, *val, *p; local [all...] |
| /illumos-gate/usr/src/cmd/mdb/common/modules/svc.configd/ |
| H A D | configd.c | 40 enum_lookup(char *out, size_t size, mdb_ctf_id_t id, int val, argument 47 if ((cp = mdb_ctf_enum_name(id, val)) != NULL) { 54 mdb_snprintf(out, size, "? (%d)", val); 104 char state[20]; local 130 enum_lookup(state, sizeof (state), thread_state_enum, 132 make_lower(state, sizeof (state)); 139 (void *)addr, t.ti_thread, state, oldstate,
|
| /illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
| H A D | dwarf.c | 191 * state - Object, CIE, and FDE state for current request 207 dump_cfi_state_t *state, const char *msg, int indent) 217 dwarf_regname(state->e_machine, _rnum, _buf, sizeof (_buf)) 250 cur_pc = state->fdeinitloc; 269 oper1 = state->ciecalign * LOW_OP(op); 281 state->file, state->sh_name); 285 oper1 *= state->ciedalign; 323 &cur_pc, state 206 dump_cfi(uchar_t *data, uint64_t off, uint64_t *ndx, uint_t len, dump_cfi_state_t *state, const char *msg, int indent) argument 965 uint64_t val; local [all...] |