Home
last modified time | relevance | path

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

12345

/openbsd-src/bin/ksh/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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/
H A 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()
347 /* new is preferred over xp */ 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()
368 * xp i in prefix_insert()
428 struct prefix *xp, *np, *pp; prefix_remove() local
504 struct prefix *xp; prefix_best() local
[all...]
/openbsd-src/sys/dev/usb/
H A Dxhci.c798 xhci_skip_all(struct xhci_pipe *xp) in xhci_event_xfer()
802 if (xp->skip) { in xhci_event_xfer()
808 last = SIMPLEQ_FIRST(&xp->pipe.queue); in xhci_event_xfer()
815 xfer = SIMPLEQ_FIRST(&xp->pipe.queue); in xhci_event_xfer()
823 xp->skip = 0; in xhci_xfer_length_generic()
831 struct xhci_pipe *xp; in xhci_xfer_length_generic()
844 xp = sc->sc_sdevs[slot].pipes[dci - 1];
845 if (xp == NULL) { in xhci_event_xfer_generic()
856 slot, xp->ring.ntrb - xp in xhci_event_xfer_generic()
708 xhci_skip_all(struct xhci_pipe * xp) xhci_skip_all() argument
741 struct xhci_pipe *xp; xhci_event_xfer() local
821 xhci_xfer_length_generic(struct xhci_xfer * xx,struct xhci_pipe * xp,int trb_idx) xhci_xfer_length_generic() argument
846 xhci_event_xfer_generic(struct xhci_softc * sc,struct usbd_xfer * xfer,struct xhci_pipe * xp,uint32_t remain,int trb_idx,uint8_t code,uint8_t slot,uint8_t dci) xhci_event_xfer_generic() argument
936 xhci_event_xfer_isoc(struct usbd_xfer * xfer,struct xhci_pipe * xp,uint32_t remain,int trb_idx,uint8_t code) xhci_event_xfer_isoc() argument
1020 struct xhci_pipe *xp; xhci_event_command() local
1119 struct xhci_pipe *xp = (struct xhci_pipe *)xfer->pipe; xhci_xfer_done() local
1175 struct xhci_pipe *xp = (struct xhci_pipe *)pipe; xhci_pipe_open() local
1391 struct xhci_pipe *xp = (struct xhci_pipe *)pipe; xhci_context_setup() local
1513 struct xhci_pipe *xp = (struct xhci_pipe *)pipe; xhci_pipe_init() local
1566 struct xhci_pipe *xp = (struct xhci_pipe *)pipe; xhci_pipe_close() local
1613 struct xhci_pipe *xp = (struct xhci_pipe *)dev->default_pipe; xhci_setaddr() local
1840 struct xhci_pipe *xp = (struct xhci_pipe *)xfer->pipe; xhci_xfer_get_trb() local
2241 struct xhci_pipe *xp = (struct xhci_pipe *)xfer->pipe; xhci_abort_xfer() local
2831 struct xhci_pipe *xp = (struct xhci_pipe *)xfer->pipe; xhci_device_ctrl_start() local
2945 struct xhci_pipe *xp = (struct xhci_pipe *)xfer->pipe; xhci_device_generic_start() local
3091 struct xhci_pipe *xp = (struct xhci_pipe *)xfer->pipe; xhci_device_isoc_start() local
[all...]
/openbsd-src/gnu/usr.bin/perl/cpan/Text-Tabs/lib/Text/
H A 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/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/
H A 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/lib/libcrypto/x509/
H A 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/
H A 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 in cms_parse_validate_internal()
380 cms_parse_validate(X509 ** xp,const char * fn,const unsigned char * der,size_t derlen,const ASN1_OBJECT * oid,size_t * rsz,time_t * st) cms_parse_validate() argument
398 cms_parse_validate_detached(X509 ** xp,const char * fn,const unsigned char * der,size_t derlen,const ASN1_OBJECT * oid,BIO * bio,time_t * st) cms_parse_validate_detached() argument
[all...]
/openbsd-src/usr.sbin/amd/amd/
H A 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/
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.warn/
H A 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++.abi/
H A 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++.mike/
H A 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/
H A 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()
H A Drtti4.C29 X *xp = &z; variable
76 if (typeid(xp) == typeid(yp)) error(4); in main()
78 xp = (X *)&y; in main()
79 if (typeid(*xp) == typeid(*yp)) error(5); in main()
80 if (typeid(*xp) != typeid(Y)) error(6); in main()
/openbsd-src/usr.bin/xargs/
H A 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 …]

12345