unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
167,186
0
void HTMLMediaElement::WaitForSourceChange() { BLINK_MEDIA_LOG << "waitForSourceChange(" << (void*)this << ")"; StopPeriodicTimers(); load_state_ = kWaitingForSource; SetNetworkState(kNetworkNoSource); SetShouldDelayLoadEvent(false); UpdateDisplayState(); if (GetLayoutObject()) GetLayoutObject()...
8,800
46,214
0
static struct nf_proto_net *generic_get_net_proto(struct net *net) { return &net->ct.nf_ct_proto.generic.pn; }
8,801
180,123
1
static void php_wddx_process_data(void *user_data, const XML_Char *s, int len) { st_entry *ent; wddx_stack *stack = (wddx_stack *)user_data; TSRMLS_FETCH(); if (!wddx_stack_is_empty(stack) && !stack->done) { wddx_stack_top(stack, (void**)&ent); switch (ent->type) { case ST_STRING: if (Z_STRLEN_P(ent->data) == 0) { STR...
8,802
3,474
0
irc_server_copy (struct t_irc_server *server, const char *new_name) { struct t_irc_server *new_server; struct t_infolist *infolist; char *mask, *pos; const char *option_name; int length, index_option; /* check if another server exists with this name */ if (irc_server_search (new_name)) ...
8,803
29,125
0
static int _nfs4_proc_rename(struct inode *old_dir, struct qstr *old_name, struct inode *new_dir, struct qstr *new_name) { struct nfs_server *server = NFS_SERVER(old_dir); struct nfs_renameargs arg = { .old_dir = NFS_FH(old_dir), .new_dir = NFS_FH(new_dir), .old_name = old_name, .new_name = new_name, }; s...
8,804
15,953
0
bool PhotoDataUtils::GetNativeInfo ( const TIFF_Manager & exif, XMP_Uns8 ifd, XMP_Uns16 id, TIFF_Manager::TagInfo * info ) { bool haveExif = exif.GetTag ( ifd, id, info ); if ( haveExif ) { XMP_Uns32 i; char * chPtr; XMP_Assert ( (info->dataPtr != 0) || (info->dataLen == 0) ); // Null pointer requires zero...
8,805
49,264
0
static void tcp_v4_init_req(struct request_sock *req, const struct sock *sk_listener, struct sk_buff *skb) { struct inet_request_sock *ireq = inet_rsk(req); sk_rcv_saddr_set(req_to_sk(req), ip_hdr(skb)->daddr); sk_daddr_set(req_to_sk(req), ip_hdr(skb)->saddr); ireq->opt = tcp_v4_save_options(skb); }
8,806
107,478
0
static Eina_Bool _ewk_view_smart_contents_resize(Ewk_View_Smart_Data* smartData, int width, int height) { return true; }
8,807
140,856
0
void GLES2DecoderImpl::RestoreState(const ContextState* prev_state) { TRACE_EVENT1("gpu", "GLES2DecoderImpl::RestoreState", "context", logger_.GetLogPrefix()); RestoreFramebufferBindings(); state_.RestoreState(prev_state); }
8,808
9,691
0
ft_glyphslot_set_bitmap( FT_GlyphSlot slot, FT_Byte* buffer ) { ft_glyphslot_free_bitmap( slot ); slot->bitmap.buffer = buffer; FT_ASSERT( (slot->internal->flags & FT_GLYPH_OWN_BITMAP) == 0 ); }
8,809
34,885
0
call_refreshresult(struct rpc_task *task) { int status = task->tk_status; dprint_status(task); task->tk_status = 0; task->tk_action = call_refresh; switch (status) { case 0: if (rpcauth_uptodatecred(task)) task->tk_action = call_allocate; return; case -ETIMEDOUT: rpc_delay(task, 3*HZ); case -EAGAIN: ...
8,810
48,978
0
int __init udpv4_offload_init(void) { return inet_add_offload(&udpv4_offload, IPPROTO_UDP); }
8,811
84,946
0
smb2_hdr_assemble(struct smb2_sync_hdr *shdr, __le16 smb2_cmd, const struct cifs_tcon *tcon) { shdr->ProtocolId = SMB2_PROTO_NUMBER; shdr->StructureSize = cpu_to_le16(64); shdr->Command = smb2_cmd; if (tcon && tcon->ses && tcon->ses->server) { struct TCP_Server_Info *server = tcon->ses->server; spin_lock(&...
8,812
76,731
0
convertToPassage(const int pass_start, const int pass_end, const int word_start, EmphasisInfo *buffer, const EmphRuleNumber emphRule, const EmphasisClass class, const TranslationTableHeader *table, unsigned int *wordBuffer) { int i; const TranslationTableRule *indicRule; for (i = pass_start; i <= pass_end; i++)...
8,813
81,000
0
static void update_exception_bitmap(struct kvm_vcpu *vcpu) { u32 eb; eb = (1u << PF_VECTOR) | (1u << UD_VECTOR) | (1u << MC_VECTOR) | (1u << DB_VECTOR) | (1u << AC_VECTOR); /* * Guest access to VMware backdoor ports could legitimately * trigger #GP because of TSS I/O permission bitmap. * We intercept th...
8,814
2,081
0
int red_channel_client_blocked(RedChannelClient *rcc) { return rcc && rcc->send_data.blocked; }
8,815
10,913
0
parse_context_tag (unsigned char const **buf, size_t *len, struct tag_info *ti, int tag) { gpg_error_t err; err = _ksba_ber_parse_tl (buf, len, ti); if (err) ; else if (!(ti->class == CLASS_CONTEXT && ti->tag == tag && ti->is_constructed) ) err = gpg_error (GPG_ERR_INV_OBJ); ...
8,816
20,677
0
static int emulator_pio_in_emulated(struct x86_emulate_ctxt *ctxt, int size, unsigned short port, void *val, unsigned int count) { struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); int ret; if (vcpu->arch.pio.count) goto data_avail; ret = emulator_pio_in_out(vcpu, size, port, val, count, true); if (r...
8,817
85,210
0
static void ctx_resched(struct perf_cpu_context *cpuctx, struct perf_event_context *task_ctx, enum event_type_t event_type) { enum event_type_t ctx_event_type = event_type & EVENT_ALL; bool cpu_event = !!(event_type & EVENT_CPU); /* * If pinned groups are involved, flexible groups also need to be * schedu...
8,818
119,243
0
unsigned HTMLFormElement::formElementIndex(FormAssociatedElement* associatedElement) { HTMLElement* associatedHTMLElement = toHTMLElement(associatedElement); if (associatedHTMLElement->fastHasAttribute(formAttr)) { unsigned short position = compareDocumentPosition(associatedHTMLElement); if (pos...
8,819
105,766
0
bool SplitStringIntoKeyValuePairs( const std::string& line, char key_value_delimiter, char key_value_pair_delimiter, std::vector<std::pair<std::string, std::string> >* kv_pairs) { kv_pairs->clear(); std::vector<std::string> pairs; SplitString(line, key_value_pair_delimiter, &pairs); bool succe...
8,820
165,031
0
HTMLCanvasElement::RenderingContextFactories() { DCHECK(IsMainThread()); DEFINE_STATIC_LOCAL(ContextFactoryVector, context_factories, (CanvasRenderingContext::kMaxValue)); return context_factories; }
8,821
87,662
0
void hsr_dev_setup(struct net_device *dev) { eth_hw_addr_random(dev); ether_setup(dev); dev->min_mtu = 0; dev->header_ops = &hsr_header_ops; dev->netdev_ops = &hsr_device_ops; SET_NETDEV_DEVTYPE(dev, &hsr_type); dev->priv_flags |= IFF_NO_QUEUE; dev->needs_free_netdev = true; dev->priv_destructor = hsr_dev_de...
8,822
176,755
0
native_handle* Parcel::readNativeHandle() const { int numFds, numInts; status_t err; err = readInt32(&numFds); if (err != NO_ERROR) return 0; err = readInt32(&numInts); if (err != NO_ERROR) return 0; native_handle* h = native_handle_create(numFds, numInts); if (!h) { return 0; } for (int i=0 ; err...
8,823
118,185
0
ValidityMessage::ValidityMessage(const base::string16& text, bool sure) : text(text), sure(sure) {}
8,824
60,383
0
sftp_server_main(int argc, char **argv, struct passwd *user_pw) { fd_set *rset, *wset; int i, r, in, out, max, ch, skipargs = 0, log_stderr = 0; ssize_t len, olen, set_size; SyslogFacility log_facility = SYSLOG_FACILITY_AUTH; char *cp, *homedir = NULL, buf[4*4096]; long mask; extern char *optarg; extern char *...
8,825
104,036
0
bool GLES2DecoderImpl::DoIsShader(GLuint client_id) { return GetShaderInfo(client_id) != NULL; }
8,826
57,331
0
ZEND_API zend_object *zend_get_this_object(zend_execute_data *ex) /* {{{ */ { while (ex) { if (Z_OBJ(ex->This)) { return Z_OBJ(ex->This); } else if (ex->func) { if (ex->func->type != ZEND_INTERNAL_FUNCTION || ex->func->common.scope) { return Z_OBJ(ex->This); } } ex = ex->prev_execute_data; } ret...
8,827
68,250
0
static ssize_t do_tcp_sendpages(struct sock *sk, struct page *page, int offset, size_t size, int flags) { struct tcp_sock *tp = tcp_sk(sk); int mss_now, size_goal; int err; ssize_t copied; long timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT); /* Wait for a connection to finish. One exception is TCP Fast Open...
8,828
7,564
0
static void cirrus_bitblt_cputovideo_next(CirrusVGAState * s) { int copy_count; uint8_t *end_ptr; if (s->cirrus_srccounter > 0) { if (s->cirrus_blt_mode & CIRRUS_BLTMODE_PATTERNCOPY) { cirrus_bitblt_common_patterncopy(s, s->cirrus_bltbuf); the_end: s->cirrus_srccount...
8,829
57,176
0
static int nfs4_opendata_access(struct rpc_cred *cred, struct nfs4_opendata *opendata, struct nfs4_state *state, fmode_t fmode, int openflags) { struct nfs_access_entry cache; u32 mask; /* access call failed or for some reason the server doesn't * support any access modes -- defer access call until la...
8,830
101,529
0
bool PrintWebViewHelper::PrintPages(const PrintMsg_PrintPages_Params& params, WebFrame* frame, const WebNode& node, PrepareFrameAndViewForPrint* prepare) { PrintMsg_Print_Params print_params = params.params; ...
8,831
93,783
0
virDomainDelIOThread(virDomainPtr domain, unsigned int iothread_id, unsigned int flags) { virConnectPtr conn; VIR_DOMAIN_DEBUG(domain, "iothread_id=%u, flags=%x", iothread_id, flags); virResetLastError(); virCheckDomainReturn(domain, -1); virCheckReadOnly...
8,832
32,708
0
static u32 tg3_read_indirect_reg32(struct tg3 *tp, u32 off) { unsigned long flags; u32 val; spin_lock_irqsave(&tp->indirect_lock, flags); pci_write_config_dword(tp->pdev, TG3PCI_REG_BASE_ADDR, off); pci_read_config_dword(tp->pdev, TG3PCI_REG_DATA, &val); spin_unlock_irqrestore(&tp->indirect_lock, flags); return...
8,833
116,830
0
void PopupContainer::hide() { m_listBox->abandon(); }
8,834
173,005
0
set_text(png_structp png_ptr, png_infop info_ptr, png_textp text, png_charp param) { switch (param[0]) { case '<': { png_bytep file = NULL; text->text_length = load_file(param+1, &file); text->text = (png_charp)file; } break; case '0': case '1': case '2': case '3': case '...
8,835
115,843
0
void NavigationController::GoToOffset(int offset) { int index = (transient_entry_index_ != -1) ? transient_entry_index_ + offset : last_committed_entry_index_ + offset; if (index < 0 || index >= entry_count()) return; GoToIndex(index); }
8,836
99,233
0
void ResourceMessageFilter::OnGetWindowRect(gfx::NativeViewId view, IPC::Message* reply_msg) { ChromeThread::PostTask( ChromeThread::BACKGROUND_X11, FROM_HERE, NewRunnableMethod( this, &ResourceMessageFilter::DoOnGetWindowRect, view, reply_msg)); }
8,837
172,558
0
void SoftAAC2::drainDecoder() { while (mOutputDelayCompensated > 0) { INT_PCM tmpOutBuffer[2048 * MAX_CHANNEL_COUNT]; mDrcWrap.submitStreamData(mStreamInfo); mDrcWrap.update(); AAC_DECODER_ERROR decoderErr = aacDecoder_DecodeFrame(mAACDecoder, ...
8,838
15,550
0
muxserver_listen(void) { mode_t old_umask; char *orig_control_path = options.control_path; char rbuf[16+1]; u_int i, r; int oerrno; if (options.control_path == NULL || options.control_master == SSHCTL_MASTER_NO) return; debug("setting up multiplex master socket"); /* * Use a temporary path before li...
8,839
64,285
0
static const char *set_gprof_dir(cmd_parms *cmd, void *dummy, const char *arg) { void *sconf = cmd->server->module_config; core_server_config *conf = ap_get_core_module_config(sconf); const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE); if (err != NULL) { return err; } con...
8,840
42,043
0
void ipc_rcu_free(struct rcu_head *head) { struct ipc_rcu *p = container_of(head, struct ipc_rcu, rcu); kvfree(p); }
8,841
108,076
0
void GLES2DecoderImpl::DoFramebufferTexture2D( GLenum target, GLenum attachment, GLenum textarget, GLuint client_texture_id, GLint level) { if (!bound_framebuffer_) { SetGLError(GL_INVALID_OPERATION, "glFramebufferTexture2D: no framebuffer bound."); return; } GLuint service_id = 0; ...
8,842
155,523
0
AttestationPermissionRequestSheetModel::AttestationPermissionRequestSheetModel( AuthenticatorRequestDialogModel* dialog_model) : AuthenticatorSheetModelBase(dialog_model) {}
8,843
145,690
0
unsigned ImageInputType::height() const { RefPtrWillBeRawPtr<HTMLInputElement> element(this->element()); if (!element->layoutObject()) { unsigned height; if (parseHTMLNonNegativeInteger(element->fastGetAttribute(heightAttr), height)) return height; HTMLImageLoader* imageLoa...
8,844
163,791
0
viz::SurfaceId DelegatedFrameHost::SurfaceIdAtPoint( viz::SurfaceHittestDelegate* delegate, const gfx::Point& point, gfx::Point* transformed_point) { viz::SurfaceId surface_id(frame_sink_id_, local_surface_id_); if (!surface_id.is_valid()) return surface_id; viz::SurfaceHittest hittest(delegate, ...
8,845
140,035
0
bool HTMLMediaElement::mediaTracksEnabledInternally() { return RuntimeEnabledFeatures::audioVideoTracksEnabled() || RuntimeEnabledFeatures::backgroundVideoTrackOptimizationEnabled(); }
8,846
143,219
0
LayoutViewItem Document::layoutViewItem() const { return LayoutViewItem(m_layoutView); }
8,847
132,688
0
explicit UseSynchronousResizeModeVisitor(bool enable) : enable_(enable) {}
8,848
88,508
0
MagickExport MagickBooleanType CloseBlob(Image *image) { BlobInfo *magick_restrict blob_info; int status; /* Close image file. */ assert(image != (Image *) NULL); assert(image->signature == MagickCoreSignature); if (image->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickM...
8,849
47,272
0
static void lzo_exit(struct crypto_tfm *tfm) { struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); kvfree(ctx->lzo_comp_mem); }
8,850
42,009
0
static void ss_wakeup(struct list_head *h, int kill) { struct msg_sender *mss, *t; list_for_each_entry_safe(mss, t, h, list) { if (kill) mss->list.next = NULL; wake_up_process(mss->tsk); } }
8,851
156,878
0
LocalFrame* DocumentInit::GetFrame() const { return document_loader_ ? document_loader_->GetFrame() : nullptr; }
8,852
109,301
0
void InspectorPageAgent::getNavigationHistory(ErrorString*, int*, RefPtr<TypeBuilder::Array<TypeBuilder::Page::NavigationEntry> >&) { }
8,853
9,684
0
find_unicode_charmap( FT_Face face ) { FT_CharMap* first; FT_CharMap* cur; /* caller should have already checked that `face' is valid */ FT_ASSERT( face ); first = face->charmaps; if ( !first ) return FT_Err_Invalid_CharMap_Handle; /* * The original TrueType specifica...
8,854
69,428
0
struct cifs_ntsd *get_cifs_acl(struct cifs_sb_info *cifs_sb, struct inode *inode, const char *path, u32 *pacllen) { struct cifs_ntsd *pntsd = NULL; struct cifsFileInfo *open_file = NULL; if (inode) open_file = find_readable_file(CIFS_I(inode), true); if (!open_file) return get_cifs_acl_by_p...
8,855
159,638
0
void RenderFrameHostManager::EnsureRenderFrameHostPageFocusConsistent() { frame_tree_node_->frame_tree()->SetPageFocus( render_frame_host_->GetSiteInstance(), frame_tree_node_->frame_tree() ->root() ->current_frame...
8,856
175,977
0
void smp_check_auth_req(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { uint8_t enc_enable = *(uint8_t*)p_data; uint8_t reason = enc_enable ? SMP_SUCCESS : SMP_ENC_FAIL; SMP_TRACE_DEBUG( "%s rcvs enc_enable=%d i_keys=0x%x r_keys=0x%x (i-initiator r-responder)", __func__, enc_enable, p_cb->local_i_key, p_cb->local_r...
8,857
62,950
0
static inline bool cpu_has_vmx_vmfunc(void) { return vmcs_config.cpu_based_2nd_exec_ctrl & SECONDARY_EXEC_ENABLE_VMFUNC; }
8,858
126,016
0
void AllDownloadsCompleteObserver::OnDownloadCreated( DownloadManager* manager, DownloadItem* item) { if (pre_download_ids_.find(item->GetId()) == pre_download_ids_.end() && item->GetState() == DownloadItem::IN_PROGRESS) { item->AddObserver(this); pending_downloads_.insert(item); } }
8,859
65,949
0
svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv) { struct svc_program *progp; struct svc_version *versp = NULL; /* compiler food */ struct svc_procedure *procp = NULL; struct svc_serv *serv = rqstp->rq_server; kxdrproc_t xdr; __be32 *statp; u32 prog, vers, proc; __be32 au...
8,860
158,234
0
void RenderWidgetHostImpl::CancelKeyboardLock() { if (delegate_) delegate_->CancelKeyboardLock(this); UnlockKeyboard(); keyboard_lock_allowed_ = false; keyboard_lock_requested_ = false; keyboard_keys_to_lock_.reset(); }
8,861
63,001
0
static int nested_vmx_check_permission(struct kvm_vcpu *vcpu) { if (!to_vmx(vcpu)->nested.vmxon) { kvm_queue_exception(vcpu, UD_VECTOR); return 0; } return 1; }
8,862
88,434
0
uint32_t GPMF_ExpandComplexTYPE(char *src, uint32_t srcsize, char *dst, uint32_t *dstsize) { uint32_t i = 0, k = 0, count = 0; while (i<srcsize && k<*dstsize) { if (src[i] == '[' && i>0) { int j = 1; count = 0; while (src[i + j] >= '0' && src[i + j] <= '9') { count *= 10; count += src[i + j]...
8,863
93,072
0
rdpsnd_queue_next_completion(void) { struct audio_packet *packet; long remaining; struct timeval now; if (queue_pending == queue_lo) return -1; gettimeofday(&now, NULL); packet = &packet_queue[queue_pending]; remaining = (packet->completion_tv.tv_sec - now.tv_sec) * 1000000 + (packet->completion_tv.tv_us...
8,864
4,947
0
gst_qtdemux_handle_src_query (GstPad * pad, GstQuery * query) { gboolean res = FALSE; GstQTDemux *qtdemux = GST_QTDEMUX (gst_pad_get_parent (pad)); switch (GST_QUERY_TYPE (query)) { case GST_QUERY_POSITION: if (GST_CLOCK_TIME_IS_VALID (qtdemux->segment.last_stop)) { gst_query_set_position (quer...
8,865
71,659
0
static MagickStatusType ReadPSDMergedImage(Image* image, const PSDInfo* psd_info,ExceptionInfo *exception) { MagickOffsetType *offsets; MagickStatusType status; PSDCompressionType compression; register ssize_t i; compression=(PSDCompressionType) ReadBlobMSBShort(image); image->compress...
8,866
51,847
0
dissect_common_timing_advance(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) { guint8 cfn; guint16 timing_advance; /* CFN control */ cfn = tvb_get_guint8(tvb, offset); proto_tree_add_item(tree, hf_fp_cfn_control, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; /* Timing Advan...
8,867
123,179
0
int RenderWidgetHostViewAura::GetNonClientComponent( const gfx::Point& point) const { return HTCLIENT; }
8,868
186,640
1
void HTMLImportsController::Dispose() { for (const auto& loader : loaders_) loader->Dispose(); loaders_.clear(); if (root_) { root_->Dispose(); root_.Clear(); } }
8,869
95,395
0
static int auth_count_scoreboard(cmd_rec *cmd, char *user) { char *key; void *v; pr_scoreboard_entry_t *score = NULL; long cur = 0, hcur = 0, ccur = 0, hostsperuser = 1, usersessions = 0; config_rec *c = NULL, *maxc = NULL; /* First, check to see which Max* directives are configured. If none * are conf...
8,870
39,153
0
static int nfs_do_write(struct nfs_write_data *data, const struct rpc_call_ops *call_ops, int how) { struct inode *inode = data->header->inode; return nfs_initiate_write(NFS_CLIENT(inode), data, call_ops, how, 0); }
8,871
177,337
0
void ACodec::ExecutingState::stateEntered() { ALOGV("[%s] Now Executing", mCodec->mComponentName.c_str()); mCodec->mRenderTracker.clear(systemTime(CLOCK_MONOTONIC)); mCodec->processDeferredMessages(); }
8,872
523
0
static void pdf_run_gs_CA(fz_context *ctx, pdf_processor *proc, float alpha) { pdf_run_processor *pr = (pdf_run_processor *)proc; pdf_gstate *gstate = pdf_flush_text(ctx, pr); gstate->stroke.alpha = fz_clamp(alpha, 0, 1); }
8,873
97,704
0
xmlXPathNameFunction(xmlXPathParserContextPtr ctxt, int nargs) { xmlXPathObjectPtr cur; if (nargs == 0) { valuePush(ctxt, xmlXPathCacheNewNodeSet(ctxt->context, ctxt->context->node)); nargs = 1; } CHECK_ARITY(1); if ((ctxt->value == NULL) || ((ctxt->value->type != XPATH_NODES...
8,874
181,051
1
wb_print(netdissect_options *ndo, register const void *hdr, register u_int len) { register const struct pkt_hdr *ph; ph = (const struct pkt_hdr *)hdr; if (len < sizeof(*ph) || !ND_TTEST(*ph)) { ND_PRINT((ndo, "%s", tstr)); return; } len -= sizeof(*ph); if (ph->ph_flags) ND_PRINT((ndo, "*")); swi...
8,875
31,255
0
static int crypto_ahash_report(struct sk_buff *skb, struct crypto_alg *alg) { return -ENOSYS; }
8,876
148,892
0
bool RenderFrameHostManager::IsCurrentlySameSite(RenderFrameHostImpl* candidate, const GURL& dest_url) { BrowserContext* browser_context = delegate_->GetControllerForRenderManager().GetBrowserContext(); if (candidate->GetSiteInstance()->HasWrongProcessForURL(d...
8,877
149,030
0
static SQLITE_NOINLINE void btreeParseCellAdjustSizeForOverflow( MemPage *pPage, /* Page containing the cell */ u8 *pCell, /* Pointer to the cell text. */ CellInfo *pInfo /* Fill in this structure */ ){ /* If the payload will not fit completely on the local page, we have ** to dec...
8,878
157,055
0
uint8_t* data() { return data_; }
8,879
51,621
0
void tcp_synack_rtt_meas(struct sock *sk, struct request_sock *req) { long rtt_us = -1L; if (req && !req->num_retrans && tcp_rsk(req)->snt_synack.v64) { struct skb_mstamp now; skb_mstamp_get(&now); rtt_us = skb_mstamp_us_delta(&now, &tcp_rsk(req)->snt_synack); } tcp_ack_update_rtt(sk, FLAG_SYN_ACKED, rtt_u...
8,880
105,557
0
bool SendNativeKeyEventJSONRequest( AutomationMessageSender* sender, int browser_index, int tab_index, ui::KeyboardCode key_code, int modifiers, std::string* error_msg) { DictionaryValue dict; dict.SetString("command", "SendOSLevelKeyEventToTab"); dict.SetInteger("windex", browser_index); ...
8,881
43,980
0
__xml_acl_apply(xmlNode *xml) { GListPtr aIter = NULL; xml_private_t *p = NULL; xmlXPathObjectPtr xpathObj = NULL; if(xml_acl_enabled(xml) == FALSE) { p = xml->doc->_private; crm_trace("Not applying ACLs for %s", p->user); return; } p = xml->doc->_private; for(aIte...
8,882
108,383
0
static uint32 SelectSamplesPerPacket(AudioParameters params) { int samples = kMinSamplesPerHardwarePacket; while (samples <= kMaxSamplesPerHardwarePacket && samples * base::Time::kMillisecondsPerSecond < params.sample_rate * kMillisecondsPerHardwarePacket) { samples *= 2; } return samples;...
8,883
19,168
0
static inline struct sock *l2tp_ip_bind_lookup(struct net *net, __be32 laddr, int dif, u32 tunnel_id) { struct sock *sk = __l2tp_ip_bind_lookup(net, laddr, dif, tunnel_id); if (sk) sock_hold(sk); return sk; }
8,884
102,245
0
bool ExtensionPrefs::GetActiveBit(const std::string& extension_id) { const DictionaryValue* dictionary = GetExtensionPref(extension_id); bool result = false; if (dictionary && dictionary->GetBoolean(kActiveBit, &result)) return result; return false; }
8,885
71,155
0
static int ceph_aes_decrypt2(const void *key, int key_len, void *dst1, size_t *dst1_len, void *dst2, size_t *dst2_len, const void *src, size_t src_len) { struct sg_table sg_in; struct scatterlist sg_out[3], prealloc_sg; struct crypto_skcipher *tfm = ceph_crypto_alloc_cipher(); SKCIPHER_REQUE...
8,886
141,060
0
ScriptedIdleTaskController& Document::EnsureScriptedIdleTaskController() { if (!scripted_idle_task_controller_) { scripted_idle_task_controller_ = ScriptedIdleTaskController::Create(this); if (!frame_ || !frame_->IsAttached() || ExecutionContext::IsContextDestroyed()) { scripted_idle_task_contro...
8,887
9,806
0
static int http_replace_header(struct my_regex *re, char *dst, uint dst_size, char *val, int len, const char *rep_str) { if (!regex_exec_match2(re, val, len, MAX_MATCH, pmatch)) return -2; return exp_replace(dst, dst_size, val, rep_str, pmatch); }
8,888
61,528
0
static inline size_t WriteChannelSize(const PSDInfo *psd_info,Image *image, const signed short channel) { size_t count; count=WriteBlobMSBSignedShort(image,channel); count+=SetPSDSize(psd_info,image,0); return(count); }
8,889
175,526
0
IHEVCD_ERROR_T ihevcd_parse_user_data_registered_itu_t_t35(codec_t *ps_codec, UWORD32 u4_payload_size) { parse_ctxt_t *ps_parse = &ps_codec->s_parse; bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; UWORD32 value; user_data_registered_itu_t_t35_t *ps_user_d...
8,890
156,783
0
void Document::ApplyFeaturePolicy(const ParsedFeaturePolicy& declared_policy) { FeaturePolicy* parent_feature_policy = nullptr; ParsedFeaturePolicy container_policy; if (frame_) { if (!frame_->IsMainFrame()) { parent_feature_policy = frame_->Tree().Parent()->GetSecurityContext()->GetFeaturePo...
8,891
82,236
0
int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen) { struct socket *sock; struct sockaddr_storage address; int err, fput_needed; sock = sockfd_lookup_light(fd, &err, &fput_needed); if (sock) { err = move_addr_to_kernel(umyaddr, addrlen, &address); if (err >= 0) { err = security_socket_bin...
8,892
73,545
0
static MagickBooleanType SyncExifProfile(Image *image, StringInfo *profile) { #define MaxDirectoryStack 16 #define EXIF_DELIMITER "\n" #define EXIF_NUM_FORMATS 12 #define TAG_EXIF_OFFSET 0x8769 #define TAG_INTEROP_OFFSET 0xa005 typedef struct _DirectoryInfo { unsigned char *directory; size_t ...
8,893
109,753
0
PassRefPtr<HTMLCollection> Document::plugins() { return ensureCachedCollection(DocEmbeds); }
8,894
96,050
0
long FS_ReadFileDir(const char *qpath, void *searchPath, qboolean unpure, void **buffer) { fileHandle_t h; searchpath_t *search; byte* buf; qboolean isConfig; long len; if ( !fs_searchpaths ) { Com_Error( ERR_FATAL, "Filesystem call made without initialization" ); } if ( !qpath || !qpath[0] ) { Com_...
8,895
184,782
1
static v8::Handle<v8::Value> methodWithNonOptionalArgAndOptionalArgCallback(const v8::Arguments& args) { INC_STATS("DOM.TestObj.methodWithNonOptionalArgAndOptionalArg"); if (args.Length() < 1) return V8Proxy::throwNotEnoughArgumentsError(); TestObj* imp = V8TestObj::toNative(args.Holder()); EXCEPTION_BLOCK(int,...
8,896
141,034
0
void Document::DispatchUnloadEvents(DocumentLoadTiming* timing) { PluginScriptForbiddenScope forbid_plugin_destructor_scripting; if (parser_) parser_->StopParsing(); if (load_event_progress_ == kLoadEventNotRun) return; if (load_event_progress_ <= kUnloadEventInProgress) { Element* current_focused...
8,897
152,601
0
mojom::FrameInputHandler* TestRenderFrame::GetFrameInputHandler() { if (!frame_input_handler_) { mojom::FrameInputHandlerRequest frame_input_handler_request = mojo::MakeRequest(&frame_input_handler_); FrameInputHandlerImpl::CreateMojoService( weak_factory_.GetWeakPtr(), std::move(frame_input_h...
8,898
7,363
0
skip_literal_string( FT_Byte* *acur, FT_Byte* limit ) { FT_Byte* cur = *acur; FT_Int embed = 0; FT_Error error = FT_ERR( Invalid_File_Format ); unsigned int i; while ( cur < limit ) { FT_Byte c = *cur; cur++; if ( c == '\\...
8,899