Searched +defs:val +defs:first (Results 1 - 25 of 72) sorted by relevance

123

/illumos-gate/usr/src/lib/libnvpair/
H A Dnvpair_json.c120 boolean_t first = B_TRUE; local
128 if (!first)
131 first = B_FALSE;
204 hrtime_t val; local
205 VERIFY0(nvpair_value_hrtime(curr, &val));
206 FPRINTF(fp, "%llu", (unsigned long long)val);
211 double val; local
212 VERIFY0(nvpair_value_double(curr, &val));
213 FPRINTF(fp, "%f", val);
225 char **val; local
240 nvlist_t **val; local
255 boolean_t *val; local
270 uchar_t *val; local
284 uint8_t *val; local
298 int8_t *val; local
312 uint16_t *val; local
326 int16_t *val; local
340 uint32_t *val; local
354 int32_t *val; local
368 uint64_t *val; local
383 int64_t *val; local
[all...]
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dnis_common.c127 const char *first; local
129 const char *val = *valp; local
132 if ((last = memchr(val, '#', vallen)) == 0) {
133 last = val + vallen;
135 for (first = val; first < last && isspace(*first); first++) {
138 for (/* cstyle */; first < las
227 char *val; local
283 char *val; local
[all...]
H A Dgetnetgrent.c213 * want fast insertion and pop-first, so a linked list will do fine).
214 * If we insert at the head, we get a depth-first search; insertion
215 * at the tail gives breadth-first (?), which seems preferable (?).
292 /* Insert in expansion list (insert at end for breadth-first search */
304 struct netgrnam *first; local
306 if ((first = ngt->expand_first) == 0) {
309 if ((ngt->expand_first = first->expand_next) == 0) {
312 return (first->name);
365 char *val; local
371 &val,
724 char *val; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dns_nis.c172 int first, err; local
173 char *key, *nkey, *val; local
179 first = 1;
182 val = NULL; vl = 0;
197 if (first) {
198 first = 0;
200 &nkey, &nkl, &val, &vl);
205 &nkey, &nkl, &val, &vl);
215 &nkey, &nkl, &val, &vl);
222 &nkey, &nkl, &val,
314 int first, err, count; local
315 char *key, *nkey, *val, *my_nismap; local
438 char *key = NULL, *val = NULL; local
[all...]
/illumos-gate/usr/src/boot/lib/libz/test/
H A Dinfcover.c64 struct mem_item *first; /* pointer to first item in list, or NULL */ member in struct:mem_zone
99 item->next = zone->first;
100 zone->first = item;
125 next = zone->first;
128 zone->first = next->next; /* first one is it, remove from list */
164 zone->first = NULL;
210 item = zone->first;
248 unsigned next, val; local
[all...]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_confmgr.c113 int first = 1; local
165 if (!first && i == NS_LDAP_FILE_VERSION_P) {
174 first = 0;
744 /* assume VERSION is set and it outputs first */
824 char val[BUFSIZE]; local
882 (void) strcpy(val, NS_LDAP_VERSION_1);
884 val, &error);
886 (void) strcpy(val, NS_LDAP_VERSION_2);
888 val, &error);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtables.c129 uint8_t val = 0; local
133 val ^= dst->s6_addr[i];
134 return (val);
549 boolean_t first; local
565 for (first = _B_TRUE, p = statebits; p->t_bits > 0; p++) {
569 if (first) {
571 first = _B_FALSE;
574 if (first)
578 for (first = _B_TRUE, p = flagbits; p->t_bits > 0; p++) {
582 if (first) {
[all...]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_string.c116 uintmax_t val = 0; local
130 if ((val = CTOI(c)) >= base)
134 if (val > multmax)
140 val *= base;
142 if ((uintmax_t)ULLONG_MAX - val < (uintmax_t)i)
145 val += i;
148 return (neg ? -val : val);
262 * Create a copy of string s, but only duplicate the first n bytes.
498 * Same as strchr, but we only search the first
682 int first = FALSE; local
[all...]
/illumos-gate/usr/src/cmd/file/
H A Dmagicutils.c120 long val; local
148 val = strtol(p, &p, base);
149 if (val > UCHAR_MAX || val < 0 || errno != 0) {
155 *s++ = (char)val;
198 * tables: mtab1, if first = 1; mtab2 otherwise.
203 * Two magic tables may need to be created. The first
210 * def_position_tests(). The parameter "first" would
223 f_mkmtab(char *magfile, int cflg, int first) argument
234 if (first) {
538 f_ckmtab(char *buf, int bufsize, int first) argument
1098 f_getmaxoffset(int first) argument
[all...]
/illumos-gate/usr/src/cmd/avs/dsstat/
H A Dsndr_stats.c356 int first = 1; local
456 printQueueStats(first, cur->cur_set);
462 if (first) {
464 first = 0;
488 printQueueStats(first, cur->cur_set);
494 if (first) {
496 first = 0;
827 printQueueStats(int first, kstat_t *cur_set) argument
829 uint32_t *val; local
831 if (! first) {
[all...]
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_util.c675 int first = 1, i; local
691 if (first) {
692 first = 0;
697 first = 1;
718 escapeSpecialChars(__nis_value_t *val) { argument
723 /* Assume val is always non NULL */
725 for (i = 0; i < val->numVals; i++) {
730 s = val->val[i].value;
731 for (j = 0, count = 0; j < val
763 removeEscapeChars(__nis_value_t *val) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/rdc/
H A Drdc.c876 #define rdc_get_print(kvar, str, fmt, val) \
877 if (mdb_readvar(&(val), #kvar) == -1) { \
882 mdb_printf("%-20s" fmt "\n", str ":", val)
1003 uint_t val; local
1012 val = (uint_t)mdb_strtoull(argv[1].a_un.a_str);
1016 * The structure offset first.
1031 if (mdb_vwrite(&val, sizeof (val), pokeaddr) != sizeof (val)) {
1055 uint_t val; local
1286 int first, st, en, pos, len; local
[all...]
/illumos-gate/usr/src/cmd/svc/svcprop/
H A Dsvcprop.c197 print_value(scf_value_t *val) argument
202 bufsz = scf_value_get_as_string(val, NULL, 0) + 1;
208 r = scf_value_get_as_string(val, buf, bufsz);
226 scf_value_t *val; local
228 int ret, first, err; local
272 (val = scf_value_create(hndl)) == NULL)
278 first = 1;
279 while ((ret = scf_iter_next_value(iter, val)) == 1) {
280 if (first)
281 first
[all...]
/illumos-gate/usr/src/uts/common/io/audio/drv/audiots/
H A Daudiots.c86 * modules being loaded first.
275 * Driver initialization, called when driver is first loaded.
533 /* attempt to unregister from the framework first */
747 uint16_t first; local
759 if ((first = audiots_read_ac97(state, reg)) != 0) {
760 next = first;
1448 uint64_t val; local
1461 val = port->tp_count;
1463 return (val);
/illumos-gate/usr/src/uts/common/pcmcia/cis/
H A Dcis_handlers.c322 * For the first ten config registers we set the present flags in the
393 * For the first ten config registers, set the appropriate
960 * We only understand how to parse the first
1100 uint32_t exponent, mantisa, val, digits = 0; local
1123 val = CISTPL_PD_MAN(mantisa) * CISTPL_PD_EXP(exponent);
1130 val = val/10; /* do this since our mantissa table is X 10 */
1137 val = val + (digits * CISTPL_PD_EXP(exponent-1));
1139 val /
1178 int scale = 1, first; local
[all...]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dmdeg.c253 * Since the old table was full, the first free entry
697 uint64_t val; local
699 if (md_get_prop_val(md, node, prop->namep, &val) != 0)
702 if (prop->ps_val != val)
784 boolean_t first = B_TRUE; local
801 (first) ? "" : ",", prop->namep, prop->ps_val);
810 (first) ? "" : ",", prop->namep, prop->ps_str);
822 if (first)
823 first = B_FALSE;
852 boolean_t first local
[all...]
/illumos-gate/usr/src/uts/i86pc/os/cpupm/
H A Dcpupm_mach.c150 static boolean_t first = B_TRUE; local
167 first = B_FALSE;
187 first = B_FALSE;
264 first = B_FALSE;
271 if (first) {
287 first = B_FALSE;
795 cpupm_notify_handler(ACPI_HANDLE obj, UINT32 val, void *ctx) argument
805 entry->nq_handler(obj, val, entry->nq_ctx);
923 cpupm_event_notify_handler(ACPI_HANDLE obj, UINT32 val, void *ctx) argument
937 if (val
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/
H A Ddiskmon_conf.c122 long val; local
126 val = strtol(prop, NULL, 0);
128 if (val == 0 && errno != 0)
130 else if (val > INT_MAX || val < INT_MIN) {
136 *value = (int)val;
193 link_indicator(indicator_t **first, indicator_t *to_add) argument
196 dm_assert(first != NULL);
198 if (*first == NULL)
199 *first
236 link_indaction(ind_action_t **first, ind_action_t *to_add) argument
279 link_indrule(indrule_t **first, indrule_t *to_add) argument
[all...]
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm_loader.c107 boolean_t first = B_TRUE; local
118 if (first) {
120 first = B_FALSE;
566 char *val; local
578 val = strchr(opt, '=');
579 if (val != NULL) {
580 *val++ = '\0';
585 optval = strtol(val, &rest, 10);
587 bam_error(_("invalid boot entry number: %s\n"), val);
595 bam_error(_("invalid boot entry number: %s\n"), val);
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dnvdisc.c238 static void assign(Namval_t *np,const char* val,int flags,Namfun_t *handle) argument
248 if(val && (tp=nv_type(np)) && (nr=nv_open(val,sh.var_tree,NV_VARNAME|NV_ARRAY|NV_NOADD|NV_NOFAIL)) && tp==nv_type(nr))
262 if(val || isblocked(bp,type))
266 nv_putv(np,val,flags,handle);
277 nv_putval(SH_VALNOD, val, (flags&NV_INTEGER)?flags:NV_NOFREE);
296 if(val)
320 nv_putv(np,val,flags,handle);
328 nv_putv(np, val, flags, handle);
427 * If <event> is NULL, and <action> is NULL, return the first even
581 putdisc(Namval_t* np, const char* val, int flag, Namfun_t* fp) argument
759 put_notify(Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
816 num_clone(register Namval_t *np, void *val) argument
886 const char *val = mp->nvalue.cp; local
973 clone_putv(Namval_t *np,const char* val,int flags,Namfun_t *handle) argument
1248 put_table(register Namval_t* np, const char* val, int flags, Namfun_t* fp) argument
1277 register int first=1; local
[all...]
H A Dpath.c91 /* system call so we can save us to call access(2) first */
305 void path_delete(Pathcomp_t *first) argument
307 register Pathcomp_t *pp=first, *old=0, *ppnext;
391 register Pathcomp_t *oldpp,*first; local
405 first = (pp->flags&PATH_CDPATH)?pp->shp->cdpathlist:path_get("");
406 for(oldpp=first; oldpp && oldpp!=pp; oldpp=oldpp->next)
419 path_chkpaths(first,0,pp,offset);
483 const char *val; local
487 if(val=sh_scoped(shp,(PATHNOD))->nvalue.cp)
489 pp = (void*)path_addpath((Pathcomp_t*)shp->pathlist,val,PATH_PAT
1414 path_addcomp(Pathcomp_t *first, Pathcomp_t *old,const char *name, int flag) argument
1466 path_chkpaths(Pathcomp_t *first, Pathcomp_t* old,Pathcomp_t *pp, int offset) argument
1563 path_addpath(Pathcomp_t *first, register const char *path,int type) argument
1623 path_dup(Pathcomp_t *first) argument
1637 path_newdir(Pathcomp_t *first) argument
1691 path_unsetfpath(Pathcomp_t *first) argument
1736 path_dirfind(Pathcomp_t *first,const char *name,int c) argument
1762 talias_put(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
[all...]
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_dialog.c234 const struct sip_value *val; local
236 val = sip_get_header_value(_dialog->sip_dlg_remote_target,
238 if (val == NULL)
240 req_uri = &((sip_hdr_value_t *)val)->cftr_uri;
301 * If the route set is not empty, and the first URI in the route set
307 * If the route set is not empty, and its first URI does not contain the
308 * lr parameter, the UAC MUST place the first URI from the route set
326 boolean_t first = B_TRUE; local
347 const struct sip_value *val; local
349 val
868 const struct sip_value *val; local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/nsctl/
H A Dnsctl.c501 uintptr_t val = wsp->walk_addr; local
504 if (!val)
510 /* move on to next val */
513 val + OFFSETOF(nsc_val_t, sv_next)) == -1) {
1511 mdb_printf("%-?s %8T%8-s %8Tname\n", "val", "value");
1886 nsc_mem_type(const int first, nsc_mem_t *mp) argument
1890 if (first) {
1907 int first; local
1918 for (first = 1, i = 0;
1919 i < (sizeof (type_mem) / sizeof (nsc_mem_t)); first
[all...]
/illumos-gate/usr/src/cmd/itadm/
H A Ditadm.c816 boolean_t first = B_TRUE; local
898 if (!script && first) {
901 first = B_FALSE;
1372 * Create the portal group and first portal
1432 boolean_t first = B_TRUE; local
1461 if (!script && first) {
1464 first = B_FALSE;
1727 boolean_t first = B_TRUE; local
1769 if (!script && first) {
1772 first
1941 boolean_t val = B_FALSE; local
[all...]
/illumos-gate/usr/src/uts/common/avs/ns/rdc/
H A Drdc_bitmap.c2114 int first, st, en; local
2120 first = st = FBA_TO_LOG_NUM(fba_pos);
2123 BMAP_BIT_SET((uchar_t *)bitmask, st - first);
2143 int first, st, en; local
2165 first = st = FBA_TO_LOG_NUM(fba_pos);
2194 BMAP_BIT_SET((uchar_t *)bitmask, st - first);
2267 int first, st, en; local
2277 first = st = FBA_TO_LOG_NUM(fba_pos);
2293 (BMAP_BIT_ISSET(ptr, st - first))) &&
2583 rdc_bmap_ref_byte_force(rdc_k_info_t *krdc, int ind, unsigned int val) argument
2636 rdc_bmap_ref_int_force(rdc_k_info_t *krdc, int ind, unsigned int val) argument
[all...]

Completed in 118 milliseconds

123