Home
last modified time | relevance | path

Searched refs:xp (Results 1 – 25 of 126) sorted by relevance

123456

/openbsd/src/bin/ksh/
Dpath.c48 char *xp = Xstring(*xsp, xp); in make_path() local
81 XcheckN(*xsp, xp, len); in make_path()
82 memcpy(xp, cwd, len); in make_path()
83 xp += len; in make_path()
85 Xput(*xsp, xp, '/'); in make_path()
87 *phys_pathp = Xlength(*xsp, xp); in make_path()
89 XcheckN(*xsp, xp, plen); in make_path()
90 memcpy(xp, plist, plen); in make_path()
91 xp += plen; in make_path()
93 Xput(*xsp, xp, '/'); in make_path()
[all …]
Dexpand.h11 char *xp;
13 Xinit(xs, xp, 128, ATEMP); /* allocate initial string */
15 Xcheck(xs, xp); /* expand string if necessary */
16 Xput(xs, xp, c); /* add character */
18 return Xclose(xs, xp); /* resize string */
36 #define Xinit(xs, xp, length, area) do { \ argument
41 xp = (xs).beg; \
45 #define Xput(xs, xp, c) (*xp++ = (c)) argument
48 #define XcheckN(xs, xp, n) do { \ argument
49 ptrdiff_t more = ((xp) + (n)) - (xs).end; \
[all …]
Deval.c737 varsub(Expand *xp, char *sp, char *word, in varsub() argument
752 xp->var = NULL; in varsub()
781 xp->str = str_save(u64ton((uint64_t)c, 10), ATEMP); in varsub()
819 xp->str = null; in varsub()
820 xp->var = global(sp); in varsub()
823 xp->u.strv = (const char **) genv->loc->argv + 1; in varsub()
824 xp->str = *xp->u.strv++; in varsub()
825 xp->split = c == '@'; /* $@ */ in varsub()
848 xp->str = null; in varsub()
853 xp->u.strv = (const char **) XPptrv(wv); in varsub()
[all …]
Dhistory.c246 char *xp; in c_fc() local
256 Xinit(xs, xp, n, hist_source->areap); in c_fc()
257 while ((n = shf_read(xp, Xnleft(xs, xp), shf)) > 0) { in c_fc()
258 xp += n; in c_fc()
259 if (Xnleft(xs, xp) <= 0) in c_fc()
260 XcheckN(xs, xp, Xlength(xs, xp)); in c_fc()
269 *xp = '\0'; in c_fc()
270 strip_nuls(Xstring(xs, xp), Xlength(xs, xp)); in c_fc()
272 ret = hist_execute(Xstring(xs, xp)); in c_fc()
336 char *xp; in hist_replace() local
[all …]
Dlex.c878 char *xp; in readhere() local
886 Xinit(xs, xp, 256, ATEMP); in readhere()
891 xpos = Xsavepos(xs, xp); in readhere()
900 Xcheck(xs, xp); in readhere()
901 Xput(xs, xp, c); in readhere()
908 xp = Xrestpos(xs, xp, xpos); in readhere()
915 Xcheck(xs, xp); in readhere()
916 Xput(xs, xp, c); in readhere()
918 Xcheck(xs, xp); in readhere()
919 Xput(xs, xp, c); in readhere()
[all …]
/openbsd/src/usr.sbin/bgpd/
Drde_decide.c336 struct prefix *xp, *np, *insertp = ep; in prefix_insert() local
343 for (xp = ep; xp != NULL; xp = np) { in prefix_insert()
344 np = TAILQ_NEXT(xp, entry.list.rib); in prefix_insert()
346 if ((preferred = (prefix_cmp(new, xp, &testall) > 0))) { in prefix_insert()
353 TAILQ_REMOVE(&re->prefix_h, xp, entry.list.rib); in prefix_insert()
354 TAILQ_INSERT_TAIL(&redo, xp, entry.list.rib); in prefix_insert()
379 insertp = xp; in prefix_insert()
388 prefix_set_dmetric(TAILQ_PREV(xp, prefix_queue, in prefix_insert()
389 entry.list.rib), xp); in prefix_insert()
408 xp = TAILQ_FIRST(&redo); in prefix_insert()
[all …]
/openbsd/src/sys/dev/usb/
Dxhci.c798 xhci_skip_all(struct xhci_pipe *xp) in xhci_skip_all() argument
802 if (xp->skip) { in xhci_skip_all()
808 last = SIMPLEQ_FIRST(&xp->pipe.queue); in xhci_skip_all()
815 xfer = SIMPLEQ_FIRST(&xp->pipe.queue); in xhci_skip_all()
823 xp->skip = 0; in xhci_skip_all()
831 struct xhci_pipe *xp; in xhci_event_xfer() local
844 xp = sc->sc_sdevs[slot].pipes[dci - 1]; in xhci_event_xfer()
845 if (xp == NULL) { in xhci_event_xfer()
856 slot, xp->ring.ntrb - xp->free_trbs)); in xhci_event_xfer()
857 xhci_skip_all(xp); in xhci_event_xfer()
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/
D920501-23.c9 ldw(xp)si*xp;{return xp[4];} in ldw() argument
10 ldws_m(xp)si*xp;{si x;do{x=xp[3];xp+=3;}while(x);} in ldws_m() argument
/openbsd/src/gnu/usr.bin/perl/cpan/Text-Tabs/lib/Text/
DWrap.pm33 my ($ip, $xp, @t) = map +( defined $_ ? $_ : '' ), @_;
40 my $nll = $columns - _xlen(expand($xp)) - 1;
41 if ($nll <= 0 && $xp ne '') {
42 my $nc = _xlen(expand($xp)) + 2;
81 $lead = $xp;
102 my ($ip, $xp, @raw) = map +( defined $_ ? $_ : '' ), @_;
108 my $x = wrap($ip, $xp, $pp);
115 my $ps = ($ip eq $xp) ? "\n\n" : "\n";
/openbsd/src/lib/libcrypto/x509/
Dx509_purp.c90 static int check_purpose_ssl_client(const X509_PURPOSE *xp, const X509 *x,
92 static int check_purpose_ssl_server(const X509_PURPOSE *xp, const X509 *x,
94 static int check_purpose_ns_ssl_server(const X509_PURPOSE *xp, const X509 *x,
97 static int check_purpose_smime_sign(const X509_PURPOSE *xp, const X509 *x,
99 static int check_purpose_smime_encrypt(const X509_PURPOSE *xp, const X509 *x,
101 static int check_purpose_crl_sign(const X509_PURPOSE *xp, const X509 *x,
103 static int check_purpose_timestamp_sign(const X509_PURPOSE *xp, const X509 *x,
105 static int no_check(const X509_PURPOSE *xp, const X509 *x, int ca);
106 static int ocsp_helper(const X509_PURPOSE *xp, const X509 *x, int ca);
246 X509_PURPOSE_get_id(const X509_PURPOSE *xp) in X509_PURPOSE_get_id() argument
[all …]
/openbsd/src/usr.sbin/rpki-client/
Dcms.c92 cms_parse_validate_internal(X509 **xp, const char *fn, const unsigned char *der, in cms_parse_validate_internal() argument
113 *xp = NULL; in cms_parse_validate_internal()
334 *xp = sk_X509_value(certs, 0); in cms_parse_validate_internal()
335 if (!X509_up_ref(*xp)) { in cms_parse_validate_internal()
336 *xp = NULL; in cms_parse_validate_internal()
340 if (!x509_cache_extensions(*xp, fn)) in cms_parse_validate_internal()
343 if (!x509_get_notafter(*xp, fn, &notafter)) in cms_parse_validate_internal()
354 if (CMS_SignerInfo_cert_cmp(si, *xp) != 0) { in cms_parse_validate_internal()
365 X509_free(*xp); in cms_parse_validate_internal()
366 *xp = NULL; in cms_parse_validate_internal()
[all …]
/openbsd/src/usr.sbin/amd/amd/
Dafs_ops.c1512 next_nonerror_node(am_node *xp) in next_nonerror_node() argument
1522 while (xp && in next_nonerror_node()
1523 (!(mf = xp->am_mnt) || /* No mounted filesystem */ in next_nonerror_node()
1525 xp->am_error != 0 || /* There was a mount error */ in next_nonerror_node()
1529 xp = xp->am_osib; in next_nonerror_node()
1531 return xp; in next_nonerror_node()
1539 am_node *xp; in afs_readdir() local
1571 xp = next_nonerror_node(mp->am_child); in afs_readdir()
1588 xp ? xp->am_gen : ~(unsigned int)0; in afs_readdir()
1590 if (!xp) dp->eof = TRUE; in afs_readdir()
[all …]
/openbsd/src/regress/usr.sbin/rpki-client/
Dtest-mft.c46 X509 *xp = NULL; in main() local
77 if ((p = mft_parse(&xp, argv[i], -1, buf, len)) == NULL) { in main()
82 mft_print(xp, p); in main()
84 if (!PEM_write_X509(stdout, xp)) in main()
89 X509_free(xp); in main()
Dtest-spl.c43 X509 *xp = NULL; in main() local
75 if ((p = spl_parse(&xp, argv[i], -1, buf, len)) == NULL) { in main()
80 spl_print(xp, p); in main()
82 if (!PEM_write_X509(stdout, xp)) in main()
87 X509_free(xp); in main()
Dtest-aspa.c43 X509 *xp = NULL; in main() local
75 if ((p = aspa_parse(&xp, argv[i], -1, buf, len)) == NULL) { in main()
80 aspa_print(xp, p); in main()
82 if (!PEM_write_X509(stdout, xp)) in main()
87 X509_free(xp); in main()
Dtest-gbr.c42 X509 *xp = NULL; in main() local
75 if ((p = gbr_parse(&xp, argv[i], -1, buf, len)) == NULL) { in main()
80 gbr_print(xp, p); in main()
82 if (!PEM_write_X509(stdout, xp)) in main()
87 X509_free(xp); in main()
Dtest-rsc.c46 X509 *xp = NULL; in main() local
77 if ((p = rsc_parse(&xp, argv[i], -1, buf, len)) == NULL) { in main()
82 rsc_print(xp, p); in main()
84 if (!PEM_write_X509(stdout, xp)) in main()
89 X509_free(xp); in main()
Dtest-roa.c42 X509 *xp = NULL; in main() local
74 if ((p = roa_parse(&xp, argv[i], -1, buf, len)) == NULL) { in main()
79 roa_print(xp, p); in main()
81 if (!PEM_write_X509(stdout, xp)) in main()
86 X509_free(xp); in main()
Dtest-tak.c43 X509 *xp = NULL; in main() local
75 if ((p = tak_parse(&xp, argv[i], -1, buf, len)) == NULL) { in main()
80 tak_print(xp, p); in main()
82 if (!PEM_write_X509(stdout, xp)) in main()
87 X509_free(xp); in main()
Dtest-geofeed.c42 X509 *xp = NULL; in main() local
75 if ((p = geofeed_parse(&xp, argv[i], -1, buf, len)) == NULL) { in main()
80 geofeed_print(xp, p); in main()
82 if (!PEM_write_X509(stdout, xp)) in main()
87 X509_free(xp); in main()
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.abi/
Dptrmem.C75 ptrmemfunc *xp = (ptrmemfunc *) &x; in main() local
88 if (xp->ptr != 0) in main()
103 if (! CMP_PTRFN (xp->ptr, ADJUST_PTRFN (&_ZN1T1fEv, 0))) in main()
105 if (xp->adj != ADJUST_DELTA (delta, 0)) in main()
117 if (xp->ptr != ADJUST_PTRFN (VPTE_SIZE, 1)) in main()
119 if (xp->adj != ADJUST_DELTA (delta, 1)) in main()
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.warn/
Dcast-align1.C16 void f3 (X *xp, Z *zp) in f3() argument
18 (void *)xp; in f3()
20 (Y *)xp; in f3()
22 (Z *)xp; in f3()
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.mike/
Dp9206.C16 Xptr xp = &X::xtest; in main() local
17 Yptr yp = reinterpret_cast<Yptr>(xp); in main()
18 xp = reinterpret_cast<Xptr>(yp); in main()
20 (xx.*xp)(); in main()
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.other/
Drtti2.C27 X *xp = &z; variable
77 if (typeid(xp) == typeid(yp)) error(4); in main()
79 xp = (X *)&y; in main()
80 if (typeid(*xp) == typeid(*yp)) error(5); in main()
81 if (typeid(*xp) == typeid(Y)) error(6); in main()
/openbsd/src/usr.bin/xargs/
Dxargs.c62 static char **av, **bxp, **ep, **endxp, **xp; variable
224 endxp = (xp = bxp) + nargs; in main()
306 *xp++ = argp; in parse_input()
347 if (xp == endxp || p > ebp || ch == EOF || in parse_input()
349 if (xflag && xp != endxp && p > ebp) in parse_input()
353 *xp++ = *avj; in parse_input()
361 xp = bxp; in parse_input()
393 if (bxp == xp) in parse_input()
401 *xp++ = *avj; in parse_input()
404 xp = bxp; in parse_input()
[all …]

123456