unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
52,763
0
int vb2_ioctl_querybuf(struct file *file, void *priv, struct v4l2_buffer *p) { struct video_device *vdev = video_devdata(file); /* No need to call vb2_queue_is_busy(), anyone can query buffers. */ return vb2_querybuf(vdev->queue, p); }
9,800
101,061
0
UpdateTemporaryGlobalQuotaTask( QuotaManager* manager, int64 new_quota, QuotaCallback* callback) : DatabaseTaskBase(manager), new_quota_(new_quota), callback_(callback) { DCHECK_GE(new_quota, 0); }
9,801
19,110
0
int udp_v4_get_port(struct sock *sk, unsigned short snum) { unsigned int hash2_nulladdr = udp4_portaddr_hash(sock_net(sk), htonl(INADDR_ANY), snum); unsigned int hash2_partial = udp4_portaddr_hash(sock_net(sk), inet_sk(sk)->inet_rcv_saddr, 0); /* precompute partial secondary hash */ udp_sk(sk)->udp_portaddr_ha...
9,802
26,726
0
void nl80211_send_auth_timeout(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *addr, gfp_t gfp) { nl80211_send_mlme_timeout(rdev, netdev, NL80211_CMD_AUTHENTICATE, addr, gfp); }
9,803
75,078
0
person_get_frame_delay(const person_t* person) { return person->anim_frames; }
9,804
180,854
1
static int snd_seq_device_dev_free(struct snd_device *device) { struct snd_seq_device *dev = device->device_data; put_device(&dev->dev); return 0; }
9,805
158,914
0
void PDFiumEngine::DrawSelections(int progressive_index, pp::ImageData* image_data) { DCHECK_GE(progressive_index, 0); DCHECK_LT(static_cast<size_t>(progressive_index), progressive_paints_.size()); DCHECK(image_data); int page_index = progressive_paints_[progressive_index].pag...
9,806
108,047
0
TextureManager::TextureInfo* CreateTextureInfo( GLuint client_id, GLuint service_id) { return texture_manager()->CreateTextureInfo(client_id, service_id); }
9,807
18,328
0
clean_up(void) { send_event(INSTANCE_EXIT, uzbl.info.pid_str, NULL); g_free(uzbl.info.pid_str); g_free(uzbl.state.executable_path); g_hash_table_destroy(uzbl.behave.commands); if(uzbl.state.event_buffer) g_ptr_array_free(uzbl.state.event_buffer, TRUE); if (uzbl.behave.fifo_dir) ...
9,808
158,877
0
BrowserTestWithExtensionsDisabled() {}
9,809
180,353
1
static inline void write_s3row_data( const entity_stage3_row *r, unsigned orig_cp, enum entity_charset charset, zval *arr) { char key[9] = ""; /* two unicode code points in UTF-8 */ char entity[LONGEST_ENTITY_LENGTH + 2] = {'&'}; size_t written_k1; written_k1 = write_octet_sequence(key, charset, orig_cp); if...
9,810
125,657
0
void RenderViewHostImpl::OnDocumentAvailableInMainFrame() { delegate_->DocumentAvailableInMainFrame(this); }
9,811
41,466
0
static int __dn_setsockopt(struct socket *sock, int level,int optname, char __user *optval, unsigned int optlen, int flags) { struct sock *sk = sock->sk; struct dn_scp *scp = DN_SK(sk); long timeo; union { struct optdata_dn opt; struct accessdata_dn acc; int mode; unsigned long win; int val; unsigned ch...
9,812
68,095
0
static RList *dex_method_signature2(RBinDexObj *bin, int method_idx) { ut32 proto_id, params_off, list_size; char *buff = NULL; ut8 *bufptr; ut16 type_idx; int i; RList *params = r_list_newf (free); if (!params) { return NULL; } if (method_idx < 0 || method_idx >= bin->header.method_size) { goto out_erro...
9,813
101,254
0
void ExpectLocalOrderIsByServerId() { ScopedDirLookup dir(syncdb_.manager(), syncdb_.name()); EXPECT_TRUE(dir.good()); ReadTransaction trans(FROM_HERE, dir); Id null_id; Entry low(&trans, GET_BY_ID, low_id_); Entry mid(&trans, GET_BY_ID, mid_id_); Entry high(&trans, GET_BY_ID, high_id_); ...
9,814
61,531
0
static ssize_t WritePSDChannels(const PSDInfo *psd_info, const ImageInfo *image_info,Image *image,Image *next_image, MagickOffsetType size_offset,const MagickBooleanType separate) { Image *mask; MagickOffsetType rows_offset; size_t channels, count, length, offset_length; unsigned ...
9,815
147,007
0
bool WebLocalFrameImpl::HasVisibleContent() const { LayoutEmbeddedContentItem layout_item = GetFrame()->OwnerLayoutItem(); if (!layout_item.IsNull() && layout_item.Style()->Visibility() != EVisibility::kVisible) { return false; } if (LocalFrameView* view = GetFrameView()) return view->VisibleWidt...
9,816
130,849
0
static void methodWithCallbackInterfaceAndOptionalArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); TestObjectV8Internal::methodWithCallbackInterfaceAndOptionalArgMethod(info); TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); }
9,817
185,741
1
bool MessageLoop::DoDelayedWork(TimeTicks* next_delayed_work_time) { if (!nestable_tasks_allowed_ || !SweepDelayedWorkQueueAndReturnTrueIfStillHasWork()) { recent_time_ = *next_delayed_work_time = TimeTicks(); return false; } // When we "fall behind", there will be a lot of tasks in the delayed work // queue that ar...
9,818
180,545
1
static bool check_underflow(const struct ip6t_entry *e) { const struct xt_entry_target *t; unsigned int verdict; if (!unconditional(&e->ipv6)) return false; t = ip6t_get_target_c(e); if (strcmp(t->u.user.name, XT_STANDARD_TARGET) != 0) return false; verdict = ((struct xt_standard_target *)t)->verdict; verdict = -verd...
9,819
26,857
0
static ssize_t proc_loginuid_write(struct file * file, const char __user * buf, size_t count, loff_t *ppos) { struct inode * inode = file->f_path.dentry->d_inode; char *page, *tmp; ssize_t length; uid_t loginuid; if (!capable(CAP_AUDIT_CONTROL)) return -EPERM; rcu_read_lock(); if (current != pid_task(...
9,820
21,304
0
static long do_mbind(unsigned long start, unsigned long len, unsigned short mode, unsigned short mode_flags, nodemask_t *nmask, unsigned long flags) { struct vm_area_struct *vma; struct mm_struct *mm = current->mm; struct mempolicy *new; unsigned long end; int err; LIST_HEAD(pagelist); if (flags &...
9,821
103,612
0
ChromeContentBrowserClient::GetCryptoPasswordDelegate( const GURL& url) { return browser::NewCryptoModuleBlockingDialogDelegate( browser::kCryptoModulePasswordKeygen, url.host()); }
9,822
109,830
0
void Document::setVisuallyOrdered() { m_visuallyOrdered = true; if (renderer()) renderer()->style()->setRTLOrdering(VisualOrder); setNeedsStyleRecalc(); }
9,823
134,704
0
void SynchronousCompositorImpl::UpdateFrameMetaData( const cc::CompositorFrameMetadata& frame_metadata) { RenderWidgetHostViewAndroid* rwhv = static_cast<RenderWidgetHostViewAndroid*>( contents_->GetRenderWidgetHostView()); if (rwhv) rwhv->SynchronousFrameMetadata(frame_metadata); DeliverMessages();...
9,824
178,153
1
PS_SERIALIZER_DECODE_FUNC(php_binary) /* {{{ */ { const char *p; char *name; const char *endptr = val + vallen; zval *current; int namelen; int has_value; php_unserialize_data_t var_hash; PHP_VAR_UNSERIALIZE_INIT(var_hash); for (p = val; p < endptr; ) { zval **tmp; namelen = ((unsigned char...
9,825
94,717
0
swabHorDiff32(TIFF* tif, uint8* cp0, tmsize_t cc) { uint32* wp = (uint32*) cp0; tmsize_t wc = cc / 4; if( !horDiff32(tif, cp0, cc) ) return 0; TIFFSwabArrayOfLong(wp, wc); return 1; }
9,826
21,863
0
int drm_connector_property_set_value(struct drm_connector *connector, struct drm_property *property, uint64_t value) { int i; for (i = 0; i < DRM_CONNECTOR_MAX_PROPERTY; i++) { if (connector->property_ids[i] == property->base.id) { connector->property_values[i] = value; break; } } if (i == DRM_CON...
9,827
108,466
0
void AddEntries(StorageType type, UsageTracker* tracker) { std::map<std::string, int64> host_usage; tracker->GetCachedHostsUsage(&host_usage); for (std::map<std::string, int64>::const_iterator iter = host_usage.begin(); iter != host_usage.end(); ++iter) { entries_.push_back(UsageIn...
9,828
141,332
0
HTMLCollection* Document::forms() { return EnsureCachedCollection<HTMLCollection>(kDocForms); }
9,829
160,055
0
bool BackendImpl::InitStats() { Addr address(data_->header.stats); int size = stats_.StorageSize(); if (!address.is_initialized()) { FileType file_type = Addr::RequiredFileType(size); DCHECK_NE(file_type, EXTERNAL); int num_blocks = Addr::RequiredBlocks(size, file_type); if (!CreateBlock(file_ty...
9,830
79,260
0
static int StreamTcpTest39 (void) { Flow f; ThreadVars tv; StreamTcpThread stt; uint8_t payload[4]; TCPHdr tcph; PacketQueue pq; memset (&f, 0, sizeof(Flow)); memset(&tv, 0, sizeof (ThreadVars)); memset(&stt, 0, sizeof (StreamTcpThread)); memset(&tcph, 0, sizeof (TCPHdr)); m...
9,831
86,939
0
static int hex(char c) { char lc = tolower(c); if (isdigit(lc)) return lc - '0'; if (isxdigit(lc)) return lc - 'a' + 10; return -1; }
9,832
74,706
0
static int __videobuf_iolock (struct videobuf_queue* q, struct videobuf_buffer *vb, struct v4l2_framebuffer *fbuf) { int pages; struct videbuf_vmalloc_memory *mem=vb->priv; BUG_ON(!mem); MAGIC_CHECK(mem->magic,MAGIC_VMAL_MEM); pages = PAGE_ALIGN(vb->size) >> PAGE_SHIFT; /* Currently, doesn...
9,833
69,650
0
service_is_single_onion_poisoned(const rend_service_t *service) { char *poison_fname = NULL; file_status_t fstatus; /* Passing a NULL service is a bug */ if (BUG(!service)) { return 0; } if (rend_service_is_ephemeral(service)) { return 0; } poison_fname = rend_service_sos_poison_path(service)...
9,834
66,534
0
static void __init parse_id(char *id) { unsigned int vendor_id = 0, device_id = 0, flags = 0, i = 0; char *token, *name = NULL; if ((token = strsep(&id, ":")) != NULL) name = token; /* name now points to a null terminated string*/ if ((token = strsep(&id, ":")) != NULL) vendor_id = simple_strtoul(token, NULL,...
9,835
55,854
0
struct tty_struct *alloc_tty_struct(struct tty_driver *driver, int idx) { struct tty_struct *tty; tty = kzalloc(sizeof(*tty), GFP_KERNEL); if (!tty) return NULL; kref_init(&tty->kref); tty->magic = TTY_MAGIC; tty_ldisc_init(tty); tty->session = NULL; tty->pgrp = NULL; mutex_init(&tty->legacy_mutex); mutex...
9,836
171,913
0
void btif_hl_release_socket(UINT8 app_idx, UINT8 mcl_idx, UINT8 mdl_idx){ btif_hl_soc_cb_t *p_scb = NULL; btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); BTIF_TRACE_DEBUG("%s", __FUNCTION__); BTIF_TRACE_DEBUG("app_idx=%d mcl_idx=%d mdl_idx=%d", app_idx, mcl_idx, mdl_idx ); if...
9,837
146,359
0
void WebGLRenderingContextBase::RestoreEvictedContext( WebGLRenderingContextBase* context) { DCHECK(!ForciblyEvictedContexts().Contains(context)); DCHECK(!ActiveContexts().Contains(context)); unsigned max_gl_contexts = CurrentMaxGLContexts(); while (ActiveContexts().size() < max_gl_contexts && For...
9,838
147,796
0
void V8TestObject::RuntimeCallStatsCounterAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE(info.GetIsolate(), RuntimeCallStats::CounterId::kRuntimeCallStatsCounterAttribute_Getter); test_object_v8_internal::RuntimeCallStatsCounterAttributeAttributeGetter(...
9,839
102,006
0
PrintingContext::Result PrintingContextCairo::NewDocument( const string16& document_name) { DCHECK(!in_print_job_); in_print_job_ = true; #if !defined(OS_CHROMEOS) document_name_ = document_name; #endif // !defined(OS_CHROMEOS) return OK; }
9,840
127,289
0
void addResource(const char* url, const char* mime, PassRefPtr<SharedBuffer> data) { SerializedResource resource(toKURL(url), mime, data); m_resources.append(resource); }
9,841
115,733
0
ConnectionToClient::ConnectionToClient(base::MessageLoopProxy* message_loop, protocol::Session* session) : message_loop_(message_loop), handler_(NULL), host_stub_(NULL), input_stub_(NULL), session_(session), control_connected_(false), input_...
9,842
131,391
0
static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); TestObjectPythonV8Internal::floatArrayAttributeAttributeGetter(info); TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); }
9,843
99,917
0
void NPN_PluginThreadAsyncCall(NPP id, void (*func)(void*), void* user_data) { scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id); if (plugin) plugin->PluginThreadAsyncCall(func, user_data); }
9,844
93,244
0
ikev2_sa_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext1, u_int osa_length, const u_char *ep, uint32_t phase _U_, uint32_t doi _U_, uint32_t proto _U_, int depth) { const struct isakmp_gen *ext; struct isakmp_gen e; u_int sa_length; const u_char *cp; int i; int pcount; u_char np...
9,845
46,343
0
static void gfs2_size_hint(struct file *filep, loff_t offset, size_t size) { struct inode *inode = file_inode(filep); struct gfs2_sbd *sdp = GFS2_SB(inode); struct gfs2_inode *ip = GFS2_I(inode); size_t blks = (size + sdp->sd_sb.sb_bsize - 1) >> sdp->sd_sb.sb_bsize_shift; int hint = min_t(size_t, INT_MAX, blks); ...
9,846
109,050
0
void RenderViewImpl::UpdateTitle(WebFrame* frame, const string16& title, WebTextDirection title_direction) { if (frame->parent()) return; string16 shortened_title = title.substr(0, content::kMaxTitleChars); Send(new ViewHostMsg_UpdateTitle(rou...
9,847
114,968
0
void TestingAutomationProvider::HandleInspectElementRequest( int handle, int x, int y, IPC::Message* reply_message) { WebContents* web_contents = GetWebContentsForHandle(handle, NULL); if (web_contents) { DCHECK(!reply_message_); reply_message_ = reply_message; DevToolsWindow::InspectElement(web_co...
9,848
8,610
0
static inline uint32_t vmsvga_fifo_read_raw(struct vmsvga_state_s *s) { uint32_t cmd = s->fifo[s->fifo_stop >> 2]; s->fifo_stop += 4; if (s->fifo_stop >= s->fifo_max) { s->fifo_stop = s->fifo_min; } s->fifo[SVGA_FIFO_STOP] = cpu_to_le32(s->fifo_stop); return cmd; }
9,849
122,783
0
void GpuProcessHost::AddFilter(IPC::ChannelProxy::MessageFilter* filter) { DCHECK(CalledOnValidThread()); process_->GetHost()->AddFilter(filter); }
9,850
151,662
0
Browser::CreateParams Browser::CreateParams::CreateForApp( const std::string& app_name, bool trusted_source, const gfx::Rect& window_bounds, Profile* profile) { DCHECK(!app_name.empty()); CreateParams params(TYPE_POPUP, profile); params.app_name = app_name; params.trusted_source = trusted_sourc...
9,851
88,049
0
static void __net_exit genl_pernet_exit(struct net *net) { netlink_kernel_release(net->genl_sock); net->genl_sock = NULL; }
9,852
115,337
0
static void didFinishLoadForFrame(WKPageRef page, WKFrameRef frame, WKTypeRef userData, const void* clientInfo) { if (!WKFrameIsMainFrame(frame)) return; webkitWebViewLoadChanged(WEBKIT_WEB_VIEW(clientInfo), WEBKIT_LOAD_FINISHED); }
9,853
53,033
0
static int bpf_fill_super(struct super_block *sb, void *data, int silent) { static struct tree_descr bpf_rfiles[] = { { "" } }; struct inode *inode; int ret; ret = simple_fill_super(sb, BPF_FS_MAGIC, bpf_rfiles); if (ret) return ret; sb->s_op = &bpf_super_ops; inode = sb->s_root->d_inode; inode->i_op = &bp...
9,854
104,619
0
Extension::Type Extension::GetType() const { if (is_theme()) return TYPE_THEME; if (converted_from_user_script()) return TYPE_USER_SCRIPT; if (is_hosted_app()) return TYPE_HOSTED_APP; if (is_packaged_app()) return TYPE_PACKAGED_APP; return TYPE_EXTENSION; }
9,855
113,695
0
SSLErrorInfo::ErrorType SSLErrorInfo::NetErrorToErrorType(int net_error) { switch (net_error) { case net::ERR_CERT_COMMON_NAME_INVALID: return CERT_COMMON_NAME_INVALID; case net::ERR_CERT_DATE_INVALID: return CERT_DATE_INVALID; case net::ERR_CERT_AUTHORITY_INVALID: return CERT_AUTHORITY_...
9,856
80,295
0
GF_Err npck_Write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_NPCKBox *ptr = (GF_NPCKBox *)s; if (ptr == NULL) return GF_BAD_PARAM; e = gf_isom_box_write_header(s, bs); if (e) return e; gf_bs_write_u32(bs, ptr->nbPackets); return GF_OK; }
9,857
156,281
0
const char* RendererSchedulerImpl::UseCaseToString(UseCase use_case) { switch (use_case) { case UseCase::kNone: return "none"; case UseCase::kCompositorGesture: return "compositor_gesture"; case UseCase::kMainThreadCustomInputHandling: return "main_thread_custom_input_handling"; case...
9,858
164,321
0
void TabsDetectLanguageFunction::GotLanguage(const std::string& language) { Respond(OneArgument(std::make_unique<base::Value>(language))); Release(); // Balanced in Run() }
9,859
159,806
0
bool XSSAuditor::FilterObjectToken(const FilterTokenRequest& request) { DCHECK_EQ(request.token.GetType(), HTMLToken::kStartTag); DCHECK(HasName(request.token, objectTag)); bool did_block_script = false; if (IsContainedInRequest(CanonicalizedSnippetForTagName(request))) { did_block_script |= EraseAttribute...
9,860
79,617
0
void imap_cachepath(struct ImapData *idata, const char *mailbox, char *dest, size_t dlen) { char *s = NULL; const char *p = mailbox; for (s = dest; p && *p && dlen; dlen--) { if (*p == idata->delim) { *s = '/'; /* simple way to avoid collisions with UIDs */ if (*(p + 1) >= '0' && *(p ...
9,861
9,368
0
void dtls1_hm_fragment_free(hm_fragment *frag) { if (!frag) return; if (frag->msg_header.is_ccs) { EVP_CIPHER_CTX_free(frag->msg_header. saved_retransmit_state.enc_write_ctx); EVP_MD_CTX_free(frag->msg_header.saved_retransmit_state.write_hash); } OPENS...
9,862
22,200
0
struct sock *rose_find_socket(unsigned int lci, struct rose_neigh *neigh) { struct sock *s; struct hlist_node *node; spin_lock_bh(&rose_list_lock); sk_for_each(s, node, &rose_list) { struct rose_sock *rose = rose_sk(s); if (rose->lci == lci && rose->neighbour == neigh) goto found; } s = NULL; found: spi...
9,863
23,519
0
xdr_decode_word(struct xdr_buf *buf, unsigned int base, u32 *obj) { __be32 raw; int status; status = read_bytes_from_xdr_buf(buf, base, &raw, sizeof(*obj)); if (status) return status; *obj = be32_to_cpu(raw); return 0; }
9,864
131,998
0
static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); TestObjectPythonV8Internal::voidMethodXPathNSResolverArgMethod(info); TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); }
9,865
71,714
0
static MagickBooleanType IsPoint(const char *point) { char *p; ssize_t value; value=strtol(point,&p,10); (void) value; return(p != point ? MagickTrue : MagickFalse); }
9,866
134,529
0
void WebContentsViewAura::OverscrollUpdateForWebContentsDelegate(int delta_y) { if (web_contents_->GetDelegate() && IsScrollEndEffectEnabled()) web_contents_->GetDelegate()->OverscrollUpdate(delta_y); }
9,867
136,271
0
void BlockPainter::PaintAllChildPhasesAtomically( const LayoutBox& child, const PaintInfo& paint_info, const LayoutPoint& paint_offset) { LayoutPoint child_point = layout_block_.FlipForWritingModeForChildForPaint(&child, paint_offset); if (!child.HasSelfPaintingLayer() && !child.IsFloating()) ...
9,868
93,752
0
virConnectGetAllDomainStats(virConnectPtr conn, unsigned int stats, virDomainStatsRecordPtr **retStats, unsigned int flags) { int ret = -1; VIR_DEBUG("conn=%p, stats=0x%x, retStats=%p, flags=0x%x", conn, stats, re...
9,869
151,444
0
void FrameFetchContext::PopulateResourceRequest( Resource::Type type, const ClientHintsPreferences& hints_preferences, const FetchParameters::ResourceWidth& resource_width, ResourceRequest& request) { ModifyRequestForCSP(request); AddClientHintsIfNecessary(hints_preferences, resource_width, request)...
9,870
79,586
0
int imap_create_mailbox(struct ImapData *idata, char *mailbox) { char buf[LONG_STRING], mbox[LONG_STRING]; imap_munge_mbox_name(idata, mbox, sizeof(mbox), mailbox); snprintf(buf, sizeof(buf), "CREATE %s", mbox); if (imap_exec(idata, buf, 0) != 0) { mutt_error(_("CREATE failed: %s"), imap_cmd_trailer(ida...
9,871
28,810
0
static void drop_user_return_notifiers(void *ignore) { unsigned int cpu = smp_processor_id(); struct kvm_shared_msrs *smsr = per_cpu_ptr(shared_msrs, cpu); if (smsr->registered) kvm_on_user_return(&smsr->urn); }
9,872
81,633
0
check_password(const char *method, const char *ha1, const char *uri, const char *nonce, const char *nc, const char *cnonce, const char *qop, const char *response) { char ha2[32 + 1], expected_response[32 + 1]; /*...
9,873
122,346
0
void HTMLInputElement::setHeight(unsigned height) { setUnsignedIntegralAttribute(heightAttr, height); }
9,874
128,543
0
pp::URLLoader Instance::CreateURLLoaderInternal() { pp::URLLoader loader(this); const PPB_URLLoaderTrusted* trusted_interface = reinterpret_cast<const PPB_URLLoaderTrusted*>( pp::Module::Get()->GetBrowserInterface( PPB_URLLOADERTRUSTED_INTERFACE)); if (trusted_interface) trusted...
9,875
11,321
0
frobnicate_signal_handler (DBusGProxy *proxy, int val, void *user_data) { n_times_frobnicate_received += 1; g_assert (val == 42); g_print ("Got Frobnicate signal\n"); g_main_loop_quit (loop); g_source_remove (exit_timeout); }
9,876
120,597
0
bool Element::rareDataStyleAffectedByEmpty() const { ASSERT(hasRareData()); return elementRareData()->styleAffectedByEmpty(); }
9,877
137,509
0
void ComputeWebKitPrintParamsInDesiredDpi( const PrintMsg_Print_Params& print_params, blink::WebPrintParams* webkit_print_params) { int dpi = GetDPI(&print_params); webkit_print_params->printerDPI = dpi; webkit_print_params->printScalingOption = print_params.print_scaling_option; webkit_print_params->p...
9,878
77,300
0
ofproto_class_register(const struct ofproto_class *new_class) { size_t i; for (i = 0; i < n_ofproto_classes; i++) { if (ofproto_classes[i] == new_class) { return EEXIST; } } if (n_ofproto_classes >= allocated_ofproto_classes) { ofproto_classes = x2nrealloc(ofproto_c...
9,879
96,498
0
static void AppLayerProtoDetectProbingParserElementAppend(AppLayerProtoDetectProbingParserElement **head_pe, AppLayerProtoDetectProbingParserElement *new_pe) { SCEnter(); if (*head_pe == NULL) { *head_pe = new_pe; goto end; } if...
9,880
27,697
0
static inline int ebt_make_matchname(const struct ebt_entry_match *m, const char *base, char __user *ubase) { char __user *hlp = ubase + ((char *)m - base); if (copy_to_user(hlp, m->u.match->name, EBT_FUNCTION_MAXNAMELEN)) return -EFAULT; return 0; }
9,881
69,521
0
int rxrpc_server_keyring(struct rxrpc_sock *rx, char __user *optval, int optlen) { struct key *key; char *description; _enter(""); if (optlen <= 0 || optlen > PAGE_SIZE - 1) return -EINVAL; description = kmalloc(optlen + 1, GFP_KERNEL); if (!description) return -ENOMEM; if (copy_from_user(description...
9,882
156,268
0
void RendererSchedulerImpl::SetVirtualTimeStopped(bool virtual_time_stopped) { if (main_thread_only().virtual_time_stopped == virtual_time_stopped) return; main_thread_only().virtual_time_stopped = virtual_time_stopped; if (!main_thread_only().use_virtual_time) return; virtual_time_domain_->SetCanAdva...
9,883
472
0
static void pdf_run_BT(fz_context *ctx, pdf_processor *proc) { pdf_run_processor *pr = (pdf_run_processor *)proc; pr->tos.tm = fz_identity; pr->tos.tlm = fz_identity; }
9,884
138,326
0
void fillRelationships(AXObject& axObject, protocol::Array<AXProperty>& properties) { AXObject::AXObjectVector results; axObject.ariaDescribedbyElements(results); if (!results.isEmpty()) properties.addItem( createRelatedNodeListProperty(AXRelationshipAttributesEnum::Describedby,...
9,885
144,493
0
void WebContentsImpl::EnableTreeOnlyAccessibilityMode() { if (GetAccessibilityMode() != AccessibilityModeOff) { for (RenderFrameHost* rfh : GetAllFrames()) ResetAccessibility(rfh); } else { AddAccessibilityMode(AccessibilityModeTreeOnly); } }
9,886
179,523
1
int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot) { gfn_t gfn, end_gfn; pfn_t pfn; int r = 0; struct iommu_domain *domain = kvm->arch.iommu_domain; int flags; /* check if iommu exists and in use */ if (!domain) return 0; gfn = slot->base_gfn; end_gfn = gfn + slot->npages; flags = IOMMU_READ;...
9,887
1,681
0
gx_dc_pattern_read_trans_buff(gx_color_tile *ptile, int64_t offset, const byte *data, uint size, gs_memory_t *mem) { const byte *dp = data; int left = size; int64_t offset1 = offset; gx_pattern_trans_t *trans_pat = ptile->ttrans; int data_size; data_size = trans_pa...
9,888
124,548
0
void RenderBlock::fitBorderToLinesIfNeeded() { if (style()->borderFit() == BorderFitBorder || hasOverrideWidth()) return; LayoutUnit left = LayoutUnit::max(); LayoutUnit right = LayoutUnit::min(); LayoutUnit oldWidth = contentWidth(); adjustForBorderFit(0, left, right); LayoutUnit left...
9,889
8,273
0
XRenderDepthCheckErrorHandler (Display *dpy, XErrorEvent *evt) { if (evt->request_code == X_CreatePixmap && evt->error_code == BadValue) { DepthCheckPtr d; _XLockMutex(_Xglobal_lock); for (d = depthChecks; d; d = d->next) if (d->dpy == dpy) { if ((long) (evt->serial - d->serial) >= 0) d->mi...
9,890
121,439
0
bool DevToolsWindow::NeedsToInterceptBeforeUnload( content::WebContents* contents) { DevToolsWindow* window = DevToolsWindow::GetInstanceForInspectedRenderViewHost( contents->GetRenderViewHost()); return window && !window->intercepted_page_beforeunload_; }
9,891
3,939
0
short CCITTFaxStream::getBlackCode() { short code; const CCITTCode *p; int n; code = 0; // make gcc happy if (endOfBlock) { code = lookBits(13); if (code == EOF) { return 1; } if ((code >> 7) == 0) { p = &blackTab1[code]; } else if ((code >> 9) == 0 && (code >> 7) != 0) { ...
9,892
183,275
1
static ssize_t WritePSDChannels(const PSDInfo *psd_info, const ImageInfo *image_info,Image *image,Image *next_image, MagickOffsetType size_offset,const MagickBooleanType separate) { Image *mask; MagickOffsetType rows_offset; size_t channels, count, length, offset_length; unsigned char *compact_pixels; count=0; offs...
9,893
174,452
0
virtual status_t closeSession(Vector<uint8_t> const &sessionId) { Parcel data, reply; data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); writeVector(data, sessionId); status_t status = remote()->transact(CLOSE_SESSION, data, &reply); if (status != OK) { return status; } return reply.read...
9,894
130,960
0
static void perWorldAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); TestObjectV8Internal::perWorldAttributeAttributeSetter(jsValue, info); TRACE_EVENT_SET_SAMPLING_STATE(...
9,895
75,590
0
static int hwahc_op_urb_dequeue(struct usb_hcd *usb_hcd, struct urb *urb, int status) { struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); struct hwahc *hwahc = container_of(wusbhc, struct hwahc, wusbhc); return wa_urb_dequeue(&hwahc->wa, urb, status); }
9,896
77,380
0
ofproto_set_extra_in_band_remotes(struct ofproto *ofproto, const struct sockaddr_in *extras, size_t n) { connmgr_set_extra_in_band_remotes(ofproto->connmgr, extras, n); }
9,897
176,458
0
static long getDelayMs(GraphicsControlBlock& gcb) { return gcb.DelayTime * 10; }
9,898
66,615
0
static void remove_port_data(struct port *port) { struct port_buffer *buf; spin_lock_irq(&port->inbuf_lock); /* Remove unused data this port might have received. */ discard_port_data(port); spin_unlock_irq(&port->inbuf_lock); /* Remove buffers we queued up for the Host to send us data in. */ do { spin_lock_i...
9,899