unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
160,597
0
void RenderFrameImpl::DidStopLoading() { TRACE_EVENT1("navigation,rail", "RenderFrameImpl::didStopLoading", "id", routing_id_); history_subframe_unique_names_.clear(); blink::WebIconURL::Type icon_types_mask = static_cast<blink::WebIconURL::Type>( blink::WebIconURL::kTypeFavicon |...
8,300
30,985
0
void iscsi_print_params(struct iscsi_param_list *param_list) { struct iscsi_param *param; list_for_each_entry(param, &param_list->param_list, p_list) pr_debug("%s: %s\n", param->name, param->value); }
8,301
11,123
0
static int phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, int is_data, char **error) /* {{{ */ { const char token[] = "__HALT_COMPILER();"; const char zip_magic[] = "PK\x03\x04"; const char gz_magic[] = "\x1f\x8b\x08"; const char bz_...
8,302
145,447
0
MockP2PQuicStreamDelegate* stream_delegate() const { return stream_delegate_.get(); }
8,303
52,672
0
static char print_fat_dirty_state(void) { printf("Dirty bit is set. Fs was not properly unmounted and" " some data may be corrupt.\n"); if (interactive) { printf("1) Remove dirty bit\n" "2) No action\n"); return get_key("12", "?"); } else printf(" Automatically removing dirty bit.\n"); return '1...
8,304
179,443
1
parse_rock_ridge_inode_internal(struct iso_directory_record *de, struct inode *inode, int regard_xa) { int symlink_len = 0; int cnt, sig; struct inode *reloc; struct rock_ridge *rr; int rootflag; struct rock_state rs; int ret = 0; if (!ISOFS_SB(inode->i_sb)->s_rock) return 0; init_rock_state(&rs, inode); setup_ro...
8,305
130,854
0
static void methodWithEnforceRangeInt32Method(const v8::FunctionCallbackInfo<v8::Value>& info) { ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithEnforceRangeInt32", "TestObject", info.Holder(), info.GetIsolate()); if (UNLIKELY(info.Length() < 1)) { exceptionState.throwTypeErro...
8,306
101,045
0
void QuotaManager::NotifyStorageAccessedInternal( QuotaClient::ID client_id, const GURL& origin, StorageType type, base::Time accessed_time) { LazyInitialize(); if (type == kStorageTypeTemporary && lru_origin_callback_.get()) { access_notified_origins_.insert(origin); } if (db_disabled_) re...
8,307
139,935
0
void HTMLMediaElement::automaticTrackSelectionForUpdatedUserPreference() { if (!m_textTracks || !m_textTracks->length()) return; markCaptionAndSubtitleTracksAsUnconfigured(); m_processingPreferenceChange = true; m_textTracksVisible = false; honorUserPreferencesForAutomaticTextTrackSelection(); m_proces...
8,308
176,346
0
static inline void SetImpl(FixedArrayBase* backing_store, uint32_t entry, Object* value) { FixedArray::cast(backing_store)->set(entry, value); }
8,309
185,419
1
std::string MasterPreferences::GetCompressedVariationsSeed() const { return ExtractPrefString(prefs::kVariationsCompressedSeed); }
8,310
144,840
0
bool TestLifecycleUnit::CanDiscard(DiscardReason reason, DecisionDetails* decision_details) const { return can_discard_; }
8,311
31,876
0
struct sk_buff **tcp_gro_receive(struct sk_buff **head, struct sk_buff *skb) { struct sk_buff **pp = NULL; struct sk_buff *p; struct tcphdr *th; struct tcphdr *th2; unsigned int len; unsigned int thlen; unsigned int flags; unsigned int mss = 1; unsigned int hlen; unsigned int off; int flush = 1; int i; of...
8,312
179,914
1
static int em_sysenter(struct x86_emulate_ctxt *ctxt) { const struct x86_emulate_ops *ops = ctxt->ops; struct desc_struct cs, ss; u64 msr_data; u16 cs_sel, ss_sel; u64 efer = 0; ops->get_msr(ctxt, MSR_EFER, &efer); /* inject #GP if in real mode */ if (ctxt->mode == X86EMUL_MODE_REAL) return emulate_gp(ctxt, 0); /* * ...
8,313
38,834
0
circle_above(PG_FUNCTION_ARGS) { CIRCLE *circle1 = PG_GETARG_CIRCLE_P(0); CIRCLE *circle2 = PG_GETARG_CIRCLE_P(1); PG_RETURN_BOOL(FPgt((circle1->center.y - circle1->radius), (circle2->center.y + circle2->radius))); }
8,314
74,354
0
DumpMac(int dbg_level, const char* header_str, UCHAR* mac) { DPrintf(dbg_level,("%s: %02x-%02x-%02x-%02x-%02x-%02x\n", header_str, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5])); }
8,315
56,169
0
static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock, int flags) { DEFINE_WAIT_FUNC(wait, woken_wake_function); struct sock *sk = sock->sk, *nsk; long timeo; int err = 0; lock_sock_nested(sk, SINGLE_DEPTH_NESTING); if (sk->sk_type != SOCK_STREAM) { err = -EINVAL; goto done; } timeo =...
8,316
95,620
0
static void Com_WriteCDKey( const char *filename, const char *ikey ) { fileHandle_t f; char fbuffer[MAX_OSPATH]; char key[17]; #ifndef _WIN32 mode_t savedumask; #endif Com_sprintf(fbuffer, sizeof(fbuffer), "%s/rtcwkey", filename); Q_strncpyz( key, ikey, 17 ); if ( !CL_CDKeyValidate( key, NULL ) ) { retur...
8,317
69,158
0
static zend_always_inline uint32_t zend_array_dup_elements(HashTable *source, HashTable *target, int static_keys, int with_holes) { uint32_t idx = 0; Bucket *p = source->arData; Bucket *q = target->arData; Bucket *end = p + source->nNumUsed; do { if (!zend_array_dup_element(source, target, idx, p, q, 0, static_...
8,318
165,109
0
OperationID FileSystemOperationRunner::Remove(const FileSystemURL& url, bool recursive, StatusCallback callback) { base::File::Error error = base::File::FILE_OK; std::unique_ptr<FileSystemOperation> operation = base::WrapUni...
8,319
100,562
0
bool BrowserTitlebar::IsItemChecked(int command_id) const { if (command_id == kShowWindowDecorationsCommand) { PrefService* prefs = browser_window_->browser()->profile()->GetPrefs(); return !prefs->GetBoolean(prefs::kUseCustomChromeFrame); } EncodingMenuController controller; if (controller.DoesCommand...
8,320
90,989
0
void CWebServer::Cmd_GetConfig(WebEmSession & session, const request& req, Json::Value &root) { if (session.rights == -1) { session.reply_status = reply::forbidden; return;//Only auth user allowed } root["status"] = "OK"; root["title"] = "GetConfig"; bool bHaveUser = (session.username !=...
8,321
98,382
0
WebKitWebFrame* webkit_web_frame_find_frame(WebKitWebFrame* frame, const gchar* name) { g_return_val_if_fail(WEBKIT_IS_WEB_FRAME(frame), NULL); g_return_val_if_fail(name, NULL); Frame* coreFrame = core(frame); if (!coreFrame) return NULL; String nameString = String::fromUTF8(name); ret...
8,322
72,169
0
extern void record_launched_jobs(void) { List steps; ListIterator i; step_loc_t *stepd; steps = stepd_available(conf->spooldir, conf->node_name); i = list_iterator_create(steps); while ((stepd = list_next(i))) { _launch_complete_add(stepd->jobid); } list_iterator_destroy(i); FREE_NULL_LIST(steps); }
8,323
96,749
0
ModuleExport size_t RegisterPSImage(void) { MagickInfo *entry; entry=AcquireMagickInfo("PS","EPI", "Encapsulated PostScript Interchange format"); entry->decoder=(DecodeImageHandler *) ReadPSImage; entry->encoder=(EncodeImageHandler *) WritePSImage; entry->magick=(IsImageFormatHandler *) IsPS; entry...
8,324
70,584
0
evdns_base_nameserver_ip_add(struct evdns_base *base, const char *ip_as_string) { struct sockaddr_storage ss; struct sockaddr *sa; int len = sizeof(ss); int res; if (evutil_parse_sockaddr_port(ip_as_string, (struct sockaddr *)&ss, &len)) { log(EVDNS_LOG_WARN, "Unable to parse nameserver address %s", ip_as_s...
8,325
41,244
0
setup_deviceinfo(struct Interface *iface) { struct ifreq ifr; struct AdvPrefix *prefix; char zero[sizeof(iface->if_addr)]; strncpy(ifr.ifr_name, iface->Name, IFNAMSIZ-1); ifr.ifr_name[IFNAMSIZ-1] = '\0'; if (ioctl(sock, SIOCGIFMTU, &ifr) < 0) { flog(LOG_ERR, "ioctl(SIOCGIFMTU) failed for %s: %s", iface->Na...
8,326
56,272
0
SAPI_API char *sapi_get_default_content_type(TSRMLS_D) { uint len; return get_default_content_type(0, &len TSRMLS_CC); }
8,327
153,212
0
base::OnceClosure DesktopWindowTreeHostX11::DisableEventListening() { modal_dialog_counter_++; if (modal_dialog_counter_ == 1) { targeter_for_modal_ = std::make_unique<aura::ScopedWindowTargeter>( window(), std::make_unique<aura::NullWindowTargeter>()); } return base::BindOnce(&DesktopWindowTreeHos...
8,328
35,923
0
static void unreg_event_syscall_exit(struct ftrace_event_file *file, struct ftrace_event_call *call) { struct trace_array *tr = file->tr; int num; num = ((struct syscall_metadata *)call->data)->syscall_nr; if (WARN_ON_ONCE(num < 0 || num >= NR_syscalls)) return; mutex_lock(&syscall_trace_lock); tr->sy...
8,329
88,674
0
void dwc3_gadget_process_pending_events(struct dwc3 *dwc) { if (dwc->pending_events) { dwc3_interrupt(dwc->irq_gadget, dwc->ev_buf); dwc->pending_events = false; enable_irq(dwc->irq_gadget); } }
8,330
91,940
0
static inline struct usb_request *midi_alloc_ep_req(struct usb_ep *ep, unsigned length) { return alloc_ep_req(ep, length); }
8,331
127,276
0
void PageSerializer::serializeCSSStyleSheet(CSSStyleSheet* styleSheet, const KURL& url) { StringBuilder cssText; for (unsigned i = 0; i < styleSheet->length(); ++i) { CSSRule* rule = styleSheet->item(i); String itemText = rule->cssText(); if (!itemText.isEmpty()) { cssText.ap...
8,332
118,365
0
void CardUnmaskPromptViews::InitIfNecessary() { if (has_children()) return; main_contents_ = new views::View(); main_contents_->SetLayoutManager( new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 10)); AddChildView(main_contents_); permanent_error_label_ = new views::Label(); permanent_err...
8,333
43,910
0
edit_deep_directories(struct archive_write_disk *a) { int ret; char *tail = a->name; /* If path is short, avoid the open() below. */ if (strlen(tail) <= PATH_MAX) return; /* Try to record our starting dir. */ a->restore_pwd = open(".", O_RDONLY | O_BINARY | O_CLOEXEC); __archive_ensure_cloexec_flag(a->restor...
8,334
46,034
0
svcauth_gss_set_svc_name(gss_name_t name) { OM_uint32 maj_stat, min_stat; log_debug("in svcauth_gss_set_svc_name()"); if (svcauth_gss_name != NULL) { maj_stat = gss_release_name(&min_stat, &svcauth_gss_name); if (maj_stat != GSS_S_COMPLETE) { log_status("gss_release_name", maj_stat, min_stat); return (F...
8,335
6,120
0
static int server_finish(SSL *s) { unsigned char *p; if (s->state == SSL2_ST_SEND_SERVER_FINISHED_A) { p = (unsigned char *)s->init_buf->data; *(p++) = SSL2_MT_SERVER_FINISHED; if (s->session->session_id_length > sizeof s->session->session_id) { SSLerr(SSL_F_SERVER_FINISH, ...
8,336
152,797
0
String DumpFragmentTree(Element* element) { auto fragment = RunBlockLayoutAlgorithm(element); return DumpFragmentTree(fragment.get()); }
8,337
88,731
0
int modbus_get_response_timeout(modbus_t *ctx, uint32_t *to_sec, uint32_t *to_usec) { if (ctx == NULL) { errno = EINVAL; return -1; } *to_sec = ctx->response_timeout.tv_sec; *to_usec = ctx->response_timeout.tv_usec; return 0; }
8,338
82,650
0
get_compat_sigset(sigset_t *set, const compat_sigset_t __user *compat) { #ifdef __BIG_ENDIAN compat_sigset_t v; if (copy_from_user(&v, compat, sizeof(compat_sigset_t))) return -EFAULT; switch (_NSIG_WORDS) { case 4: set->sig[3] = v.sig[6] | (((long)v.sig[7]) << 32 ); case 3: set->sig[2] = v.sig[4] | (((long)v.si...
8,339
7,669
0
static int handle_fsync(FsContext *ctx, int fid_type, V9fsFidOpenState *fs, int datasync) { int fd; if (fid_type == P9_FID_DIR) { fd = dirfd(fs->dir.stream); } else { fd = fs->fd; } if (datasync) { return qemu_fdatasync(fd); } else { retu...
8,340
41,177
0
static void tcp_mtup_probe_success(struct sock *sk) { struct tcp_sock *tp = tcp_sk(sk); struct inet_connection_sock *icsk = inet_csk(sk); /* FIXME: breaks with very large cwnd */ tp->prior_ssthresh = tcp_current_ssthresh(sk); tp->snd_cwnd = tp->snd_cwnd * tcp_mss_to_mtu(sk, tp->mss_cache) / icsk...
8,341
146,783
0
static inline bool IsValidNamePart(UChar32 c) { if (IsValidNameStart(c)) return true; if (c == 0x00B7 || c == 0x0387) return true; if (c == '-' || c == '.') return true; const uint32_t kOtherNamePartMask = WTF::Unicode::kMark_NonSpacing | WTF::Unicode::kMark_Enclosing | WTF::Unicode::...
8,342
87,390
0
static enum bp_state decrease_reservation(unsigned long nr_pages, gfp_t gfp) { enum bp_state state = BP_DONE; unsigned long i; struct page *page, *tmp; int ret; LIST_HEAD(pages); if (nr_pages > ARRAY_SIZE(frame_list)) nr_pages = ARRAY_SIZE(frame_list); for (i = 0; i < nr_pages; i++) { page = alloc_page(gfp...
8,343
107,723
0
NavigationState::NavigationState( const CommonNavigationParams& common_params, const CommitNavigationParams& commit_params, base::TimeTicks time_commit_requested, bool is_content_initiated, mojom::FrameNavigationControl::CommitNavigationCallback callback, mojom::NavigationClient::CommitNavigatio...
8,344
68,857
0
static void check_spinlock_acquired(struct kmem_cache *cachep) { #ifdef CONFIG_SMP check_irq_off(); assert_spin_locked(&get_node(cachep, numa_mem_id())->list_lock); #endif }
8,345
43,224
0
static void eexec_start(char *string) { eexec_string("currentfile eexec\n"); if (pfb && w.blocktyp != PFB_BINARY) { pfb_writer_output_block(&w); w.blocktyp = PFB_BINARY; } in_eexec = 1; er = 55665; eexec_byte(0); eexec_byte(0); eexec_byte(0); eexec_byte(0); eexec_string(string); }
8,346
66,557
0
static int pegasus_suspend(struct usb_interface *intf, pm_message_t message) { struct pegasus *pegasus = usb_get_intfdata(intf); netif_device_detach(pegasus->net); cancel_delayed_work(&pegasus->carrier_check); if (netif_running(pegasus->net)) { usb_kill_urb(pegasus->rx_urb); usb_kill_urb(pegasus->intr_urb); }...
8,347
100,996
0
void QuotaManager::DeleteOriginFromDatabase( const GURL& origin, StorageType type) { LazyInitialize(); if (db_disabled_) return; scoped_refptr<DeleteOriginInfo> task = new DeleteOriginInfo(this, origin, type); task->Start(); }
8,348
156,828
0
void Document::SetShadowCascadeOrder(ShadowCascadeOrder order) { DCHECK_NE(order, ShadowCascadeOrder::kShadowCascadeNone); if (order == shadow_cascade_order_) return; if (order == ShadowCascadeOrder::kShadowCascadeV0) { may_contain_v0_shadow_ = true; if (shadow_cascade_order_ == ShadowCascadeOrder::k...
8,349
178,922
1
static int sgi_clock_set(clockid_t clockid, struct timespec *tp) { u64 nsec; u64 rem; nsec = rtc_time() * sgi_clock_period; sgi_clock_offset.tv_sec = tp->tv_sec - div_long_long_rem(nsec, NSEC_PER_SEC, &rem); if (rem <= tp->tv_nsec) sgi_clock_offset.tv_nsec = tp->tv_sec - rem; else { sgi_clock_offset.tv_nsec = tp-...
8,350
21,753
0
static int em_in(struct x86_emulate_ctxt *ctxt) { if (!pio_in_emulated(ctxt, ctxt->dst.bytes, ctxt->src.val, &ctxt->dst.val)) return X86EMUL_IO_NEEDED; return X86EMUL_CONTINUE; }
8,351
5,379
0
static void Ins_EQ( INS_ARG ) { (void)exc; if ( args[0] == args[1] ) args[0] = 1; else args[0] = 0; }
8,352
49,873
0
static void spl_array_unset_dimension_ex(int check_inherited, zval *object, zval *offset TSRMLS_DC) /* {{{ */ { spl_array_object *intern = (spl_array_object*)zend_object_store_get_object(object TSRMLS_CC); long index; HashTable *ht; if (check_inherited && intern->fptr_offset_del) { SEPARATE_ARG_IF_REF(offset); ...
8,353
90,493
0
static int pagemap_pmd_range(pmd_t *pmdp, unsigned long addr, unsigned long end, struct mm_walk *walk) { struct vm_area_struct *vma = walk->vma; struct pagemapread *pm = walk->private; spinlock_t *ptl; pte_t *pte, *orig_pte; int err = 0; #ifdef CONFIG_TRANSPARENT_HUGEPAGE ptl = pmd_trans_huge_lock(pmdp, ...
8,354
120,420
0
void Reset() { loop_runner_ = new content::MessageLoopRunner(); }
8,355
14,772
0
static void _close_pgsql_plink(zend_rsrc_list_entry *rsrc TSRMLS_DC) { PGconn *link = (PGconn *)rsrc->ptr; PGresult *res; while ((res = PQgetResult(link))) { PQclear(res); } PQfinish(link); PGG(num_persistent)--; PGG(num_links)--; }
8,356
79,037
0
static void put_amf_bool(AVIOContext *pb, int b) { avio_w8(pb, AMF_DATA_TYPE_BOOL); avio_w8(pb, !!b); }
8,357
81,353
0
static int show_traces_open(struct inode *inode, struct file *file) { struct trace_array *tr = inode->i_private; struct seq_file *m; int ret; if (tracing_disabled) return -ENODEV; ret = seq_open(file, &show_traces_seq_ops); if (ret) return ret; m = file->private_data; m->private = tr; return 0; }
8,358
133,683
0
const std::map<string, string>& decoded_block() const { return decoder_peer_.decoded_block(); }
8,359
24,394
0
void jbd2_journal_unlock_updates (journal_t *journal) { J_ASSERT(journal->j_barrier_count != 0); mutex_unlock(&journal->j_barrier); write_lock(&journal->j_state_lock); --journal->j_barrier_count; write_unlock(&journal->j_state_lock); wake_up(&journal->j_wait_transaction_locked); }
8,360
68,332
0
list_update_cgroup_event(struct perf_event *event, struct perf_event_context *ctx, bool add) { struct perf_cpu_context *cpuctx; if (!is_cgroup_event(event)) return; if (add && ctx->nr_cgroups++) return; else if (!add && --ctx->nr_cgroups) return; /* * Because cgroup events are always per-cpu events, ...
8,361
11,194
0
static void pharobj_set_compression(HashTable *manifest, php_uint32 compress) /* {{{ */ { zend_hash_apply_with_argument(manifest, phar_set_compression, &compress); } /* }}} */
8,362
95,588
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_Pri...
8,363
48,090
0
static inline int u64_shl_div_u64(u64 a, unsigned int shift, u64 divisor, u64 *result) { u64 low = a << shift, high = a >> (64 - shift); /* To avoid the overflow on divq */ if (high >= divisor) return 1; /* Low hold the result, high hold rem which is discarded */ asm("divq %2\n\t" : "=a" (low), "=d" (hig...
8,364
147,540
0
static void MeasureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { scheduler::CooperativeSchedulingManager::Instance()->Safepoint(); bool is_arity_error = false; switch (std::min(1, info.Length())) { case 0: if (true) { ExecutionContext* execution_context_for_measur...
8,365
20,702
0
static int handle_emulation_failure(struct kvm_vcpu *vcpu) { int r = EMULATE_DONE; ++vcpu->stat.insn_emulation_fail; trace_kvm_emulate_insn_failed(vcpu); if (!is_guest_mode(vcpu)) { vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR; vcpu->run->internal.suberror = KVM_INTERNAL_ERROR_EMULATION; vcpu->run->inter...
8,366
15,998
0
static bool _xmp_error_callback(void* context, XMP_ErrorSeverity severity, XMP_Int32 cause, XMP_StringPtr message) { return false; }
8,367
92,543
0
enqueue_runnable_load_avg(struct cfs_rq *cfs_rq, struct sched_entity *se) { }
8,368
111,719
0
bool EditorClientBlackBerry::shouldMoveRangeAfterDelete(Range*, Range*) { notImplemented(); return true; }
8,369
151,725
0
bool Browser::RequestPpapiBrokerPermission( WebContents* web_contents, const GURL& url, const base::FilePath& plugin_path, const base::Callback<void(bool)>& callback) { PepperBrokerInfoBarDelegate::Create(web_contents, url, plugin_path, callback); return true; }
8,370
57,035
0
static int _nfs41_test_stateid(struct nfs_server *server, nfs4_stateid *stateid, struct rpc_cred *cred) { int status; struct nfs41_test_stateid_args args = { .stateid = stateid, }; struct nfs41_test_stateid_res res; struct rpc_message msg = { .rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_TEST_STATEID], .rpc...
8,371
122,668
0
bool Extension::LoadAppFeatures(string16* error) { if (!LoadExtent(keys::kWebURLs, &extent_, errors::kInvalidWebURLs, errors::kInvalidWebURL, error) || !LoadLaunchURL(error) || !LoadLaunchContainer(error)) { return false; } if (manifest_->HasKey(keys::kDisplayInLauncher) && ...
8,372
59,205
0
struct sock *__raw_v4_lookup(struct net *net, struct sock *sk, unsigned short num, __be32 raddr, __be32 laddr, int dif, int sdif) { sk_for_each_from(sk) { struct inet_sock *inet = inet_sk(sk); if (net_eq(sock_net(sk), net) && inet->inet_num == num && !(inet->inet_daddr && inet->inet_daddr !=...
8,373
48,706
0
int h2_stream_is_ready(h2_stream *stream) { if (stream->has_response) { return 1; } else if (stream->out_buffer && get_first_headers_bucket(stream->out_buffer)) { return 1; } return 0; }
8,374
166,525
0
void AppendContentBrowserClientSwitches() { client_.AppendExtraCommandLineSwitches(&command_line_, kFakeChildProcessId); }
8,375
113,038
0
const FilePath& DownloadItemImpl::GetFullPath() const { return current_path_; }
8,376
40,704
0
static int sock_map_fd(struct socket *sock, int flags) { struct file *newfile; int fd = get_unused_fd_flags(flags); if (unlikely(fd < 0)) return fd; newfile = sock_alloc_file(sock, flags, NULL); if (likely(!IS_ERR(newfile))) { fd_install(fd, newfile); return fd; } put_unused_fd(fd); return PTR_ERR(newfi...
8,377
176,638
0
xmlParseEntityDecl(xmlParserCtxtPtr ctxt) { const xmlChar *name = NULL; xmlChar *value = NULL; xmlChar *URI = NULL, *literal = NULL; const xmlChar *ndata = NULL; int isParameter = 0; xmlChar *orig = NULL; int skipped; /* GROW; done in the caller */ if (CMP8(CUR_PTR, '<', '!', 'E', 'N', 'T', 'I', 'T',...
8,378
46,985
0
static int __init init(void) { return crypto_register_alg(&alg); }
8,379
87,709
0
static void ipip6_tunnel_uninit(struct net_device *dev) { struct ip_tunnel *tunnel = netdev_priv(dev); struct sit_net *sitn = net_generic(tunnel->net, sit_net_id); if (dev == sitn->fb_tunnel_dev) { RCU_INIT_POINTER(sitn->tunnels_wc[0], NULL); } else { ipip6_tunnel_unlink(sitn, tunnel); ipip6_tunnel_del_prl(t...
8,380
85,006
0
translate_compat_table(struct net *net, struct xt_table_info **pinfo, void **pentry0, const struct compat_ipt_replace *compatr) { unsigned int i, j; struct xt_table_info *newinfo, *info; void *pos, *entry0, *entry1; struct compat_ipt_entry *iter0; struct ipt_replace repl; unsigned int s...
8,381
156,771
0
bool RemoteFrame::PrepareForCommit() { DetachChildren(); return !!GetPage(); }
8,382
103,586
0
void ContainerNode::setHovered(bool over) { if (over == hovered()) return; Node::setHovered(over); if (renderer()) { if (renderer()->style()->affectedByHoverRules()) setNeedsStyleRecalc(); if (renderer() && renderer()->style()->hasAppearance()) renderer()->theme()->...
8,383
36,461
0
static int snd_ctl_elem_read_user(struct snd_card *card, struct snd_ctl_elem_value __user *_control) { struct snd_ctl_elem_value *control; int result; control = memdup_user(_control, sizeof(*control)); if (IS_ERR(control)) return PTR_ERR(control); snd_power_lock(card); result = snd_power_wait(card, SNDR...
8,384
67,883
0
void * CLASS foveon_camf_matrix (unsigned dim[3], const char *name) { unsigned i, idx, type, ndim, size, *mat; char *pos, *cp, *dp; double dsize; for (idx=0; idx < meta_length; idx += sget4(pos+8)) { pos = meta_data + idx; if (strncmp (pos, "CMb", 3)) break; if (pos[3] != 'M') continue; if (str...
8,385
78,888
0
static int initialize(int reader_id, int verbose, sc_context_t **ctx, sc_reader_t **reader) { unsigned int i, reader_count; int r; if (!ctx || !reader) return SC_ERROR_INVALID_ARGUMENTS; r = sc_establish_context(ctx, ""); if (r < 0 || !*ctx) { fprintf(stderr, "Failed to create initial context: %s", sc_stre...
8,386
131,468
0
static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); TestObjectPythonV8Internal::longLongAttributeAttributeGetter(info); TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); }
8,387
61,375
0
enum AVCodecID ff_mov_get_lpcm_codec_id(int bps, int flags) { /* lpcm flags: * 0x1 = float * 0x2 = big-endian * 0x4 = signed */ return ff_get_pcm_codec_id(bps, flags & 1, flags & 2, flags & 4 ? -1 : 0); }
8,388
7,568
0
static void cirrus_bitblt_rop_nop(CirrusVGAState *s, uint8_t *dst,const uint8_t *src, int dstpitch,int srcpitch, int bltwidth,int bltheight) { }
8,389
28,147
0
static inline int pix_abs16_c(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) { int s, i; s = 0; for(i=0;i<h;i++) { s += abs(pix1[0] - pix2[0]); s += abs(pix1[1] - pix2[1]); s += abs(pix1[2] - pix2[2]); s += abs(pix1[3] - pix2[3]); s += abs(pix1[4] - pix...
8,390
33,730
0
static void __exit hidp_exit(void) { hidp_cleanup_sockets(); }
8,391
153,708
0
void GLES2Implementation::GetProgramResourceiv(GLuint program, GLenum program_interface, GLuint index, GLsizei prop_count, const GLe...
8,392
170,677
0
static EAS_I16 ConvertLFOPhaseIncrement (EAS_I32 pitchCents) { /* check range */ if (pitchCents > MAX_LFO_FREQUENCY_IN_PITCHCENTS) pitchCents = MAX_LFO_FREQUENCY_IN_PITCHCENTS; if (pitchCents < MIN_LFO_FREQUENCY_IN_PITCHCENTS) pitchCents = MIN_LFO_FREQUENCY_IN_PITCHCENTS; /* double the rate and di...
8,393
9,923
0
void Part::slotCopyFiles() { m_model->filesToCopy = ArchiveModel::entryMap(filesForIndexes(addChildren(m_view->selectionModel()->selectedRows()))); qCDebug(ARK) << "Entries marked to copy:" << m_model->filesToCopy.values(); foreach (const QModelIndex &row, m_cutIndexes) { m_view->dataChanged(row, ro...
8,394
167,355
0
bool HistoryContainsURL(const GURL& url) { scoped_refptr<content::MessageLoopRunner> message_loop_runner = new content::MessageLoopRunner; quit_closure_ = message_loop_runner->QuitClosure(); history_service_->QueryURL( url, true, base::Bind(&RemoveHistoryTester::SaveResultA...
8,395
170,749
0
status_t OMXNodeInstance::prepareForAdaptivePlayback( OMX_U32 portIndex, OMX_BOOL enable, OMX_U32 maxFrameWidth, OMX_U32 maxFrameHeight) { Mutex::Autolock autolock(mLock); CLOG_CONFIG(prepareForAdaptivePlayback, "%s:%u en=%d max=%ux%u", portString(portIndex), portIndex, enable, maxFrame...
8,396
5,678
0
static TRBCCode xhci_address_slot(XHCIState *xhci, unsigned int slotid, uint64_t pictx, bool bsr) { XHCISlot *slot; USBPort *uport; USBDevice *dev; dma_addr_t ictx, octx, dcbaap; uint64_t poctx; uint32_t ictl_ctx[2]; uint32_t slot_ctx[4]; uint32_t ep0_ct...
8,397
77,338
0
ofproto_normalize_type(const char *type) { return type && type[0] ? type : "system"; }
8,398
143,630
0
RenderWidgetHost* RenderWidgetHost::FromID( int32_t process_id, int32_t routing_id) { return RenderWidgetHostImpl::FromID(process_id, routing_id); }
8,399