| /dflybsd-src/contrib/xz/src/liblzma/rangecoder/ |
| H A D | range_encoder.h | 55 rc_reset(lzma_range_encoder *rc) in rc_reset() argument 57 rc->low = 0; in rc_reset() 58 rc->cache_size = 1; in rc_reset() 59 rc->range = UINT32_MAX; in rc_reset() 60 rc->cache = 0; in rc_reset() 61 rc->count = 0; in rc_reset() 62 rc->pos = 0; in rc_reset() 67 rc_bit(lzma_range_encoder *rc, probability *prob, uint32_t bit) in rc_bit() argument 69 rc->symbols[rc->count] = bit; in rc_bit() 70 rc->probs[rc->count] = prob; in rc_bit() [all …]
|
| H A D | range_decoder.h | 29 rc_read_init(lzma_range_decoder *rc, const uint8_t *restrict in, in rc_read_init() argument 32 while (rc->init_bytes_left > 0) { in rc_read_init() 39 if (rc->init_bytes_left == 5 && in[*in_pos] != 0x00) in rc_read_init() 42 rc->code = (rc->code << 8) | in[*in_pos]; in rc_read_init() 44 --rc->init_bytes_left; in rc_read_init() 55 lzma_range_decoder rc = range_decoder; \ 63 range_decoder = rc; \ 89 if (rc.range < RC_TOP_VALUE) { \ 94 rc.range <<= RC_SHIFT_BITS; \ 95 rc.code = (rc.code << RC_SHIFT_BITS) | in[rc_in_pos++]; \ [all …]
|
| /dflybsd-src/lib/i18n_module/mapper_std/ |
| H A D | citrus_mapper_std.c | 82 struct _citrus_mapper_std_rowcol *rc; in rowcol_convert() local 88 rc = &ms->ms_rowcol; in rowcol_convert() 90 for (i = rc->rc_src_rowcol_len * rc->rc_src_rowcol_bits, in rowcol_convert() 91 lz = &rc->rc_src_rowcol[0]; i > 0; ++lz) { in rowcol_convert() 92 i -= rc->rc_src_rowcol_bits; in rowcol_convert() 93 n = (src >> i) & rc->rc_src_rowcol_mask; in rowcol_convert() 95 switch (rc->rc_oob_mode) { in rowcol_convert() 97 *dst = rc->rc_dst_invalid; in rowcol_convert() 107 switch (rc->rc_dst_unit_bits) { in rowcol_convert() 109 conv = _region_peek8(&rc->rc_table, idx); in rowcol_convert() [all …]
|
| /dflybsd-src/sys/dev/netif/oce/ |
| H A D | oce_mbox.c | 58 int rc = 0; in oce_reset_fun() local 78 rc = oce_mbox_dispatch(sc, 2); in oce_reset_fun() 81 return rc; in oce_reset_fun() 158 int rc; in oce_mbox_dispatch() local 167 rc = oce_mbox_wait(sc, tmo_sec); in oce_mbox_dispatch() 168 if (rc == 0) { in oce_mbox_dispatch() 176 rc = oce_mbox_wait(sc, tmo_sec); in oce_mbox_dispatch() 178 if (rc == 0) { in oce_mbox_dispatch() 181 rc = oce_mbox_wait(sc, tmo_sec); in oce_mbox_dispatch() 187 return rc; in oce_mbox_dispatch() [all …]
|
| H A D | oce_hw.c | 96 int rc = 0; in oce_hw_init() local 98 rc = oce_POST(sc); in oce_hw_init() 99 if (rc) in oce_hw_init() 100 return rc; in oce_hw_init() 103 rc = oce_dma_alloc(sc, sizeof(struct oce_bmbx), &sc->bsmbx, 0); in oce_hw_init() 104 if (rc) { in oce_hw_init() 106 return rc; in oce_hw_init() 109 rc = oce_reset_fun(sc); in oce_hw_init() 110 if (rc) in oce_hw_init() 114 rc = oce_mbox_init(sc); in oce_hw_init() [all …]
|
| /dflybsd-src/contrib/ncurses/ncurses/tinfo/ |
| H A D | obsolete.c | 110 int rc = 0; in _nc_conv_to_utf8() local 113 rc = 1; in _nc_conv_to_utf8() 115 rc = 2; in _nc_conv_to_utf8() 117 rc = 3; in _nc_conv_to_utf8() 119 rc = 4; in _nc_conv_to_utf8() 121 rc = 5; in _nc_conv_to_utf8() 123 rc = 6; in _nc_conv_to_utf8() 125 if ((unsigned) rc > limit) { /* whatever it is, we cannot decode it */ in _nc_conv_to_utf8() 126 rc = 0; in _nc_conv_to_utf8() 130 switch (rc) { in _nc_conv_to_utf8() [all …]
|
| /dflybsd-src/contrib/gcc-8.0/libstdc++-v3/include/ext/pb_ds/detail/rc_binomial_heap_/ |
| H A D | rc.hpp | 50 class rc class 74 rc(); 76 rc(const rc&); 79 swap(rc&); 121 rc<_Node, _Alloc>:: 122 rc() : m_over_top(0) in rc() function in __gnu_pbds::detail::rc 126 rc<_Node, _Alloc>:: 127 rc(const rc<_Node, _Alloc>& other) : m_over_top(0) in rc() function in __gnu_pbds::detail::rc 132 rc<_Node, _Alloc>:: 133 swap(rc<_Node, _Alloc>& other) in swap() [all …]
|
| /dflybsd-src/contrib/gcc-4.7/libstdc++-v3/include/ext/pb_ds/detail/rc_binomial_heap_/ |
| H A D | rc.hpp | 50 class rc class 74 rc(); 76 rc(const rc&); 79 swap(rc&); 121 rc<_Node, _Alloc>:: 122 rc() : m_over_top(0) in rc() function in __gnu_pbds::detail::rc 126 rc<_Node, _Alloc>:: 127 rc(const rc<_Node, _Alloc>& other) : m_over_top(0) in rc() function in __gnu_pbds::detail::rc 132 rc<_Node, _Alloc>:: 133 swap(rc<_Node, _Alloc>& other) in swap() [all …]
|
| /dflybsd-src/etc/periodic/daily/ |
| H A D | 200.backup-passwd | 20 rc=2 25 rc=2 28 rc=0 35 rc=1 37 cp -p /etc/master.passwd $bak/master.passwd.bak || rc=3 42 [ $rc -lt 1 ] && rc=1 47 cp -p /etc/master.passwd $bak/master.passwd.bak || rc=3 52 [ $rc -lt 1 ] && rc=1 54 cp -p /etc/group $bak/group.bak || rc=3 59 [ $rc -lt 1 ] && rc=1 [all …]
|
| H A D | 310.accounting | 18 rc=0 # nothing to do 23 rc=2 29 rc=0 35 [ $m -ge $n ] && { rm $f || rc=3; } 42 [ -f acct.$n.gz ] && { mv -f acct.$n.gz acct.$m.gz || rc=3; } 43 [ -f acct.$n.xz ] && { mv -f acct.$n.xz acct.$m.xz || rc=3; } 44 [ -f acct.$n.zst ] && { mv -f acct.$n.zst acct.$m.zst || rc=3; } 45 [ -f acct.$n ] && { mv -f acct.$n acct.$m || rc=3; } 50 /etc/rc.d/accounting rotate_log || rc=3 52 rm -f acct.merge && cp acct.0 acct.merge || rc=3 [all …]
|
| /dflybsd-src/tools/tools/net80211/w00t/prga/ |
| H A D | prga.c | 162 int rc; in get_prga() local 168 rc = sniff(p->rx, buf, sizeof(buf)); in get_prga() 169 if (rc == -1) in get_prga() 172 wh = get_wifi(buf, &rc); in get_prga() 180 if (is_arp(wh, rc)) in get_prga() 201 rc -= sizeof(wh) + 4; in get_prga() 203 assert(rc >= known_pt_len); in get_prga() 205 for (rc = 0; rc < known_pt_len; rc++) { in get_prga() 206 p->prga[rc] = known_pt[rc] ^ (*ptr); in get_prga() 210 p->prga_len = rc; in get_prga() [all …]
|
| /dflybsd-src/share/man/man8/ |
| H A D | Makefile | 8 rc.8 \ 9 rc.sendmail.8 \ 10 rc.subr.8 \ 16 MLINKS= rc.8 rc.d.8 \ 17 rc.8 rc.firewall.8 \ 18 rc.8 rc.local.8 \ 19 rc.8 rc.shutdown.8 \ 20 rc.8 rc.shutdown.local.8
|
| /dflybsd-src/sbin/svc/ |
| H A D | svc.c | 51 int rc; in main() local 55 rc = process_cmd(&cmd, stdout, ac, av); in main() 58 if (rc == 0) in main() 59 rc = execute_cmd(&cmd); in main() 62 return rc; in main() 73 int rc = 1; in process_cmd() local 219 rc = process_jailspec(cmd, optarg); in process_cmd() 220 if (rc) in process_cmd() 267 rc = 0; in process_cmd() 272 return rc; in process_cmd() [all …]
|
| /dflybsd-src/test/testcases/mem/mmap_madvise_1/ |
| H A D | mmap_madvise_1.c | 32 int rc; in main() local 52 rc = strcmp(mem, teststring); in main() 53 if (rc != 0) in main() 56 rc = mprotect(mem, 4096, PROT_NONE); in main() 57 if (rc == -1) in main() 66 rc = madvise(mem, 4096, MADV_WILLNEED); in main() 67 if (rc == -1) in main() 72 rc = fork(); in main() 73 if (rc == 0) { in main() 80 rc = 0; in main() [all …]
|
| /dflybsd-src/lib/libutil/ |
| H A D | login_ok.c | 52 int rc = 0; in login_strinlist() local 57 while (rc == 0 && list[i] != NULL) in login_strinlist() 58 rc = fnmatch(list[i++], str, flags) == 0; in login_strinlist() 60 return rc; in login_strinlist() 72 int rc = 0; in login_str2inlist() local 75 rc = 1; in login_str2inlist() 77 rc = 1; in login_str2inlist() 78 return rc; in login_str2inlist() 130 int rc = 1; in login_ttyok() local 142 rc = 0; /* tty or ttygroup not in allow list */ in login_ttyok() [all …]
|
| /dflybsd-src/stand/lib/ |
| H A D | ufs.c | 132 int rc; in read_inode() local 142 rc = (f->f_dev->dv_strategy)(f->f_devdata, F_READ, in read_inode() 145 if (rc) in read_inode() 148 rc = EIO; in read_inode() 171 return (rc); in read_inode() 190 int rc; in block_map() local 252 rc = (f->f_dev->dv_strategy)(f->f_devdata, F_READ, in block_map() 257 if (rc) in block_map() 258 return (rc); in block_map() 297 int rc; in buf_read_file() local [all …]
|
| /dflybsd-src/sys/dev/netif/ath/ath/ |
| H A D | if_ath_tx_ht.c | 230 struct ath_rc_series *rc = bf->bf_state.bfs_rc; in ath_tx_rate_fill_rcflags() local 250 rc[i].flags = 0; in ath_tx_rate_fill_rcflags() 251 if (rc[i].tries == 0) in ath_tx_rate_fill_rcflags() 254 rate = rt->info[rc[i].rix].rateCode; in ath_tx_rate_fill_rcflags() 260 rate |= rt->info[rc[i].rix].shortPreamble; in ath_tx_rate_fill_rcflags() 265 rc[i].ratecode = rate; in ath_tx_rate_fill_rcflags() 269 rc[i].flags |= ATH_RC_RTSCTS_FLAG; in ath_tx_rate_fill_rcflags() 279 rc[i].flags |= ATH_RC_HT_FLAG; in ath_tx_rate_fill_rcflags() 282 rc[i].flags |= ATH_RC_CW40_FLAG; in ath_tx_rate_fill_rcflags() 287 rc[i].flags |= ATH_RC_SGI_FLAG; in ath_tx_rate_fill_rcflags() [all …]
|
| /dflybsd-src/sys/dev/virtual/amazon/ena/ |
| H A D | ena.c | 339 int rc; in ena_change_mtu() local 348 rc = ena_com_set_dev_mtu(adapter->ena_dev, new_mtu); in ena_change_mtu() 349 if (likely(rc == 0)) { in ena_change_mtu() 357 return (rc); in ena_change_mtu() 664 int i, rc; in ena_setup_all_tx_resources() local 667 rc = ena_setup_tx_resources(adapter, i); in ena_setup_all_tx_resources() 668 if (rc != 0) { in ena_setup_all_tx_resources() 681 return (rc); in ena_setup_all_tx_resources() 867 int i, rc = 0; in ena_setup_all_rx_resources() local 870 rc = ena_setup_rx_resources(adapter, i); in ena_setup_all_rx_resources() [all …]
|
| /dflybsd-src/contrib/wpa_supplicant/src/eap_peer/ |
| H A D | eap_teap_pac.c | 188 static int eap_teap_read_line(struct eap_teap_read_ctx *rc, char **value) in eap_teap_read_line() argument 192 rc->line++; in eap_teap_read_line() 193 if (rc->f) { in eap_teap_read_line() 194 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) in eap_teap_read_line() 200 if (rc->pos >= rc->end) in eap_teap_read_line() 202 l_end = rc->pos; in eap_teap_read_line() 203 while (l_end < rc->end && *l_end != '\n') in eap_teap_read_line() 205 len = l_end - rc->pos; in eap_teap_read_line() 206 if (len >= rc->buf_len) in eap_teap_read_line() 207 len = rc->buf_len - 1; in eap_teap_read_line() [all …]
|
| H A D | eap_fast_pac.c | 188 static int eap_fast_read_line(struct eap_fast_read_ctx *rc, char **value) in eap_fast_read_line() argument 192 rc->line++; in eap_fast_read_line() 193 if (rc->f) { in eap_fast_read_line() 194 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) in eap_fast_read_line() 199 if (rc->pos >= rc->end) in eap_fast_read_line() 201 l_end = rc->pos; in eap_fast_read_line() 202 while (l_end < rc->end && *l_end != '\n') in eap_fast_read_line() 204 len = l_end - rc->pos; in eap_fast_read_line() 205 if (len >= rc->buf_len) in eap_fast_read_line() 206 len = rc->buf_len - 1; in eap_fast_read_line() [all …]
|
| /dflybsd-src/etc/periodic/monthly/ |
| H A D | 200.accounting | 17 rc=0 29 zcat $W.0.gz > $TMP || rc=1 32 bzcat $W.0.bz2 > $TMP || rc=1 35 xzcat $W.0.xz > $TMP || rc=1 38 zstdcat $W.0.zst > $TMP || rc=1 41 rc=2 46 rc=2 49 if [ $rc -eq 0 ] 54 rc=$(ac -p -w $filetoread | sort -nr -k 2 | tee -a /dev/stderr | wc -l) 55 [ $rc -gt 0 ] && rc=1 [all …]
|
| /dflybsd-src/sbin/rconfig/ |
| H A D | subs.c | 86 int rc; in udp_transact() local 143 rc = strtol(buf, NULL, 10); in udp_transact() 147 rc = 508; in udp_transact() 151 return(rc); in udp_transact() 160 int rc; in tcp_transact() local 206 rc = strtol(buf, NULL, 10); in tcp_transact() 208 if (rc == 201 && strstr(buf, "SIZE=") != NULL) { in tcp_transact() 212 for (rc = 0; *bufp && rc < *lenp; rc += n) { in tcp_transact() 213 if ((n = *lenp - rc) > (int)sizeof(buf)) in tcp_transact() 215 n = fread(*bufp + rc, 1, n, *pfi); in tcp_transact() [all …]
|
| /dflybsd-src/tools/tools/net80211/w00t/assoc/ |
| H A D | assoc.c | 102 int rc; in send_frame() local 104 rc = inject(p->tx, buf, len); in send_frame() 105 if (rc == -1) { in send_frame() 110 } else if (rc != len) in send_frame() 111 errx(1, "injected %d but only %d sent", rc, len); in send_frame() 326 int rc = send_ack(p->tx, wh->i_addr2); in generic_process() 327 if (rc == -1) in generic_process() 329 if (rc != 10) { in generic_process() 330 printf("Wrote ACK %d/%d\n", rc, 10); in generic_process() 340 int rc; in generic_process() local [all …]
|
| /dflybsd-src/contrib/tcpdump/ |
| H A D | print-babel.c | 477 int rc; in babel_print_v2_tlvs() local 483 rc = network_address(ae, message + 8, in babel_print_v2_tlvs() 485 if(rc < 0) { nd_print_trunc(ndo); break; } in babel_print_v2_tlvs() 490 if((u_int)rc < len - 6) in babel_print_v2_tlvs() 491 subtlvs_print(ndo, message + 8 + rc, message + 2 + len, in babel_print_v2_tlvs() 512 int rc; in babel_print_v2_tlvs() local 518 rc = network_address(ae, message + 4, in babel_print_v2_tlvs() 520 if(rc < 0) goto invalid; in babel_print_v2_tlvs() 539 int rc; in babel_print_v2_tlvs() local 545 rc = network_prefix(ae, in babel_print_v2_tlvs() [all …]
|
| /dflybsd-src/contrib/elftoolchain/libelf/ |
| H A D | elf_update.c | 111 _libelf_compute_section_extents(Elf *e, Elf_Scn *s, off_t rc) in _libelf_compute_section_extents() argument 311 sh_offset = roundup((uint64_t) rc, sh_align); in _libelf_compute_section_extents() 443 _libelf_resync_sections(Elf *e, off_t rc, struct _Elf_Extent_List *extents) in _libelf_resync_sections() argument 464 if (_libelf_compute_section_extents(e, s, rc) == 0) in _libelf_resync_sections() 474 if ((size_t) rc < s->s_offset + s->s_size) in _libelf_resync_sections() 475 rc = (off_t) (s->s_offset + s->s_size); in _libelf_resync_sections() 478 return (rc); in _libelf_resync_sections() 510 off_t rc, phoff, shoff; in _libelf_resync_elf() local 515 rc = 0; in _libelf_resync_elf() 596 rc += (off_t) _libelf_fsize(ELF_T_EHDR, ec, eh_version, (size_t) 1); in _libelf_resync_elf() [all …]
|