unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
81,878
0
int wc_ecc_export_x963_ex(ecc_key* key, byte* out, word32* outLen, int compressed) { if (compressed == 0) return wc_ecc_export_x963(key, out, outLen); #ifdef HAVE_COMP_KEY else return wc_ecc_export_x963_compressed(key, out, outLen); #else return NOT_COMPILED_IN; #en...
13,900
57,886
0
void sync_mm_rss(struct mm_struct *mm) { int i; for (i = 0; i < NR_MM_COUNTERS; i++) { if (current->rss_stat.count[i]) { add_mm_counter(mm, i, current->rss_stat.count[i]); current->rss_stat.count[i] = 0; } } current->rss_stat.events = 0; }
13,901
37,326
0
struct sctp_chunkhdr *sctp_inq_peek(struct sctp_inq *queue) { struct sctp_chunk *chunk; sctp_chunkhdr_t *ch = NULL; chunk = queue->in_progress; /* If there is no more chunks in this packet, say so */ if (chunk->singleton || chunk->end_of_packet || chunk->pdiscard) return NULL; ch = (sctp_chunkhd...
13,902
135,487
0
MockSyncService() {}
13,903
100,313
0
static std::string WrapWithTH(std::string text) { return "<th>" + text + "</th>"; }
13,904
60,734
0
dup_dh_params(const DH *src) { const BIGNUM *oldp, *oldq, *oldg; BIGNUM *p = NULL, *q = NULL, *g = NULL; DH *dh; DH_get0_pqg(src, &oldp, &oldq, &oldg); p = BN_dup(oldp); q = BN_dup(oldq); g = BN_dup(oldg); dh = DH_new(); if (p == NULL || q == NULL || g == NULL || dh == NULL) { ...
13,905
109,953
0
void H264DPB::GetShortTermRefPicsAppending(H264Picture::PtrVector& out) { for (size_t i = 0; i < pics_.size(); ++i) { H264Picture* pic = pics_[i]; if (pic->ref && !pic->long_term) out.push_back(pic); } }
13,906
86,760
0
TIFFOpenW(const wchar_t* name, const char* mode) { static const char module[] = "TIFFOpenW"; int m, fd; int mbsize; char *mbname; TIFF* tif; m = _TIFFgetMode(mode, module); if (m == -1) return ((TIFF*)0); /* for cygwin and mingw */ #ifdef O_BINARY m |= O_BINARY; #endif fd = _wopen(name, m, 0666); if (fd ...
13,907
39,297
0
static int security_sid_to_context_core(u32 sid, char **scontext, u32 *scontext_len, int force) { struct context *context; int rc = 0; if (scontext) *scontext = NULL; *scontext_len = 0; if (!ss_initialized) { if (sid <= SECINITSID_NUM) { char *scontextp; *scontext_len = strlen(initial_sid_to_str...
13,908
33,860
0
cib_ipc_destroy(qb_ipcs_connection_t *c) { cib_client_t *cib_client = qb_ipcs_context_get(c); CRM_ASSERT(cib_client != NULL); CRM_ASSERT(cib_client->id != NULL); /* In case we arrive here without a call to cib_ipc_close() */ g_hash_table_remove(client_list, cib_client->id); crm_trace("Destro...
13,909
166,355
0
void SpeechRecognitionManagerImpl::StartSession(int session_id) { DCHECK_CURRENTLY_ON(BrowserThread::IO); if (!SessionExists(session_id)) return; if (primary_session_id_ != kSessionIDInvalid && primary_session_id_ != session_id) { AbortSession(primary_session_id_); } primary_session_id_ = sess...
13,910
21,553
0
static void kernel_shutdown_prepare(enum system_states state) { blocking_notifier_call_chain(&reboot_notifier_list, (state == SYSTEM_HALT)?SYS_HALT:SYS_POWER_OFF, NULL); system_state = state; usermodehelper_disable(); device_shutdown(); }
13,911
10,813
0
int tls1_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain, int idx) { int i; int rv = 0; int check_flags = 0, strict_mode; CERT_PKEY *cpk = NULL; CERT *c = s->cert; unsigned int suiteb_flags = tls1_suiteb(s); /* idx == -1 means checking server chains */ if (idx != -1) { /* idx == -...
13,912
107,380
0
string16 GetMatchCountText() { return GetFindBarMatchCountTextForBrowser(browser()); }
13,913
153,484
0
bool TabStrip::SupportsMultipleSelection() { return touch_layout_ == nullptr; }
13,914
104,421
0
GLvoid StubGLClearStencil(GLint s) { glClearStencil(s); }
13,915
76,905
0
encode_STACK_PUSH(const struct ofpact_stack *stack, enum ofp_version ofp_version OVS_UNUSED, struct ofpbuf *out) { encode_STACK_op(stack, put_NXAST_STACK_PUSH(out)); }
13,916
165,772
0
void SVGElement::ClearAnimatedAttribute(const QualifiedName& attribute) { ForSelfAndInstances(this, [&attribute](SVGElement* element) { if (SVGAnimatedPropertyBase* animated_property = element->PropertyFromAttribute(attribute)) animated_property->AnimationEnded(); }); }
13,917
149,545
0
void CheckForWaitingLoop() { switch (wait_event_) { case WaitEvent::kNone: return; case WaitEvent::kDns: if (!HasHostBeenLookedUp(waiting_on_dns_)) return; waiting_on_dns_ = std::string(); break; case WaitEvent::kProxy: if (!HasProxyBeenLookedUp(...
13,918
92,690
0
static void start_cfs_slack_bandwidth(struct cfs_bandwidth *cfs_b) { u64 min_left = cfs_bandwidth_slack_period + min_bandwidth_expiration; /* if there's a quota refresh soon don't bother with slack */ if (runtime_refresh_within(cfs_b, min_left)) return; hrtimer_start(&cfs_b->slack_timer, ns_to_ktime(cfs_band...
13,919
43,748
0
static int set_pid_priority(pid_t pid,int policy,int priority,char *message,char *name){ struct sched_param par={0}; par.sched_priority=priority; if((sched_setscheduler(pid,policy,&par)!=0)){ print_error(stderr,message,pid,name,strerror(errno)); return 0; } return 1; }
13,920
6,621
0
filter_open(const char *file_access, uint buffer_size, ref * pfile, const stream_procs * procs, const stream_template * templat, const stream_state * st, gs_memory_t *mem) { stream *s; uint ssize = gs_struct_type_size(templat->stype); stream_state *sst = 0; int code; if (tem...
13,921
32,646
0
static void tg3_periodic_fetch_stats(struct tg3 *tp) { struct tg3_hw_stats *sp = tp->hw_stats; if (!tp->link_up) return; TG3_STAT_ADD32(&sp->tx_octets, MAC_TX_STATS_OCTETS); TG3_STAT_ADD32(&sp->tx_collisions, MAC_TX_STATS_COLLISIONS); TG3_STAT_ADD32(&sp->tx_xon_sent, MAC_TX_STATS_XON_SENT); TG3_STAT_ADD32(&sp...
13,922
182,979
1
rdpsnddbg_process(STREAM s) { unsigned int pkglen; static char *rest = NULL; char *buf; pkglen = s->end - s->p; /* str_handle_lines requires null terminated strings */ buf = (char *) xmalloc(pkglen + 1); STRNCPY(buf, (char *) s->p, pkglen + 1); str_handle_lines(buf, &rest, rdpsnddbg_line_handler, NULL);...
13,923
126,608
0
TabStripGtk::~TabStripGtk() { model_->RemoveObserver(this); tabstrip_.Destroy(); std::vector<TabData>::iterator iterator = tab_data_.begin(); for (; iterator < tab_data_.end(); iterator++) { delete iterator->tab; } tab_data_.clear(); RemoveMessageLoopObserver(); }
13,924
160,272
0
void MimeHandlerViewContainer::DidResizeElement(const gfx::Size& new_size) { element_size_ = new_size; CreateMimeHandlerViewGuestIfNecessary(); if (!guest_created_) return; render_frame()->Send(new ExtensionsGuestViewHostMsg_ResizeGuest( render_frame()->GetRoutingID(), element_instance_id(), new_si...
13,925
3,332
0
static uint64_t fdctrl_read_mem (void *opaque, hwaddr reg, unsigned ize) { return fdctrl_read(opaque, (uint32_t)reg); }
13,926
21,015
0
__mem_cgroup_uncharge_common(struct page *page, enum charge_type ctype) { struct mem_cgroup *memcg = NULL; unsigned int nr_pages = 1; struct page_cgroup *pc; if (mem_cgroup_disabled()) return NULL; if (PageSwapCache(page)) return NULL; if (PageTransHuge(page)) { nr_pages <<= compound_order(page); VM_BU...
13,927
122,392
0
bool HTMLSelectElement::anonymousIndexedSetterRemove(unsigned index, ExceptionState& exceptionState) { remove(index); return true; }
13,928
44,414
0
static int lxcfs_opendir(const char *path, struct fuse_file_info *fi) { if (strcmp(path, "/") == 0) return 0; if (strncmp(path, "/cgroup", 7) == 0) { return cg_opendir(path, fi); } if (strcmp(path, "/proc") == 0) return 0; return -ENOENT; }
13,929
48,741
0
static int __dev_set_promiscuity(struct net_device *dev, int inc, bool notify) { unsigned int old_flags = dev->flags; kuid_t uid; kgid_t gid; ASSERT_RTNL(); dev->flags |= IFF_PROMISC; dev->promiscuity += inc; if (dev->promiscuity == 0) { /* * Avoid overflow. * If inc causes overflow, untouch promisc an...
13,930
6,849
0
http_res_get_intercept_rule(struct proxy *px, struct list *rules, struct stream *s) { struct session *sess = strm_sess(s); struct http_txn *txn = s->txn; struct connection *cli_conn; struct act_rule *rule; struct hdr_ctx ctx; int act_flags = 0; /* If "the current_rule_list" match the executed rule list, we are ...
13,931
46,443
0
xfs_file_splice_read( struct file *infilp, loff_t *ppos, struct pipe_inode_info *pipe, size_t count, unsigned int flags) { struct xfs_inode *ip = XFS_I(infilp->f_mapping->host); int ioflags = 0; ssize_t ret; XFS_STATS_INC(xs_read_calls); if (infilp->f_mode & FMODE_NOCMTIME) ioflags |= IO_INVIS; ...
13,932
29,985
0
static inline size_t rtnl_mdb_nlmsg_size(void) { return NLMSG_ALIGN(sizeof(struct br_port_msg)) + nla_total_size(sizeof(struct br_mdb_entry)); }
13,933
51,860
0
dissect_dch_timing_advance(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, int offset, struct fp_info *p_fp_info) { guint8 cfn; guint16 timing_advance; proto_item *timing_advance_ti; /* CFN control */ cfn = tvb_get_guint8(tvb, offset); proto_tree_add_ite...
13,934
173,470
0
OMX_ERRORTYPE omx_vdec::is_video_session_supported() { if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc", OMX_MAX_STRINGNAME_SIZE) && (m_profile == HIGH_PROFILE || m_profile == MAIN_PROFILE)) { m_decoder_capability.max_width = 1280; m_decoder_capability.max_height = 720; ...
13,935
180,642
1
static void *__alloc_from_pool(size_t size, struct page **ret_page, gfp_t flags) { unsigned long val; void *ptr = NULL; if (!atomic_pool) { WARN(1, "coherent pool not initialised!\n"); return NULL; } val = gen_pool_alloc(atomic_pool, size); if (val) { phys_addr_t phys = gen_pool_virt_to_phys(atomic_pool, val); *ret_...
13,936
176,899
0
void InputDispatcher::addWindowTargetLocked(const sp<InputWindowHandle>& windowHandle, int32_t targetFlags, BitSet32 pointerIds, Vector<InputTarget>& inputTargets) { inputTargets.push(); const InputWindowInfo* windowInfo = windowHandle->getInfo(); InputTarget& target = inputTargets.editTop(); target.inputCh...
13,937
116,315
0
void QQuickWebViewExperimental::setUserAgent(const QString& userAgent) { Q_D(QQuickWebView); if (userAgent == QString(d->webPageProxy->userAgent())) return; d->webPageProxy->setUserAgent(userAgent); emit userAgentChanged(); }
13,938
32,839
0
static struct wdm_device *wdm_find_device_by_minor(int minor) { struct wdm_device *desc; spin_lock(&wdm_device_list_lock); list_for_each_entry(desc, &wdm_device_list, device_list) if (desc->intf->minor == minor) goto found; desc = NULL; found: spin_unlock(&wdm_device_list_lock); return desc; }
13,939
41,656
0
static struct extent_map *btrfs_new_extent_direct(struct inode *inode, u64 start, u64 len) { struct btrfs_root *root = BTRFS_I(inode)->root; struct extent_map *em; struct btrfs_key ins; u64 alloc_hint; int ret; alloc_hint = get_extent_allocation_hint(inode, start, len); ret = btrfs_reserve_extent(root, ...
13,940
19,257
0
static struct sock *netlink_seq_socket_idx(struct seq_file *seq, loff_t pos) { struct nl_seq_iter *iter = seq->private; int i, j; struct sock *s; struct hlist_node *node; loff_t off = 0; for (i = 0; i < MAX_LINKS; i++) { struct nl_pid_hash *hash = &nl_table[i].hash; for (j = 0; j <= hash->mask; j++) { sk...
13,941
42,722
0
static void setup_msrs(struct vcpu_vmx *vmx) { int save_nmsrs, index; save_nmsrs = 0; #ifdef CONFIG_X86_64 if (is_long_mode(&vmx->vcpu)) { index = __find_msr_index(vmx, MSR_SYSCALL_MASK); if (index >= 0) move_msr_up(vmx, index, save_nmsrs++); index = __find_msr_index(vmx, MSR_LSTAR); if (index >= 0) m...
13,942
103,918
0
bool RenderView::runModalPromptDialog( WebFrame* frame, const WebString& message, const WebString& default_value, WebString* actual_value) { string16 result; bool ok = RunJavaScriptMessage(ui::MessageBoxFlags::kIsJavascriptPrompt, message, de...
13,943
35,437
0
ppp_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, register const u_char *p) { register u_int length = h->len; register u_int caplen = h->caplen; if (caplen < PPP_HDRLEN) { ND_PRINT((ndo, "[|ppp]")); return (caplen); } #if 0 /* * XXX: seems to assume that there are 2 octets pre...
13,944
141,244
0
void Document::SetURL(const KURL& url) { const KURL& new_url = url.IsEmpty() ? BlankURL() : url; if (new_url == url_) return; url_ = new_url; access_entry_from_url_ = nullptr; UpdateBaseURL(); GetContextFeatures().UrlDidChange(this); if (ukm_recorder_ && IsInMainFrame()) ukm_recorder_->UpdateSou...
13,945
41,843
0
static inline size_t inet6_ifla6_size(void) { return nla_total_size(4) /* IFLA_INET6_FLAGS */ + nla_total_size(sizeof(struct ifla_cacheinfo)) + nla_total_size(DEVCONF_MAX * 4) /* IFLA_INET6_CONF */ + nla_total_size(IPSTATS_MIB_MAX * 8) /* IFLA_INET6_STATS */ + nla_total_size(ICMP6_MIB_MAX * 8) ...
13,946
161,072
0
void ServerWrapper::OnWebSocketRequest( int connection_id, const net::HttpServerRequestInfo& request) { BrowserThread::PostTask( BrowserThread::UI, FROM_HERE, base::BindOnce(&DevToolsHttpHandler::OnWebSocketRequest, handler_, connection_id, request)); }
13,947
29,670
0
static void do_metadata(struct work_struct *work) { struct mdata_req *req = container_of(work, struct mdata_req, work); req->result = dm_io(req->io_req, 1, req->where, NULL); }
13,948
50,488
0
static void perf_event_mmap_output(struct perf_event *event, void *data) { struct perf_mmap_event *mmap_event = data; struct perf_output_handle handle; struct perf_sample_data sample; int size = mmap_event->event_id.header.size; int ret; if (!perf_event_mmap_match(event, data)) return; if (event->attr...
13,949
102,089
0
void SyncBackendHost::Core::OnClearServerDataFailed() { host_->frontend_loop_->PostTask(FROM_HERE, NewRunnableMethod(this, &Core::HandleClearServerDataFailedOnFrontendLoop)); }
13,950
33,300
0
int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) { struct page *page; struct kvm *kvm; int r; BUG_ON(vcpu->kvm == NULL); kvm = vcpu->kvm; vcpu->arch.emulate_ctxt.ops = &emulate_ops; if (!irqchip_in_kernel(kvm) || kvm_vcpu_is_bsp(vcpu)) vcpu->arch.mp_state = KVM_MP_STATE_RUNNABLE; else vcpu->arch.mp_state = K...
13,951
128,572
0
pp::Instance* Instance::GetPluginInstance() { return GetInstance(); }
13,952
180,329
1
AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_key, PAIRPDCAP_SEC_ASSOCIATION sa, guint eapol_len) { guint8 key_version; guint8 *key_data; guint8 *szEncryptedKey; guint16 key_bytes_len = 0; /* Length of the total key data field */ guint16 key_len; /* Actual group key length *...
13,953
46,964
0
static void des3_ede_x86_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) { des3_ede_dec_blk(crypto_tfm_ctx(tfm), dst, src); }
13,954
4,965
0
qtdemux_parse_redirects (GstQTDemux * qtdemux) { GNode *rmra, *rmda, *rdrf; rmra = qtdemux_tree_get_child_by_type (qtdemux->moov_node, FOURCC_rmra); if (rmra) { GList *redirects = NULL; rmda = qtdemux_tree_get_child_by_type (rmra, FOURCC_rmda); while (rmda) { GstQtReference ref = { NULL, NULL,...
13,955
51,230
0
static char *hiddev_devnode(struct device *dev, umode_t *mode) { return kasprintf(GFP_KERNEL, "usb/%s", dev_name(dev)); }
13,956
38,029
0
const char *regs_query_register_name(unsigned int offset) { if (offset >= NUM_GPRS) return NULL; return gpr_names[offset]; }
13,957
171,694
0
void bta_hl_co_get_tx_data (UINT8 app_id, tBTA_HL_MDL_HANDLE mdl_handle, UINT16 buf_size, UINT8 *p_buf, UINT16 evt) { UINT8 app_idx, mcl_idx, mdl_idx; btif_hl_mdl_cb_t *p_dcb; tBTA_HL_STATUS status = BTA_HL_STATUS_FAIL; BTIF_TRACE_DEBUG("%s app_id=%d mdl_handle=0x%x buf_size=%...
13,958
109,013
0
void RenderViewImpl::PpapiPluginCancelComposition() { Send(new ViewHostMsg_ImeCancelComposition(routing_id())); const ui::Range range(ui::Range::InvalidRange()); const std::vector<gfx::Rect> empty_bounds; UpdateCompositionInfo(range, empty_bounds); }
13,959
57,483
0
static int ext4_blks_to_allocate(Indirect *branch, int k, unsigned int blks, int blocks_to_boundary) { unsigned int count = 0; /* * Simple case, [t,d]Indirect block(s) has not allocated yet * then it's clear blocks on that path have not allocated */ if (k > 0) { /* right now we don't handle cross bound...
13,960
68,290
0
static void __perf_event_enable(struct perf_event *event, struct perf_cpu_context *cpuctx, struct perf_event_context *ctx, void *info) { struct perf_event *leader = event->group_leader; struct perf_event_context *task_ctx; if (event->state >= PERF_EVENT_STATE_INACTIVE || event->state <= PERF_EVENT_...
13,961
126,899
0
void BrowserTabStripController::CreateNewTab() { model_->delegate()->AddBlankTabAt(-1, true); }
13,962
109,657
0
Element* Document::elementFromPoint(int x, int y) const { if (!renderer()) return 0; return TreeScope::elementFromPoint(x, y); }
13,963
59,954
0
int snd_seq_device_new(struct snd_card *card, int device, const char *id, int argsize, struct snd_seq_device **result) { struct snd_seq_device *dev; int err; static struct snd_device_ops dops = { .dev_free = snd_seq_device_dev_free, .dev_register = snd_seq_device_dev_register, .dev_disconnect = snd_se...
13,964
90,516
0
SYSCALL_DEFINE1(userfaultfd, int, flags) { struct userfaultfd_ctx *ctx; int fd; BUG_ON(!current->mm); /* Check the UFFD_* constants for consistency. */ BUILD_BUG_ON(UFFD_CLOEXEC != O_CLOEXEC); BUILD_BUG_ON(UFFD_NONBLOCK != O_NONBLOCK); if (flags & ~UFFD_SHARED_FCNTL_FLAGS) return -EINVAL; ctx = kmem_cach...
13,965
170,402
0
static jboolean Region_isEmpty(JNIEnv* env, jobject region) { bool result = GetSkRegion(env, region)->isEmpty(); return boolTojboolean(result); }
13,966
46,711
0
static int sha1_export(struct shash_desc *desc, void *out) { struct s390_sha_ctx *sctx = shash_desc_ctx(desc); struct sha1_state *octx = out; octx->count = sctx->count; memcpy(octx->state, sctx->state, sizeof(octx->state)); memcpy(octx->buffer, sctx->buf, sizeof(octx->buffer)); return 0; }
13,967
105,311
0
void AutofillDownloadManager::SetNegativeUploadRate(double rate) { if (rate == negative_upload_rate_) return; negative_upload_rate_ = rate; DCHECK_GE(rate, 0.0); DCHECK_LE(rate, 1.0); DCHECK(profile_); PrefService* preferences = profile_->GetPrefs(); preferences->SetDouble(prefs::kAutofillNegativeUplo...
13,968
13,743
0
ZEND_API int add_next_index_null(zval *arg) /* {{{ */ { zval *tmp; MAKE_STD_ZVAL(tmp); ZVAL_NULL(tmp); return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp, sizeof(zval *), NULL); } /* }}} */
13,969
35,690
0
static int lua_auth_checker_harness_first(request_rec *r) { return lua_request_rec_hook_harness(r, "auth_checker", AP_LUA_HOOK_FIRST); }
13,970
91,676
0
static unsigned int encap_hash_key_make(void *p) { const struct bgp_attr_encap_subtlv *encap = p; return jhash(encap->value, encap->length, 0); }
13,971
133,449
0
ErrorScreen* OobeUI::GetErrorScreen() { return error_screen_.get(); }
13,972
20,648
0
static inline void vti_set_rr6(unsigned long rr6) { ia64_set_rr(RR6, rr6); ia64_srlz_i(); }
13,973
3,669
0
int test_sqr(BIO *bp, BN_CTX *ctx) { BIGNUM *a, *c, *d, *e; int i, ret = 0; a = BN_new(); c = BN_new(); d = BN_new(); e = BN_new(); if (a == NULL || c == NULL || d == NULL || e == NULL) { goto err; } for (i = 0; i < num0; i++) { BN_bntest_rand(a, 40 + i * 10, 0, 0);...
13,974
131,853
0
static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); TestObjectPythonV8Internal::voidCallbackFunctionAttributeAttributeSetter(jsValue, info); T...
13,975
40,930
0
double json_real_value(const json_t *json) { if(!json_is_real(json)) return 0; return json_to_real(json)->value; }
13,976
136,207
0
static const QualifiedName& frameOwnerURLAttributeName(const HTMLFrameOwnerElement& frameOwner) { return isHTMLObjectElement(frameOwner) ? HTMLNames::dataAttr : HTMLNames::srcAttr; }
13,977
144,656
0
void WebContentsImpl::ResumeLoadingCreatedWebContents() { if (delayed_open_url_params_.get()) { OpenURL(*delayed_open_url_params_.get()); delayed_open_url_params_.reset(nullptr); return; } if (is_resume_pending_) { is_resume_pending_ = false; GetRenderViewHost()->GetWidget()->Init(); GetM...
13,978
94,922
0
void usbnet_tx_timeout (struct net_device *net) { struct usbnet *dev = netdev_priv(net); unlink_urbs (dev, &dev->txq); tasklet_schedule (&dev->bh); /* this needs to be handled individually because the generic layer * doesn't know what is sufficient and could not restore private * information if a remedy of an...
13,979
178,257
1
hash_foreach_mangle_dict_of_strings (gpointer key, gpointer val, gpointer user_data) { GHashTable *out = (GHashTable*) user_data; GHashTable *in_dict = (GHashTable *) val; HashAndString *data = g_new0 (HashAndString, 1); data->string = (gchar*) key; data->hash = g_hash_table_new_full (g_str_hash, g_str_equal,...
13,980
145,526
0
void ResourceDispatcherHostImpl::RemovePendingLoader( const LoaderMap::iterator& iter) { ResourceRequestInfoImpl* info = iter->second->GetRequestInfo(); IncrementOutstandingRequestsMemory(-1, *info); pending_loaders_.erase(iter); }
13,981
144,020
0
png_read_end(png_structp png_ptr, png_infop info_ptr) { png_debug(1, "in png_read_end"); if (png_ptr == NULL) return; png_crc_finish(png_ptr, 0); /* Finish off CRC from last IDAT chunk */ do { #ifdef PNG_USE_LOCAL_ARRAYS PNG_CONST PNG_IHDR; PNG_CONST PNG_IDAT; PNG_CONST PNG_IEN...
13,982
10,179
0
Ins_SROUND( INS_ARG ) { DO_SROUND }
13,983
128,294
0
void FrameView::paintScrollbar(GraphicsContext* context, Scrollbar* bar, const IntRect& rect) { bool needsBackgorund = bar->isCustomScrollbar() && m_frame->isMainFrame(); if (needsBackgorund) { IntRect toFill = bar->frameRect(); toFill.intersect(rect); context->fillRect(toFill, baseBackg...
13,984
22,408
0
int default_wake_function(wait_queue_t *curr, unsigned mode, int wake_flags, void *key) { return try_to_wake_up(curr->private, mode, wake_flags); }
13,985
38,770
0
checkcondition_bit(void *checkval, ITEM *item) { return GETBIT(checkval, HASHVAL(item->val)); }
13,986
166,604
0
void WebGL2RenderingContextBase::clearBufferiv(GLenum buffer, GLint drawbuffer, const Vector<GLint>& value, GLuint src_offset) { if (isContextLost() || !ValidateClearBuffe...
13,987
94,679
0
int i2d_PKCS8_fp(FILE *fp, X509_SIG *p8) { return ASN1_i2d_fp_of(X509_SIG,i2d_X509_SIG,fp,p8); }
13,988
89,672
0
u8 *nfc_llcp_build_tlv(u8 type, u8 *value, u8 value_length, u8 *tlv_length) { u8 *tlv, length; pr_debug("type %d\n", type); if (type >= LLCP_TLV_MAX) return NULL; length = llcp_tlv_length[type]; if (length == 0 && value_length == 0) return NULL; else if (length == 0) length = value_length; *tlv_length ...
13,989
172,319
0
int set_iface_flags(const char *ifname, int dev_up) { struct ifreq ifr; int ret; int sock = socket(PF_INET, SOCK_DGRAM, 0); if (sock < 0) { ALOGD("Bad socket: %d\n", sock); return -errno; } memset(&ifr, 0, sizeof(ifr)); strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); if (ioctl(sock, SIOCGIFFLAGS, &i...
13,990
184,145
1
bool AudioHandler::VerifyMixerConnection() { PulseAudioMixer::State mixer_state = mixer_->CheckState(); if (mixer_state == PulseAudioMixer::READY) return true; if (connected_) { // Something happened and the mixer is no longer valid after having been // initialized earlier. connected_ = false; LOG(ERROR) << "Lo...
13,991
81,977
0
static int parseOptions(int argc, char **argv) { int i; for (i = 1; i < argc; i++) { int lastarg = i==argc-1; if (!strcmp(argv[i],"-h") && !lastarg) { sdsfree(config.hostip); config.hostip = sdsnew(argv[++i]); } else if (!strcmp(argv[i],"-h") && lastarg) { ...
13,992
185,003
1
void DriveFileStreamReader::InitializeAfterGetFileContentByPathInitialized( const base::FilePath& drive_file_path, const InitializeCompletionCallback& callback, FileError error, scoped_ptr<DriveEntryProto> entry, const base::FilePath& local_cache_file_path) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); if (...
13,993
180,567
1
static void unix_detach_fds(struct scm_cookie *scm, struct sk_buff *skb) { int i; scm->fp = UNIXCB(skb).fp; UNIXCB(skb).fp = NULL; for (i = scm->fp->count-1; i >= 0; i--) unix_notinflight(scm->fp->fp[i]); }
13,994
18,751
0
static int dccp_v4_init_sock(struct sock *sk) { static __u8 dccp_v4_ctl_sock_initialized; int err = dccp_init_sock(sk, dccp_v4_ctl_sock_initialized); if (err == 0) { if (unlikely(!dccp_v4_ctl_sock_initialized)) dccp_v4_ctl_sock_initialized = 1; inet_csk(sk)->icsk_af_ops = &dccp_ipv4_af_ops; } return err; ...
13,995
52,181
0
PHP_NAMED_FUNCTION(php_if_ftruncate) { zval *fp; long size; php_stream *stream; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &fp, &size) == FAILURE) { RETURN_FALSE; } PHP_STREAM_TO_ZVAL(stream, &fp); if (!php_stream_truncate_supported(stream)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "C...
13,996
75,264
0
static uint32 get_bits(vorb *f, int n) { uint32 z; if (f->valid_bits < 0) return 0; if (f->valid_bits < n) { if (n > 24) { z = get_bits(f, 24); z += get_bits(f, n-24) << 24; return z; } if (f->valid_bits == 0) f->acc = 0; while (f->valid_bits < n) { ...
13,997
69,903
0
connection_ap_process_transparent(entry_connection_t *conn) { socks_request_t *socks; tor_assert(conn); tor_assert(conn->socks_request); socks = conn->socks_request; /* pretend that a socks handshake completed so we don't try to * send a socks reply down a transparent conn */ socks->command = SOCKS_COM...
13,998
149,606
0
void PreconnectManager::StartPreconnectUrl( const GURL& url, bool allow_credentials, net::NetworkIsolationKey network_isolation_key) { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); if (!url.SchemeIsHTTPOrHTTPS()) return; PreresolveJobId job_id = preresolve_jobs_.Add(std::make_unique<PreresolveJ...
13,999