unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
57,784
0
static int kvm_vm_ioctl_get_pit2(struct kvm *kvm, struct kvm_pit_state2 *ps) { mutex_lock(&kvm->arch.vpit->pit_state.lock); memcpy(ps->channels, &kvm->arch.vpit->pit_state.channels, sizeof(ps->channels)); ps->flags = kvm->arch.vpit->pit_state.flags; mutex_unlock(&kvm->arch.vpit->pit_state.lock); memset(&ps->rese...
10,300
128,897
0
bool appendFileInfo(const File* file, int* index) { if (!m_blobInfo) return false; long long size = -1; double lastModified = invalidFileTime(); file->captureSnapshot(size, lastModified); *index = m_blobInfo->size(); m_blobInfo->append(blink::WebBlobI...
10,301
9,971
0
bool PostScript_CheckFormat ( XMP_FileFormat format, XMP_StringPtr filePath, XMP_IO* fileRef, XMPFiles * parent ) { IgnoreParam(filePath); IgnoreParam(parent); XMP_Assert ( (format == kXMP_EPSFile) || (format == kXMP_PostScriptFi...
10,302
116,208
0
void SSLManager::NotifySSLInternalStateChanged( NavigationControllerImpl* controller) { content::NotificationService::current()->Notify( content::NOTIFICATION_SSL_INTERNAL_STATE_CHANGED, content::Source<content::BrowserContext>(controller->GetBrowserContext()), content::NotificationService::NoDe...
10,303
111,832
0
PendingConfigureDataTypesState() : reason(sync_api::CONFIGURE_REASON_UNKNOWN), retry_in_progress(false) {}
10,304
34,180
0
__ip_vs_unbind_svc(struct ip_vs_dest *dest) { struct ip_vs_service *svc = dest->svc; dest->svc = NULL; if (atomic_dec_and_test(&svc->refcnt)) { IP_VS_DBG_BUF(3, "Removing service %u/%s:%u usecnt=%d\n", svc->fwmark, IP_VS_DBG_ADDR(svc->af, &svc->addr), ntohs(svc->port), atomic_read(&svc-...
10,305
40,801
0
arcStrokeCircle(const pointObj *p1, const pointObj *p2, const pointObj *p3, double segment_angle, int include_first, pointArrayObj *pa) { pointObj center; /* Center of our circular arc */ double radius; /* Radius of our circular arc */ double sweep_angle_r; /* Total angular size of our circular ar...
10,306
154,219
0
error::Error GLES2DecoderImpl::HandleDrawElementsInstancedANGLE( uint32_t immediate_data_size, const volatile void* cmd_data) { const volatile gles2::cmds::DrawElementsInstancedANGLE& c = *static_cast<const volatile gles2::cmds::DrawElementsInstancedANGLE*>( cmd_data); if (!features().angle_...
10,307
152,104
0
void RenderFrameHostImpl::UpdateActiveSchedulerTrackedFeatures( uint64_t features_mask) { scheduler_tracked_features_ = features_mask; }
10,308
178,079
1
static void coroutine_fn v9fs_link(void *opaque) { V9fsPDU *pdu = opaque; int32_t dfid, oldfid; V9fsFidState *dfidp, *oldfidp; V9fsString name; size_t offset = 7; int err = 0; v9fs_string_init(&name); err = pdu_unmarshal(pdu, offset, "dds", &dfid, &oldfid, &name); if (err < 0) { ...
10,309
111,885
0
void ProfileSyncService::GetModelSafeRoutingInfo( browser_sync::ModelSafeRoutingInfo* out) const { if (backend_.get() && backend_initialized_) { backend_->GetModelSafeRoutingInfo(out); } else { NOTREACHED(); } }
10,310
39,880
0
static void skb_clone_fraglist(struct sk_buff *skb) { struct sk_buff *list; skb_walk_frags(skb, list) skb_get(list); }
10,311
160,449
0
bool IsOutOfProcessNetworkService() { return base::FeatureList::IsEnabled(network::features::kNetworkService) && !base::FeatureList::IsEnabled(features::kNetworkServiceInProcess) && !base::CommandLine::ForCurrentProcess()->HasSwitch( switches::kSingleProcess); }
10,312
108,001
0
void TranslateManager::InitiateTranslation(TabContents* tab, const std::string& page_lang) { PrefService* prefs = tab->profile()->GetPrefs(); if (!prefs->GetBoolean(prefs::kEnableTranslate)) return; pref_change_registrar_.Init(prefs); if (CommandLine::ForCurrentP...
10,313
159,642
0
RenderFrameHostManager::GetSiteInstanceForNavigation( const GURL& dest_url, SiteInstance* source_instance, SiteInstance* dest_instance, SiteInstance* candidate_instance, ui::PageTransition transition, bool dest_is_restore, bool dest_is_view_source_mode, bool was_server_redirect) { DCHE...
10,314
59,927
0
static int snd_usb_audio_free(struct snd_usb_audio *chip) { struct snd_usb_endpoint *ep, *n; list_for_each_entry_safe(ep, n, &chip->ep_list, list) snd_usb_endpoint_free(ep); mutex_destroy(&chip->mutex); if (!atomic_read(&chip->shutdown)) dev_set_drvdata(&chip->dev->dev, NULL); kfree(chip); return 0; }
10,315
13,870
0
namecmp(const void *key, const void *name) { return strcmp((char *)key, *(char **)name); }
10,316
29,686
0
static void write_exception(struct pstore *ps, uint32_t index, struct core_exception *e) { struct disk_exception *de = get_exception(ps, index); /* copy it */ de->old_chunk = cpu_to_le64(e->old_chunk); de->new_chunk = cpu_to_le64(e->new_chunk); }
10,317
166,864
0
void MarkingVisitor::RegisterBackingStoreCallback(void* backing_store, MovingObjectCallback callback, void* callback_data) { if (marking_mode_ != kGlobalMarkingWithCompaction) return; Heap().RegisterMovingObjectC...
10,318
101,817
0
void Browser::ShowFindBar() { GetFindBarController()->Show(); }
10,319
62,085
0
static void FixSignedValues(PixelPacket *q, int y) { while(y-->0) { /* Please note that negative values will overflow Q=8; QuantumRange=255: <0;127> + 127+1 = <128; 255> <-1;-128> + 127+1 = <0; 127> */ SetPixelRed(q,GetPixelRed(q)+QuantumRange/2+1); SetPixelGreen(q,GetPixelGreen(q)+Q...
10,320
6,352
0
nm_ip4_config_get_ifindex (const NMIP4Config *config) { return NM_IP4_CONFIG_GET_PRIVATE (config)->ifindex; }
10,321
6,029
0
e1000e_receive(E1000ECore *core, const uint8_t *buf, size_t size) { const struct iovec iov = { .iov_base = (uint8_t *)buf, .iov_len = size }; return e1000e_receive_iov(core, &iov, 1); }
10,322
138,099
0
String AXNodeObject::nativeTextAlternative( AXObjectSet& visited, AXNameFrom& nameFrom, AXRelatedObjectVector* relatedObjects, NameSources* nameSources, bool* foundTextAlternative) const { if (!getNode()) return String(); if (nameSources) ASSERT(relatedObjects); String textAlternativ...
10,323
136,736
0
void LocalDOMWindow::AddedEventListener( const AtomicString& event_type, RegisteredEventListener& registered_listener) { DOMWindow::AddedEventListener(event_type, registered_listener); if (GetFrame() && GetFrame()->GetPage()) GetFrame()->GetPage()->GetEventHandlerRegistry().DidAddEventHandler( *...
10,324
91,278
0
static int ipmi_init_msghandler(void) { int rv; if (initialized) return 0; rv = driver_register(&ipmidriver.driver); if (rv) { pr_err("Could not register IPMI driver\n"); return rv; } pr_info("version " IPMI_DRIVER_VERSION "\n"); timer_setup(&ipmi_timer, ipmi_timeout, 0); mod_timer(&ipmi_timer, jiffie...
10,325
60,515
0
struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id) { struct kvm_vcpu *vcpu; vcpu = kvmppc_core_vcpu_create(kvm, id); if (!IS_ERR(vcpu)) { vcpu->arch.wqp = &vcpu->wq; kvmppc_create_vcpu_debugfs(vcpu, id); } return vcpu; }
10,326
185,976
1
v8::Local<v8::Object> V8Console::createConsole(InspectedContext* inspectedContext, bool hasMemoryAttribute) { v8::Local<v8::Context> context = inspectedContext->context(); v8::Context::Scope contextScope(context); v8::Isolate* isolate = context->GetIsolate(); v8::MicrotasksScope microtasksScope(isolate, v8::MicrotasksS...
10,327
56,942
0
static inline unsigned long fuse_get_user_addr(const struct iov_iter *ii) { return (unsigned long)ii->iov->iov_base + ii->iov_offset; }
10,328
139,554
0
static TriState StateSuperscript(LocalFrame& frame, Event*) { return StateStyle(frame, CSSPropertyVerticalAlign, "super"); }
10,329
10,765
0
SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth) { SSL_CTX *ret=NULL; if (meth == NULL) { SSLerr(SSL_F_SSL_CTX_NEW,SSL_R_NULL_SSL_METHOD_PASSED); return(NULL); } #ifdef OPENSSL_FIPS if (FIPS_mode() && (meth->version < TLS1_VERSION)) { SSLerr(SSL_F_SSL_CTX_NEW, SSL_R_ONLY_TLS_ALLOWED_IN_FIPS_MODE); retu...
10,330
113,134
0
content::MockDownloadItem* MockDownloadItemFactory::GetItem(int id) { if (items_.find(id) == items_.end()) return NULL; return items_[id]; }
10,331
64,738
0
static int dns_packet_extend(DnsPacket *p, size_t add, void **ret, size_t *start) { assert(p); if (p->size + add > p->allocated) { size_t a; a = PAGE_ALIGN((p->size + add) * 2); if (a > DNS_PACKET_SIZE_MAX) a = DNS_PACKET_SIZE_MAX...
10,332
176,829
0
bool writeAll(std::ostream& out, const BigBuffer& buffer) { for (const auto& b : buffer) { if (!out.write(reinterpret_cast<const char*>(b.buffer.get()), b.size)) { return false; } } return true; }
10,333
85,686
0
static void hns_nic_dump(struct hns_nic_priv *priv) { struct hnae_handle *h = priv->ae_handle; struct hnae_ae_ops *ops = h->dev->ops; u32 *data, reg_num, i; if (ops->get_regs_len && ops->get_regs) { reg_num = ops->get_regs_len(priv->ae_handle); reg_num = (reg_num + 3ul) & ~3ul; data = kcalloc(reg_num, sizeof...
10,334
184,838
1
void AppShortcutManager::OnceOffCreateShortcuts() { bool was_enabled = prefs_->GetBoolean(prefs::kAppShortcutsHaveBeenCreated); // Creation of shortcuts on Mac currently can be disabled with // --disable-app-shims, so check the flag, and set the pref accordingly. #if defined(OS_MACOSX) bool is_now_enabled = app...
10,335
175,227
0
static void migrate_to_reboot_cpu(void) { /* The boot cpu is always logical cpu 0 */ int cpu = 0; cpu_hotplug_disable(); /* Make certain the cpu I'm about to reboot on is online */ if (!cpu_online(cpu)) cpu = cpumask_first(cpu_online_mask); /* Prevent races with other tasks migrating this task */ current->f...
10,336
138,149
0
void AXObject::detach() { clearChildren(); m_axObjectCache = nullptr; }
10,337
148,778
0
RenderFrameHost* InterstitialPageImpl::GetMainFrame() const { return render_view_host_->GetMainFrame(); }
10,338
145,507
0
scoped_ptr<ResourceHandler> ResourceDispatcherHostImpl::MaybeInterceptAsStream( const base::FilePath& plugin_path, net::URLRequest* request, ResourceResponse* response, std::string* payload) { payload->clear(); ResourceRequestInfoImpl* info = ResourceRequestInfoImpl::ForRequest(request); const std...
10,339
24,877
0
static void restore_bytes(struct kmem_cache *s, char *message, u8 data, void *from, void *to) { slab_fix(s, "Restoring 0x%p-0x%p=0x%x\n", from, to - 1, data); memset(from, data, to - from); }
10,340
18,489
0
void __online_page_set_limits(struct page *page) { unsigned long pfn = page_to_pfn(page); if (pfn >= num_physpages) num_physpages = pfn + 1; }
10,341
126,196
0
bool Browser::IsFullscreenForTabOrPending( const WebContents* web_contents) const { return fullscreen_controller_->IsFullscreenForTabOrPending(web_contents); }
10,342
106,950
0
QQuickWebViewFlickablePrivate::QQuickWebViewFlickablePrivate(QQuickWebView* viewport) : QQuickWebViewPrivate(viewport) , postTransitionState(adoptPtr(new PostTransitionState(this))) , isTransitioningToNewPage(false) , pageIsSuspended(true) , loadSuccessDispatchIsPending(false) { }
10,343
49,194
0
static unsigned int packet_poll(struct file *file, struct socket *sock, poll_table *wait) { struct sock *sk = sock->sk; struct packet_sock *po = pkt_sk(sk); unsigned int mask = datagram_poll(file, sock, wait); spin_lock_bh(&sk->sk_receive_queue.lock); if (po->rx_ring.pg_vec) { if (!packet_previous_rx_frame(...
10,344
5,478
0
static void Interp( Int p1, Int p2, Int ref1, Int ref2, struct LOC_Ins_IUP* LINK ) { Long i; TT_F26Dot6 x, x1, x2, d1, d2; if ( p1 > p2 ) return; x1 = LINK->orgs[ref1]; d1 = LINK->curs[ref1] - LINK->orgs[ref1]; x2 = LINK->or...
10,345
48,117
0
static int vmx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) { struct shared_msr_entry *msr; switch (msr_info->index) { #ifdef CONFIG_X86_64 case MSR_FS_BASE: msr_info->data = vmcs_readl(GUEST_FS_BASE); break; case MSR_GS_BASE: msr_info->data = vmcs_readl(GUEST_GS_BASE); break; case MSR_KERNEL...
10,346
12,459
0
char * SRP_check_known_gN_param(BIGNUM* g, BIGNUM* N) { size_t i; if ((g == NULL) || (N == NULL)) return 0; srp_bn_print(g); srp_bn_print(N); for(i = 0; i < KNOWN_GN_NUMBER; i++) { if (BN_cmp(knowngN[i].g, g) == 0 && BN_cmp(knowngN[i].N, N) == 0) return knowngN[i].id; } return NULL; }
10,347
32,406
0
static void mntput_no_expire(struct mount *mnt) { put_again: #ifdef CONFIG_SMP br_read_lock(&vfsmount_lock); if (likely(mnt->mnt_ns)) { /* shouldn't be the last one */ mnt_add_count(mnt, -1); br_read_unlock(&vfsmount_lock); return; } br_read_unlock(&vfsmount_lock); br_write_lock(&vfsmount_lock); mnt_add_...
10,348
36,329
0
static inline unsigned long hash_name(const char *name, unsigned int *hashp) { unsigned long hash = init_name_hash(); unsigned long len = 0, c; c = (unsigned char)*name; do { len++; hash = partial_name_hash(c, hash); c = (unsigned char)name[len]; } while (c && c != '/'); *hashp = end_name_hash(hash); retu...
10,349
176,509
0
xmlBuildURI(const xmlChar *URI, const xmlChar *base) { xmlChar *val = NULL; int ret, len, indx, cur, out; xmlURIPtr ref = NULL; xmlURIPtr bas = NULL; xmlURIPtr res = NULL; /* * 1) The URI reference is parsed into the potential four components and * fragment identifier, as described in Se...
10,350
154,838
0
error::Error GLES2DecoderPassthroughImpl::DoUniform2iv( GLint location, GLsizei count, const volatile GLint* v) { api()->glUniform2ivFn(location, count, const_cast<const GLint*>(v)); return error::kNoError; }
10,351
10,242
0
FT_Get_Module( FT_Library library, const char* module_name ) { FT_Module result = 0; FT_Module* cur; FT_Module* limit; if ( !library || !module_name ) return result; cur = library->modules; limit = cur + library->num_modules; for ( ; cur < limit; cur++...
10,352
35,613
0
int x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len) { int rc = X86EMUL_CONTINUE; int mode = ctxt->mode; int def_op_bytes, def_ad_bytes, goffset, simd_prefix; bool op_prefix = false; bool has_seg_override = false; struct opcode opcode; ctxt->memop.type = OP_NONE; ctxt->memopp = NULL; c...
10,353
18,513
0
static struct resource *register_memory_resource(u64 start, u64 size) { struct resource *res; res = kzalloc(sizeof(struct resource), GFP_KERNEL); BUG_ON(!res); res->name = "System RAM"; res->start = start; res->end = start + size - 1; res->flags = IORESOURCE_MEM | IORESOURCE_BUSY; if (request_resource(&iomem_r...
10,354
33,670
0
pkinit_get_certs_dir(krb5_context context, pkinit_plg_crypto_context plg_cryptoctx, pkinit_req_crypto_context req_cryptoctx, pkinit_identity_opts *idopts, pkinit_identity_crypto_context id_cryptoctx, krb5_principal ...
10,355
33,171
0
static inline size_t xfrm_sadinfo_msgsize(void) { return NLMSG_ALIGN(4) + nla_total_size(sizeof(struct xfrmu_sadhinfo)) + nla_total_size(4); /* XFRMA_SAD_CNT */ }
10,356
40,649
0
static void prb_fill_vlan_info(struct tpacket_kbdq_core *pkc, struct tpacket3_hdr *ppd) { if (vlan_tx_tag_present(pkc->skb)) { ppd->hv1.tp_vlan_tci = vlan_tx_tag_get(pkc->skb); ppd->tp_status = TP_STATUS_VLAN_VALID; } else { ppd->hv1.tp_vlan_tci = 0; ppd->tp_status = TP_STATUS_AVAILABLE; } }
10,357
122,959
0
void RenderWidgetHostImpl::ForwardGestureEventImmediately( const WebKit::WebGestureEvent& gesture_event) { if (ignore_input_events_ || process_->IgnoreInputEvents()) return; ForwardInputEvent(gesture_event, sizeof(WebGestureEvent), false); }
10,358
154,179
0
const SamplerState& GLES2DecoderImpl::GetSamplerStateForTextureUnit( GLenum target, GLuint unit) { if (features().enable_samplers) { Sampler* sampler = state_.sampler_units[unit].get(); if (sampler) return sampler->sampler_state(); } TextureUnit& texture_unit = state_.texture_units[unit]; Text...
10,359
101,899
0
virtual void TabClosingAt(TabStripModel* tab_strip_model, TabContentsWrapper* contents, int index) { closing_count_++; }
10,360
111,596
0
void TestCommitDirty( const std::string& resource_id, const std::string& md5, base::PlatformFileError expected_error, int expected_cache_state, GDataRootDirectory::CacheSubDirectoryType expected_sub_dir_type) { expected_error_ = expected_error; expected_cache_state_ = expected_ca...
10,361
5,196
0
PHP_FUNCTION(pg_consume_input) { zval *pgsql_link; int id = -1; PGconn *pgsql; if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &pgsql_link) == FAILURE) { return; } ZEND_FETCH_RESOURCE2(pgsql, PGconn *, pgsql_link, id, "PostgreSQL link", le_link, le_plink); RETURN_BOOL(PQconsumeInput(pgsql)); }
10,362
116,891
0
WebKit::WebData TestWebKitPlatformSupport::loadResource(const char* name) { if (!strcmp(name, "deleteButton")) { const char red_square[] = "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52" "\x00\x00\x00\x1e\x00\x00\x00\x1e\x04\x03\x00\x00\x00\xc9\x1e\xb3" "\x91\x00\x00\x00...
10,363
37,761
0
static void init_seg(struct vmcb_seg *seg) { seg->selector = 0; seg->attrib = SVM_SELECTOR_P_MASK | SVM_SELECTOR_S_MASK | SVM_SELECTOR_WRITE_MASK; /* Read/Write Data Segment */ seg->limit = 0xffff; seg->base = 0; }
10,364
177,214
0
status_t ACodec::configureCodec( const char *mime, const sp<AMessage> &msg) { int32_t encoder; if (!msg->findInt32("encoder", &encoder)) { encoder = false; } sp<AMessage> inputFormat = new AMessage(); sp<AMessage> outputFormat = mNotify->dup(); // will use this for kWhatOutputFormatChanged mIs...
10,365
132,713
0
void ChromotingInstance::FetchSecretFromDialog( bool pairing_supported, const protocol::SecretFetchedCallback& secret_fetched_callback) { DCHECK(secret_fetched_callback_.is_null()); secret_fetched_callback_ = secret_fetched_callback; scoped_ptr<base::DictionaryValue> data(new base::DictionaryValue()); d...
10,366
128,949
0
PassRefPtr<BlobDataHandle> getOrCreateBlobDataHandle(const String& uuid, const String& type, long long size = -1) { BlobDataHandleMap::const_iterator it = m_blobDataHandles.find(uuid); if (it != m_blobDataHandles.end()) { return it->value; } return BlobDataHandle::cre...
10,367
174,616
0
static tBTM_SEC_SERV_REC *btm_sec_find_next_serv (tBTM_SEC_SERV_REC *p_cur) { tBTM_SEC_SERV_REC *p_serv_rec = &btm_cb.sec_serv_rec[0]; int i; for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_serv_rec++) { if ((p_serv_rec->security_flags & BTM_SEC_IN_USE) && (p_serv_rec->psm == p_cur->psm) )...
10,368
87,710
0
static void ipip6_tunnel_update(struct ip_tunnel *t, struct ip_tunnel_parm *p, __u32 fwmark) { struct net *net = t->net; struct sit_net *sitn = net_generic(net, sit_net_id); ipip6_tunnel_unlink(sitn, t); synchronize_net(); t->parms.iph.saddr = p->iph.saddr; t->parms.iph.daddr = p->iph.daddr; memcpy(t->dev->...
10,369
98,551
0
WmOverviewSnapshot::WmOverviewSnapshot() : WidgetGtk(TYPE_WINDOW), snapshot_view_(NULL), index_(-1), configured_snapshot_(false) { }
10,370
65,572
0
static bool nfsd4_compound_in_session(struct nfsd4_session *session, struct nfs4_sessionid *sid) { if (!session) return 0; return !memcmp(sid, &session->se_sessionid, sizeof(*sid)); }
10,371
36,588
0
static void databuf_free(struct data_buffer *db) { if (!db) return; free(db->buf); memset(db, 0, sizeof(*db)); }
10,372
46,864
0
static void encrypt_callback(void *priv, u8 *srcdst, unsigned int nbytes) { const unsigned int bsize = CAMELLIA_BLOCK_SIZE; struct crypt_priv *ctx = priv; int i; ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { camellia_ecb_enc_16way(ctx->...
10,373
131,525
0
static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { if (((info.Length() == 1))) { overloadedMethodA1Method(info); return; } if (((info.Length() == 2))) { overloadedMethodA2Method(info); return; } ExceptionState exceptionState(Excepti...
10,374
176,851
0
static void energy_info_recv_callback(bt_activity_energy_info *p_energy_info) { if (!checkCallbackThread()) { ALOGE("Callback: '%s' is not called on the correct thread", __FUNCTION__); return; } callbackEnv->CallVoidMethod(sJniAdapterServiceObj, method_energyInfo, p_energy_info->status, p_energy_...
10,375
3,549
0
gs_heap_stable(gs_memory_t *mem) { return mem; /* heap memory is stable */ }
10,376
95,969
0
void CL_InitDownloads(void) { char missingfiles[1024]; if ( !(cl_allowDownload->integer & DLF_ENABLE) ) { if (FS_ComparePaks( missingfiles, sizeof( missingfiles ), qfalse ) ) { Com_Printf( "\nWARNING: You are missing some files referenced by the server:\n%s" "You might not b...
10,377
75,843
0
routerid_handler(vector_t *strvec) { FREE_PTR(global_data->router_id); global_data->router_id = set_value(strvec); }
10,378
88,805
0
int register_socket(int in, int out, struct sockaddr *addr, struct sockaddr *mask, void (*cb)(int sd)) { struct ifsock *ifs; struct sockaddr_in *address = (struct sockaddr_in *)addr; struct sockaddr_in *netmask = (struct sockaddr_in *)mask; ifs = calloc(1, sizeof(*ifs)); if (!ifs) { char *host = inet_ntoa(addre...
10,379
168,871
0
void RenderFrameDevToolsAgentHost::ApplyOverrides( FrameTreeNode* frame_tree_node, mojom::BeginNavigationParams* begin_params, bool* report_raw_headers) { bool disable_cache = false; frame_tree_node = GetFrameTreeNodeAncestor(frame_tree_node); RenderFrameDevToolsAgentHost* agent_host = FindAgentHost(f...
10,380
64,352
0
static int cmd_rap_run(void *data, const char *input) { RCore *core = (RCore *)data; return r_io_system (core->io, input); }
10,381
70,132
0
static enum TIFFReadDirEntryErr TIFFReadDirEntryByte(TIFF* tif, TIFFDirEntry* direntry, uint8* value) { enum TIFFReadDirEntryErr err; if (direntry->tdir_count!=1) return(TIFFReadDirEntryErrCount); switch (direntry->tdir_type) { case TIFF_BYTE: TIFFReadDirEntryCheckedByte(tif,direntry,value); return(TIFFRe...
10,382
13,986
0
gsicc_profile_from_ps(cmm_profile_t *profile_data) { switch ( profile_data->default_match ) { case CIE_A: case CIE_ABC: case CIE_DEF: case CIE_DEFG: return true; default: return false; } }
10,383
34,178
0
__ip_vs_service_find(struct net *net, int af, __u16 protocol, const union nf_inet_addr *vaddr, __be16 vport) { unsigned int hash; struct ip_vs_service *svc; /* Check for "full" addressed entries */ hash = ip_vs_svc_hashkey(net, af, protocol, vaddr, vport); list_for_each_entry(svc, &ip_vs_svc_table[hash], ...
10,384
168,665
0
IndexedDBTransaction::Operation IndexedDBTransaction::TaskQueue::pop() { DCHECK(!queue_.empty()); Operation task = std::move(queue_.front()); queue_.pop(); return task; }
10,385
53,093
0
static int check_stack_boundary(struct verifier_env *env, int regno, int access_size, bool zero_size_allowed) { struct verifier_state *state = &env->cur_state; struct reg_state *regs = state->regs; int off, i; if (regs[regno].type != PTR_TO_STACK) { if (zero_size_allowed && access_size == 0 && regs[reg...
10,386
165,005
0
CanvasResourceDispatcher* HTMLCanvasElement::GetOrCreateResourceDispatcher() { return frame_dispatcher_.get(); }
10,387
67,239
0
brcmf_do_escan(struct brcmf_if *ifp, struct cfg80211_scan_request *request) { struct brcmf_cfg80211_info *cfg = ifp->drvr->config; s32 err; u32 passive_scan; struct brcmf_scan_results *results; struct escan_info *escan = &cfg->escan_info; brcmf_dbg(SCAN, "Enter\n"); escan->ifp = ifp; escan->wiphy = cfg->wiphy;...
10,388
61,332
0
static const char *flat_escape_key_str(AVBPrint *dst, const char *src, const char sep) { const char *p; for (p = src; *p; p++) { if (!((*p >= '0' && *p <= '9') || (*p >= 'a' && *p <= 'z') || (*p >= 'A' && *p <= 'Z'))) av_bprint_chars(dst, '_', 1); else ...
10,389
179,199
1
ftrace_regex_lseek(struct file *file, loff_t offset, int whence) { loff_t ret; if (file->f_mode & FMODE_READ) ret = seq_lseek(file, offset, whence); else file->f_pos = ret = 1; return ret; }
10,390
120,086
0
void SharedMemory::Unlock() { LockOrUnlockCommon(F_ULOCK); g_thread_lock_.Get().Release(); }
10,391
27,386
0
ipip_tunnel_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) { int err = 0; struct ip_tunnel_parm p; struct ip_tunnel *t; struct net *net = dev_net(dev); struct ipip_net *ipn = net_generic(net, ipip_net_id); switch (cmd) { case SIOCGETTUNNEL: t = NULL; if (dev == ipn->fb_tunnel_dev) { if (copy_...
10,392
11,675
0
device_partition_delete (Device *device, char **options, DBusGMethodInvocation *context) { daemon_local_check_auth (device->priv->daemon, device, device->priv->device_is_system_internal ? "org.freedesktop.udisks.ch...
10,393
80,101
0
GF_Err extr_Write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_ExtraDataBox *ptr = (GF_ExtraDataBox *) s; if (!s) return GF_BAD_PARAM; if (ptr->feci) { e = gf_isom_box_write((GF_Box *)ptr->feci, bs); if (e) return e; } gf_bs_write_data(bs, ptr->data, ptr->data_length); return GF_OK; }
10,394
76,185
0
map_id_range_down_base(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) { unsigned idx; u32 first, last, id2; id2 = id + count - 1; /* Find the matching extent */ for (idx = 0; idx < extents; idx++) { first = map->extent[idx].first; last = first + map->extent[idx].count - 1; if (id >= first &&...
10,395
27,317
0
static bool ldm_parse_cmp3 (const u8 *buffer, int buflen, struct vblk *vb) { int r_objid, r_name, r_vstate, r_child, r_parent, r_stripe, r_cols, len; struct vblk_comp *comp; BUG_ON (!buffer || !vb); r_objid = ldm_relative (buffer, buflen, 0x18, 0); r_name = ldm_relative (buffer, buflen, 0x18, r_objid); r_vst...
10,396
79,865
0
static void vc1_put_blocks_clamped(VC1Context *v, int put_signed) { MpegEncContext *s = &v->s; uint8_t *dest; int block_count = CONFIG_GRAY && (s->avctx->flags & AV_CODEC_FLAG_GRAY) ? 4 : 6; int fieldtx = 0; int i; /* The put pixels loop is one MB row and one MB column behind the decoding ...
10,397
122,430
0
void HTMLTextAreaElement::handleBeforeTextInsertedEvent(BeforeTextInsertedEvent* event) const { ASSERT(event); ASSERT(renderer()); int signedMaxLength = maxLength(); if (signedMaxLength < 0) return; unsigned unsignedMaxLength = static_cast<unsigned>(signedMaxLength); const String& curre...
10,398
169,311
0
void SynchronizeVisualPropertiesMessageFilter::ResetRectRunLoop() { last_rect_ = gfx::Rect(); screen_space_rect_run_loop_.reset(new base::RunLoop); screen_space_rect_received_ = false; }
10,399