/openbsd/regress/include/bitstring/ |
H A D | bitstring_test.c | 58 bitstr_t *bs; in main() local 81 clearbits(bs, TEST_LENGTH); in main() 87 printbits(bs, TEST_LENGTH); in main() 91 bit_set(bs, i); in main() 97 printbits(bs, TEST_LENGTH); in main() 101 bit_clear(bs, i); in main() 107 printbits(bs, TEST_LENGTH); in main() 116 clearbits(bs, TEST_LENGTH); in main() 199 bit_nclear(bs, i, i); in main() 208 bit_nset(bs, i, i); in main() [all …]
|
/openbsd/sys/net/ |
H A D | bridgestp.c | 902 bs->bs_root_pv = bs->bs_bridge_pv; in bstp_reset() 904 bs->bs_root_max_age = bs->bs_bridge_max_age; in bstp_reset() 905 bs->bs_root_fdelay = bs->bs_bridge_fdelay; in bstp_reset() 906 bs->bs_root_htime = bs->bs_bridge_htime; in bstp_reset() 916 bstp_reset(bs); in bstp_assign_roles() 1532 bs->bs_root_max_age + bs->bs_root_fdelay); in bstp_set_timer_tc() 1902 bstp_stop(bs); in bstp_initialization() 1924 timeout_set(&bs->bs_bstptimeout, bstp_tick, bs); in bstp_initialization() 1943 bs = malloc(sizeof(*bs), M_DEVBUF, M_WAITOK|M_ZERO); in bstp_create() 1957 return (bs); in bstp_create() [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/lib/ExtUtils/ |
H A D | Mkbootstrap.pm | 54 open my $bs, ">", "$baseext.bs" 58 print $bs "# $baseext DynaLoader bootstrap file for $^O architecture.\n"; 59 print $bs "# Do not edit this file, changes will be lost.\n"; 60 print $bs "# This file was automatically generated by the\n"; 61 print $bs "# Mkbootstrap routine in ExtUtils::Mkbootstrap (v$VERSION).\n"; 63 print $bs "\@DynaLoader::dl_resolve_using = "; 67 print $bs " dl_findfile(qw(\n @all\n ));\n"; 69 print $bs " qw(@all);\n"; 73 print $bs $DynaLoader::bscode if $DynaLoader::bscode; 74 print $bs "\n1;\n"; [all …]
|
/openbsd/sys/dev/ |
H A D | bio.c | 185 bio_status(bs, print, BIO_MSG_INFO, fmt, &ap); in bio_info() 195 bio_status(bs, print, BIO_MSG_WARN, fmt, &ap); in bio_warn() 205 bio_status(bs, print, BIO_MSG_ERROR, fmt, &ap); in bio_error() 210 bio_status_init(struct bio_status *bs, struct device *dv) in bio_status_init() argument 212 bzero(bs, sizeof(struct bio_status)); in bio_status_init() 214 bs->bs_status = BIO_STATUS_UNKNOWN; in bio_status_init() 216 strlcpy(bs->bs_controller, dv->dv_xname, sizeof(bs->bs_controller)); in bio_status_init() 225 if (bs->bs_msg_count >= BIO_MSG_COUNT) { in bio_status() 230 idx = bs->bs_msg_count++; in bio_status() 232 bs->bs_msgs[idx].bm_type = msg_type; in bio_status() [all …]
|
/openbsd/lib/libcrypto/ocsp/ |
H A D | ocsp_cl.c | 230 OCSP_resp_count(OCSP_BASICRESP *bs) in OCSP_resp_count() argument 232 if (!bs) in OCSP_resp_count() 242 if (!bs) in OCSP_resp_get0() 251 return bs->tbsResponseData->producedAt; in OCSP_resp_get0_produced_at() 258 return bs->certs; in STACK_OF() 285 return bs->signature; in OCSP_resp_get0_signature() 292 return bs->signatureAlgorithm; in OCSP_resp_get0_tbs_sigalg() 299 return bs->tbsResponseData; in OCSP_resp_get0_respdata() 311 if (!bs) in OCSP_resp_find() 376 i = OCSP_resp_find(bs, id, -1); in OCSP_resp_find_status() [all …]
|
H A D | ocsp_vfy.c | 90 ret = ocsp_find_signer(&signer, bs, certs, st, flags); in OCSP_basic_verify() 102 ret = OCSP_BASICRESP_verify(bs, skey, 0); in OCSP_basic_verify() 114 } else if (bs->certs && certs) { in OCSP_basic_verify() 115 untrusted = sk_X509_dup(bs->certs); in OCSP_basic_verify() 126 untrusted = bs->certs; in OCSP_basic_verify() 158 ret = ocsp_check_issuer(bs, chain, flags); in OCSP_basic_verify() 182 if (bs->certs && certs) in OCSP_basic_verify() 189 OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer, in OCSP_resp_get0_signer() argument 201 OCSP_RESPID *rid = bs->tbsResponseData->responderId; in ocsp_find_signer() 208 (signer = ocsp_find_signer_sk(bs->certs, rid))) { in ocsp_find_signer() [all …]
|
H A D | ocsp.h | 211 int OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs); 224 const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs); 225 const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs); 226 int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer, 229 int OCSP_resp_count(OCSP_BASICRESP *bs); 230 OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx); 232 const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs); 233 int OCSP_resp_get0_id(const OCSP_BASICRESP *bs, 236 int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last); 262 OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs); [all …]
|
/openbsd/lib/libssl/ |
H A D | bio_ssl.c | 111 BIO_SSL *bs; in ssl_new() local 114 if (bs == NULL) { in ssl_new() 128 BIO_SSL *bs; in ssl_free() local 223 BIO_SSL *bs; in ssl_write() local 228 ssl = bs->ssl; in ssl_write() 242 if (bs->byte_count > bs->renegotiate_count) { in ssl_write() 253 if (tm > bs->last_time + bs->renegotiate_timeout) { in ssl_write() 287 BIO_SSL *bs; in ssl_ctrl() local 292 ssl = bs->ssl; in ssl_ctrl() 469 BIO_SSL *bs; in ssl_callback_ctrl() local [all …]
|
/openbsd/usr.sbin/gpioctl/ |
H A D | gpioctl.c | 72 const struct bitstr *bs; in main() local 153 for (bs = pinflags; bs->string != NULL; in main() 154 bs++) { in main() 156 bs->string)) { in main() 157 fl |= bs->mask; in main() 161 if (bs->string == NULL) in main() 265 const struct bitstr *bs; in pinset() local 287 for (bs = pinflags; bs->string != NULL; bs++) in pinset() 291 for (bs = pinflags; bs->string != NULL; bs++) in pinset() 296 for (bs = pinflags; bs->string != NULL; bs++) in pinset() [all …]
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/ |
H A D | 20000802-1.c | 7 struct foo bs; variable 13 memcpy(bs.a, y, 3); in bar() 14 bs.a[1] = ((x ? &bs.b : &bs.c) - (char *)&bs) - 2; in bar()
|
H A D | 930529-1.c | 23 struct r *bs; variable 58 if (!memcmp (&bs[c], &r, 8)) in f() 65 bs = g (8); in f() 70 bs = g (bs, y * 8); in f() 74 bs[y - 1] = r; in f()
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/ |
H A D | 20030627-1.c | 6 void test_inout (char *bd, int xd, char *bs, int xs) in test_inout() argument 8 *(long long *)(bd + xd + 4093) = *(long long *)(bs + xs + 4093); in test_inout() 11 void test_in (char *bd, int xd, char *bs, int xs) in test_in() argument 13 *(long long *)(bd + xd) = *(long long *)(bs + xs + 4093); in test_in() 16 void test_out (char *bd, int xd, char *bs, int xs) in test_out() argument 18 *(long long *)(bd + xd + 4093) = *(long long *)(bs + xs); in test_out()
|
/openbsd/lib/libcrypto/bn/asm/ |
H A D | co-586.pl | 122 $bs=0; 141 $bi=$bs; 146 for ($j=$bs; $j<$end; $j++) 148 &xor($c2,$c2) if ($j == $bs); 164 $nb=$bs+($i >= ($num-1)); 181 $bs++ if ($i >= ($num-1)); 223 $bs=0; 230 $bi=$bs; 234 for ($j=$bs; $j<$end; $j++) 252 $nb=$bs+($i >= ($num-1)); [all …]
|
/openbsd/gnu/usr.bin/binutils/gdb/testsuite/gdb.disasm/ |
H A D | t13_otr.s | 57 bra/bs #0x7,@er2,0x12+.+4 ;7c204f12 58 bra/bs #0x7,@0xffffff9a:8,0x12+.+4 ;7e9a4f12 59 bra/bs #0x7,@0x1234:16,0x12+.+6 ;6a1012344f12 60 bra/bs #0x7,@0x12345678:32,0x12+.+8 ;6a30123456784f12 61 bra/bs #0x7,@er2,0x1234+.+6 ;7c2058f01234 62 bra/bs #0x7,@0xffffff12:8,0x1234+.+6 ;7e1258f01234 63 bra/bs #0x7,@0xffff9abc:16,0x1234+.+8 ;6a109abc58f01234 71 bsr/bs #0x7,@er2,0x1234+.+6 ;7c205cf01234 72 bsr/bs #0x7,@0xffffff12:8,0x1234+.+6 ;7e125cf01234 73 bsr/bs #0x7,@0xffff9abc:16,0x1234+.+8 ;6a109abc5cf01234 [all …]
|
/openbsd/gnu/usr.bin/binutils/gdb/ |
H A D | breakpoint.c | 1878 for (; bs != NULL; bs = bs->next) in bpstat_copy() 1974 for (; bs != NULL; bs = bs->next) in bpstat_clear_actions() 2024 for (; bs != NULL; bs = bs->next) in bpstat_do_actions() 2409 for (; bs; bs = bs->next) in bpstat_print() 2444 bs = (bpstat) xmalloc (sizeof (*bs)); in bpstat_alloc() 2881 bs->commands = bs->commands->next; in bpstat_stop_status() 2897 if (bs && !bs->stop && in bpstat_stop_status() 3063 for (; bs != NULL; bs = bs->next) in bpstat_what() 3239 bs = bpstat_alloc (ep, bs); in bpstat_get_triggered_catchpoints() 6926 for (; bs; bs = bs->next) in breakpoint_auto_delete() [all …]
|
/openbsd/usr.sbin/btrace/ |
H A D | btrace.c | 465 while (bs != NULL) { in rules_action_scan() 485 bs = SLIST_NEXT(bs, bs_next); in rules_action_scan() 498 struct bt_stmt *bs; in rules_setup() local 657 struct bt_stmt *bs; in rule_eval() local 683 struct bt_stmt *bs; in rule_printmaps() local 826 switch (bs->bs_act) { in stmt_eval() 831 stmt_clear(bs); in stmt_eval() 865 stmt_time(bs, dtev); in stmt_eval() 868 stmt_zero(bs); in stmt_eval() 1191 if (bs == NULL) in stmt_test() [all …]
|
/openbsd/sbin/fdisk/ |
H A D | gpt.c | 816 bigbs = bs; in lba_free() 820 if (bs < nextbs && ns < nextbs - bs) { in lba_free() 822 bigbs = bs; in lba_free() 827 if (bs < nextbs && ns < nextbs - bs) { in lba_free() 828 ns = nextbs - bs; in lba_free() 829 bigbs = bs; in lba_free() 831 bs = bigbs; in lba_free() 838 *start = bs; in lba_free() 848 uint64_t bs; in GPT_get_lba_start() local 868 if (bs >= gp[i].gp_lba_start && bs <= gp[i].gp_lba_end) { in GPT_get_lba_start() [all …]
|
/openbsd/regress/usr.bin/mandoc/mdoc/Fo/ |
H A D | section.out_ascii | 8 aabbss(_i_n_t _j); 14 _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x) 17 _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x) 20 _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x) 23 _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x) 26 _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x) 29 _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x) 32 _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x) 35 _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x) 38 _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x) [all …]
|
/openbsd/regress/usr.bin/rsync/ |
H A D | test11_middlediff.test | 14 dd if=/dev/zero bs=1m count=1 status=none > foo/bar/baz/one.txt 16 dd if=/dev/zero bs=1m count=1 status=none >> foo/bar/baz/one.txt 23 dd if=/dev/zero bs=1m count=1 status=none > foo/bar/baz/one.txt 25 dd if=/dev/zero bs=1m count=1 status=none >> foo/bar/baz/one.txt 32 dd if=/dev/zero bs=1m count=1 status=none > foo/bar/baz/one.txt 34 dd if=/dev/zero bs=1m count=1 status=none >> foo/bar/baz/one.txt
|
H A D | test11b_middlediff.test | 16 dd if=/dev/zero bs=1m count=1 status=none > foo/bar/baz/one.txt 18 dd if=/dev/zero bs=1m count=1 status=none >> foo/bar/baz/one.txt 26 dd if=/dev/zero bs=1m count=1 status=none > foo/bar/baz/one.txt 28 dd if=/dev/zero bs=1m count=1 status=none >> foo/bar/baz/one.txt 36 dd if=/dev/zero bs=1m count=1 status=none > foo/bar/baz/one.txt 38 dd if=/dev/zero bs=1m count=1 status=none >> foo/bar/baz/one.txt
|
/openbsd/lib/libcrypto/x509/ |
H A D | x509_bitst.c | 189 ASN1_BIT_STRING *bs; in v2i_ASN1_BIT_STRING() local 193 if (!(bs = ASN1_BIT_STRING_new())) { in v2i_ASN1_BIT_STRING() 202 if (!ASN1_BIT_STRING_set_bit(bs, in v2i_ASN1_BIT_STRING() 205 ASN1_BIT_STRING_free(bs); in v2i_ASN1_BIT_STRING() 214 ASN1_BIT_STRING_free(bs); in v2i_ASN1_BIT_STRING() 218 return bs; in v2i_ASN1_BIT_STRING()
|
/openbsd/regress/usr.bin/mandoc/mdoc/Lk/ |
H A D | link.out_ascii | 8 …////wwwwww..ffrreeeebbssdd..oorrgg// _N_e_t_B_S_D: hhttttpp::////w… 9 hhttttpp::////wwwwww..ooppeennbbssdd..oorrgg// 13 …////wwwwww..ffrreeeebbssdd..oorrgg// _N_e_t_B_S_D: hhttttpp::////w… 14 hhttttpp::////wwwwww..ooppeennbbssdd..oorrgg//
|
/openbsd/libexec/snmpd/snmpd_metrics/ |
H A D | pf.c | 133 size_t bs; in pfr_buf_grow() local 137 bs = buf_esize[b->pfrb_type]; in pfr_buf_grow() 141 b->pfrb_caddr = calloc(bs, minsize); in pfr_buf_grow() 148 if (minsize < 0 || (size_t)minsize >= SIZE_MAX / bs) { in pfr_buf_grow() 152 p = reallocarray(b->pfrb_caddr, minsize, bs); in pfr_buf_grow() 155 bzero(p + b->pfrb_msize * bs, (minsize - b->pfrb_msize) * bs); in pfr_buf_grow() 165 size_t bs; in pfr_buf_next() local 173 bs = buf_esize[b->pfrb_type]; in pfr_buf_next() 174 if ((((const char *)prev)-((char *)b->pfrb_caddr)) / bs >= in pfr_buf_next() 178 return (((const char *)prev) + bs); in pfr_buf_next()
|
/openbsd/usr.sbin/tcpdump/ |
H A D | util.c | 265 size_t bs; in read_infile() local 278 bs = buf.st_size; in read_infile() 279 cp = malloc(bs + 1); in read_infile() 282 cc = read(fd, cp, bs); in read_infile() 285 if (cc != bs) in read_infile() 287 (unsigned long)bs); in read_infile() 288 cp[bs] = '\0'; in read_infile()
|
/openbsd/sbin/pfctl/ |
H A D | pfctl_radix.c | 415 size_t bs; in pfr_buf_add() local 422 bs = buf_esize[b->pfrb_type]; in pfr_buf_add() 426 memcpy(((caddr_t)b->pfrb_caddr) + bs * b->pfrb_size, e, bs); in pfr_buf_add() 438 size_t bs; in pfr_buf_next() local 446 bs = buf_esize[b->pfrb_type]; in pfr_buf_next() 447 if ((((caddr_t)prev)-((caddr_t)b->pfrb_caddr)) / bs >= b->pfrb_size-1) in pfr_buf_next() 449 return (((caddr_t)prev) + bs); in pfr_buf_next() 461 size_t bs; in pfr_buf_grow() local 469 bs = buf_esize[b->pfrb_type]; in pfr_buf_grow() 476 p = reallocarray(b->pfrb_caddr, minsize, bs); in pfr_buf_grow() [all …]
|