unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
125,415
0
void GDataFileSystem::OnGetFileFromCache(const GetFileFromCacheParams& params, GDataFileError error, const std::string& resource_id, const std::string& md5, ...
3,400
97,858
0
void AutoFillHelper::SuggestionsReceived(int query_id, const std::vector<string16>& values, const std::vector<string16>& labels, const std::vector<string16>& icons, ...
3,401
136,826
0
void LocalDOMWindow::print(ScriptState* script_state) { if (!GetFrame()) return; Page* page = GetFrame()->GetPage(); if (!page) return; if (script_state && v8::MicrotasksScope::IsRunningMicrotasks(script_state->GetIsolate())) { UseCounter::Count(document(), WebFeature::kDuring_Microtask_Prin...
3,402
173,446
0
OMX_ERRORTYPE omx_vdec::allocate_color_convert_buf::free_output_buffer( OMX_BUFFERHEADERTYPE *bufhdr) { unsigned int index = 0; if (!enabled) return omx->free_output_buffer(bufhdr); if (enabled && omx->is_component_secure()) return OMX_ErrorNone; if (!allocated_count || !bufhdr) { DEBUG_PRINT_ERR...
3,403
7,848
0
static void mig_sleep_cpu(void *opq) { qemu_mutex_unlock_iothread(); g_usleep(30*1000); qemu_mutex_lock_iothread(); }
3,404
46,106
0
void dtls1_double_timeout(SSL *s) { s->d1->timeout_duration *= 2; if (s->d1->timeout_duration > 60) s->d1->timeout_duration = 60; dtls1_start_timer(s); }
3,405
57,505
0
static int ext4_do_update_inode(handle_t *handle, struct inode *inode, struct ext4_iloc *iloc) { struct ext4_inode *raw_inode = ext4_raw_inode(iloc); struct ext4_inode_info *ei = EXT4_I(inode); struct buffer_head *bh = iloc->bh; int err = 0, rc, block; /* For fields not not tracking in the in-memory inode...
3,406
55,691
0
void wake_up_new_task(struct task_struct *p) { struct rq_flags rf; struct rq *rq; /* Initialize new task's runnable average */ init_entity_runnable_average(&p->se); raw_spin_lock_irqsave(&p->pi_lock, rf.flags); #ifdef CONFIG_SMP /* * Fork balancing, do it here and not earlier because: * - cpus_allowed can c...
3,407
114,325
0
bool WebGraphicsContext3DCommandBufferImpl::isGLES2Compliant() { return true; }
3,408
166,709
0
void ThreadHeap::ResetHeapCounters() { DCHECK(thread_state_->InAtomicMarkingPause()); ThreadHeap::ReportMemoryUsageForTracing(); ProcessHeap::DecreaseTotalAllocatedObjectSize(stats_.AllocatedObjectSize()); ProcessHeap::DecreaseTotalMarkedObjectSize(stats_.MarkedObjectSize()); stats_.Reset(); }
3,409
145,598
0
bool WriteResponsePayloadsV2( NtlmBufferWriter* authenticate_writer, base::span<const uint8_t, kResponseLenV1> lm_response, base::span<const uint8_t, kNtlmProofLenV2> v2_proof, base::span<const uint8_t> v2_proof_input, base::span<const uint8_t> updated_target_info) { return authenticate_writer->Wr...
3,410
26,886
0
static void *proc_self_follow_link(struct dentry *dentry, struct nameidata *nd) { struct pid_namespace *ns = dentry->d_sb->s_fs_info; pid_t tgid = task_tgid_nr_ns(current, ns); char *name = ERR_PTR(-ENOENT); if (tgid) { name = __getname(); if (!name) name = ERR_PTR(-ENOMEM); else sprintf(name, "%d", tgi...
3,411
81,189
0
static inline void unlock_timer(struct k_itimer *timr, unsigned long flags) { spin_unlock_irqrestore(&timr->it_lock, flags); }
3,412
111,822
0
void SyncBackendHost::Core::OnEncryptedTypesChanged( syncable::ModelTypeSet encrypted_types, bool encrypt_everything) { if (!sync_loop_) return; DCHECK_EQ(MessageLoop::current(), sync_loop_); host_.Call( FROM_HERE, &SyncBackendHost::NotifyEncryptedTypesChanged, encrypted_types, encry...
3,413
135,159
0
void Document::clearAXObjectCache() { ASSERT(&axObjectCacheOwner() == this); if (m_axObjectCache) m_axObjectCache->dispose(); m_axObjectCache.clear(); }
3,414
140,943
0
void Document::AddAXContext(AXContext* context) { DCHECK_EQ(&AXObjectCacheOwner(), this); if (!GetLayoutView()) return; ax_contexts_.push_back(context); if (ax_contexts_.size() != 1) return; if (!ax_object_cache_) ax_object_cache_ = AXObjectCache::Create(*this); }
3,415
11,872
0
static void print_rsync_version(enum logcode f) { char *subprotocol = ""; char const *got_socketpair = "no "; char const *have_inplace = "no "; char const *hardlinks = "no "; char const *prealloc = "no "; char const *symtimes = "no "; char const *acls = "no "; char const *xattrs = "no "; char const *links = "n...
3,416
133,201
0
void SchedulerHelper::RemoveTaskObserver( base::MessageLoop::TaskObserver* task_observer) { CheckOnValidThread(); if (task_queue_manager_) task_queue_manager_->RemoveTaskObserver(task_observer); }
3,417
33,086
0
static int attach_one_algo(struct xfrm_algo **algpp, u8 *props, struct xfrm_algo_desc *(*get_byname)(const char *, int), struct nlattr *rta) { struct xfrm_algo *p, *ualg; struct xfrm_algo_desc *algo; if (!rta) return 0; ualg = nla_data(rta); algo = get_byname(ualg->alg_name, 1); if (!algo) retu...
3,418
89,458
0
int nfc_genl_se_removed(struct nfc_dev *dev, u32 se_idx) { struct sk_buff *msg; void *hdr; msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); if (!msg) return -ENOMEM; hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, NFC_EVENT_SE_REMOVED); if (!hdr) goto free_msg; if (nla_put_u32(msg, NFC_ATTR_DEVICE_...
3,419
68,371
0
perf_event_output_backward(struct perf_event *event, struct perf_sample_data *data, struct pt_regs *regs) { __perf_event_output(event, data, regs, perf_output_begin_backward); }
3,420
152,951
0
void PDFiumEngine::AppendBlankPages(int num_pages) { DCHECK_NE(num_pages, 0); if (!doc_) return; selection_.clear(); pending_pages_.clear(); while (pages_.size() > 1) { delete pages_.back(); pages_.pop_back(); FPDFPage_Delete(doc_, pages_.size()); } std::vector<pp::Rect> page_rects; ...
3,421
179,892
1
static int setup_dev_console(const struct lxc_rootfs *rootfs, const struct lxc_console *console) { char path[MAXPATHLEN]; struct stat s; int ret; ret = snprintf(path, sizeof(path), "%s/dev/console", rootfs->mount); if (ret >= sizeof(path)) { ERROR("console path too long"); return -1; } if (access(path, F_OK)) { WARN(...
3,422
169,294
0
bool DOMMessageQueue::PopMessage(std::string* message) { DCHECK(message); if (renderer_crashed_ || message_queue_.empty()) return false; *message = message_queue_.front(); message_queue_.pop(); return true; }
3,423
25,787
0
static void x86_pmu_enable(struct pmu *pmu) { struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events); struct perf_event *event; struct hw_perf_event *hwc; int i, added = cpuc->n_added; if (!x86_pmu_initialized()) return; if (cpuc->enabled) return; if (cpuc->n_added) { int n_running = cpuc->n_events ...
3,424
40,639
0
static int packet_set_ring(struct sock *sk, union tpacket_req_u *req_u, int closing, int tx_ring) { struct pgv *pg_vec = NULL; struct packet_sock *po = pkt_sk(sk); int was_running, order = 0; struct packet_ring_buffer *rb; struct sk_buff_head *rb_queue; __be16 num; int err = -EINVAL; /* Added to avoid minimal...
3,425
25,061
0
static struct sock *dccp_v6_request_recv_sock(struct sock *sk, struct sk_buff *skb, struct request_sock *req, struct dst_entry *dst) { struct inet6_request_sock *ireq6 = inet6_rsk(req); struct ipv6_pinfo *newnp, *np = inet6_sk(sk); struct inet_sock *newinet; struct dccp6_sock *newdp...
3,426
115,797
0
void SendCommand(const std::string& command) { TabContents* contents = browser()->GetSelectedTabContents(); SafeBrowsingBlockingPage* interstitial_page = static_cast<SafeBrowsingBlockingPage*>( InterstitialPage::GetInterstitialPage(contents)); ASSERT_TRUE(interstitial_page); inters...
3,427
5,447
0
static void Ins_SFVFS( INS_ARG ) { Short S; Long X, Y; /* Only use low 16bits, then sign extend */ S = (Short)args[1]; Y = (Long)S; S = (Short)args[0]; X = S; if ( NORMalize( X, Y, &CUR.GS.freeVector ) == FAILURE ) return; COMPUTE_Funcs(); }
3,428
49,489
0
void hid_disconnect(struct hid_device *hdev) { device_remove_file(&hdev->dev, &dev_attr_country); if (hdev->claimed & HID_CLAIMED_INPUT) hidinput_disconnect(hdev); if (hdev->claimed & HID_CLAIMED_HIDDEV) hdev->hiddev_disconnect(hdev); if (hdev->claimed & HID_CLAIMED_HIDRAW) hidraw_disconnect(hdev); hdev->cla...
3,429
75,788
0
size_t extract_content_length(char *buffer, size_t size) { char *clen = strstr(buffer, CONTENT_LENGTH); size_t len; char *end; /* Pattern not found */ if (!clen || clen > buffer + size) return SIZE_MAX; /* Content-Length extraction */ len = strtoul(clen + strlen(CONTENT_LENGTH), &end, 10); if (*end) retur...
3,430
107,822
0
NetworkSelectionView* NetworkScreen::AllocateView() { return new NetworkSelectionView(this); }
3,431
122,520
0
void InspectorClientImpl::dumpUncountedAllocatedObjects(const HashMap<const void*, size_t>& map) { if (WebDevToolsAgentImpl* agent = devToolsAgent()) agent->dumpUncountedAllocatedObjects(map); }
3,432
98,795
0
void WebPluginDelegateProxy::OnGetPluginElement(int route_id, bool* success) { *success = false; NPObject* npobject = NULL; if (plugin_) npobject = plugin_->GetPluginElement(); if (!npobject) return; new NPObjectStub( npobject, channel_host_.get(), route_id, 0, page_url_); *success = true; }
3,433
140,044
0
bool HTMLMediaElement::paused() const { return m_paused; }
3,434
135,043
0
void AppCacheBackendImpl::GetResourceList( int host_id, std::vector<AppCacheResourceInfo>* resource_infos) { AppCacheHost* host = GetHost(host_id); if (!host) return; host->GetResourceList(resource_infos); }
3,435
16,931
0
static int l2_load(BlockDriverState *bs, uint64_t l2_offset, uint64_t **l2_table) { BDRVQcowState *s = bs->opaque; int ret; ret = qcow2_cache_get(bs, s->l2_table_cache, l2_offset, (void**) l2_table); return ret; }
3,436
76,510
0
int __kvm_arm_vcpu_set_events(struct kvm_vcpu *vcpu, struct kvm_vcpu_events *events) { bool serror_pending = events->exception.serror_pending; bool has_esr = events->exception.serror_has_esr; if (serror_pending && has_esr) { if (!cpus_have_const_cap(ARM64_HAS_RAS_EXTN)) return -EINVAL; if (!((event...
3,437
24,184
0
static void ar6000_dump_skb(struct sk_buff *skb) { u_char *ch; for (ch = A_NETBUF_DATA(skb); (unsigned long)ch < ((unsigned long)A_NETBUF_DATA(skb) + A_NETBUF_LEN(skb)); ch++) { AR_DEBUG_PRINTF(ATH_DEBUG_WARN,("%2.2x ", *ch)); } AR_DEBUG_PRINTF(ATH_DEBUG_WARN,("\n")); }
3,438
146,075
0
void WebGL2RenderingContextBase::copyBufferSubData(GLenum read_target, GLenum write_target, long long read_offset, long long write_offset, ...
3,439
160,910
0
const DOMWindow* DOMWindow::ToDOMWindow() const { return this; }
3,440
67,500
0
static int fsmSymlink(const char *opath, const char *path) { int rc = symlink(opath, path); if (_fsm_debug) { rpmlog(RPMLOG_DEBUG, " %8s (%s, %s) %s\n", __func__, opath, path, (rc < 0 ? strerror(errno) : "")); } if (rc < 0) rc = RPMERR_SYMLINK_FAILED; return rc; }
3,441
94,127
0
static void __exit tcm_loop_fabric_exit(void) { tcm_loop_deregister_configfs(); tcm_loop_release_core_bus(); kmem_cache_destroy(tcm_loop_cmd_cache); }
3,442
129,114
0
scoped_refptr<const PermissionSet> PermissionsData::GetTabSpecificPermissions( int tab_id) const { base::AutoLock auto_lock(runtime_lock_); CHECK_GE(tab_id, 0); TabPermissionsMap::const_iterator iter = tab_specific_permissions_.find(tab_id); return (iter != tab_specific_permissions_.end()) ? iter->sec...
3,443
123,236
0
ResizeLock(aura::RootWindow* root_window, const gfx::Size new_size, bool defer_compositor_lock) : root_window_(root_window), new_size_(new_size), compositor_lock_(defer_compositor_lock ? NULL : root_window_->compositor()...
3,444
143,817
0
PersistentHistogramAllocatorTest() : statistics_recorder_(StatisticsRecorder::CreateTemporaryForTesting()) { CreatePersistentHistogramAllocator(); }
3,445
161,229
0
void DevToolsSession::MojoConnectionDestroyed() { binding_.Close(); session_ptr_.reset(); io_session_ptr_.reset(); }
3,446
91,832
0
void comps_rtree_unset(COMPS_RTree * rt, const char * key) { COMPS_HSList * subnodes; COMPS_HSListItem * it; COMPS_RTreeData * rtdata; unsigned int offset, len, x; char found, ended; COMPS_HSList * path; struct Relation { COMPS_HSList * parent_nodes; COMPS_HSListItem * child...
3,447
185,049
1
bool Extension::HasAPIPermission(const std::string& function_name) const { base::AutoLock auto_lock(runtime_data_lock_); return runtime_data_.GetActivePermissions()-> HasAccessToFunction(function_name); }
3,448
120,970
0
void SocketStream::SetClientSocketFactory( ClientSocketFactory* factory) { DCHECK(factory); factory_ = factory; }
3,449
11,607
0
decode_udev_encoded_string (const gchar *str) { GString *s; gchar *ret; const gchar *end_valid; guint n; s = g_string_new (NULL); for (n = 0; str[n] != '\0'; n++) { if (str[n] == '\\') { gint val; if (str[n + 1] != 'x' || str[n + 2] == '\0' || str[n + 3] == '\0') ...
3,450
171,510
0
android::SoftOMXComponent *createSoftOMXComponent( const char *name, const OMX_CALLBACKTYPE *callbacks, OMX_PTR appData, OMX_COMPONENTTYPE **component) { return new android::SoftMP3(name, callbacks, appData, component); }
3,451
21,883
0
int drm_mode_connector_attach_encoder(struct drm_connector *connector, struct drm_encoder *encoder) { int i; for (i = 0; i < DRM_CONNECTOR_MAX_ENCODER; i++) { if (connector->encoder_ids[i] == 0) { connector->encoder_ids[i] = encoder->base.id; return 0; } } return -ENOMEM; }
3,452
24,388
0
int jbd2_journal_restart(handle_t *handle, int nblocks) { return jbd2__journal_restart(handle, nblocks, GFP_NOFS); }
3,453
98,451
0
SearchProviderTest() : default_t_url_(NULL), term1_(UTF8ToUTF16("term1")), keyword_t_url_(NULL), keyword_term_(UTF8ToUTF16("keyword")), io_thread_(ChromeThread::IO), quit_when_done_(false) { io_thread_.Start(); }
3,454
51,820
0
dissect_usb_vid_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { gboolean is_request = (pinfo->srcport == NO_ENDPOINT); usb_conv_info_t *usb_conv_info; usb_trans_info_t *usb_trans_info; int offset = 0; usb_setup_dissector dissector ...
3,455
76,803
0
decode_NXAST_RAW_OUTPUT_REG(const struct nx_action_output_reg *naor, enum ofp_version ofp_version OVS_UNUSED, const struct vl_mff_map *vl_mff_map, uint64_t *tlv_bitmap, struct ofpbuf *out) { struct ofpact_output_reg *output_reg; ...
3,456
77,039
0
pad_ofpat(struct ofpbuf *openflow, size_t start_ofs) { struct ofp_action_header *oah; ofpbuf_put_zeros(openflow, PAD_SIZE(openflow->size - start_ofs, OFP_ACTION_ALIGN)); oah = ofpbuf_at_assert(openflow, start_ofs, sizeof *oah); oah->len = htons(openflow->size - ...
3,457
170,967
0
uint32_t MediaHTTP::flags() { return kWantsPrefetching | kIsHTTPBasedSource; }
3,458
143,946
0
png_get_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_type, int *compression_type, int *filter_type) { png_debug1(1, "in %s retrieval function", "IHDR"); if (png_ptr == NULL || info_ptr == NULL || width == NULL || ...
3,459
79,707
0
static int r_bin_mdmp_init(struct r_bin_mdmp_obj *obj) { r_bin_mdmp_init_parsing (obj); if (!r_bin_mdmp_init_hdr (obj)) { eprintf ("[ERROR] Failed to initialise header\n"); return false; } if (!r_bin_mdmp_init_directory (obj)) { eprintf ("[ERROR] Failed to initialise directory structures!\n"); return fals...
3,460
4,319
0
ZEND_API void php_get_highlight_struct(zend_syntax_highlighter_ini *syntax_highlighter_ini) /* {{{ */ { syntax_highlighter_ini->highlight_comment = INI_STR("highlight.comment"); syntax_highlighter_ini->highlight_default = INI_STR("highlight.default"); syntax_highlighter_ini->highlight_html = INI_STR("highlight.ht...
3,461
164,018
0
CreateDownloadURLLoaderFactoryGetter(StoragePartitionImpl* storage_partition, RenderFrameHost* rfh, bool is_download) { network::mojom::URLLoaderFactoryPtrInfo proxy_factory_ptr_info; network::mojom::URLLoaderFactoryRequest proxy_factory_requ...
3,462
15,605
0
vmxnet3_rx_filter_may_indicate(VMXNET3State *s, const void *data, size_t size) { struct eth_header *ehdr = PKT_GET_ETH_HDR(data); if (VMXNET_FLAG_IS_SET(s->rx_mode, VMXNET3_RXM_PROMISC)) { return true; } if (!vmxnet3_is_registered_vlan(s, data)) { return false; } switch (v...
3,463
161,970
0
bool PrintRenderFrameHelper::UpdatePrintSettings( blink::WebLocalFrame* frame, const blink::WebNode& node, const base::DictionaryValue& passed_job_settings) { const base::DictionaryValue* job_settings = &passed_job_settings; base::DictionaryValue modified_job_settings; if (job_settings->empty()) { ...
3,464
36,057
0
int8_t udf_next_aext(struct inode *inode, struct extent_position *epos, struct kernel_lb_addr *eloc, uint32_t *elen, int inc) { int8_t etype; while ((etype = udf_current_aext(inode, epos, eloc, elen, inc)) == (EXT_NEXT_EXTENT_ALLOCDECS >> 30)) { int block; epos->block = *eloc; epos->offset = siz...
3,465
168,212
0
void WebBluetoothServiceImpl::SetClientConnectionErrorHandler( base::OnceClosure closure) { binding_.set_connection_error_handler(std::move(closure)); }
3,466
20,484
0
static void ext4_i_callback(struct rcu_head *head) { struct inode *inode = container_of(head, struct inode, i_rcu); INIT_LIST_HEAD(&inode->i_dentry); kmem_cache_free(ext4_inode_cachep, EXT4_I(inode)); }
3,467
29,905
0
kgid_t make_kgid(struct user_namespace *ns, gid_t gid) { /* Map the gid to a global kernel gid */ return KGIDT_INIT(map_id_down(&ns->gid_map, gid)); }
3,468
35,532
0
static int em_jmp_far(struct x86_emulate_ctxt *ctxt) { int rc; unsigned short sel, old_sel; struct desc_struct old_desc, new_desc; const struct x86_emulate_ops *ops = ctxt->ops; u8 cpl = ctxt->ops->cpl(ctxt); /* Assignment of RIP may only fail in 64-bit mode */ if (ctxt->mode == X86EMUL_MODE_PROT64) ops->get_...
3,469
21,108
0
void mem_cgroup_print_bad_page(struct page *page) { struct page_cgroup *pc; pc = lookup_page_cgroup_used(page); if (pc) { printk(KERN_ALERT "pc:%p pc->flags:%lx pc->mem_cgroup:%p\n", pc, pc->flags, pc->mem_cgroup); } }
3,470
132,762
0
protocol::VideoStub* PepperVideoRenderer2D::GetVideoStub() { DCHECK(CalledOnValidThread()); return software_video_renderer_->GetVideoStub(); }
3,471
68,640
0
lzh_decode(struct lzh_stream *strm, int last) { struct lzh_dec *ds = strm->ds; int avail_in; int r; if (ds->error) return (ds->error); avail_in = strm->avail_in; do { if (ds->state < ST_GET_LITERAL) r = lzh_read_blocks(strm, last); else r = lzh_decode_blocks(strm, last); } while (r == 100); strm->...
3,472
70,509
0
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; (void)yyg; int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; }
3,473
134,335
0
void TabStrip::GenerateIdealBounds() { int new_tab_y = 0; if (touch_layout_.get()) { if (tabs_.view_size() == 0) return; int new_tab_x = tabs_.ideal_bounds(tabs_.view_size() - 1).right() + newtab_button_h_offset(); newtab_button_bounds_.set_origin(gfx::Point(new_tab_x, new_tab_y)); r...
3,474
154,233
0
error::Error GLES2DecoderImpl::HandleGetProgramResourceIndex( uint32_t immediate_data_size, const volatile void* cmd_data) { return error::kUnknownCommand; }
3,475
37,540
0
static u64 mmu_spte_get_lockless(u64 *sptep) { return __get_spte_lockless(sptep); }
3,476
138,378
0
void ServiceManagerConnection::SetFactoryForTest(Factory* factory) { DCHECK(!g_connection_for_process.Get()); service_manager_connection_factory = factory; }
3,477
49,750
0
static void arcmsr_free_ccb_pool(struct AdapterControlBlock *acb) { dma_free_coherent(&acb->pdev->dev, acb->uncache_size, acb->dma_coherent, acb->dma_coherent_handle); }
3,478
142,693
0
void FrameLoader::loadInSameDocument(const KURL& url, PassRefPtr<SerializedScriptValue> stateObject, FrameLoadType frameLoadType, HistoryLoadType historyLoadType, ClientRedirectPolicy clientRedirect, Document* initiatingDocument) { ASSERT(!stateObject || frameLoadType == FrameLoadTypeBackForward); detachDocume...
3,479
175,390
0
int Reverb_init(ReverbContext *pContext){ ALOGV("\tReverb_init start"); CHECK_ARG(pContext != NULL); if (pContext->hInstance != NULL){ Reverb_free(pContext); } pContext->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; if (pContext->auxiliary) { pContext->config.inpu...
3,480
155,597
0
const gfx::VectorIcon& AuthenticatorBlePinEntrySheetModel::GetStepIllustration( ImageColorScheme color_scheme) const { return color_scheme == ImageColorScheme::kDark ? kWebauthnBlePinDarkIcon : kWebauthnBlePinIcon; }
3,481
170,426
0
void Parcel::closeFileDescriptors() { size_t i = mObjectsSize; if (i > 0) { } while (i > 0) { i--; const flat_binder_object* flat = reinterpret_cast<flat_binder_object*>(mData+mObjects[i]); if (flat->type == BINDER_TYPE_FD) { close(flat->handle); } } }
3,482
16,864
0
static int bdrv_file_open(BlockDriverState *bs, const char *filename, QDict **options, int flags, Error **errp) { BlockDriver *drv; const char *drvname; bool allow_protocol_prefix = false; Error *local_err = NULL; int ret; /* Fetch the file name from the options QDict ...
3,483
4,281
0
PHP_FUNCTION(ini_set) { char *varname, *new_value; int varname_len, new_value_len; char *old_value; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &varname, &varname_len, &new_value, &new_value_len) == FAILURE) { return; } old_value = zend_ini_string(varname, varname_len + 1, 0); /* copy to retu...
3,484
121,861
0
IOThread::IOThread( PrefService* local_state, policy::PolicyService* policy_service, ChromeNetLog* net_log, extensions::EventRouterForwarder* extension_event_router_forwarder) : net_log_(net_log), extension_event_router_forwarder_(extension_event_router_forwarder), globals_(NULL), ...
3,485
84,261
0
static void futex_wait_queue_me(struct futex_hash_bucket *hb, struct futex_q *q, struct hrtimer_sleeper *timeout) { /* * The task state is guaranteed to be set before another task can * wake it. set_current_state() is implemented using smp_store_mb() and * queue_me() calls spin_unlock() upon completion, both...
3,486
124,696
0
TextRun RenderBlockFlow::constructTextRun(RenderObject* context, const Font& font, const RenderText* text, RenderStyle* style, TextDirection direction, TextRun::ExpansionBehavior expansion) { if (text->is8Bit()) return constructTextRunInternal(context, font, text->characters8(), text->textLength(), style, d...
3,487
20,666
0
static bool emulator_get_cpuid(struct x86_emulate_ctxt *ctxt, u32 *eax, u32 *ebx, u32 *ecx, u32 *edx) { struct kvm_cpuid_entry2 *cpuid = NULL; if (eax && ecx) cpuid = kvm_find_cpuid_entry(emul_to_vcpu(ctxt), *eax, *ecx); if (cpuid) { *eax = cpuid->eax; *ecx = cpuid->ecx; if (ebx) *ebx...
3,488
67,605
0
MODRET set_allowemptypasswords(cmd_rec *cmd) { int allow_empty_passwords = -1; config_rec *c = NULL; CHECK_ARGS(cmd, 1); CHECK_CONF(cmd, CONF_ROOT|CONF_VIRTUAL|CONF_GLOBAL|CONF_ANON); allow_empty_passwords = get_boolean(cmd, 1); if (allow_empty_passwords == -1) { CONF_ERROR(cmd, "expected Boolean para...
3,489
4,730
0
user_extension_get_value (User *user, GDBusInterfaceInfo *interface, const GDBusPropertyInfo *property) { const GVariantType *type = G_VARIANT_TYPE (property->signature); GVariant *value; g_autofree gchar *printed = NULL...
3,490
40,347
0
static int bt_seq_open(struct inode *inode, struct file *file) { struct bt_sock_list *sk_list; struct bt_seq_state *s; sk_list = PDE_DATA(inode); s = __seq_open_private(file, &bt_seq_ops, sizeof(struct bt_seq_state)); if (!s) return -ENOMEM; s->l = sk_list; return 0; }
3,491
112,014
0
void SyncTest::TearDownInProcessBrowserTestFixture() { mock_host_resolver_override_.reset(); }
3,492
10,875
0
des_cipher(const char *in, char *out, uint32_t salt, int count, struct php_crypt_extended_data *data) { uint32_t l_out, r_out, rawl, rawr; int retval; setup_salt(salt, data); rawl = (uint32_t)(u_char)in[3] | ((uint32_t)(u_char)in[2] << 8) | ((uint32_t)(u_char)in[1] << 16) | ((uint32_t)(u_char)in[0] << 24...
3,493
95,884
0
void CL_MapRestart_f( void ) { if ( !com_cl_running ) { return; } if ( !com_cl_running->integer ) { return; } Com_Printf( "This command is no longer functional.\nUse \"loadgame current\" to load the current map." ); }
3,494
77,001
0
ofpact_put_raw(struct ofpbuf *buf, enum ofp_version ofp_version, enum ofp_raw_action_type raw, uint64_t arg) { const struct ofpact_raw_instance *inst; struct ofp_action_header *oah; const struct ofpact_hdrs *hdrs; inst = ofpact_raw_lookup(ofp_version, raw); hdrs = &inst->hdrs; o...
3,495
186,621
1
void HttpAuthFilterWhitelist::SetWhitelist( const std::string& server_whitelist) { rules_.ParseFromString(server_whitelist); }
3,496
142,084
0
void CGaiaCredentialBase::TellOmahaDidRun() { #if defined(GOOGLE_CHROME_BUILD) base::win::RegKey key; LONG sts = key.Create(HKEY_CURRENT_USER, kRegUpdaterClientStateAppPath, KEY_SET_VALUE | KEY_WOW64_32KEY); if (sts != ERROR_SUCCESS) { LOGFN(INFO) << "Unable to open omaha key sts=" << ...
3,497
39,898
0
static void skb_headers_offset_update(struct sk_buff *skb, int off) { /* Only adjust this if it actually is csum_start rather than csum */ if (skb->ip_summed == CHECKSUM_PARTIAL) skb->csum_start += off; /* {transport,network,mac}_header and tail are relative to skb->head */ skb->transport_header += off; skb->net...
3,498
137,964
0
bool AXLayoutObject::isVisited() const { return m_layoutObject->style()->isLink() && m_layoutObject->style()->insideLink() == EInsideLink::kInsideVisitedLink; }
3,499