Home
last modified time | relevance | path

Searched refs:nv (Results 1 – 25 of 101) sorted by relevance

12345

/openbsd-src/gnu/usr.bin/perl/dist/threads-shared/t/
H A Ddualvar.t48 my ($var, $nv) = @_;
49 ok($var == $nv, 'NV number preserved');
50 ok($var eq $nv, 'String preserved');
64 my $nv = dualvar(3.14, 'PI');
71 my $snv :shared = shared_clone($nv);
75 ok_nv($snv, $nv);
81 my @ary :shared = ($iv, $nv, $uv);
84 ok_nv($ary[1], $nv);
92 @ary = ($iv, $nv, $uv);
95 ok_nv($ary[1], $nv);
[all …]
/openbsd-src/usr.sbin/config/
H A Dmkheaders.c65 struct nvlist *nv; in mkheaders() local
75 for (nv = defoptions; nv != NULL; nv = nv->nv_next) in mkheaders()
76 if (emitopt(nv)) in mkheaders()
85 struct nvlist *nv; in emitcnt() local
95 nv = head; in emitcnt()
97 if (nv == NULL) in emitcnt()
100 strcmp(nam, cntname(nv->nv_name)) != 0 || in emitcnt()
101 cnt != nv->nv_int) in emitcnt()
103 nv = nv->nv_next; in emitcnt()
108 if (nv == NULL) in emitcnt()
[all …]
H A Dsem.c182 struct nvlist *nv; in defattr() local
202 for (nv = a->a_locs; nv != NULL; nv = nv->nv_next) in defattr()
215 has_errobj(struct nvlist *nv, void *obj) in has_errobj() argument
218 for (; nv != NULL; nv = nv->nv_next) in has_errobj()
219 if (nv in has_errobj()
246 struct nvlist *nv; defdev() local
345 struct nvlist *nv; defdevattach() local
499 exclude(struct nvlist * nv,const char * name,const char * what) exclude() argument
518 struct nvlist *nv; resolve() local
615 struct nvlist *nv; addconf() local
709 struct nvlist *nv; enabledev() local
761 struct nvlist *nv; adddev() local
1034 struct nvlist *nv; selectbase() local
1055 onlist(struct nvlist * nv,void * ptr) onlist() argument
[all...]
H A Dutil.c115 struct nvlist *nv; in newnv() local
117 if ((nv = nvhead) == NULL) in newnv()
118 nv = emalloc(sizeof(*nv)); in newnv()
120 nvhead = nv->nv_next; in newnv()
121 nv->nv_next = next; in newnv()
122 nv->nv_name = (char *)name; in newnv()
124 nv->nv_str = str; in newnv()
128 nv->nv_ptr = ptr; in newnv()
130 nv->nv_int = i; in newnv()
131 return nv; in newnv()
[all …]
H A Dmkmakefile.c201 struct nvlist *nv, *nv1; in srcpath() local
206 nv = fi->fi_nvpath; in srcpath()
210 for (nv = fi->fi_nvpath; nv; nv = nv->nv_next) { in srcpath()
211 expand = expandname(nv->nv_name); in srcpath()
212 source = sourcepath(expand ? expand : nv->nv_name); in srcpath()
215 nv->nv_name = intern(expand); in srcpath()
221 if (nv == NULL) in srcpath()
222 nv = fi->fi_nvpath; in srcpath()
230 if (fi->fi_nvpath != nv) in srcpath()
234 fi->fi_nvpath = nv; in srcpath()
[all …]
H A Dmkswap.c90 struct nvlist *nv; in mkoneswap() local
102 nv = cf->cf_root; in mkoneswap()
104 mkdevstr(nv->nv_int), nv->nv_str) < 0) in mkoneswap()
106 nv = cf->cf_dump; in mkoneswap()
108 mkdevstr(nv->nv_int), nv->nv_str) < 0) in mkoneswap()
112 for (nv = cf->cf_swap; nv != NULL; nv in mkoneswap()
[all...]
H A Dmain.c409 struct nvlist *nv, *nvt; in removeoption() local
413 if ((nv = ht_lookup(opttab, name)) != NULL) { in removeoption()
414 if (options == nv) { in removeoption()
415 options = nv->nv_next; in removeoption()
416 nvfree(nv); in removeoption()
420 if (nvt->nv_next == nv) { in removeoption()
422 nvfree(nv); in removeoption()
484 struct nvlist *nv; in do_option() local
487 nv = newnv(name, value, NULL, 0, NULL); in do_option()
488 if (ht_insert(ht, name, nv) == 0) { in do_option()
[all …]
H A Dfiles.c95 struct nvlist *nv; in addfile() local
112 for (nv = nvpath; nv; nv = nv->nv_next) { in addfile()
113 path = nv->nv_name; in addfile()
345 struct nvlist *nv; in fixcount() local
350 nv = newnv(name, NULL, NULL, dev->d_umax, NULL); in fixcount()
351 **p = nv; in fixcount()
352 *p = &nv->nv_next; in fixcount()
353 (void)ht_insert(needcnttab, name, nv); in fixcount()
365 struct nvlist *nv; in fixfsel() local
369 nv = newnv(name, NULL, NULL, sel, NULL); in fixfsel()
[all …]
H A Dmkioconf.c231 struct nvlist *nv; in emitlocnames() local
249 for (nv = a->a_locs, v = 0; nv != NULL; in emitlocnames()
250 nv = nv->nv_next, v++) { in emitlocnames()
251 addlocnami(addlocname(nv->nv_name)); in emitlocnames()
318 struct nvlist *nv; in emitcfdata() local
343 for (nv = a->a_locs, v = 0; nv != NULL; nv = nv->nv_next, v++) in emitcfdata()
345 nv->nv_name, i->i_locs[v]) < 0) in emitcfdata()
H A Dpack.c236 struct nvlist *nv; in addparents() local
254 for (nv = src->i_atattr->a_refs; nv != NULL; nv = nv->nv_next) in addparents()
255 n += nparents(NULL, nv->nv_ptr, src->i_atunit); in addparents()
260 for (nv = src->i_atattr->a_refs; nv != NULL; nv = nv->nv_next) in addparents()
261 n += nparents(p + n, nv->nv_ptr, src->i_atunit); in addparents()
/openbsd-src/bin/csh/
H A Dglob.c89 globtilde(Char **nv, Char *s) in globtilde() argument
102 blkfree(nv); in globtilde()
122 Char **nv, **vl; in globbrace() local
126 nv = vl = xreallocarray(NULL, size, sizeof(Char *)); in globbrace()
141 blkfree(nv); in globbrace()
154 blkfree(nv); in globbrace()
165 blkfree(nv); in globbrace()
191 if (vl == &nv[size]) { in globbrace()
193 nv = xreallocarray(nv, size, sizeof(Char *)); in globbrace()
194 vl = &nv[size - GLOBSPACE]; in globbrace()
[all …]
/openbsd-src/games/backgammon/common_source/
H A Dfancy.c226 int o, n, nv; in fixpos() local
233 nv = abs(new); in fixpos()
236 n = (nv - 1) / 5; in fixpos()
244 if (ov > nv) in fixpos()
245 fixcol(r + inc * (nv - n * 5), nc, abs(ov - nv), ' ', inc); in fixpos()
247 fixcol(r + inc * (ov - o * 5), nc, abs(ov - nv), col, inc); in fixpos()
253 fixcol(r, c, abs(nv - 5), col, inc); in fixpos()
258 if (nv != 5) in fixpos()
259 fixcol(r+inc*nv, c+1, abs(nv-5), ' ', inc); in fixpos()
266 fixcol(r, c + 2, abs(nv - 10), col, inc); in fixpos()
[all …]
/openbsd-src/sys/kern/
H A Dkern_sensors.c42 struct ksensordev *v, *nv; in sensordev_install() local
51 (nv = SLIST_NEXT(v, list)) != NULL; v = nv) in sensordev_install()
52 if (nv->num - v->num > 1) in sensordev_install()
68 struct ksensor *v, *nv; in sensor_attach() local
81 (nv = SLIST_NEXT(v, list)) != NULL; v = nv) in sensor_attach()
82 if (v->type == sens->type && (v->type != nv->type || in sensor_attach()
83 (v->type == nv->type && nv->numt - v->numt > 1))) in sensor_attach()
/openbsd-src/sys/arch/hppa/hppa/
H A Dintr.c336 struct hppa_iv *nv; in softintr_establish() local
338 nv = malloc(sizeof *iv, M_DEVBUF, M_NOWAIT); in softintr_establish()
339 if (!nv) in softintr_establish()
343 iv->next = nv; in softintr_establish()
344 iv = nv; in softintr_establish()
369 struct hppa_iv *nv = iv->next; in softintr_disestablish() local
371 iv->handler = nv->handler; in softintr_disestablish()
372 iv->arg = nv->arg; in softintr_disestablish()
373 iv->next = nv->next; in softintr_disestablish()
374 free(nv, M_DEVBU in softintr_disestablish()
[all...]
/openbsd-src/sys/arch/m88k/include/
H A Datomic.h56 unsigned int nv; in atomic_add_int_nv_sp() local
61 nv = *uip; in atomic_add_int_nv_sp()
64 return nv; in atomic_add_int_nv_sp()
71 unsigned int nv; in atomic_sub_int_nv_sp() local
76 nv = *uip; in atomic_sub_int_nv_sp()
79 return nv; in atomic_sub_int_nv_sp()
/openbsd-src/sbin/isakmpd/
H A Dui.c225 char *v, *nv; in ui_config() local
280 if (asprintf(&nv, in ui_config()
288 conf_set(trans, section, tag, nv, 1, 0); in ui_config()
289 free(nv); in ui_config()
303 nv = v = NULL; in ui_config()
310 asprintf(&nv, "%s,%s", v, vnode->field) : in ui_config()
311 asprintf(&nv, "%s", vnode->field); in ui_config()
319 v = nv; in ui_config()
322 if (nv) { in ui_config()
323 conf_set(trans, section, tag, nv, 1, 0); in ui_config()
[all …]
/openbsd-src/gnu/usr.bin/perl/ext/XS-APItest/t/
H A Dmy_strtod.t8 my ($nv, $rest);
11 ($nv, $rest) = my_strtod('17.265625x');
13 is($nv, 17.265625, 'my_strtod("17.265625x", &e) returns 17.265625');
/openbsd-src/gnu/lib/libiberty/src/
H A Dsafe-ctype.c132 #define nv _sch_isnvsp macro
150 #define Z (const unsigned short) (nv |cn) /* NUL */
151 #define M (const unsigned short) (nv|sp |cn) /* cursor movement: \f \v */
153 #define T (const unsigned short) (nv|sp|bl|cn) /* tab */
154 #define S (const unsigned short) (nv|sp|bl|pr) /* space */
/openbsd-src/usr.bin/rsync/
H A Dio.c392 uint64_t nv; in io_write_ulong() local
407 nv = htole64(val); in io_write_ulong()
411 else if (!io_write_buf(sess, fd, &nv, sizeof(int64_t))) in io_write_ulong()
432 uint32_t nv; in io_write_uint() local
434 nv = htole32(val); in io_write_uint()
436 if (!io_write_buf(sess, fd, &nv, sizeof(uint32_t))) { in io_write_uint()
536 int32_t nv = htole32(val); in io_lowbuffer_int() local
538 io_lowbuffer_buf(sess, buf, bufpos, buflen, &nv, sizeof(int32_t)); in io_lowbuffer_int()
547 int32_t nv = htole32(val); in io_buffer_int() local
549 io_buffer_buf(buf, bufpos, buflen, &nv, sizeof(int32_t)); in io_buffer_int()
/openbsd-src/regress/sbin/ipsecctl/
H A DMakefile40 ${IPSECCTL} -nv -f - | diff -u ${.CURDIR}/ipsec${n}.ok /dev/stdin
64 ${IPSECCTL} -nv -f - 2>&1 | diff -u ${.CURDIR}/safail${n}.ok /dev/stdin
72 ${IPSECCTL} -nv -f - 2>&1 | diff -u ${.CURDIR}/ipsecfail${n}.ok /dev/stdin
80 ${IPSECCTL} -nv -f - | diff -u ${.CURDIR}/ike${n}.ok /dev/stdin
88 ${IPSECCTL} -nv -f - 2>&1 | diff -u ${.CURDIR}/ikefail${n}.ok /dev/stdin
/openbsd-src/sys/arch/mips64/include/
H A Datomic.h179 unsigned int rv, nv; in _atomic_add_int_nv() local
187 : "=&r" (rv), "+m" (*uip), "=&r" (nv) in _atomic_add_int_nv()
198 unsigned long rv, nv; in _atomic_add_long_nv() local
206 : "=&r" (rv), "+m" (*uip), "=&r" (nv) in _atomic_add_long_nv()
/openbsd-src/sys/dev/ic/
H A Dqlw.c1535 struct qlw_nvram_1040 *nv = (struct qlw_nvram_1040 *)&sc->sc_nvram; in qlw_parse_nvram_1040() local
1541 sc->sc_initiator[0] = (nv->config1 >> 4); in qlw_parse_nvram_1040()
1543 sc->sc_retry_count[0] = nv->retry_count; in qlw_parse_nvram_1040()
1544 sc->sc_retry_delay[0] = nv->retry_delay; in qlw_parse_nvram_1040()
1545 sc->sc_reset_delay[0] = nv->reset_delay; in qlw_parse_nvram_1040()
1546 sc->sc_tag_age_limit[0] = nv->tag_age_limit; in qlw_parse_nvram_1040()
1547 sc->sc_selection_timeout[0] = letoh16(nv->selection_timeout); in qlw_parse_nvram_1040()
1548 sc->sc_max_queue_depth[0] = letoh16(nv->max_queue_depth); in qlw_parse_nvram_1040()
1549 sc->sc_async_data_setup[0] = (nv->config2 & 0x0f); in qlw_parse_nvram_1040()
1550 sc->sc_req_ack_active_neg[0] = ((nv->config2 & 0x10) >> 4); in qlw_parse_nvram_1040()
[all …]
/openbsd-src/sys/dev/isa/
H A Dpcppi.c90 u_int8_t v, nv; in pcppi_match() local
121 nv = bus_space_read_1(ia->ia_iot, ppi_ioh, 0); /* XXX */ in pcppi_match()
122 if (((nv ^ v) & 0x01) == 0x01) in pcppi_match()
125 nv = bus_space_read_1(ia->ia_iot, ppi_ioh, 0); /* XXX */ in pcppi_match()
126 if (((nv ^ v) & 0x01) != 0x00) { in pcppi_match()
/openbsd-src/gnu/usr.bin/perl/ext/XS-APItest/
H A Dnumeric.xs69 NV nv; variable
71 nv = my_strtod(SvPV_force_nolen(sv), &endptr);
72 PUSHs(sv_2mortal(newSVnv(nv)));
/openbsd-src/usr.sbin/ospf6d/
H A Darea.c50 struct vertex *v, *nv; in area_del() local
66 for (v = RB_MIN(lsa_tree, &area->lsa_tree); v != NULL; v = nv) { in area_del()
67 nv = RB_NEXT(lsa_tree, &area->lsa_tree, v); in area_del()

12345