unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
96,624
0
static Image *RenderHoughLines(const ImageInfo *image_info,const size_t columns, const size_t rows,ExceptionInfo *exception) { #define BoundingBox "viewbox" DrawInfo *draw_info; Image *image; MagickBooleanType status; /* Open image. */ image=AcquireImage(image_info,exception); statu...
7,500
179,745
1
int rds_sendmsg(struct socket *sock, struct msghdr *msg, size_t payload_len) { struct sock *sk = sock->sk; struct rds_sock *rs = rds_sk_to_rs(sk); DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); __be32 daddr; __be16 dport; struct rds_message *rm = NULL; struct rds_connection *conn; int ret = 0; int queued ...
7,501
70,153
0
static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteShort(uint16 value) { if (value>0x7F) return(TIFFReadDirEntryErrRange); else return(TIFFReadDirEntryErrOk); }
7,502
44,580
0
int lxc_clear_automounts(struct lxc_conf *c) { c->auto_mounts = 0; return 0; }
7,503
146,778
0
bool Document::IsRenderingReady() const { return style_engine_->IgnoringPendingStylesheets() || (HaveImportsLoaded() && HaveRenderBlockingStylesheetsLoaded()); }
7,504
143,421
0
int num_cancelled_requests() const { return num_cancelled_requests_; }
7,505
101,245
0
int64 CreateUnsyncedDirectory(const string& entry_name, const syncable::Id& id) { ScopedDirLookup dir(syncdb_.manager(), syncdb_.name()); EXPECT_TRUE(dir.good()); WriteTransaction wtrans(FROM_HERE, UNITTEST, dir); MutableEntry entry(&wtrans, syncable::CREATE, wtrans.root_id(), ...
7,506
28,919
0
static cycle_t read_tsc(void) { cycle_t ret; u64 last; /* * Empirically, a fence (of type that depends on the CPU) * before rdtsc is enough to ensure that rdtsc is ordered * with respect to loads. The various CPU manuals are unclear * as to whether rdtsc can be reordered with later loads, * but no one ha...
7,507
100,746
0
xmlParsePubidLiteral(xmlParserCtxtPtr ctxt) { xmlChar *buf = NULL; int len = 0; int size = XML_PARSER_BUFFER_SIZE; xmlChar cur; xmlChar stop; int count = 0; xmlParserInputState oldstate = ctxt->instate; SHRINK; if (RAW == '"') { NEXT; stop = '"'; } else if (RAW == '\'')...
7,508
118,532
0
bool RenderFrameImpl::runModalBeforeUnloadDialog( bool is_reload, const blink::WebString& message) { if (render_view()->is_swapped_out_) return true; if (render_view()->suppress_dialogs_until_swap_out_) return false; bool success = false; base::string16 ignored_result; render_view()->SendAnd...
7,509
15,978
0
ImportSingleTIFF_SRational ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. #if SUNOS_SPARC || XMP_IOS_ARM XMP_Uns32 binPtr[2]; memcpy(&binPtr, tagInfo.dataPtr, si...
7,510
61,896
0
static void read_pnm_header(FILE *reader, struct pnm_header *ph) { int format, end, ttype; char idf[256], type[256]; char line[256]; if (fgets(line, 250, reader) == NULL) { fprintf(stderr, "\nWARNING: fgets return a NULL value"); return; } if (line[0] != 'P') { fprintf(...
7,511
137,513
0
bool PrintWebViewHelper::PrintPreviewContext::CreatePreviewDocument( PrepareFrameAndViewForPrint* prepared_frame, const std::vector<int>& pages) { DCHECK_EQ(INITIALIZED, state_); state_ = RENDERING; prep_frame_view_.reset(prepared_frame); prep_frame_view_->StartPrinting(); total_page_count_ = prep_f...
7,512
148,935
0
static int ChooseLeaf( Rtree *pRtree, /* Rtree table */ RtreeCell *pCell, /* Cell to insert into rtree */ int iHeight, /* Height of sub-tree rooted at pCell */ RtreeNode **ppLeaf /* OUT: Selected leaf page */ ){ int rc; int ii; RtreeNode *pNode; rc = no...
7,513
180,217
1
SPL_METHOD(RecursiveDirectoryIterator, getChildren) { zval *zpath, *zflags; spl_filesystem_object *intern = (spl_filesystem_object*)zend_object_store_get_object(getThis() TSRMLS_CC); spl_filesystem_object *subdir; char slash = SPL_HAS_FLAG(intern->flags, SPL_FILE_DIR_UNIXPATHS) ? '/' : DEFAULT_SLASH; if (zend_...
7,514
4,476
0
static int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) { dh->p = p; dh->q = q; dh->g = g; return 1; }
7,515
42,718
0
static inline int pi_test_on(struct pi_desc *pi_desc) { return test_bit(POSTED_INTR_ON, (unsigned long *)&pi_desc->control); }
7,516
29,739
0
static int get_field_base(int match, int field) { return match < 3 ? 2 - field : 1 + field; }
7,517
154,024
0
void GLES2DecoderImpl::DoGetVertexAttribImpl( GLuint index, GLenum pname, T* params) { VertexAttrib* attrib = state_.vertex_attrib_manager->GetVertexAttrib(index); if (!attrib) { LOCAL_SET_GL_ERROR( GL_INVALID_VALUE, "glGetVertexAttrib", "index out of range"); return; } switch (pname) { ...
7,518
13,186
0
xps_parse_arc_segment(fz_context *doc, fz_path *path, fz_xml *root, int stroking, int *skipped_stroke) { /* ArcSegment pretty much follows the SVG algorithm for converting an * arc in endpoint representation to an arc in centerpoint * representation. Once in centerpoint it can be given to the * graphics library ...
7,519
105,915
0
static const HashTable* getJSFloat64ArrayPrototypeTable(ExecState* exec) { return getHashTableForGlobalData(exec->globalData(), &JSFloat64ArrayPrototypeTable); }
7,520
14,225
0
PHP_FUNCTION(openssl_get_md_methods) { zend_bool aliases = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &aliases) == FAILURE) { return; } array_init(return_value); OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_MD_METH, aliases ? openssl_add_method_or_alias: openssl_add_method, return_value); }
7,521
146,114
0
GLboolean WebGL2RenderingContextBase::isSync(WebGLSync* sync) { if (isContextLost() || !sync) return 0; return ContextGL()->IsSync(sync->Object()); }
7,522
23,979
0
static int airo_open(struct net_device *dev) { struct airo_info *ai = dev->ml_priv; int rc = 0; if (test_bit(FLAG_FLASHING, &ai->flags)) return -EIO; /* Make sure the card is configured. * Wireless Extensions may postpone config changes until the card * is open (to pipeline changes and speed-up card setup)....
7,523
119,063
0
void WebContentsImpl::UpdateTitle(RenderViewHost* rvh, int32 page_id, const string16& title, base::i18n::TextDirection title_direction) { SetNotWaitingForResponse(); NavigationEntryImpl* entry = controller_.GetEnt...
7,524
106,777
0
void WebView::windowAncestryDidChange() { HWND newTopLevelParentWindow; if (m_window) newTopLevelParentWindow = findTopLevelParentWindow(m_window); else { newTopLevelParentWindow = 0; } if (newTopLevelParentWindow == m_topLevelParentWindow) return; if (m_topLevelParentW...
7,525
66,101
0
static int purge_port(struct usb_serial_port *port, __u16 mask) { int port_number = port->port_number; dev_dbg(&port->dev, "%s - port %d, mask %x\n", __func__, port_number, mask); return send_cmd(port->serial->dev, UMPC_PURGE_PORT, (__u8)(UMPM_UART1_PORT + port_number), mask, NULL, 0); }
7,526
58,538
0
static void freerdp_peer_disconnect(freerdp_peer* client) { transport_disconnect(client->context->rdp->transport); }
7,527
162,585
0
void Resource::ServiceWorkerResponseCachedMetadataHandler::Trace( blink::Visitor* visitor) { CachedMetadataHandlerImpl::Trace(visitor); }
7,528
25,071
0
static inline int compute_score(struct sock *sk, struct net *net, const unsigned short hnum, const __be32 daddr, const int dif) { int score = -1; struct inet_sock *inet = inet_sk(sk); if (net_eq(sock_net(sk), net) && inet->inet_num == hnum && !ipv6_only_sock(sk)) { __be32 rcv_saddr = inet->inet_rcv_sad...
7,529
62,428
0
mgmt_header_print(netdissect_options *ndo, const u_char *p) { const struct mgmt_header_t *hp = (const struct mgmt_header_t *) p; ND_PRINT((ndo, "BSSID:%s DA:%s SA:%s ", etheraddr_string(ndo, (hp)->bssid), etheraddr_string(ndo, (hp)->da), etheraddr_string(ndo, (hp)->sa))); }
7,530
63,551
0
_boolean_handled_accumulator (GSignalInvocationHint *ihint, GValue *return_accu, const GValue *handler_return, gpointer dummy) { gboolean continue_emission; gboolean sign...
7,531
30,022
0
int br_multicast_rcv(struct net_bridge *br, struct net_bridge_port *port, struct sk_buff *skb) { BR_INPUT_SKB_CB(skb)->igmp = 0; BR_INPUT_SKB_CB(skb)->mrouters_only = 0; if (br->multicast_disabled) return 0; switch (skb->protocol) { case htons(ETH_P_IP): return br_multicast_ipv4_rcv(br, port, skb); #i...
7,532
155,410
0
bool ChromeContentBrowserClient::IsWebUIAllowedToMakeNetworkRequests( const url::Origin& origin) { return ChromeWebUIControllerFactory::IsWebUIAllowedToMakeNetworkRequests( origin); }
7,533
101,231
0
base::TimeDelta SyncerProtoUtil::GetThrottleDelay( const sync_pb::ClientToServerResponse& response) { base::TimeDelta throttle_delay = base::TimeDelta::FromSeconds(kSyncDelayAfterThrottled); if (response.has_client_command()) { const sync_pb::ClientCommand& command = response.client_command(); if ...
7,534
55,420
0
static void tcp_update_reordering(struct sock *sk, const int metric, const int ts) { struct tcp_sock *tp = tcp_sk(sk); if (metric > tp->reordering) { int mib_idx; tp->reordering = min(sysctl_tcp_max_reordering, metric); /* This exciting event is worth to be remembered. 8) */ if (ts) mib_idx = LINUX...
7,535
34,688
0
static int gfs2_allocate_page_backing(struct page *page) { struct inode *inode = page->mapping->host; struct buffer_head bh; unsigned long size = PAGE_CACHE_SIZE; u64 lblock = page->index << (PAGE_CACHE_SHIFT - inode->i_blkbits); do { bh.b_state = 0; bh.b_size = size; gfs2_block_map(inode, lblock, &bh, 1); ...
7,536
179,630
1
struct sk_buff *skb_segment(struct sk_buff *head_skb, netdev_features_t features) { struct sk_buff *segs = NULL; struct sk_buff *tail = NULL; struct sk_buff *list_skb = skb_shinfo(head_skb)->frag_list; skb_frag_t *frag = skb_shinfo(head_skb)->frags; unsigned int mss = skb_shinfo(head_skb)->gso_size; uns...
7,537
126,125
0
void BrowserEventRouter::TabClosingAt(TabStripModel* tab_strip_model, WebContents* contents, int index) { int tab_id = ExtensionTabUtil::GetTabId(contents); scoped_ptr<ListValue> args(new ListValue()); args->Append(Value::CreateIntegerVa...
7,538
182,517
1
w3m_exit(int i) { #ifdef USE_MIGEMO init_migemo(); /* close pipe to migemo */ #endif stopDownload(); deleteFiles(); #ifdef USE_SSL free_ssl_ctx(); #endif disconnectFTP(); #ifdef USE_NNTP disconnectNews(); #endif #ifdef __MINGW32_VERSION WSACleanup(); #endif exit(i); }
7,539
108,861
0
void RenderViewImpl::EnsureMediaStreamImpl() { if (!RenderThreadImpl::current()) // Will be NULL during unit tests. return; #if defined(ENABLE_WEBRTC) if (!media_stream_dispatcher_) media_stream_dispatcher_ = new MediaStreamDispatcher(this); if (!media_stream_impl_) { media_stream_impl_ = new Medi...
7,540
136,851
0
Vector<String> HTMLInputElement::AcceptMIMETypes() const { return ParseAcceptAttribute(FastGetAttribute(acceptAttr), IsValidMIMEType); }
7,541
53,887
0
int acpi_register_debugger(struct module *owner, const struct acpi_debugger_ops *ops) { int ret = 0; mutex_lock(&acpi_debugger.lock); if (acpi_debugger.ops) { ret = -EBUSY; goto err_lock; } acpi_debugger.owner = owner; acpi_debugger.ops = ops; err_lock: mutex_unlock(&acpi_debugger.lock); return ret...
7,542
150,698
0
ContentSetting GetEffectiveSetting(Profile* profile, ContentSettingsType type, ContentSetting setting, ContentSetting default_setting) { ContentSetting effective_setting = setting; if (effective_setting == CONTE...
7,543
2,286
0
_PUBLIC_ codepoint_t tolower_m(codepoint_t val) { if (val < 128) { return tolower(val); } if (val >= ARRAY_SIZE(lowcase_table)) { return val; } return lowcase_table[val]; }
7,544
7,245
0
static void add_request_header(char *var, unsigned int var_len, char *val, unsigned int val_len, void *arg TSRMLS_DC) /* {{{ */ { zval *return_value = (zval*)arg; char *str = NULL; char *p; ALLOCA_FLAG(use_heap) if (var_len > 5 && var[0] == 'H' && var[1] == 'T' && var[2] == 'T' && var[3] == 'P...
7,545
95,959
0
void CL_ForwardCommandToServer( const char *string ) { char *cmd; cmd = Cmd_Argv(0); if ( cmd[0] == '-' ) { return; } if ( clc.demoplaying || clc.state < CA_CONNECTED || cmd[0] == '+' ) { Com_Printf ("Unknown command \"%s" S_COLOR_WHITE "\"\n", cmd); return; } if ( Cmd_Argc() > 1 ) { CL_AddReliableCo...
7,546
172,738
0
void ih264d_update_nnz_for_skipmb(dec_struct_t * ps_dec, dec_mb_info_t * ps_cur_mb_info, UWORD8 u1_entrpy) { UWORD32 *pu4_buf; UWORD8 *pu1_buf; UNUSED(u1_entrpy); pu1_buf = ps_dec->pu1_left_nnz_y; pu4_buf = (UWORD32 *)pu1_buf; *pu4_buf = 0; pu1_buf = ps_dec->p...
7,547
67,823
0
void DefragInitConfig(char quiet) { SCLogDebug("initializing defrag engine..."); memset(&defrag_config, 0, sizeof(defrag_config)); SC_ATOMIC_INIT(defragtracker_counter); SC_ATOMIC_INIT(defrag_memuse); SC_ATOMIC_INIT(defragtracker_prune_idx); DefragTrackerQueueInit(&defragtracker_spare_q); #if...
7,548
92,114
0
static void *get_recv_wqe(struct mlx5_ib_qp *qp, int n) { return get_wqe(qp, qp->rq.offset + (n << qp->rq.wqe_shift)); }
7,549
126,670
0
void TabStripModelObserver::TabMoved(TabContents* contents, int from_index, int to_index) { }
7,550
100,657
0
bool IsURLAllowedInIncognito(const GURL& url) { return url.scheme() == chrome::kChromeUIScheme && (url.host() == chrome::kChromeUISettingsHost || url.host() == chrome::kChromeUIExtensionsHost || url.host() == chrome::kChromeUIBookmarksHost); }
7,551
133,807
0
void ExtractFileFeatures(const base::FilePath& file_path) { base::TimeTicks start_time = base::TimeTicks::Now(); binary_feature_extractor_->CheckSignature(file_path, &signature_info_); bool is_signed = (signature_info_.certificate_chain_size() > 0); if (is_signed) { DVLOG(2) << "Downloaded a sig...
7,552
83,884
0
file_add_class( VipsForeignClass *class, GSList **files ) { /* Append so we don't reverse the list of files. Sort will not reorder * items of equal priority. */ *files = g_slist_append( *files, class ); return( NULL ); }
7,553
151,917
0
void RenderFrameHostImpl::DetachFromProxy() { if (unload_state_ != UnloadState::NotRun) return; DeleteRenderFrame(); StartPendingDeletionOnSubtree(); PendingDeletionCheckCompletedOnSubtree(); }
7,554
91,768
0
void comps_objmrtree_data_destroy(COMPS_ObjMRTreeData * rtd) { free(rtd->key); COMPS_OBJECT_DESTROY(rtd->data); comps_hslist_destroy(&rtd->subnodes); free(rtd); }
7,555
109,090
0
void RenderViewImpl::didCompleteClientRedirect( WebFrame* frame, const WebURL& from) { if (!frame->parent()) { WebDataSource* ds = frame->provisionalDataSource(); completed_client_redirect_src_ = Referrer( from, ds ? GetReferrerPolicyFromRequest(frame, ds->request()) : frame->document().re...
7,556
92,099
0
static void destroy_qp_user(struct mlx5_ib_dev *dev, struct ib_pd *pd, struct mlx5_ib_qp *qp, struct mlx5_ib_qp_base *base) { struct mlx5_ib_ucontext *context; context = to_mucontext(pd->uobject->context); mlx5_ib_db_unmap_user(context, &qp->db); if (base->ubuffer.umem) ib_umem_release(base->ubuffer.umem)...
7,557
18,780
0
static int inet_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; struct inet_protosw *answer; struct inet_sock *inet; struct proto *answer_prot; unsigned char answer_flags; char answer_no_check; int try_loading_module = 0; int err; if (unlikely(!inet_ehash_secre...
7,558
48,631
0
static void cleanup_streams(h2_session *session) { stream_sel_ctx ctx; ctx.session = session; ctx.candidate = NULL; while (1) { h2_mplx_stream_do(session->mplx, find_cleanup_stream, &ctx); if (ctx.candidate) { h2_session_stream_done(session, ctx.candidate); ctx.ca...
7,559
122,932
0
void RenderWidgetHostImpl::AccessibilitySetFocus(int object_id) { Send(new AccessibilityMsg_SetFocus(GetRoutingID(), object_id)); }
7,560
46,257
0
blkdev_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh, int create) { bh->b_bdev = I_BDEV(inode); bh->b_blocknr = iblock; set_buffer_mapped(bh); return 0; }
7,561
63,836
0
send_dirredirect( httpd_conn* hc ) { static char* location; static char* header; static size_t maxlocation = 0, maxheader = 0; static char headstr[] = "Location: "; if ( hc->query[0] != '\0') { char* cp = strchr( hc->encodedurl, '?' ); if ( cp != (char*) 0 ) /* should always find it */ ...
7,562
147,132
0
bool DocumentLoader::RedirectReceived( Resource* resource, const ResourceRequest& request, const ResourceResponse& redirect_response) { DCHECK(frame_); DCHECK_EQ(resource, main_resource_); DCHECK(!redirect_response.IsNull()); request_ = request; const KURL& request_url = request_.Url(); RefPtr<...
7,563
123,256
0
void RenderWidgetHostViewAura::TextInputStateChanged( const ViewHostMsg_TextInputState_Params& params) { if (text_input_type_ != params.type || can_compose_inline_ != params.can_compose_inline) { text_input_type_ = params.type; can_compose_inline_ = params.can_compose_inline; if (GetInputMethod(...
7,564
154,285
0
GLES2DecoderImpl::HandleStencilThenCoverStrokePathInstancedCHROMIUM( uint32_t immediate_data_size, const volatile void* cmd_data) { static const char kFunctionName[] = "glStencilThenCoverStrokeInstancedCHROMIUM"; const volatile gles2::cmds::StencilThenCoverStrokePathInstancedCHROMIUM& c = *stati...
7,565
44,055
0
getDocPtr(xmlNode * node) { xmlDoc *doc = NULL; CRM_CHECK(node != NULL, return NULL); doc = node->doc; if (doc == NULL) { doc = xmlNewDoc((const xmlChar *)"1.0"); xmlDocSetRootElement(doc, node); xmlSetTreeDoc(node, doc); } return doc; }
7,566
95,799
0
char **FS_ListFiles( const char *path, const char *extension, int *numfiles ) { return FS_ListFilteredFiles( path, extension, NULL, numfiles, qfalse ); }
7,567
146,944
0
WebLocalFrameImpl* WebLocalFrameImpl::CreateMainFrame( WebView* web_view, WebFrameClient* client, InterfaceRegistry* interface_registry, WebFrame* opener, const WebString& name, WebSandboxFlags sandbox_flags) { WebLocalFrameImpl* frame = new WebLocalFrameImpl(WebTreeScopeType::kDocument, ...
7,568
63,775
0
static int _sx_sasl_process(sx_t s, sx_plugin_t p, nad_t nad) { Gsasl_session *sd = (Gsasl_session *) s->plugin_data[p->index]; int attr; char mech[128]; sx_error_t sxe; int flags; char *ns = NULL, *to = NULL, *from = NULL, *version = NULL; /* only want sasl packets */ if(NAD_ENS(nad, 0...
7,569
168,746
0
void RenderWidgetHostImpl::ForwardMouseEventWithLatencyInfo( const blink::WebMouseEvent& mouse_event, const ui::LatencyInfo& latency) { TRACE_EVENT2("input", "RenderWidgetHostImpl::ForwardMouseEvent", "x", mouse_event.PositionInWidget().x, "y", mouse_event.PositionInWidget().y); ...
7,570
39,412
0
static int raw_cmd_ioctl(int cmd, void __user *param) { struct floppy_raw_cmd *my_raw_cmd; int drive; int ret2; int ret; if (FDCS->rawcmd <= 1) FDCS->rawcmd = 1; for (drive = 0; drive < N_DRIVE; drive++) { if (FDC(drive) != fdc) continue; if (drive == current_drive) { if (UDRS->fd_ref > 1) { FDCS...
7,571
134,348
0
gfx::ImageSkia NewTabButton::GetImageForScale( ui::ScaleFactor scale_factor) const { if (!hover_animation_->is_animating()) return GetImageForState(state(), scale_factor); return gfx::ImageSkiaOperations::CreateBlendedImage( GetImageForState(views::CustomButton::STATE_NORMAL, scale_factor), GetI...
7,572
6,576
0
bool Smb4KGlobal::removeShare( Smb4KShare *share ) { Q_ASSERT( share ); bool removed = false; mutex.lock(); int index = p->sharesList.indexOf( share ); if ( index != -1 ) { delete p->sharesList.takeAt( index ); removed = true; } else { Smb4KShare *s = findShare( share->shareName(), sha...
7,573
95,446
0
void QDECL Com_DPrintf( const char *fmt, ...) { va_list argptr; char msg[MAXPRINTMSG]; if ( !com_developer || !com_developer->integer ) { return; // don't confuse non-developers with techie stuff... } va_start (argptr,fmt); Q_vsnprintf (msg, sizeof(msg), fmt, argptr); va_end (argptr); Com_Printf ("...
7,574
58,654
0
void security_UINT32_le(BYTE* output, UINT32 value) { output[0] = (value) & 0xFF; output[1] = (value >> 8) & 0xFF; output[2] = (value >> 16) & 0xFF; output[3] = (value >> 24) & 0xFF; }
7,575
153,322
0
void Tab::FrameColorsChanged() { UpdateForegroundColors(); }
7,576
13,896
0
fz_catch(ctx) { pdf_drop_obj(ctx, encrypt); pdf_drop_obj(ctx, id); pdf_drop_obj(ctx, obj); pdf_drop_obj(ctx, info); fz_free(ctx, list); fz_rethrow(ctx); }
7,577
23,235
0
static int nfs4_proc_setlk(struct nfs4_state *state, int cmd, struct file_lock *request) { struct nfs4_exception exception = { }; int err; do { err = _nfs4_proc_setlk(state, cmd, request); if (err == -NFS4ERR_DENIED) err = -EAGAIN; err = nfs4_handle_exception(NFS_SERVER(state->inode), err, &exception);...
7,578
74,063
0
dwarf_elf_object_relocate_a_section(void* obj_in, Dwarf_Half section_index, Dwarf_Debug dbg, int* error) { int res = DW_DLV_ERROR; dwarf_elf_object_access_internals_t*obj = 0; struct Dwarf_Section_s * relocatablesec = 0; if (section_index == 0) { return DW_DLV_NO_ENTRY; } obj...
7,579
34,123
0
static int hci_sock_blacklist_add(struct hci_dev *hdev, void __user *arg) { bdaddr_t bdaddr; int err; if (copy_from_user(&bdaddr, arg, sizeof(bdaddr))) return -EFAULT; hci_dev_lock(hdev); err = hci_blacklist_add(hdev, &bdaddr, 0); hci_dev_unlock(hdev); return err; }
7,580
156,130
0
void HTMLLinkElement::StartLoadingDynamicSheet() { DCHECK(GetLinkStyle()); GetLinkStyle()->StartLoadingDynamicSheet(); }
7,581
148,901
0
void RenderFrameHostManager::OnDidUpdateFrameOwnerProperties( const FrameOwnerProperties& properties) { if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) return; CHECK(frame_tree_node_->parent()); SiteInstance* parent_instance = frame_tree_node_->parent()->current_frame_host()->GetSiteInst...
7,582
105,313
0
void AutofillDownloadManager::SetPositiveUploadRate(double rate) { if (rate == positive_upload_rate_) return; positive_upload_rate_ = rate; DCHECK_GE(rate, 0.0); DCHECK_LE(rate, 1.0); DCHECK(profile_); PrefService* preferences = profile_->GetPrefs(); preferences->SetDouble(prefs::kAutofillPositiveUplo...
7,583
117,430
0
bool InputMethodBase::IsTextInputTypeNone() const { return GetTextInputType() == TEXT_INPUT_TYPE_NONE; }
7,584
61,041
0
delete_file_recursively (GFile *file, GCancellable *cancellable, DeleteCallback callback, gpointer callback_data) { gboolean success; g_autoptr (GError) error = NULL; do { g_autoptr (GFileEnumerator) e...
7,585
75,285
0
static int next_segment(vorb *f) { int len; if (f->last_seg) return 0; if (f->next_seg == -1) { f->last_seg_which = f->segment_count-1; // in case start_page fails if (!start_page(f)) { f->last_seg = 1; return 0; } if (!(f->page_flag & PAGEFLAG_continued_packet)) return error(f, VORBIS_contin...
7,586
138,063
0
bool AXNodeObject::isGenericFocusableElement() const { if (!canSetFocusAttribute()) return false; if (isControl()) return false; if (m_ariaRole != UnknownRole) return false; if (hasContentEditableAttributeSet()) return false; if (roleValue() == WebAreaRole) return false; if (isHTMLB...
7,587
41,694
0
static noinline int btrfs_update_inode_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode) { struct btrfs_inode_item *inode_item; struct btrfs_path *path; struct extent_buffer *leaf; int ret; path = btrfs_alloc_path(); if (!path) return -ENOMEM; path->leave_spinning = 1; ...
7,588
18,481
0
netlink_send(int fd, struct cn_msg *msg) { struct nlmsghdr *nlh; unsigned int size; struct msghdr message; char buffer[64]; struct iovec iov[2]; size = NLMSG_SPACE(sizeof(struct cn_msg) + msg->len); nlh = (struct nlmsghdr *)buffer; nlh->nlmsg_seq = 0; nlh->nlmsg_pid = getpid(); nlh->nlmsg_type = NLMSG_DONE;...
7,589
188,484
1
CuePoint::~CuePoint() { delete[] m_track_positions; }
7,590
4,103
0
void Splash::flattenCurve(SplashCoord x0, SplashCoord y0, SplashCoord x1, SplashCoord y1, SplashCoord x2, SplashCoord y2, SplashCoord x3, SplashCoord y3, SplashCoord *matrix, SplashCoord flatness2, SplashPath *fPath) { SplashCoord cx[splashMaxCurveSplits + 1][3]; SplashCoord cy[splashMaxCur...
7,591
51,293
0
static void php_zip_get_from(INTERNAL_FUNCTION_PARAMETERS, int type) /* {{{ */ { struct zip *intern; zval *this = getThis(); struct zip_stat sb; struct zip_file *zf; char *filename; int filename_len; long index = -1; long flags = 0; long len = 0; char *buffer; int n = 0; if (!this) { RETURN_FALSE; } ...
7,592
38,013
0
static unsigned long __peek_user(struct task_struct *child, addr_t addr) { struct user *dummy = NULL; addr_t offset, tmp; if (addr < (addr_t) &dummy->regs.acrs) { /* * psw and gprs are stored on the stack */ tmp = *(addr_t *)((addr_t) &task_pt_regs(child)->psw + addr); if (addr == (addr_t) &dummy->regs....
7,593
138,475
0
void HTMLScriptRunner::execute(PassRefPtrWillBeRawPtr<Element> scriptElement, const TextPosition& scriptStartPosition) { ASSERT(scriptElement); bool hadPreloadScanner = m_host->hasPreloadScanner(); runScript(scriptElement.get(), scriptStartPosition); if (hasParserBlockingScript()) { if (isExe...
7,594
100,910
0
void TaskManagerHandler::HandleActivatePage(const ListValue* unique_ids) { for (ListValue::const_iterator i = unique_ids->begin(); i != unique_ids->end(); ++i) { int unique_id = parseIndex(*i); int resource_index = model_->GetResourceIndexByUniqueId(unique_id); if (resource_index == -1) conti...
7,595
45,965
0
process(struct magic_set *ms, const char *inname, int wid) { const char *type; int std_in = strcmp(inname, "-") == 0; if (wid > 0 && !bflag) { (void)printf("%s", std_in ? "/dev/stdin" : inname); if (nulsep) (void)putc('\0', stdout); (void)printf("%s", separator); (void)printf("%*s ", (int) (nopad ?...
7,596
152,852
0
MetricsWebContentsObserver::TestingObserver::TestingObserver( content::WebContents* web_contents) : observer_(page_load_metrics::MetricsWebContentsObserver::FromWebContents( web_contents)) { observer_->AddTestingObserver(this); }
7,597
107,463
0
static void _ewk_view_on_mouse_move(void* data, Evas* eventType, Evas_Object* callback, void* eventInfo) { Evas_Event_Mouse_Move* moveEvent = static_cast<Evas_Event_Mouse_Move*>(eventInfo); Ewk_View_Smart_Data* smartData = static_cast<Ewk_View_Smart_Data*>(data); EINA_SAFETY_ON_NULL_RETURN(smartData->api); ...
7,598
165,896
0
void RenderFrameImpl::DidHandleOnloadEvents() { if (!frame_->Parent()) { Send(new FrameHostMsg_DocumentOnLoadCompleted(routing_id_)); } for (auto& observer : observers_) observer.DidHandleOnloadEvents(); }
7,599