Home
last modified time | relevance | path

Searched refs:bs (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/openbsd-src/regress/include/bitstring/
H A Dbitstring_test.c58 bitstr_t *bs; in main() local
81 bs = bit_alloc(TEST_LENGTH); in main()
82 clearbits(bs, TEST_LENGTH); in main()
88 printbits(bs, TEST_LENGTH); in main()
92 bit_set(bs, i); in main()
98 printbits(bs, TEST_LENGTH); in main()
102 bit_clear(bs, i); in main()
108 printbits(bs, TEST_LENGTH); in main()
114 i, bit_test(bs, i)); in main()
117 clearbits(bs, TEST_LENGT in main()
[all...]
/openbsd-src/sys/net/
H A Dbridgestp.c285 bstp_transmit(struct bstp_state *bs, struct bstp_port *bp) in bstp_transmit() argument
289 if ((ifp = if_get(bs->bs_ifindex)) == NULL) in bstp_transmit()
304 bstp_hello_timer_expiry(bs, bp); in bstp_transmit()
307 if (bp->bp_txcount > bs->bs_txholdcount) in bstp_transmit()
312 bstp_transmit_bpdu(bs, bp); in bstp_transmit()
317 bstp_transmit_bpdu(bs, bp); in bstp_transmit()
322 bstp_transmit_tcn(bs, bp); in bstp_transmit()
331 bstp_transmit_bpdu(struct bstp_state *bs, struct bstp_port *bp) in bstp_transmit_bpdu() argument
360 bstp_send_bpdu(bs, bp, &bpdu); in bstp_transmit_bpdu()
364 bstp_transmit_tcn(struct bstp_state *bs, struct bstp_port *bp) in bstp_transmit_tcn() argument
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/lib/ExtUtils/
H A DMkbootstrap.pm54 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-src/sys/dev/
H A Dbio.c180 bio_info(struct bio_status *bs, int print, const char *fmt, ...) in bio_info() argument
185 bio_status(bs, print, BIO_MSG_INFO, fmt, &ap); in bio_info()
190 bio_warn(struct bio_status *bs, int print, const char *fmt, ...) in bio_warn() argument
195 bio_status(bs, print, BIO_MSG_WARN, fmt, &ap); in bio_warn()
200 bio_error(struct bio_status *bs, int print, const char *fmt, ...) in bio_error() argument
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()
[all …]
/openbsd-src/lib/libcrypto/ocsp/
H A Docsp_cl.c230 OCSP_resp_count(OCSP_BASICRESP *bs) in OCSP_resp_count() argument
232 if (!bs) in OCSP_resp_count()
234 return sk_OCSP_SINGLERESP_num(bs->tbsResponseData->responses); in OCSP_resp_count()
240 OCSP_resp_get0(OCSP_BASICRESP *bs, int idx) in OCSP_resp_get0() argument
242 if (!bs) in OCSP_resp_get0()
244 return sk_OCSP_SINGLERESP_value(bs->tbsResponseData->responses, idx); in OCSP_resp_get0()
249 OCSP_resp_get0_produced_at(const OCSP_BASICRESP *bs) in OCSP_resp_get0_produced_at() argument
251 return bs->tbsResponseData->producedAt; in OCSP_resp_get0_produced_at()
256 OCSP_resp_get0_certs(const OCSP_BASICRESP *bs) in STACK_OF()
258 return bs->certs; in STACK_OF()
[all …]
H A Docsp_vfy.c66 static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs,
69 static int ocsp_check_issuer(OCSP_BASICRESP *bs, STACK_OF(X509) *chain,
81 OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs, X509_STORE *st, in OCSP_basic_verify() argument
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()
[all …]
H A Docsp.h211 int OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs);
223 const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const 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);
231 const ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(const OCSP_BASICRESP *bs);
232 const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs);
233 int OCSP_resp_get0_id(const OCSP_BASICRESP *bs,
[all …]
/openbsd-src/lib/libssl/
H A Dbio_ssl.c111 BIO_SSL *bs; in ssl_new() local
113 bs = calloc(1, sizeof(BIO_SSL)); in ssl_new()
114 if (bs == NULL) { in ssl_new()
119 bi->ptr = (char *)bs; in ssl_new()
128 BIO_SSL *bs; in ssl_free() local
132 bs = (BIO_SSL *)a->ptr; in ssl_free()
133 if (bs->ssl != NULL) in ssl_free()
134 SSL_shutdown(bs->ssl); in ssl_free()
136 if (a->init && (bs->ssl != NULL)) in ssl_free()
137 SSL_free(bs->ssl); in ssl_free()
[all …]
/openbsd-src/usr.sbin/gpioctl/
H A Dgpioctl.c72 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()
288 if (set.gp_caps & bs->mask) in pinset()
289 printf(" %s", bs->string); in pinset()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/
H A D20000802-1.c7 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 D930529-1.c23 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-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A D20030627-1.c6 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-src/lib/libcrypto/bn/asm/
H A Dco-586.pl109 local($i,$as,$ae,$bs,$be,$ai,$bi);
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));
200 local($i,$as,$ae,$bs,$be,$ai,$bi);
223 $bs=0;
230 $bi=$bs;
[all …]
/openbsd-src/gnu/usr.bin/binutils/gdb/testsuite/gdb.disasm/
H A Dt13_otr.s57 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
64 bra/bs #0x7,@0x12345678:32,0x1234+.+0xa ;6a301234567858f01234
71 bsr/bs #0x7,@er2,0x1234+.+6 ;7c205cf01234
72 bsr/bs #0x7,@0xffffff12:8,0x1234+.+6 ;7e125cf01234
[all …]
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Dbreakpoint.c140 static enum print_stop_action print_bp_stop_message (bpstat bs);
1869 bpstat_copy (bpstat bs) in bpstat_copy() argument
1875 if (bs == NULL) in bpstat_copy()
1876 return bs; in bpstat_copy()
1878 for (; bs != NULL; bs = bs->next) in bpstat_copy()
1881 memcpy (tmp, bs, sizeof (*tmp)); in bpstat_copy()
1882 if (bs->commands != NULL) in bpstat_copy()
1883 tmp->commands = copy_command_lines (bs->commands); in bpstat_copy()
1884 if (bs->old_val != NULL) in bpstat_copy()
1885 tmp->old_val = value_copy (bs->old_val); in bpstat_copy()
[all …]
/openbsd-src/usr.sbin/btrace/
H A Dbtrace.c516 rules_action_scan(struct bt_stmt *bs) in rules_setup()
522 while (bs != NULL) { in rules_setup()
523 SLIST_FOREACH(ba, &bs->bs_args, ba_next) in rules_setup()
527 switch (bs->bs_act) { in rules_setup()
530 ba = (struct bt_arg *)bs->bs_var; in rules_setup()
534 bc = (struct bt_cond *)bs->bs_var; in rules_setup()
542 bs = SLIST_NEXT(bs, bs_next); in rules_setup()
555 struct bt_stmt *bs; in rules_setup()
566 bs in rules_setup()
459 rules_action_scan(struct bt_stmt * bs) rules_action_scan() argument
498 struct bt_stmt *bs; rules_setup() local
657 struct bt_stmt *bs; rule_eval() local
683 struct bt_stmt *bs; rule_printmaps() local
820 stmt_eval(struct bt_stmt * bs,struct dt_evt * dtev) stmt_eval() argument
882 stmt_bucketize(struct bt_stmt * bs,struct dt_evt * dtev) stmt_bucketize() argument
923 stmt_clear(struct bt_stmt * bs) stmt_clear() argument
951 stmt_delete(struct bt_stmt * bs,struct dt_evt * dtev) stmt_delete() argument
979 stmt_insert(struct bt_stmt * bs,struct dt_evt * dtev) stmt_insert() argument
1042 stmt_print(struct bt_stmt * bs,struct dt_evt * dtev) stmt_print() argument
1089 stmt_store(struct bt_stmt * bs,struct dt_evt * dtev) stmt_store() argument
1187 stmt_test(struct bt_stmt * bs,struct dt_evt * dtev) stmt_test() argument
1203 stmt_time(struct bt_stmt * bs,struct dt_evt * dtev) stmt_time() argument
1224 stmt_zero(struct bt_stmt * bs) stmt_zero() argument
2023 struct bt_stmt *bs; debug_dump_filter() local
[all...]
/openbsd-src/sbin/fdisk/
H A Dgpt.c805 uint64_t bs, bigbs, nextbs, ns; in lba_free() local
812 bs = gh.gh_lba_start; in lba_free()
813 ns = gh.gh_lba_end - bs + 1; in lba_free()
816 bigbs = bs; in lba_free()
820 if (bs < nextbs && ns < nextbs - bs) { in lba_free()
821 ns = nextbs - bs; in lba_free()
822 bigbs = bs; in lba_free()
824 bs = sgp[i]->gp_lba_end + 1; in lba_free()
827 if (bs < nextb in lba_free()
848 uint64_t bs; GPT_get_lba_start() local
884 uint64_t bs, nextbs, ns; GPT_get_lba_end() local
[all...]
/openbsd-src/regress/usr.bin/mandoc/mdoc/Fo/
H A Dsection.out_ascii8 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-src/regress/usr.bin/rsync/
H A Dtest11_middlediff.test14 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 Dtest11b_middlediff.test16 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-src/regress/usr.bin/mandoc/mdoc/Lk/
H A Dlink.out_ascii8 …////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-src/lib/libcrypto/x509/
H A Dx509_bitst.c209 ASN1_BIT_STRING *bs; in v2i_ASN1_BIT_STRING()
213 if (!(bs = ASN1_BIT_STRING_new())) { in v2i_ASN1_BIT_STRING()
222 if (!ASN1_BIT_STRING_set_bit(bs, in v2i_ASN1_BIT_STRING()
225 ASN1_BIT_STRING_free(bs); in v2i_ASN1_BIT_STRING()
234 ASN1_BIT_STRING_free(bs); in v2i_ASN1_BIT_STRING()
238 return bs;
207 ASN1_BIT_STRING *bs; v2i_ASN1_BIT_STRING() local
/openbsd-src/libexec/snmpd/snmpd_metrics/
H A Dpf.c133 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-src/usr.sbin/tcpdump/
H A Dutil.c265 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-src/regress/usr.bin/gzip/
H A DMakefile35 dd if=rc.gz bs=1k count=2 of=2k.gz
44 dd if=rc.gz bs=1k count=1 of=1k.gz
53 dd if=rc.gz bs=1k count=1 of=skip.gz
54 dd if=rc.gz bs=1k seek=2 skip=2 conv=notrunc of=skip.gz
65 dd if=rc.gz bs=1k of=fuzz.gz status=none
68 orig=`dd if=rc.gz bs=1 skip=$$where count=1 status=none |\
72 dd bs=1 seek=$$where conv=notrunc of=fuzz.gz status=none

12345678910>>...12