idx
int64
func
string
target
int64
261,007
onig_st_lookup_strend(hash_table_type* table, const UChar* str_key, const UChar* end_key, hash_data_type *value) { st_str_end_key key; key.s = (UChar* )str_key; key.end = (UChar* )end_key; return onig_st_lookup(table, (st_data_t )(&key), value); }
0
36,881
vips_foreign_load_gif_close( VipsForeignLoadGif *gif ) { #ifdef HAVE_GIFLIB_5 if( gif->file ) { int error; if( DGifCloseFile( gif->file, &error ) == GIF_ERROR ) vips_foreign_load_gif_error_vips( gif, error ); gif->file = NULL; } #else if( gif->file ) { if( DGifCloseFile( gif->file ) == GIF_ERROR ) ...
0
391,025
static int ntop_stats_insert_hour_sampling(lua_State *vm) { char *sampling; time_t rawtime; int ifid; NetworkInterface* iface; StatsManager *sm; ntop->getTrace()->traceEvent(TRACE_INFO, "%s() called", __FUNCTION__); if(ntop_lua_check(vm, __FUNCTION__, 1, LUA_TNUMBER)) return(CONST_LUA_ERROR); ifid = l...
0
42,338
print_unix_command_map () { Keymap save, cmd_xmap; save = rl_get_keymap (); cmd_xmap = get_cmd_xmap_from_keymap (save); rl_set_keymap (cmd_xmap); rl_macro_dumper (1); rl_set_keymap (save); return 0; }
0
60,492
static int encode_public_key(RSA *rsa, u8 *key, size_t *keysize) { u8 buf[1024], *p = buf; u8 bnbuf[256]; int base = 0; int r; const BIGNUM *rsa_n, *rsa_e; switch (RSA_bits(rsa)) { case 512: base = 32; break; case 768: base = 48; break; case 1024: base = 64; break; case 2048: base = 128; brea...
0
42,313
event_name2nr(char_u *start, char_u **end) { char_u *p; int i; int len; // the event name ends with end of line, '|', a blank or a comma for (p = start; *p && !VIM_ISWHITE(*p) && *p != ',' && *p != '|'; ++p) ; for (i = 0; event_names[i].name != NULL; ++i) { len = (int)STRLEN(event_names...
0
164,066
void _php_curl_verify_handlers(php_curl *ch, int reporterror) /* {{{ */ { php_stream *stream; if (!ch || !ch->handlers) { return; } if (!Z_ISUNDEF(ch->handlers->std_err)) { stream = zend_fetch_resource(&ch->handlers->std_err, -1, NULL, NULL, 2, php_file_le_stream(), php_file_le_pstream()); if (stream == NULL...
0
20,402
static int php_uwsgi_startup ( sapi_module_struct * sapi_module ) { if ( php_module_startup ( & uwsgi_sapi_module , & uwsgi_module_entry , 1 ) == FAILURE ) { return FAILURE ; } else { return SUCCESS ; } }
0
477,859
CImg<T>& load_pnm(std::FILE *const file) { return _load_pnm(file,0); }
0
463,361
static int rtw_set_beacon(struct net_device *dev, struct ieee_param *param, int len) { int ret = 0; struct adapter *padapter = rtw_netdev_priv(dev); struct mlme_priv *pmlmepriv = &padapter->mlmepriv; struct sta_priv *pstapriv = &padapter->stapriv; unsigned char *pbuf = param->u.bcn_ie.buf; DBG_88E("%s, len =%d\n...
0
318,511
int ff_lock_avcodec(AVCodecContext *log_ctx, const AVCodec *codec) { _Bool exp = 0; if (codec->caps_internal & FF_CODEC_CAP_INIT_THREADSAFE || !codec->init) return 0; if (lockmgr_cb) { if ((*lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN)) return -1; } if (atomic_f...
0
376,626
void HGraphBuilder::GenerateMathSqrt(CallRuntime* call) { return Bailout("inlined runtime function: MathSqrt"); }
0
514,587
void MemoryInfo(MemoryTracker* tracker) const override { tracker->TrackField("paths", paths); }
0
425,774
apr_status_t h2_mplx_stream_cleanup(h2_mplx *m, h2_stream *stream) { H2_MPLX_ENTER(m); ap_log_cerror(APLOG_MARK, APLOG_TRACE2, 0, m->c, H2_STRM_MSG(stream, "cleanup")); stream_cleanup(m, stream); H2_MPLX_LEAVE(m); return APR_SUCCESS; }
0
409,212
static js_Ast *primary(js_State *J) { js_Ast *a; if (J->lookahead == TK_IDENTIFIER) { a = jsP_newstrnode(J, EXP_IDENTIFIER, J->text); jsP_next(J); return a; } if (J->lookahead == TK_STRING) { a = jsP_newstrnode(J, EXP_STRING, J->text); jsP_next(J); return a; } if (J->lookahead == TK_REGEXP) { a = j...
0
309,715
RenderText* SimplifiedBackwardsTextIterator::handleFirstLetter(int& startOffset, int& offsetInNode) { RenderText* renderer = toRenderText(m_node->renderer()); startOffset = (m_node == m_startNode) ? m_startOffset : 0; if (!renderer->isTextFragment()) { offsetInNode = 0; return renderer; ...
0
146,991
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { TF_LITE_ENSURE_EQ(context, NumInputs(node), 2); TF_LITE_ENSURE_EQ(context, NumOutputs(node), 1); const TfLiteTensor* input; TF_LITE_ENSURE_OK(context, GetInputSafe(context, node, kInputTensor, &input)); const TfLiteTensor* size; TF_LITE_ENSUR...
0
16,258
void mime_field_name_value_set ( HdrHeap * heap , MIMEHdrImpl * mh , MIMEField * field , int16_t name_wks_idx_or_neg1 , const char * name , int name_length , const char * value , int value_length , int n_v_raw_printable , int n_v_raw_length , bool must_copy_strings ) { unsigned int n_v_raw_pad = n_v_raw_length - ( nam...
0
463,094
void doCheckAuthorization(OperationContext* opCtx) const final { AuthorizationSession* authSession = AuthorizationSession::get(opCtx->getClient()); uassert(ErrorCodes::Unauthorized, "Unauthorized", authSession->isAuthorizedToParseNamespaceElement(...
0
10,677
PHP_FUNCTION(locale_get_all_variants) { const char* loc_name = NULL; int loc_name_len = 0; int result = 0; char* token = NULL; char* variant = NULL; char* saved_ptr = NULL; intl_error_reset( NULL TSRMLS_CC ); if(zend_parse_parameters( ZEND_NUM_ARGS() TSRMLS_CC, "s", &loc_name, &loc_n...
1
173,027
generate_row(png_bytep row, size_t rowbytes, unsigned int y, int color_type, int bit_depth, png_const_bytep gamma_table, double conv, unsigned int *colors, int small) { int filters = 0; /* file *MASK*, 0 means the default, not NONE */ png_uint_32 size_max = image_size_of_type(color_type, bit_depth,...
0
515,718
get_baudrate(TERMINAL *termp) { int my_ospeed; int result; if (GET_TTY(termp->Filedes, &termp->Nttyb) == OK) { #ifdef TERMIOS termp->Nttyb.c_oflag &= (unsigned) (~OFLAGS_TABS); #else termp->Nttyb.sg_flags &= (unsigned) (~XTABS); #endif } #ifdef USE_OLD_TTY result = (int) cfgetospeed(&(termp->Nttyb...
0
310,335
int ProfileChooserView::GetDiceSigninPromoShowCount() const { return browser_->profile()->GetPrefs()->GetInteger( prefs::kDiceSigninUserMenuPromoCount); }
0
153,578
int do_journal_get_write_access(handle_t *handle, struct buffer_head *bh) { int dirty = buffer_dirty(bh); int ret; if (!buffer_mapped(bh) || buffer_freed(bh)) return 0; /* * __block_write_begin() could have dirtied some buffers. Clean * the dirty bit as jbd2_journal_get_write_access() could complain * ...
0
328,056
static void tlb_unprotect_code_phys(CPUState *env, ram_addr_t ram_addr, target_ulong vaddr) { phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS] |= CODE_DIRTY_FLAG; }
0
25,221
static void useNonBlockingConnectTimeout ( socket_handle_t sock ) { int res_snd ; int res_rcv ; # ifdef _WIN32 const DWORD socket_timeout = SOCKET_RW_TIMEOUT_MS ; unsigned long non_blocking = 1 ; res_snd = setsockopt ( sock , SOL_SOCKET , SO_SNDTIMEO , ( const char * ) & socket_timeout , sizeof ( socket_timeout ) ...
0
131,131
static int lxc_cgroupfs_enter(struct cgroup_process_info *info, pid_t pid, bool enter_sub) { char pid_buf[32]; char *cgroup_tasks_fn; int r; struct cgroup_process_info *info_ptr; snprintf(pid_buf, 32, "%lu", (unsigned long)pid); for (info_ptr = info; info_ptr; info_ptr = info_ptr->next) { char *cgroup_path = (...
0
515,834
lookup_user_capability(const char *name) { struct user_table_entry const *result = 0; if (*name != 'k') { result = _nc_find_user_entry(name); } return result; }
0
327,687
static int mov_write_source_reference_tag(AVIOContext *pb, MOVTrack *track, const char *reel_name){ int64_t pos = avio_tell(pb); avio_wb32(pb, 0); /* size */ ffio_wfourcc(pb, "name"); /* Data format */ avio_wb16(pb, strlen(reel_name)); /...
0
402,298
static void xhci_reset_streams(XHCIEPContext *epctx) { unsigned int i; for (i = 0; i < epctx->nr_pstreams; i++) { epctx->pstreams[i].sct = -1; } }
0
422,232
ews_backend_sync_deleted_folders (EEwsBackend *backend, GSList *list) { GSList *link; for (link = list; link != NULL; link = g_slist_next (link)) { const gchar *folder_id = link->data; ESource *source = NULL; if (folder_id != NULL) source = ews_backend_folders_lookup ( ...
0
177,609
DataPipeConsumerDispatcher::Deserialize(const void* data, size_t num_bytes, const ports::PortName* ports, size_t num_ports, PlatformHandle* handles, ...
0
228,157
static void __mem_cgroup_clear_mc(void) { struct mem_cgroup *from = mc.from; struct mem_cgroup *to = mc.to; /* we must uncharge all the leftover precharges from mc.to */ if (mc.precharge) { __mem_cgroup_cancel_charge(mc.to, mc.precharge); mc.precharge = 0; } /* * we didn't uncharge from mc.from at mem_cgro...
0
40,204
Status OpLevelCostEstimator::PredictNaryOp(const OpContext& op_context, NodeCosts* node_costs) const { const auto& op_info = op_context.op_info; bool found_unknown_shapes = false; // Calculate the largest known tensor size across all inputs and output. int64_t op_count...
0
321,575
void do_interrupt(CPUARMState *env) { uint32_t addr; uint32_t mask; int new_mode; uint32_t offset; if (IS_M(env)) { do_interrupt_v7m(env); return; } /* TODO: Vectored interrupt controller. */ switch (env->exception_index) { case EXCP_UDEF: new_...
1
146,661
aff_check_number(int spinval, int affval, char *name) { if (spinval != 0 && spinval != affval) smsg(_("%s value differs from what is used in another .aff file"), name); }
0
393,885
dissect_rpcap_open_reply (tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *parent_tree, gint offset) { proto_tree *tree; proto_item *ti; ti = proto_tree_add_item (parent_tree, hf_open_reply, tvb, offset, -1, ENC_NA); tree = proto_item_add_subtree (ti, ett_open_reply); linktype = ...
0
388,989
struct file_list *flist_new(int flags, char *msg) { struct file_list *flist; if (!(flist = new0(struct file_list))) out_of_memory(msg); if (flags & FLIST_TEMP) { if (!(flist->file_pool = pool_create(SMALL_EXTENT, 0, out_of_memory, POOL_INTERN))) out_of_memory(msg); } else { /* This ...
0
204,231
void RunLoop::AfterRun() { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); running_ = false; auto& active_run_loops_ = delegate_->active_run_loops_; DCHECK_EQ(active_run_loops_.top(), this); active_run_loops_.pop(); RunLoop* previous_run_loop = active_run_loops_.empty() ? nullptr : active_run_l...
0
453,686
bootParameterValidate( Syntax *syntax, struct berval *val ) { char *p, *e; if ( BER_BVISEMPTY( val ) ) { return LDAP_INVALID_SYNTAX; } p = (char *)val->bv_val; e = p + val->bv_len; /* key */ for (; ( p < e ) && ( *p != '=' ); p++ ) { if ( !AD_CHAR( *p ) ) { return LDAP_INVALID_SYNTAX; } } if ( *...
0
265,804
term_write_session(FILE *fd, win_T *wp) { term_T *term = wp->w_buffer->b_term; /* Create the terminal and run the command. This is not without * risk, but let's assume the user only creates a session when this * will be OK. */ if (fprintf(fd, "terminal ++curwin ++cols=%d ++rows=%d ", term->tl_...
0
242,798
static void btif_in_split_uuids_string_to_list(char *str, bt_uuid_t *p_uuid, uint32_t *p_num_uuid) { char buf[64]; char *p_start = str; char *p_needle; uint32_t num = 0; do { p_needle = strchr(p_start, ' '); if (p_needle < p_start) break; memset(buf, 0, sizeof(buf)); strncpy(buf, p_start...
0
377,234
static int coroutine_fn bdrv_co_io_em(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *iov, bool is_write) { CoroutineIOCompletion co = { .coroutine = qemu_coroutine_self(), }; BlockDriverAIOCB *acb; ...
0
508,199
static OCSP_RESPONSE *query_responder(BIO *err, BIO *cbio, char *path, STACK_OF(CONF_VALUE) *headers, OCSP_REQUEST *req, int req_timeout) { int fd; int rv; int i; OCSP_REQ_CTX *ctx = NULL; OCSP_RESPONSE *rsp = NULL; fd_set confds; struct timeval tv; if (req_timeout != -1) BIO_set_nbio(cbio, 1); rv...
0
164,262
PrintPreviewUI::~PrintPreviewUI() { print_preview_data_service()->RemoveEntry(id_); g_print_preview_request_id_map.Get().Erase(id_); g_print_preview_ui_id_map.Get().Remove(id_); }
0
371,036
int LibRaw::adjust_maximum() { int i; ushort real_max; float auto_threshold; if(O.adjust_maximum_thr < 0.00001) return LIBRAW_SUCCESS; else if (O.adjust_maximum_thr > 0.99999) auto_threshold = LIBRAW_DEFAULT_ADJUST_MAXIMUM_THRESHOLD; else auto_threshold = O.adjust_maxim...
0
346,260
static inline void Process_ipfix_option_templates(exporter_ipfix_domain_t *exporter, void *option_template_flowset, FlowSource_t *fs) { void *DataPtr; uint32_t size_left, size_required, i; // uint32_t nr_scopes, nr_options; uint16_t id, field_count, scope_field_count, offset, sampler_id_length; uint16_t offset_sampler...
1
309,439
void NavigationControllerImpl::Reload(ReloadType reload_type, bool check_for_repost) { if (transient_entry_index_ != -1) { NavigationEntryImpl* transient_entry = GetTransientEntry(); if (!transient_entry) return; LoadURL(transient_entry->GetURL(), Re...
0
401,863
ZEND_VM_COLD_CONST_HANDLER(14, ZEND_BOOL_NOT, CONST|TMPVAR|CV, ANY) { USE_OPLINE zval *val; zend_free_op free_op1; val = GET_OP1_ZVAL_PTR_UNDEF(BP_VAR_R); if (Z_TYPE_INFO_P(val) == IS_TRUE) { ZVAL_FALSE(EX_VAR(opline->result.var)); } else if (EXPECTED(Z_TYPE_INFO_P(val) <= IS_TRUE)) { /* The result and op1 c...
0
244,535
void InputConnectionImpl::StartStateUpdateTimer() { state_update_timer_.Start( FROM_HERE, kStateUpdateTimeout, base::BindOnce(&InputConnectionImpl::UpdateTextInputState, base::Unretained(this), true /* is_input_state_update_requested */)); }
0
203,332
void GLES2DecoderImpl::DoCompressedTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei image_size, const void * data) { TextureManager::TextureInfo* info = GetTextureInfoForTarget(target); if (!info) { SetGLError(GL_INV...
0
143,716
SegmentBTreeRoot * JavascriptArray::GetSegmentMap() const { return (HasSegmentMap() ? segmentUnion.segmentBTreeRoot : nullptr); }
0
385,620
PHP_FUNCTION(pcntl_getpriority) { long who = PRIO_PROCESS; long pid = getpid(); int pri; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ll", &pid, &who) == FAILURE) { RETURN_FALSE; } /* needs to be cleared, since any returned value is valid */ errno = 0; pri = getpriority(who, pid); if (errno) { ...
0
165,081
findCursorHideCount(ClientPtr pClient, ScreenPtr pScreen) { CursorScreenPtr cs = GetCursorScreen(pScreen); CursorHideCountPtr pChc; for (pChc = cs->pCursorHideCounts; pChc != NULL; pChc = pChc->pNext) { if (pChc->pClient == pClient) { return pChc; } } return NULL; }
0
199,955
gfx::Size WebContentsImpl::GetSizeForNewRenderView(bool is_main_frame) { gfx::Size size; if (is_main_frame) size = device_emulation_size_; if (size.IsEmpty() && delegate_) size = delegate_->GetSizeForNewRenderView(this); if (size.IsEmpty()) size = GetContainerBounds().size(); return size; }
0
34,827
static int use_db(char *database) { if (mysql_get_server_version(sock) >= FIRST_INFORMATION_SCHEMA_VERSION && !my_strcasecmp(&my_charset_latin1, database, INFORMATION_SCHEMA_DB_NAME)) return 1; if (mysql_get_server_version(sock) >= FIRST_PERFORMANCE_SCHEMA_VERSION && !my_strcasecmp(&my_charset_latin...
0
295,759
static int nfs4_open_recover_helper(struct nfs4_opendata *opendata, fmode_t fmode, struct nfs4_state **res) { struct nfs4_state *newstate; int ret; opendata->o_arg.open_flags = 0; opendata->o_arg.fmode = fmode; memset(&opendata->o_res, 0, sizeof(opendata->o_res)); memset(&opendata->c_res, 0, sizeof(opendata->c_r...
0
318,414
av_cold void ff_af_queue_init(AVCodecContext *avctx, AudioFrameQueue *afq) { afq->avctx = avctx; afq->next_pts = AV_NOPTS_VALUE; afq->remaining_delay = avctx->delay; afq->remaining_samples = avctx->delay; afq->frame_queue = NULL; }
0
67,461
static int pkcs7_decrypt_rinfo(unsigned char **pek, int *peklen, PKCS7_RECIP_INFO *ri, EVP_PKEY *pkey) { EVP_PKEY_CTX *pctx = NULL; unsigned char *ek = NULL; size_t eklen; int ret = -1; pctx = EVP_PKEY_CTX_new(pkey, NULL); if (!pctx) return -1; if (E...
0
434,204
number_format(int value) { const char *result = "%d"; if ((outform != F_TERMCAP) && (value > 255)) { unsigned long lv = (unsigned long) value; unsigned long mm; int bits = sizeof(unsigned long) * 8; int nn; for (nn = 8; nn < bits; ++nn) { mm = 1UL << nn; if ((mm - 16) <= lv && (mm + 16) > lv) { ...
0
338,718
int swr_convert_frame(SwrContext *s, AVFrame *out, const AVFrame *in) { int ret, setup = 0; if (!swr_is_initialized(s)) { if ((ret = swr_config_frame(s, out, in)) < 0) return ret; if ((ret = swr_init(s)) < 0) return ret; setup = 1;...
1
214,065
void Dispatcher::OnCancelSuspend(const std::string& extension_id) { DispatchEvent(extension_id, kOnSuspendCanceledEvent); }
0
378,622
static ssize_t vfswrap_listxattr(struct vfs_handle_struct *handle, const char *path, char *list, size_t size) { return listxattr(path, list, size); }
0
333,138
static gsize calc_float_string_storage(double value) { int whole_value = value; gsize i = 0; do { i++; } while (whole_value /= 10); return i + 2 + FLOAT_STRING_PRECISION; }
1
101,900
static int pnm_gethdr(jas_stream_t *in, pnm_hdr_t *hdr) { int_fast32_t maxval; int_fast32_t width; int_fast32_t height; int type; if (pnm_getint16(in, &hdr->magic) || pnm_getsintstr(in, &width) || pnm_getsintstr(in, &height)) { return -1; } hdr->width = width; hdr->height = height; if ((type = pnm_type(h...
0
173,960
bool NetworkThrottleManagerImpl::ThrottleImpl::IsBlocked() const { return state_ == State::BLOCKED; }
0
507,457
ASN1_INTEGER *TS_ACCURACY_get_micros(TS_ACCURACY *a) { return a->micros; }
0
414,072
int wmi_set_mgmt_retry(struct wil6210_priv *wil, u8 retry_short) { int rc; struct wmi_set_mgmt_retry_limit_cmd cmd = { .mgmt_retry_limit = retry_short, }; struct { struct wmi_cmd_hdr wmi; struct wmi_set_mgmt_retry_limit_event evt; } __packed reply; wil_dbg_wmi(wil, "Setting mgmt retry short %d\n", retry_sh...
0
400,861
ref_param_begin_read_collection(gs_param_list * plist, gs_param_name pkey, gs_param_dict * pvalue, gs_param_collection_type_t coll_type) { iparam_list *const iplist = (iparam_list *) plist; iparam_loc loc; bool int_keys = coll_type != 0; in...
0
46,246
START_TEST(single_quote_string) { int i; struct { const char *encoded; const char *decoded; } test_cases[] = { { "'hello world'", "hello world" }, { "'the quick brown fox \\' jumped over the fence'", "the quick brown fox ' jumped over the fence" }, ...
0
413,708
allocateHeader(FileInfo *nested, TranslationTableHeader **table) { /* Allocate memory for the table header and a guess on the number of * rules */ const TranslationTableOffset startSize = 2 * sizeof(**table); if (*table) return 1; tableUsed = sizeof(**table) + OFFSETSIZE; /* So no offset is ever zero */ if (!(*t...
0
139,436
static int is_non_fatal(int lib_error_code) { return lib_error_code < 0 && lib_error_code > NGHTTP2_ERR_FATAL; }
0
200,556
void WebPage::popupClosed() { ASSERT(d->m_selectPopup); d->m_selectPopup = 0; }
0
233,927
http_process(struct vtclog *vl, const char *spec, int sock, int *sfd) { struct http *hp; char *s, *q; int retval; (void)sfd; ALLOC_OBJ(hp, HTTP_MAGIC); AN(hp); hp->fd = sock; hp->timeout = 15000; hp->nrxbuf = 2048*1024; hp->vsb = VSB_new_auto(); hp->rxbuf = malloc(hp->nrxbuf); /* XXX */ hp->sfd = sfd; hp...
0
31,753
static int ext4_alloc_file_blocks(struct file *file, ext4_lblk_t offset, ext4_lblk_t len, loff_t new_size, int flags, int mode) { struct inode *inode = file_inode(file); handle_t *handle; int ret = 0; int ret2 = 0; int retries = 0; int depth = 0; struct ext4_map_blocks map; unsigned int credits; lo...
0
403,568
acpi_parse_x2apic(struct acpi_subtable_header *header, const unsigned long end) { struct acpi_madt_local_x2apic *processor = NULL; int apic_id; u8 enabled; processor = (struct acpi_madt_local_x2apic *)header; if (BAD_MADT_ENTRY(processor, end)) return -EINVAL; acpi_table_print_madt_entry(header); apic_id =...
0
11,794
aspath_put (struct stream *s, struct aspath *as, int use32bit ) { struct assegment *seg = as->segments; size_t bytes = 0; if (!seg || seg->length == 0) return 0; if (seg) { /* * Hey, what do we do when we have > STREAM_WRITABLE(s) here? * At the moment, we would write out a par...
1
265,993
trigger_set_xy(int trigger_index, int x, int y) { struct map_trigger* trigger; trigger = vector_get(s_map->triggers, trigger_index); trigger->x = x; trigger->y = y; }
0
259,296
int SPIFFEValidator::initializeSslContexts(std::vector<SSL_CTX*>, bool) { return SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT; }
0
334,897
static void pflash_timer (void *opaque) { pflash_t *pfl = opaque; DPRINTF("%s: command %02x done\n", __func__, pfl->cmd); /* Reset flash */ pfl->status ^= 0x80; if (pfl->bypass) { pfl->wcycle = 2; } else { memory_region_rom_device_set_readable(&pfl->mem, true); ...
0
134,033
static int virtio_rpmsg_trysendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst) { struct rpmsg_device *rpdev = ept->rpdev; u32 src = ept->addr; return rpmsg_send_offchannel_raw(rpdev, src, dst, data, len, false); }
0
268,762
struct tcp_md5sig_key *tcp_md5_do_lookup(const struct sock *sk, const union tcp_md5_addr *addr, int family) { const struct tcp_sock *tp = tcp_sk(sk); struct tcp_md5sig_key *key; unsigned int size = sizeof(struct in_addr); const struct tcp_md5sig_info *md5sig; /* caller either holds rcu_read_lock() or ...
0
458,124
static OPJ_BOOL opj_j2k_write_all_tile_parts(opj_j2k_t *p_j2k, OPJ_BYTE * p_data, OPJ_UINT32 * p_data_written, OPJ_UINT32 total_data_size, opj_stream_private_t *p_stream, struct opj_event_mgr * p_manager ) { OPJ_UINT32 tilepartno = ...
0
407,500
static int theme_read(THEME_REC *theme, const char *path) { CONFIG_REC *config; THEME_READ_REC rec; char *str; config = config_open(path, -1) ; if (config == NULL) { /* didn't exist or no access? */ str = g_strdup_printf("Error reading theme file %s: %s", path, g_strerror(errno)); read_erro...
0
316,515
void FoFiType1C::getFontMatrix(double *mat) { int i; if (topDict.firstOp == 0x0c1e && privateDicts[0].hasFontMatrix) { if (topDict.hasFontMatrix) { mat[0] = topDict.fontMatrix[0] * privateDicts[0].fontMatrix[0] + topDict.fontMatrix[1] * privateDicts[0].fontMatrix[2]; mat[1] = topDict.fontMa...
0
126,425
void AxoGluonArc(double *args) { SetLineWidth(axolinewidth + args[7]); if ( args[9] ) { /* Clockwise */ double a = args[3]; args[3] = args[4]; args[4] = a; } if ( args[8] ) { /* Dashes */ args[7] = args[8]; DashGluonArc(args); } else { GluonArc(args); ...
0
348,081
static int iccdomain(i_ctx_t * i_ctx_p, ref *space, float *ptr) { int components, i, code = 0; ref *tempref, ICCdict, valref; code = array_get(imemory, space, 1, &ICCdict); if (code < 0) return code; code = dict_find_string(&ICCdict, "N", &tempref); if (code < 0) return code; ...
1
402,821
poolGrow(STRING_POOL *pool) { if (pool->freeBlocks) { if (pool->start == 0) { pool->blocks = pool->freeBlocks; pool->freeBlocks = pool->freeBlocks->next; pool->blocks->next = NULL; pool->start = pool->blocks->s; pool->end = pool->start + pool->blocks->size; pool->ptr = pool->st...
0
313,915
void CL_ServerStatusResponse( netadr_t from, msg_t *msg ) { char *s; char info[MAX_INFO_STRING]; int i, l, score, ping; int len; serverStatus_t *serverStatus; serverStatus = NULL; for ( i = 0; i < MAX_SERVERSTATUSREQUESTS; i++ ) { if ( NET_CompareAdr( from, cl_serverStatusList[i].address ) ) { serverStatus...
0
136,710
static VALUE cState_aref(VALUE self, VALUE name) { name = rb_funcall(name, i_to_s, 0); if (RTEST(rb_funcall(self, i_respond_to_p, 1, name))) { return rb_funcall(self, i_send, 1, name); } else { return rb_ivar_get(self, rb_intern_str(rb_str_concat(rb_str_new2("@"), name))); } }
0
46,503
bool Jsi_ValueIsUndef(Jsi_Interp *interp, Jsi_Value *pv) { return (pv->vt == JSI_VT_UNDEF); }
0
20,946
static void read_intra_frame_mode_info ( VP9_COMMON * const cm , MACROBLOCKD * const xd , int mi_row , int mi_col , vp9_reader * r ) { MODE_INFO * const mi = xd -> mi [ 0 ] . src_mi ; MB_MODE_INFO * const mbmi = & mi -> mbmi ; const MODE_INFO * above_mi = xd -> mi [ - cm -> mi_stride ] . src_mi ; const MODE_INFO * ...
0
43,352
static pj_status_t parse_rr(pj_dns_parsed_rr *rr, pj_pool_t *pool, const pj_uint8_t *pkt, const pj_uint8_t *start, const pj_uint8_t *max, int *parsed_len) { const pj_uint8_t *p = start; int name_len, name_part_len; pj_status_t status; /* Get the length of the name */ status = g...
0
347,372
int ZipStreamBuf::readFromDevice(char* buffer, std::streamsize length) { if (!_ptrBuf) return 0; // directory entry _ptrBuf->read(buffer, length); int cnt = static_cast<int>(_ptrBuf->gcount()); if (cnt > 0) { _crc32.update(buffer, cnt); } else { if (_crc32.checksum() != _expectedCrc32) { if (_checkCRC)...
1
440,596
static struct rtable *geneve_get_v4_rt(struct sk_buff *skb, struct net_device *dev, struct geneve_sock *gs4, struct flowi4 *fl4, const struct ip_tunnel_info *info) { bool use_cache = ip_tunnel_dst_cache_usable(skb, info); struct geneve_dev *geneve = netdev_priv(dev); struc...
0
286,188
static void copy_asoundrc(void) { char *src = RUN_ASOUNDRC_FILE ; char *dest; if (asprintf(&dest, "%s/.asoundrc", cfg.homedir) == -1) errExit("asprintf"); if (is_link(dest)) { fprintf(stderr, "Error: %s is a symbolic link\n", dest); exit(1); } copy_file_as_user(src, dest, getuid(), getgid(), S_IRUSR | S_...
0
284,464
construct_le_tlv(struct sc_apdu *apdu, unsigned char *apdu_buf, size_t data_tlv_len, unsigned char *le_tlv, size_t * le_tlv_len, const unsigned char key_type) { size_t block_size = (KEY_TYPE_AES == key_type ? 16 : 8); *(apdu_buf + block_size + data_tlv_len) = 0x97; if (apdu->le > 0x7F) { /* Le' > 0x7E, use exte...
0
238,958
static bool isCandidateForOpaquenessTest(RenderBox* childBox) { RenderStyle* childStyle = childBox->style(); if (childStyle->position() != StaticPosition && childBox->containingBlock() != childBox->parent()) return false; if (childStyle->visibility() != VISIBLE || childStyle->shapeOutside()) ...
0
455,710
TEST_F(QueryPlannerTest, MultikeyDoubleDottedElemMatch) { // true means multikey addIndex(BSON("a.b.x" << 1 << "a.b.y" << 1), true); runQuery(fromjson("{a: {$elemMatch: {b: {$elemMatch: {x: 1, y: 1}}}}}")); assertNumSolutions(2U); assertSolutionExists("{cscan: {dir: 1}}"); assertSolutionExists(...
0
490,695
storageVolDelete(virStorageVolPtr vol, unsigned int flags) { virStoragePoolObj *obj; virStorageBackend *backend; virStorageVolDef *voldef = NULL; int ret = -1; if (!(voldef = virStorageVolDefFromVol(vol, &obj, &backend))) return -1; if (virStorageVolDeleteEnsureACL(vol...
0