/third_party/nghttp2/tests/ |
H A D | nghttp2_ratelim_test.c | 34 nghttp2_ratelim rl; in test_nghttp2_ratelim_update() local 36 nghttp2_ratelim_init(&rl, 1000, 21); in test_nghttp2_ratelim_update() 38 CU_ASSERT(1000 == rl.val); in test_nghttp2_ratelim_update() 39 CU_ASSERT(1000 == rl.burst); in test_nghttp2_ratelim_update() 40 CU_ASSERT(21 == rl.rate); in test_nghttp2_ratelim_update() 41 CU_ASSERT(0 == rl.tstamp); in test_nghttp2_ratelim_update() 43 nghttp2_ratelim_update(&rl, 999); in test_nghttp2_ratelim_update() 45 CU_ASSERT(1000 == rl.val); in test_nghttp2_ratelim_update() 46 CU_ASSERT(999 == rl.tstamp); in test_nghttp2_ratelim_update() 48 nghttp2_ratelim_drain(&rl, 10 in test_nghttp2_ratelim_update() 93 nghttp2_ratelim rl; test_nghttp2_ratelim_drain() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
H A D | tlsv1_record.c | 21 * @rl: Pointer to TLS record layer data 30 int tlsv1_record_set_cipher_suite(struct tlsv1_record_layer *rl, in tlsv1_record_set_cipher_suite() argument 38 rl->cipher_suite = cipher_suite; in tlsv1_record_set_cipher_suite() 45 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_MD5; in tlsv1_record_set_cipher_suite() 46 rl->hash_size = MD5_MAC_LEN; in tlsv1_record_set_cipher_suite() 48 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA1; in tlsv1_record_set_cipher_suite() 49 rl->hash_size = SHA1_MAC_LEN; in tlsv1_record_set_cipher_suite() 51 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA256; in tlsv1_record_set_cipher_suite() 52 rl->hash_size = SHA256_MAC_LEN; in tlsv1_record_set_cipher_suite() 59 rl in tlsv1_record_set_cipher_suite() 75 tlsv1_record_change_write_cipher(struct tlsv1_record_layer *rl) tlsv1_record_change_write_cipher() argument 109 tlsv1_record_change_read_cipher(struct tlsv1_record_layer *rl) tlsv1_record_change_read_cipher() argument 150 tlsv1_record_send(struct tlsv1_record_layer *rl, u8 content_type, u8 *buf, size_t buf_size, const u8 *payload, size_t payload_len, size_t *out_len) tlsv1_record_send() argument 278 tlsv1_record_receive(struct tlsv1_record_layer *rl, const u8 *in_data, size_t in_len, u8 *out_data, size_t *out_len, u8 *alert) tlsv1_record_receive() argument [all...] |
H A D | tlsv1_client.c | 65 if (tls_prf(conn->rl.tls_version, in tls_derive_keys() 79 key_block_len = 2 * (conn->rl.hash_size + conn->rl.key_material_len); in tls_derive_keys() 80 if (conn->rl.tls_version == TLS_VERSION_1) in tls_derive_keys() 81 key_block_len += 2 * conn->rl.iv_size; in tls_derive_keys() 82 if (tls_prf(conn->rl.tls_version, in tls_derive_keys() 95 os_memcpy(conn->rl.write_mac_secret, pos, conn->rl.hash_size); in tls_derive_keys() 96 pos += conn->rl.hash_size; in tls_derive_keys() 98 os_memcpy(conn->rl in tls_derive_keys() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
H A D | tlsv1_record.c | 21 * @rl: Pointer to TLS record layer data 30 int tlsv1_record_set_cipher_suite(struct tlsv1_record_layer *rl, in tlsv1_record_set_cipher_suite() argument 38 rl->cipher_suite = cipher_suite; in tlsv1_record_set_cipher_suite() 45 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_MD5; in tlsv1_record_set_cipher_suite() 46 rl->hash_size = MD5_MAC_LEN; in tlsv1_record_set_cipher_suite() 48 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA1; in tlsv1_record_set_cipher_suite() 49 rl->hash_size = SHA1_MAC_LEN; in tlsv1_record_set_cipher_suite() 51 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA256; in tlsv1_record_set_cipher_suite() 52 rl->hash_size = SHA256_MAC_LEN; in tlsv1_record_set_cipher_suite() 59 rl in tlsv1_record_set_cipher_suite() 75 tlsv1_record_change_write_cipher(struct tlsv1_record_layer *rl) tlsv1_record_change_write_cipher() argument 109 tlsv1_record_change_read_cipher(struct tlsv1_record_layer *rl) tlsv1_record_change_read_cipher() argument 150 tlsv1_record_send(struct tlsv1_record_layer *rl, u8 content_type, u8 *buf, size_t buf_size, const u8 *payload, size_t payload_len, size_t *out_len) tlsv1_record_send() argument 278 tlsv1_record_receive(struct tlsv1_record_layer *rl, const u8 *in_data, size_t in_len, u8 *out_data, size_t *out_len, u8 *alert) tlsv1_record_receive() argument [all...] |
H A D | tlsv1_client.c | 89 if (tls_prf(conn->rl.tls_version, in tls_derive_keys() 103 key_block_len = 2 * (conn->rl.hash_size + conn->rl.key_material_len); in tls_derive_keys() 104 if (conn->rl.tls_version == TLS_VERSION_1) in tls_derive_keys() 105 key_block_len += 2 * conn->rl.iv_size; in tls_derive_keys() 106 if (tls_prf(conn->rl.tls_version, in tls_derive_keys() 119 os_memcpy(conn->rl.write_mac_secret, pos, conn->rl.hash_size); in tls_derive_keys() 120 pos += conn->rl.hash_size; in tls_derive_keys() 122 os_memcpy(conn->rl in tls_derive_keys() [all...] |
/third_party/nghttp2/lib/ |
H A D | nghttp2_ratelim.c | 28 void nghttp2_ratelim_init(nghttp2_ratelim *rl, uint64_t burst, uint64_t rate) { in nghttp2_ratelim_init() argument 29 rl->val = rl->burst = burst; in nghttp2_ratelim_init() 30 rl->rate = rate; in nghttp2_ratelim_init() 31 rl->tstamp = 0; in nghttp2_ratelim_init() 34 void nghttp2_ratelim_update(nghttp2_ratelim *rl, uint64_t tstamp) { in nghttp2_ratelim_update() argument 37 if (tstamp == rl->tstamp) { in nghttp2_ratelim_update() 41 if (tstamp > rl->tstamp) { in nghttp2_ratelim_update() 42 d = tstamp - rl->tstamp; in nghttp2_ratelim_update() 47 rl in nghttp2_ratelim_update() 67 nghttp2_ratelim_drain(nghttp2_ratelim *rl, uint64_t n) nghttp2_ratelim_drain() argument [all...] |
/third_party/node/deps/nghttp2/lib/ |
H A D | nghttp2_ratelim.c | 28 void nghttp2_ratelim_init(nghttp2_ratelim *rl, uint64_t burst, uint64_t rate) { in nghttp2_ratelim_init() argument 29 rl->val = rl->burst = burst; in nghttp2_ratelim_init() 30 rl->rate = rate; in nghttp2_ratelim_init() 31 rl->tstamp = 0; in nghttp2_ratelim_init() 34 void nghttp2_ratelim_update(nghttp2_ratelim *rl, uint64_t tstamp) { in nghttp2_ratelim_update() argument 37 if (tstamp == rl->tstamp) { in nghttp2_ratelim_update() 41 if (tstamp > rl->tstamp) { in nghttp2_ratelim_update() 42 d = tstamp - rl->tstamp; in nghttp2_ratelim_update() 47 rl in nghttp2_ratelim_update() 67 nghttp2_ratelim_drain(nghttp2_ratelim *rl, uint64_t n) nghttp2_ratelim_drain() argument [all...] |
/third_party/ntfs-3g/libntfs-3g/ |
H A D | lcnalloc.c | 243 runlist *rl = NULL, *trl; in ntfs_cluster_alloc() local 266 rl = ntfs_malloc(0x1000); in ntfs_cluster_alloc() 267 if (rl) { in ntfs_cluster_alloc() 268 rl[0].vcn = start_vcn; in ntfs_cluster_alloc() 269 rl[0].lcn = LCN_RL_NOT_MAPPED; in ntfs_cluster_alloc() 270 rl[0].length = 0; in ntfs_cluster_alloc() 359 trl = realloc(rl, rlsize); in ntfs_cluster_alloc() 365 rl = trl; in ntfs_cluster_alloc() 391 rl[rlpos - 1].length = ++prev_run_len; in ntfs_cluster_alloc() 394 rl[rlpo in ntfs_cluster_alloc() 578 ntfs_cluster_free_from_rl(ntfs_volume *vol, runlist *rl) ntfs_cluster_free_from_rl() argument 669 runlist *rl; ntfs_cluster_free() local [all...] |
H A D | runlist.c | 90 * @rl: original runlist 91 * @old_size: number of runlist elements in the original runlist @rl 104 static runlist_element *ntfs_rl_realloc(runlist_element *rl, int old_size, in ntfs_rl_realloc() argument 110 return rl; in ntfs_rl_realloc() 111 return realloc(rl, new_size); in ntfs_rl_realloc() 123 runlist_element *ntfs_rl_extend(ntfs_attr *na, runlist_element *rl, in ntfs_rl_extend() argument 130 if (na->rl && rl) { in ntfs_rl_extend() 131 irl = (int)(rl - na->rl); in ntfs_rl_extend() 748 runlist_element *rl; ntfs_runlists_merge() local 789 runlist_element *rl; /* The output runlist. */ ntfs_mapping_pairs_decompress_i() local 1054 ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn) ntfs_rl_vcn_to_lcn() argument 1113 ntfs_rl_pread(const ntfs_volume *vol, const runlist_element *rl, const s64 pos, s64 count, void *b) ntfs_rl_pread() argument 1202 ntfs_rl_pwrite(const ntfs_volume *vol, const runlist_element *rl, s64 ofs, const s64 pos, s64 count, void *b) ntfs_rl_pwrite() argument 1326 ntfs_get_size_for_mapping_pairs(const ntfs_volume *vol, const runlist_element *rl, const VCN start_vcn, int max_size) ntfs_get_size_for_mapping_pairs() argument 1489 ntfs_mapping_pairs_build(const ntfs_volume *vol, u8 *dst, const int dst_len, const runlist_element *rl, const VCN start_vcn, runlist_element const **stop_rl) ntfs_mapping_pairs_build() argument 1643 runlist *rl; ntfs_rl_truncate() local 1717 ntfs_rl_sparse(runlist *rl) ntfs_rl_sparse() argument 1746 ntfs_rl_get_compressed_size(ntfs_volume *vol, runlist *rl) ntfs_rl_get_compressed_size() argument 1790 test_rl_dump_runlist(const runlist_element *rl) test_rl_dump_runlist() argument [all...] |
H A D | debug.c | 39 * @rl: 45 void ntfs_debug_runlist_dump(const runlist_element *rl) in ntfs_debug_runlist_dump() argument 53 if (!rl) { in ntfs_debug_runlist_dump() 59 LCN lcn = (rl + i)->lcn; in ntfs_debug_runlist_dump() 67 (long long)rl[i].vcn, lcn_str[idx], in ntfs_debug_runlist_dump() 68 (long long)rl[i].length, in ntfs_debug_runlist_dump() 69 rl[i].length ? "" : " (runlist end)"); in ntfs_debug_runlist_dump() 72 (long long)rl[i].vcn, (long long)rl[i].lcn, in ntfs_debug_runlist_dump() 73 (long long)rl[ in ntfs_debug_runlist_dump() [all...] |
H A D | attrib.c | 151 runlist *rl; in ntfs_get_attribute_value() local 198 rl = ntfs_mapping_pairs_decompress(vol, a, NULL); in ntfs_get_attribute_value() 199 if (!rl) { in ntfs_get_attribute_value() 215 for (i = 0, total = 0; rl[i].length; i++) { in ntfs_get_attribute_value() 216 if (total + (rl[i].length << vol->cluster_size_bits) >= in ntfs_get_attribute_value() 226 * rl[i].length << vol->cluster_size_bits, do the in ntfs_get_attribute_value() 241 if (rl[i].length < intlth) in ntfs_get_attribute_value() 242 intlth = rl[i].length; in ntfs_get_attribute_value() 246 free(rl); in ntfs_get_attribute_value() 261 rl[ in ntfs_get_attribute_value() 630 runlist_element *rl; ntfs_attr_map_runlist() local 660 runlist_element *rl; ntfs_attr_map_partial_runlist() local 775 runlist_element *rl; ntfs_attr_map_whole_runlist() local 930 runlist_element *rl; ntfs_attr_find_vcn() local 993 runlist_element *rl; ntfs_attr_pread_i() local 1301 ntfs_attr_fill_hole(ntfs_attr *na, s64 count, s64 *ofs, runlist_element **rl, VCN *update_from) ntfs_attr_fill_hole() argument 1522 runlist_element *rl = *prl; split_compressed_hole() local 1684 runlist_element *rl = *prl; global() local 1856 runlist_element *rl; global() local 2434 runlist_element *rl; global() local 5111 runlist *rl; global() local 6506 runlist *rl, *rln; global() local [all...] |
/third_party/openssl/ssl/record/ |
H A D | record.h | 189 #define RECORD_LAYER_set_read_ahead(rl, ra) ((rl)->read_ahead = (ra)) 190 #define RECORD_LAYER_get_read_ahead(rl) ((rl)->read_ahead) 191 #define RECORD_LAYER_get_packet(rl) ((rl)->packet) 192 #define RECORD_LAYER_get_packet_length(rl) ((rl)->packet_length) 193 #define RECORD_LAYER_add_packet_length(rl, inc) ((rl) [all...] |
H A D | record_local.h | 21 #define RECORD_LAYER_get_rrec(rl) ((rl)->rrec) 22 #define RECORD_LAYER_set_packet(rl, p) ((rl)->packet = (p)) 23 #define RECORD_LAYER_reset_packet_length(rl) ((rl)->packet_length = 0) 24 #define RECORD_LAYER_get_rstate(rl) ((rl)->rstate) 25 #define RECORD_LAYER_set_rstate(rl, st) ((rl) [all...] |
/third_party/node/deps/openssl/openssl/ssl/record/ |
H A D | record.h | 189 #define RECORD_LAYER_set_read_ahead(rl, ra) ((rl)->read_ahead = (ra)) 190 #define RECORD_LAYER_get_read_ahead(rl) ((rl)->read_ahead) 191 #define RECORD_LAYER_get_packet(rl) ((rl)->packet) 192 #define RECORD_LAYER_get_packet_length(rl) ((rl)->packet_length) 193 #define RECORD_LAYER_add_packet_length(rl, inc) ((rl) [all...] |
H A D | record_local.h | 21 #define RECORD_LAYER_get_rrec(rl) ((rl)->rrec) 22 #define RECORD_LAYER_set_packet(rl, p) ((rl)->packet = (p)) 23 #define RECORD_LAYER_reset_packet_length(rl) ((rl)->packet_length = 0) 24 #define RECORD_LAYER_get_rstate(rl) ((rl)->rstate) 25 #define RECORD_LAYER_set_rstate(rl, st) ((rl) [all...] |
/third_party/node/test/parallel/ |
H A D | test-readline.js | 11 const rl = readline.createInterface({ 16 rl.on('line', common.mustCall((data) => { 25 const rl = readline.createInterface({ 30 rl.on('line', common.mustNotCall('must not be called before newline')); 37 const rl = readline.createInterface({ 42 rl.on('line', common.mustCall((data) => { 51 const rl = readline.createInterface({ 56 rl.write('foo'); 57 assert.strictEqual(rl.cursor, 3); 79 rl [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | rl.c | 25 #include "rl.h" 27 av_cold void ff_rl_init(RLTable *rl, in ff_rl_init() argument 39 end = rl->last; in ff_rl_init() 41 start = rl->last; in ff_rl_init() 42 end = rl->n; in ff_rl_init() 45 memset(index_run, rl->n, MAX_RUN + 1); in ff_rl_init() 47 run = rl->table_run[i]; in ff_rl_init() 48 level = rl->table_level[i]; in ff_rl_init() 49 if (index_run[run] == rl->n) in ff_rl_init() 56 rl in ff_rl_init() 62 ff_rl_init_vlc(RLTable *rl, unsigned static_size) ff_rl_init_vlc() argument [all...] |
H A D | rl.h | 24 * rl header. 60 void ff_rl_init(RLTable *rl, uint8_t static_store[2][2*MAX_RUN + MAX_LEVEL + 3]); 71 void ff_rl_init_vlc(RLTable *rl, unsigned static_size); 73 #define INIT_VLC_RL(rl, static_size)\ 78 rl.rl_vlc[q] = rl_vlc_table[q]; \ 80 ff_rl_init_vlc(&rl, static_size); \ 83 #define INIT_FIRST_VLC_RL(rl, static_size) \ 87 rl.rl_vlc[0] = rl_vlc_table; \ 88 ff_rl_init_vlc(&rl, static_size); \ 91 static inline int get_rl_index(const RLTable *rl, in argument [all...] |
/third_party/ntfs-3g/ntfsprogs/ |
H A D | ntfsresize.c | 190 runlist_element *rl; member 663 static void rl_set(runlist *rl, VCN vcn, LCN lcn, s64 len) in rl_set() argument 665 rl->vcn = vcn; in rl_set() 666 rl->lcn = lcn; in rl_set() 667 rl->length = len; in rl_set() 670 static int rl_items(runlist *rl) in rl_items() argument 674 while (rl[i++].length) in rl_items() 687 static void dump_runlist(runlist *rl) in dump_runlist() argument 689 while (rl->length) in dump_runlist() 690 dump_run(rl in dump_runlist() 709 collect_resize_constraints(ntfs_resize_t *resize, runlist *rl) collect_resize_constraints() argument 776 collect_relocation_info(ntfs_resize_t *resize, runlist *rl) collect_relocation_info() argument 831 runlist *rl; build_lcn_usage_bitmap() local 1108 runlist *rl; build_resize_constraints() local 1175 rl_fixup(runlist **rl) rl_fixup() argument 1324 runlist_element *rl; expand_attribute_runlist() local 1543 replace_later(ntfs_resize_t *resize, runlist *rl, runlist *head_rl) replace_later() argument 1607 replace_attribute_runlist(ntfs_resize_t *resize, runlist *rl) replace_attribute_runlist() argument 1702 set_bitmap_clusters(struct bitmap *bm, runlist *rl, u8 bit) set_bitmap_clusters() argument 1708 release_bitmap_clusters(struct bitmap *bm, runlist *rl) release_bitmap_clusters() argument 1785 runlist *rl = NULL; alloc_cluster() local 1944 rl_split_run(runlist **rl, int run, s64 pos) rl_split_run() argument 1978 rl_insert_at_run(runlist **rl, int run, runlist *ins) rl_insert_at_run() argument 2008 relocate_run(ntfs_resize_t *resize, runlist **rl, int run) relocate_run() argument 2068 runlist *rl; relocate_attribute() local 2465 realloc_bitmap_data_attr(ntfs_resize_t *resize, runlist **rl, s64 nr_bm_clusters) realloc_bitmap_data_attr() argument 2506 runlist *rl; truncate_bitmap_data_attr() local 2615 runlist *rl; check_bad_sectors() local 3251 runlist_element *rl; get_mft_bitmap() local 3300 runlist *rl; check_expand_bad_sectors() local 3372 runlist_element *rl; check_expand_constraints() local 3581 set_bitmap(expand_t *expand, runlist_element *rl) set_bitmap() argument 3901 update_runlist(expand_t *expand, s64 inum, ATTR_RECORD *a, runlist_element *rl) update_runlist() argument 4030 runlist_element *rl; rebase_runlists() local 4079 runlist_element *rl; rebase_runlists_meta() local 4211 runlist_element *rl; rebase_inode() local [all...] |
H A D | ntfsfallocate.c | 404 static runlist_element *ntfs_save_rl(runlist_element *rl) in ntfs_save_rl() argument 411 if (rl) { in ntfs_save_rl() 412 while (rl[n].length) in ntfs_save_rl() 416 memcpy(save, rl, (n + 1)*sizeof(runlist_element)); in ntfs_save_rl() 460 for (brl=na->rl; brl->length; brl++) { in ntfs_restore_rl() 479 free(na->rl); in ntfs_restore_rl() 480 na->rl = oldrl; in ntfs_restore_rl() 490 static int ntfs_inner_zero(ntfs_attr *na, runlist_element *rl) in ntfs_inner_zero() argument 505 zrl = rl; in ntfs_inner_zero() 512 (rl in ntfs_inner_zero() 540 ntfs_merge_allocation(ntfs_attr *na, runlist_element *rl, s64 size) ntfs_merge_allocation() argument 592 runlist_element *rl; ntfs_inner_allocation() local [all...] |
H A D | ntfscp.c | 82 runlist_element *rl; member 404 if (alctx->rl) { in run_alloc() 405 memcpy(prl, alctx->rl, alctx->rl_allocated in run_alloc() 407 free(alctx->rl); in run_alloc() 409 alctx->rl = prl; in run_alloc() 444 replace = excess > (alctx->rl[0].length in merge_run() 445 + alctx->rl[1].length); in merge_run() 448 replace = (excess > alctx->rl[0].length) in merge_run() 449 && (count < alctx->rl[0].length); in merge_run() 459 && (alctx->rl[dro in merge_run() [all...] |
/third_party/curl/tests/libtest/ |
H A D | lib537.c | 128 struct rlimit rl; local 134 if(getrlimit(RLIMIT_NOFILE, &rl) != 0) { 142 rlim2str(strbuff, sizeof(strbuff), rl.rlim_cur); 145 rlim2str(strbuff, sizeof(strbuff), rl.rlim_max); 157 if(rl.rlim_cur != rl.rlim_max) { 160 if((rl.rlim_cur > 0) && 161 (rl.rlim_cur < OPEN_MAX)) { 163 rl.rlim_cur = OPEN_MAX; 164 if(setrlimit(RLIMIT_NOFILE, &rl) ! [all...] |
H A D | lib518.c | 127 struct rlimit rl; in rlimit() local 134 if(getrlimit(RLIMIT_NOFILE, &rl) != 0) { in rlimit() 142 rlim2str(strbuff, sizeof(strbuff), rl.rlim_cur); in rlimit() 145 rlim2str(strbuff, sizeof(strbuff), rl.rlim_max); in rlimit() 163 if(rl.rlim_cur != rl.rlim_max) { in rlimit() 166 if((rl.rlim_cur > 0) && in rlimit() 167 (rl.rlim_cur < OPEN_MAX)) { in rlimit() 169 rl.rlim_cur = OPEN_MAX; in rlimit() 170 if(setrlimit(RLIMIT_NOFILE, &rl) ! in rlimit() [all...] |
/third_party/musl/libc-test/src/regression/ |
H A D | rlimit-open-files.c | 13 struct rlimit rl; in main() local 16 rl.rlim_max = lim; in main() 17 rl.rlim_cur = lim; in main() 18 if (setrlimit(r, &rl)) in main() 20 if (getrlimit(r, &rl)) in main() 22 if (rl.rlim_max != lim || rl.rlim_cur != lim) in main() 23 t_error("getrlimit %d says cur=%ld,max=%ld after setting the limit to %ld\n", r, rl.rlim_cur, rl.rlim_max, lim); in main()
|
/third_party/musl/libc-test/src/common/ |
H A D | setrlim.c | 8 struct rlimit rl; in t_setrlim() local 10 if (getrlimit(r, &rl)) { in t_setrlim() 14 if (lim > rl.rlim_max) in t_setrlim() 16 if (lim == rl.rlim_max && lim == rl.rlim_cur) in t_setrlim() 18 rl.rlim_max = lim; in t_setrlim() 19 rl.rlim_cur = lim; in t_setrlim() 20 if (setrlimit(r, &rl)) { in t_setrlim()
|