unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
132,685
0
void BlinkTestRunner::SimulateWebNotificationClick(const std::string& title) { Send(new LayoutTestHostMsg_SimulateWebNotificationClick(routing_id(), title)); }
16,600
98,508
0
AutocompletePopupViewGtk::AutocompletePopupViewGtk( AutocompleteEditView* edit_view, AutocompleteEditModel* edit_model, Profile* profile, GtkWidget* location_bar) : model_(new AutocompletePopupModel(this, edit_model, profile)), edit_view_(edit_view), location_bar_(location_bar), wi...
16,601
2,685
0
grow_hunkmax (void) { hunkmax *= 2; assert (p_line && p_len && p_Char); if ((p_line = realloc (p_line, hunkmax * sizeof (*p_line))) && (p_len = realloc (p_len, hunkmax * sizeof (*p_len))) && (p_Char = realloc (p_Char, hunkmax * sizeof (*p_Char)))) return true; if (!using_plan_a) xalloc_die...
16,602
34,706
0
void br_netfilter_rtable_init(struct net_bridge *br) { struct rtable *rt = &br->fake_rtable; atomic_set(&rt->dst.__refcnt, 1); rt->dst.dev = br->dev; rt->dst.path = &rt->dst; dst_metric_set(&rt->dst, RTAX_MTU, 1500); rt->dst.flags = DST_NOXFRM; rt->dst.ops = &fake_dst_ops; }
16,603
182,362
1
av_cold void ff_mpv_idct_init(MpegEncContext *s) { ff_idctdsp_init(&s->idsp, s->avctx); /* load & permutate scantables * note: only wmv uses different ones */ if (s->alternate_scan) { ff_init_scantable(s->idsp.idct_permutation, &s->inter_scantable, ff_alternate_vertical_scan); ...
16,604
69,420
0
cifs_copy_sid(struct cifs_sid *dst, const struct cifs_sid *src) { int i; dst->revision = src->revision; dst->num_subauth = min_t(u8, src->num_subauth, SID_MAX_SUB_AUTHORITIES); for (i = 0; i < NUM_AUTHS; ++i) dst->authority[i] = src->authority[i]; for (i = 0; i < dst->num_subauth; ++i) dst->sub_auth[i] = src-...
16,605
15,484
0
http_loop (const struct url *u, struct url *original_url, char **newloc, char **local_file, const char *referer, int *dt, struct url *proxy, struct iri *iri) { int count; bool got_head = false; /* used for time-stamping and filename detection */ bool time_came_from_head = false; bo...
16,606
165,408
0
StoragePartitionImpl::GetURLLoaderFactoryForBrowserProcessIOThread() { return url_loader_factory_getter_->GetNetworkFactoryInfo(); }
16,607
170,417
0
SkRegion* android_graphics_Region_getSkRegion(JNIEnv* env, jobject regionObj) { return GetSkRegion(env, regionObj); }
16,608
6,770
0
static void macio_ide_reset(DeviceState *dev) { MACIOIDEState *d = MACIO_IDE(dev); ide_bus_reset(&d->bus); }
16,609
187,583
1
int res_inverse(vorbis_dsp_state *vd,vorbis_info_residue *info, ogg_int32_t **in,int *nonzero,int ch){ int i,j,k,s,used=0; codec_setup_info *ci=(codec_setup_info *)vd->vi->codec_setup; codebook *phrasebook=ci->book_param+info->groupbook; int samples_per_partition=info->grouping; int partitions_per_word=phraseboo...
16,610
82,981
0
static inline int flexarray_get_bin_size(struct flexarray *flex, int bin) { (void)flex; if (bin >= ARRAY_SIZE(bin_offset)) return -1; int next = bin_offset[bin + 1]; return next - bin_offset[bin]; }
16,611
13,153
0
xps_parse_render_transform(xps_document *doc, char *transform, fz_matrix *matrix) { float args[6]; char *s = transform; int i; args[0] = 1; args[1] = 0; args[2] = 0; args[3] = 1; args[4] = 0; args[5] = 0; for (i = 0; i < 6 && *s; i++) { args[i] = fz_atof(s); while (*s && *s != ',') s++; if (*s == ','...
16,612
171,461
0
static vpx_codec_err_t update_error_state(vpx_codec_alg_priv_t *ctx, const struct vpx_internal_error_info *error) { if (error->error_code) set_error_detail(ctx, error->has_detail ? error->detail : NULL); return error->error_code; }
16,613
12,942
0
static void print_msg(struct nl_msg *msg, FILE *ofd, struct nlmsghdr *hdr) { struct nl_cache_ops *ops; int payloadlen = nlmsg_len(hdr); int attrlen = 0; void *data; data = nlmsg_data(hdr); ops = nl_cache_ops_associate_safe(nlmsg_get_proto(msg), hdr->nlmsg_type); if (ops) { attrlen = nlmsg_attrlen(hdr, ...
16,614
181,591
1
static void detect_allow_debuggers(int argc, char **argv) { int i; for (i = 1; i < argc; i++) { if (strcmp(argv[i], "--allow-debuggers") == 0) { arg_allow_debuggers = 1; break; } if (strcmp(argv[i], "--") == 0) break; if (strncmp(argv[i], "--", 2) != 0) break; } }
16,615
58,816
0
int generic_file_mmap(struct file * file, struct vm_area_struct * vma) { return -ENOSYS; }
16,616
106,899
0
IntRect RenderBox::outlineBoundsForRepaint(RenderBoxModelObject* repaintContainer, IntPoint* cachedOffsetToRepaintContainer) const { IntRect box = borderBoundingBox(); adjustRectForOutlineAndShadow(box); FloatQuad containerRelativeQuad = FloatRect(box); if (cachedOffsetToRepaintContainer) conta...
16,617
73,594
0
static void InsertRow(unsigned char *p,ssize_t y,Image *image, int bpp) { ExceptionInfo *exception; int bit; ssize_t x; register PixelPacket *q; IndexPacket index; register IndexPacket *indexes; exception=(&image->exception); switch (bpp) { case 1: /* Convert bitma...
16,618
79,267
0
TmEcode StreamTcpThreadDeinit(ThreadVars *tv, void *data) { SCEnter(); StreamTcpThread *stt = (StreamTcpThread *)data; if (stt == NULL) { return TM_ECODE_OK; } /* XXX */ /* free reassembly ctx */ StreamTcpReassembleFreeThreadCtx(stt->ra_ctx); /* clear memory */ memset(stt,...
16,619
140,642
0
void OutOfProcessInstance::PreviewDocumentLoadFailed() { UserMetricsRecordAction("PDF.PreviewDocumentLoadFailure"); if (preview_document_load_state_ != LOAD_STATE_LOADING || preview_pages_info_.empty()) { return; } preview_document_load_state_ = LOAD_STATE_FAILED; preview_pages_info_.pop(); if (...
16,620
85,739
0
static ssize_t o2nm_cluster_attr_write(const char *page, ssize_t count, unsigned int *val) { unsigned long tmp; char *p = (char *)page; tmp = simple_strtoul(p, &p, 0); if (!p || (*p && (*p != '\n'))) return -EINVAL; if (tmp == 0) return -EINVAL; if (tmp >= (u32)-1) r...
16,621
168,941
0
DevToolsSession* DevToolsAgentHostImpl::SessionByClient( DevToolsAgentHostClient* client) { auto it = session_by_client_.find(client); return it == session_by_client_.end() ? nullptr : it->second.get(); }
16,622
15,725
0
static void put_uint32(QEMUFile *f, void *pv, size_t size) { uint32_t *v = pv; qemu_put_be32s(f, v); }
16,623
25,563
0
void __init trap_init(void) { set_exception_table_vec(TRAP_RESERVED_INST, do_reserved_inst); set_exception_table_vec(TRAP_ILLEGAL_SLOT_INST, do_illegal_slot_inst); #if defined(CONFIG_CPU_SH4) && !defined(CONFIG_SH_FPU) || \ defined(CONFIG_SH_FPU_EMU) /* * For SH-4 lacking an FPU, treat floating point instruct...
16,624
105,496
0
static gboolean webkit_web_view_real_web_view_ready(WebKitWebView*) { return FALSE; }
16,625
59,323
0
static int attach_aead(struct xfrm_state *x, struct nlattr *rta) { struct xfrm_algo_aead *p, *ualg; struct xfrm_algo_desc *algo; if (!rta) return 0; ualg = nla_data(rta); algo = xfrm_aead_get_byname(ualg->alg_name, ualg->alg_icv_len, 1); if (!algo) return -ENOSYS; x->props.ealgo = algo->desc.sadb_alg_id; ...
16,626
59,076
0
comics_document_get_n_pages (EvDocument *document) { ComicsDocument *comics_document = COMICS_DOCUMENT (document); if (comics_document->page_names == NULL) return 0; return comics_document->page_names->len; }
16,627
59,521
0
xmlParseStringPEReference(xmlParserCtxtPtr ctxt, const xmlChar **str) { const xmlChar *ptr; xmlChar cur; xmlChar *name; xmlEntityPtr entity = NULL; if ((str == NULL) || (*str == NULL)) return(NULL); ptr = *str; cur = *ptr; if (cur != '%') return(NULL); ptr++; name = xmlP...
16,628
128,808
0
bool GLSurface::InitializeOneOffInternal() { switch (GetGLImplementation()) { case kGLImplementationEGLGLES2: if (!GLSurfaceEGL::InitializeOneOff()) { LOG(ERROR) << "GLSurfaceEGL::InitializeOneOff failed."; return false; } return true; case kGLImplementationOSMesaGL: cas...
16,629
150,709
0
PageInfoUI::ChosenObjectInfo::~ChosenObjectInfo() {}
16,630
161,946
0
void PrintRenderFrameHelper::PrintHeaderAndFooter( blink::WebCanvas* canvas, int page_number, int total_pages, const blink::WebLocalFrame& source_frame, float webkit_scale_factor, const PageSizeMargins& page_layout, const PrintMsg_Print_Params& params) { cc::PaintCanvasAutoRestore auto_res...
16,631
33,579
0
void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) { mutex_lock(&sock_diag_table_mutex); inet_rcv_compat = NULL; mutex_unlock(&sock_diag_table_mutex); }
16,632
125,529
0
void GDataDirectoryService::SerializeToString( std::string* serialized_proto) const { GDataRootDirectoryProto proto; root_->ToProto(proto.mutable_gdata_directory()); proto.set_largest_changestamp(largest_changestamp_); proto.set_version(kProtoVersion); const bool ok = proto.SerializeToString(serialized_p...
16,633
99,983
0
WebPluginResourceClient* WebPluginImpl::GetClientFromLoader( WebURLLoader* loader) { ClientInfo* client_info = GetClientInfoFromLoader(loader); if (client_info) return client_info->client; return NULL; }
16,634
36,628
0
bool stratum_send(struct pool *pool, char *s, ssize_t len) { enum send_ret ret = SEND_INACTIVE; if (opt_protocol) applog(LOG_DEBUG, "SEND: %s", s); mutex_lock(&pool->stratum_lock); if (pool->stratum_active) ret = __stratum_send(pool, s, len); mutex_unlock(&pool->stratum_lock); /* This is to avoid doing app...
16,635
60,470
0
R_API bool r_flag_exist_at(RFlag *f, const char *flag_prefix, ut16 fp_size, ut64 off) { RListIter *iter = NULL; RFlagItem *item = NULL; if (!f) { return false; } const RList *list = r_flag_get_list (f, off); if (!list) { return false; } r_list_foreach (list, iter, item) { if (item->name && !strncmp (item-...
16,636
21,295
0
static inline int check_pgd_range(struct vm_area_struct *vma, unsigned long addr, unsigned long end, const nodemask_t *nodes, unsigned long flags, void *private) { pgd_t *pgd; unsigned long next; pgd = pgd_offset(vma->vm_mm, addr); do { next = pgd_addr_end(addr, end); if (pgd_none_or_clear_bad(pgd)) c...
16,637
52,634
0
ppp_input_error(struct ppp_channel *chan, int code) { struct channel *pch = chan->ppp; struct sk_buff *skb; if (!pch) return; read_lock_bh(&pch->upl); if (pch->ppp) { skb = alloc_skb(0, GFP_ATOMIC); if (skb) { skb->len = 0; /* probably unnecessary */ skb->cb[0] = code; ppp_do_recv(pch->ppp, skb, ...
16,638
161,986
0
PdfCompositorServiceTest() : ServiceTest("pdf_compositor_service_unittest") {}
16,639
86,460
0
static inline bool userfaultfd_huge_must_wait(struct userfaultfd_ctx *ctx, struct vm_area_struct *vma, unsigned long address, unsigned long flags, unsigned long reason) { struct mm_struct *mm = ctx->mm; pte_t *pte; bool ret = true; VM_BUG_ON(!rwsem_is_locked(&mm->mmap_sem)); pte = huge_pt...
16,640
139,612
0
bool IsDolbyVisionHEVCCodecId(const std::string& codec_id) { return base::StartsWith(codec_id, "dvh1.", base::CompareCase::SENSITIVE) || base::StartsWith(codec_id, "dvhe.", base::CompareCase::SENSITIVE); }
16,641
36,996
0
static __init int cpu_has_kvm_support(void) { return cpu_has_vmx(); }
16,642
39,235
0
PHP_MSHUTDOWN_FUNCTION(gd) { T1_CloseLib(); #if HAVE_GD_BUNDLED && HAVE_LIBFREETYPE gdFontCacheMutexShutdown(); #endif UNREGISTER_INI_ENTRIES(); return SUCCESS; }
16,643
46,269
0
static long block_ioctl(struct file *file, unsigned cmd, unsigned long arg) { struct block_device *bdev = I_BDEV(file->f_mapping->host); fmode_t mode = file->f_mode; /* * O_NDELAY can be altered using fcntl(.., F_SETFL, ..), so we have * to updated it before every ioctl. */ if (file->f_flags & O_NDELAY) mo...
16,644
143,799
0
const FilePath& GlobalHistogramAllocator::GetPersistentLocation() const { return persistent_location_; }
16,645
173,961
0
long Cluster::GetNext(const BlockEntry* pCurr, const BlockEntry*& pNext) const { assert(pCurr); assert(m_entries); assert(m_entries_count > 0); size_t idx = pCurr->GetIndex(); assert(idx < size_t(m_entries_count)); assert(m_entries[idx] == pCurr); ++idx; if (idx >= size_t(m_entries_count)) { long long ...
16,646
64,110
0
static int snd_msnd_calibrate_adc(struct snd_msnd *chip, u16 srate) { snd_printdd("snd_msnd_calibrate_adc(%i)\n", srate); writew(srate, chip->SMA + SMA_wCalFreqAtoD); if (chip->calibrate_signal == 0) writew(readw(chip->SMA + SMA_wCurrHostStatusFlags) | 0x0001, chip->SMA + SMA_wCurrHostStatusFlags); else ...
16,647
37,486
0
void kvm_mmu_set_mmio_spte_mask(u64 mmio_mask) { shadow_mmio_mask = mmio_mask; }
16,648
59,924
0
get_alias_quirk(struct usb_device *dev, unsigned int id) { const struct usb_device_id *p; for (p = usb_audio_ids; p->match_flags; p++) { /* FIXME: this checks only vendor:product pair in the list */ if ((p->match_flags & USB_DEVICE_ID_MATCH_DEVICE) == USB_DEVICE_ID_MATCH_DEVICE && p->idVendor == USB_...
16,649
97,895
0
void RenderView::DidStopLoadingForPlugin() { didStopLoading(); }
16,650
45,504
0
int crypto_unregister_alg(struct crypto_alg *alg) { int ret; LIST_HEAD(list); down_write(&crypto_alg_sem); ret = crypto_remove_alg(alg, &list); up_write(&crypto_alg_sem); if (ret) return ret; BUG_ON(atomic_read(&alg->cra_refcnt) != 1); if (alg->cra_destroy) alg->cra_destroy(alg); crypto_remove_final(&l...
16,651
104,504
0
void CrosMock::InitMockSpeechSynthesisLibrary() { InitMockLibraryLoader(); if (mock_speech_synthesis_library_) return; mock_speech_synthesis_library_ = new StrictMock<MockSpeechSynthesisLibrary>(); test_api()->SetSpeechSynthesisLibrary(mock_speech_synthesis_library_, true); }
16,652
187,667
1
image_transform_png_set_scale_16_add(image_transform *this, PNG_CONST image_transform **that, png_byte colour_type, png_byte bit_depth) { UNUSED(colour_type) this->next = *that; *that = this; return bit_depth > 8; }
16,653
89,352
0
static int parse_sliteral(char **c, char **dst) { struct token t; char *s = *c; get_token(c, &t, L_SLITERAL); if (t.type != T_STRING) { printf("Expected string literal: %.*s\n", (int)(*c - s), s); return -EINVAL; } *dst = t.val; return 1; }
16,654
24,693
0
static int process_cpu_timer_create(struct k_itimer *timer) { timer->it_clock = PROCESS_CLOCK; return posix_cpu_timer_create(timer); }
16,655
134,343
0
gfx::ImageSkia* TabStrip::GetDropArrowImage(bool is_down) { return ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed( is_down ? IDR_TAB_DROP_DOWN : IDR_TAB_DROP_UP); }
16,656
33,063
0
static int sctp_setsockopt_primary_addr(struct sock *sk, char __user *optval, unsigned int optlen) { struct sctp_prim prim; struct sctp_transport *trans; if (optlen != sizeof(struct sctp_prim)) return -EINVAL; if (copy_from_user(&prim, optval, sizeof(struct sctp_prim))) return -EFAULT; trans = sctp_add...
16,657
87,346
0
vips_foreign_load_gif_error( VipsForeignLoadGif *gif ) { int error; error = 0; #ifdef HAVE_GIFLIB_5 if( gif->file ) error = gif->file->Error; #else error = GifLastError(); #endif if( error ) vips_foreign_load_gif_error_vips( gif, error ); }
16,658
151,892
0
RenderFrameHostImpl::BuildNavigationClientCommitNavigationCallback( NavigationRequest* navigation_request) { DCHECK(navigation_request); return base::BindOnce( &RenderFrameHostImpl::DidCommitPerNavigationMojoInterfaceNavigation, base::Unretained(this), navigation_request); }
16,659
182,438
1
static int ssl_parse_server_key_exchange( mbedtls_ssl_context *ssl ) { int ret; const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl->transform_negotiate->ciphersuite_info; unsigned char *p = NULL, *end = NULL; MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> parse server key exchange" ) ); #if defined(MBED...
16,660
136,333
0
bool PaintPropertyTreeBuilder::UpdateForSelf() { UpdatePaintingLayer(); bool property_added_or_removed = false; if (ObjectTypeMightNeedPaintProperties()) property_added_or_removed = UpdateFragments(); else object_.GetMutableForPainting().FirstFragment().ClearNextFragment(); bool property_changed = f...
16,661
98,387
0
GtkPolicyType webkit_web_frame_get_horizontal_scrollbar_policy(WebKitWebFrame* frame) { g_return_val_if_fail(WEBKIT_IS_WEB_FRAME(frame), GTK_POLICY_AUTOMATIC); Frame* coreFrame = core(frame); FrameView* view = coreFrame->view(); if (!view) return GTK_POLICY_AUTOMATIC; ScrollbarMode hMode =...
16,662
13,021
0
sshpkt_put_cstring(struct ssh *ssh, const void *v) { return sshbuf_put_cstring(ssh->state->outgoing_packet, v); }
16,663
44,210
0
void SSL_SESSION_get0_ticket(const SSL_SESSION *s, unsigned char **tick, size_t *len) { *len = s->tlsext_ticklen; if (tick != NULL) *tick = s->tlsext_tick; }
16,664
138,366
0
std::unique_ptr<ServiceManagerConnection> ServiceManagerConnection::Create( service_manager::mojom::ServiceRequest request, scoped_refptr<base::SequencedTaskRunner> io_task_runner) { if (service_manager_connection_factory) return service_manager_connection_factory->Run(); return base::MakeUnique<Service...
16,665
52,025
0
dissect_SPOOL_PRINTER_INFO(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { proto_tree *subtree; guint32 level; proto_tree *item; subtree = proto_tree_add_subtree( tree, tvb, offset, 0, ett_SPOOL_PRINTER_INFO_LEVEL, &item, "Spool printer info level"); offs...
16,666
23,014
0
static int decode_create(struct xdr_stream *xdr, struct nfs4_change_info *cinfo) { __be32 *p; uint32_t bmlen; int status; status = decode_op_hdr(xdr, OP_CREATE); if (status) return status; if ((status = decode_change_info(xdr, cinfo))) return status; READ_BUF(4); READ32(bmlen); READ_BUF(bmlen << 2); retu...
16,667
37,067
0
static int handle_dr(struct kvm_vcpu *vcpu) { unsigned long exit_qualification; int dr, reg; /* Do not handle if the CPL > 0, will trigger GP on re-entry */ if (!kvm_require_cpl(vcpu, 0)) return 1; dr = vmcs_readl(GUEST_DR7); if (dr & DR7_GD) { /* * As the vm-exit takes precedence over the debug trap, we ...
16,668
12,857
0
const EVP_CIPHER *EVP_aes_256_cbc_hmac_sha256(void) { return NULL; }
16,669
98,117
0
void RenderView::printPage(WebFrame* frame) { DCHECK(frame); Print(frame, true); }
16,670
89,373
0
struct blk_desc *blk_get_dev(const char *ifname, int dev) { return get_dev_hwpart(ifname, dev, 0); }
16,671
136,016
0
void ChildProcessSecurityPolicyImpl::GrantCreateReadWriteFileSystem( int child_id, const std::string& filesystem_id) { GrantPermissionsForFileSystem( child_id, filesystem_id, CREATE_READ_WRITE_FILE_GRANT); }
16,672
146,879
0
Node* Document::cloneNode(bool deep, ExceptionState&) { Document* clone = CloneDocumentWithoutChildren(); clone->CloneDataFromDocument(*this); if (deep) CloneChildNodes(clone); return clone; }
16,673
73,279
0
ASS_Shaper *ass_shaper_new(size_t prealloc) { ASS_Shaper *shaper = calloc(sizeof(*shaper), 1); if (!shaper) return NULL; shaper->base_direction = FRIBIDI_PAR_ON; if (!check_allocations(shaper, prealloc)) goto error; #ifdef CONFIG_HARFBUZZ if (!init_features(shaper)) goto er...
16,674
57,156
0
static int nfs4_lock_expired(struct nfs4_state *state, struct file_lock *request) { struct nfs_server *server = NFS_SERVER(state->inode); struct nfs4_exception exception = { .inode = state->inode, }; int err; err = nfs4_set_lock_state(state, request); if (err != 0) return err; if (!recover_lost_locks) { s...
16,675
21,840
0
static int segmented_read_std(struct x86_emulate_ctxt *ctxt, struct segmented_address addr, void *data, unsigned size) { int rc; ulong linear; rc = linearize(ctxt, addr, size, false, &linear); if (rc != X86EMUL_CONTINUE) return rc; return ctxt->ops->read_std(ctxt, linear, data, size, ...
16,676
22,789
0
void nfs_fattr_init(struct nfs_fattr *fattr) { fattr->valid = 0; fattr->time_start = jiffies; fattr->gencount = nfs_inc_attr_generation_counter(); }
16,677
168,564
0
static int unsupported_open(int sub_api, struct libusb_device_handle *dev_handle) { PRINT_UNSUPPORTED_API(open); }
16,678
177,198
0
void ACodec::PortDescription::addBuffer( IOMX::buffer_id id, const sp<ABuffer> &buffer) { mBufferIDs.push_back(id); mBuffers.push_back(buffer); }
16,679
38,798
0
box_center(PG_FUNCTION_ARGS) { BOX *box = PG_GETARG_BOX_P(0); Point *result = (Point *) palloc(sizeof(Point)); box_cn(result, box); PG_RETURN_POINT_P(result); }
16,680
50,837
0
isoent_make_path_table(struct archive_write *a) { struct iso9660 *iso9660 = a->format_data; int depth, r; int dir_number; /* * Init Path Table. */ if (iso9660->dircnt_max >= MAX_DEPTH && (!iso9660->opt.limit_depth || iso9660->opt.iso_level == 4)) r = isoent_alloc_path_table(a, &(iso9660->primary), ...
16,681
176,850
0
static void dut_mode_recv_callback (uint16_t opcode, uint8_t *buf, uint8_t len) { }
16,682
19,093
0
int udp_lib_setsockopt(struct sock *sk, int level, int optname, char __user *optval, unsigned int optlen, int (*push_pending_frames)(struct sock *)) { struct udp_sock *up = udp_sk(sk); int val; int err = 0; int is_udplite = IS_UDPLITE(sk); if (optlen < sizeof(int)) return -EINVAL; if (get_us...
16,683
1,017
0
void GfxICCBasedColorSpace::getCMYK(GfxColor *color, GfxCMYK *cmyk) { #ifdef USE_CMS if (transform != NULL && displayPixelType == PT_CMYK) { Guchar in[gfxColorMaxComps]; Guchar out[gfxColorMaxComps]; for (int i = 0;i < nComps;i++) { in[i] = colToByte(color->c[i]); } transform->doTransform(in...
16,684
122,593
0
WebDevToolsAgentImpl::~WebDevToolsAgentImpl() { ClientMessageLoopAdapter::inspectedViewClosed(m_webViewImpl); if (m_attached) blink::Platform::current()->currentThread()->removeTaskObserver(this); }
16,685
186,630
1
void AppCacheGroup::RemoveCache(AppCache* cache) { DCHECK(cache->associated_hosts().empty()); if (cache == newest_complete_cache_) { CancelUpdate(); AppCache* tmp_cache = newest_complete_cache_; newest_complete_cache_ = nullptr; tmp_cache->set_owning_group(nullptr); // may cause this group to be deleted } else { s...
16,686
73,270
0
int rxe_mem_init_fast(struct rxe_dev *rxe, struct rxe_pd *pd, int max_pages, struct rxe_mem *mem) { int err; rxe_mem_init(0, mem); /* In fastreg, we also set the rkey */ mem->ibmr.rkey = mem->ibmr.lkey; err = rxe_mem_alloc(rxe, mem, max_pages); if (err) goto err1; mem->pd = pd; mem->max_buf = m...
16,687
18,502
0
hotremove_migrate_alloc(struct page *page, unsigned long private, int **x) { /* This should be improooooved!! */ return alloc_page(GFP_HIGHUSER_MOVABLE); }
16,688
138,869
0
void WallpaperManager::AddObservers() { show_user_name_on_signin_subscription_ = CrosSettings::Get()->AddSettingsObserver( kAccountsPrefShowUserNamesOnSignIn, base::Bind(&WallpaperManager::InitializeRegisteredDeviceWallpaper, weak_factory_.GetWeakPtr())); device_wallpa...
16,689
51,585
0
static bool tcp_prune_ofo_queue(struct sock *sk) { struct tcp_sock *tp = tcp_sk(sk); bool res = false; if (!skb_queue_empty(&tp->out_of_order_queue)) { NET_INC_STATS(sock_net(sk), LINUX_MIB_OFOPRUNED); __skb_queue_purge(&tp->out_of_order_queue); /* Reset SACK state. A conforming SACK implementation will ...
16,690
118,005
0
static inline void resourceInfo(const v8::Handle<v8::Function> function, String& resourceName, int& lineNumber) { v8::ScriptOrigin origin = function->GetScriptOrigin(); if (origin.ResourceName().IsEmpty()) { resourceName = "undefined"; lineNumber = 1; } else { resourceName = toWebCor...
16,691
149,184
0
void LockScreenMediaControlsView::SetIsPlaying(bool playing) { MediaSessionAction action = playing ? MediaSessionAction::kPause : MediaSessionAction::kPlay; play_pause_button_->SetToggled(!playing); play_pause_button_->set_tag(static_cast<int>(action)); UpdateActionButtonsVisibility(); }
16,692
152,449
0
void RenderFrameImpl::OnSelectPopupMenuItem(int selected_index) { if (external_popup_menu_ == NULL) return; blink::WebScopedUserGesture gesture(frame_); std::unique_ptr<ExternalPopupMenu> popup; popup.swap(external_popup_menu_); popup->DidSelectItem(selected_index); }
16,693
26,569
0
static int packet_release(struct socket *sock) { struct sock *sk = sock->sk; struct packet_sock *po; struct net *net; struct tpacket_req req; if (!sk) return 0; net = sock_net(sk); po = pkt_sk(sk); spin_lock_bh(&net->packet.sklist_lock); sk_del_node_init_rcu(sk); sock_prot_inuse_add(net, sk->sk_prot, -1)...
16,694
131,331
0
static void customSetterLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); V8TestObjectPython::customSetterLongAttributeAttributeSetterCustom(jsValue, info); TRACE_EVENT...
16,695
42,017
0
static inline unsigned long copy_shminfo_to_user(void __user *buf, struct shminfo64 *in, int version) { switch (version) { case IPC_64: return copy_to_user(buf, in, sizeof(*in)); case IPC_OLD: { struct shminfo out; if (in->shmmax > INT_MAX) out.shmmax = INT_MAX; else out.shmmax = (int)in->shmmax;...
16,696
178,616
1
SProcXFixesQueryVersion(ClientPtr client) { REQUEST(xXFixesQueryVersionReq); swaps(&stuff->length); swapl(&stuff->majorVersion); return (*ProcXFixesVector[stuff->xfixesReqType]) (client); }
16,697
187,651
1
image_transform_png_set_expand_add(image_transform *this, PNG_CONST image_transform **that, png_byte colour_type, png_byte bit_depth) { UNUSED(bit_depth) this->next = *that; *that = this; /* 'expand' should do nothing for RGBA or GA input - no tRNS and the bit * depth is at least 8 already. */ return (colour_type...
16,698
129,115
0
bool PermissionsData::HasAPIPermission(APIPermission::ID permission) const { return active_permissions()->HasAPIPermission(permission); }
16,699