unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
185,635
1
void FrameSelection::MoveRangeSelectionExtent(const IntPoint& contents_point) { if (ComputeVisibleSelectionInDOMTree().IsNone()) return; SetSelection( SelectionInDOMTree::Builder( GetGranularityStrategy()->UpdateExtent(contents_point, frame_)) .SetIsHandleVisible(true) .Build(), SetSelectionData::Builder() ....
1,900
55,397
0
static void tcp_process_tlp_ack(struct sock *sk, u32 ack, int flag) { struct tcp_sock *tp = tcp_sk(sk); if (before(ack, tp->tlp_high_seq)) return; if (flag & FLAG_DSACKING_ACK) { /* This DSACK means original and TLP probe arrived; no loss */ tp->tlp_high_seq = 0; } else if (after(ack, tp->tlp_high_seq)) { ...
1,901
159,724
0
void WebGLRenderingContextBase::DispatchContextLostEvent(TimerBase*) { WebGLContextEvent* event = WebGLContextEvent::Create( EventTypeNames::webglcontextlost, false, true, ""); Host()->HostDispatchEvent(event); restore_allowed_ = event->defaultPrevented(); if (restore_allowed_ && !is_hidden_) { if (au...
1,902
79,349
0
static int mov_write_esds_tag(AVIOContext *pb, MOVTrack *track) // Basic { AVCPBProperties *props; int64_t pos = avio_tell(pb); int decoder_specific_info_len = track->vos_len ? 5 + track->vos_len : 0; unsigned avg_bitrate; avio_wb32(pb, 0); // size ffio_wfourcc(pb, "esds"); avio_wb32(pb, 0)...
1,903
36,287
0
SYSCALL_DEFINE5(linkat, int, olddfd, const char __user *, oldname, int, newdfd, const char __user *, newname, int, flags) { struct dentry *new_dentry; struct path old_path, new_path; struct inode *delegated_inode = NULL; int how = 0; int error; if ((flags & ~(AT_SYMLINK_FOLLOW | AT_EMPTY_PATH)) != 0) return ...
1,904
157,554
0
net::MockClientSocketFactory* mock_socket_factory() { return &mock_socket_factory_; }
1,905
54,267
0
static void mct_u232_set_termios(struct tty_struct *tty, struct usb_serial_port *port, struct ktermios *old_termios) { struct usb_serial *serial = port->serial; struct mct_u232_private *priv = usb_get_serial_port_data(port); struct ktermios *termios = &tty->termios; unsigned int cflag = termios->c_cflag; ...
1,906
181,777
1
static Image *ReadSTEGANOImage(const ImageInfo *image_info, ExceptionInfo *exception) { #define GetBit(alpha,i) MagickMin((((size_t) (alpha) >> (size_t) \ (i)) & 0x01),16) #define SetBit(indexes,i,set) SetPixelIndex(indexes,((set) != 0 ? \ (size_t) GetPixelIndex(indexes) | (one << (size_t) (i)) : (size_t) \ Get...
1,907
2,020
0
PHP_FUNCTION(openssl_x509_check_private_key) { zval ** zcert, **zkey; X509 * cert = NULL; EVP_PKEY * key = NULL; long certresource = -1, keyresource = -1; RETVAL_FALSE; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZ", &zcert, &zkey) == FAILURE) { return; } cert = php_openssl_x509_from_zval(zcert, ...
1,908
8,132
0
void Gfx::opMoveShowText(Object args[], int numArgs) { double tx, ty; if (!state->getFont()) { error(getPos(), "No font in move/show"); return; } if (fontChanged) { out->updateFont(state); fontChanged = gFalse; } tx = state->getLineX(); ty = state->getLineY() - state->getLeading(); stat...
1,909
174,027
0
ContentEncoding::ContentEncryption::~ContentEncryption() { delete[] key_id; delete[] signature; delete[] sig_key_id; }
1,910
103,076
0
bool Browser::CanReloadContents(TabContents* source) const { return type() != TYPE_DEVTOOLS; }
1,911
122,550
0
void WebDevToolsAgentImpl::didNavigate() { ClientMessageLoopAdapter::didNavigate(); }
1,912
148,918
0
void RenderFrameHostManager::SwapOutOldFrame( std::unique_ptr<RenderFrameHostImpl> old_render_frame_host) { TRACE_EVENT1("navigation", "RenderFrameHostManager::SwapOutOldFrame", "FrameTreeNode id", frame_tree_node_->frame_tree_node_id()); old_render_frame_host->SuppressFurtherDialogs(); deleg...
1,913
178,424
1
vmnc_handle_wmvi_rectangle (GstVMncDec * dec, struct RfbRectangle *rect, const guint8 * data, int len, gboolean decode) { GstVideoFormat format; gint bpp, tc; guint32 redmask, greenmask, bluemask; guint32 endianness, dataendianness; GstVideoCodecState *state; /* A WMVi rectangle has a 16byte payload */ if (len < 16) {...
1,914
185,039
1
void PPB_Buffer_Proxy::OnMsgCreate( PP_Instance instance, uint32_t size, HostResource* result_resource, ppapi::proxy::SerializedHandle* result_shm_handle) { result_shm_handle->set_null_shmem(); HostDispatcher* dispatcher = HostDispatcher::GetForInstance(instance); if (!dispatcher) return; ...
1,915
136,349
0
static bool NodeHasAncestor(const TransformPaintPropertyNode* node, const TransformPaintPropertyNode* ancestor) { while (node) { if (node == ancestor) return true; node = node->Parent(); } return false; }
1,916
45,229
0
psf_ftruncate (SF_PRIVATE *psf, sf_count_t len) { int retval ; /* Returns 0 on success, non-zero on failure. */ if (len < 0) return -1 ; if ((sizeof (off_t) < sizeof (sf_count_t)) && len > 0x7FFFFFFF) return -1 ; retval = ftruncate (psf->file.filedes, len) ; if (retval == -1) psf_log_syserr (psf, errno) ...
1,917
63,907
0
static int do_timerfd_settime(int ufd, int flags, const struct itimerspec *new, struct itimerspec *old) { struct fd f; struct timerfd_ctx *ctx; int ret; if ((flags & ~TFD_SETTIME_FLAGS) || !timespec_valid(&new->it_value) || !timespec_valid(&new->it_interval)) return -EINVAL; ret = timerfd_fget(u...
1,918
30,905
0
static void free_arg_pages(struct linux_binprm *bprm) { }
1,919
112,403
0
void Document::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) { ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta); Element* newDocumentElement = ElementTraversal::firstWithin(this); if (newDocumentElement == m_...
1,920
182,538
1
void TEMPLATE(process_block_dec)(decoder_info_t *decoder_info,int size,int yposY,int xposY,int sub) { int width = decoder_info->width; int height = decoder_info->height; stream_t *stream = decoder_info->stream; frame_type_t frame_type = decoder_info->frame_info.frame_type; int split_flag = 0; if (yposY >= height || xp...
1,921
113,101
0
void DownloadItemImpl::SetIsTemporary(bool temporary) { is_temporary_ = temporary; }
1,922
109,141
0
void RenderViewImpl::numberOfWheelEventHandlersChanged(unsigned num_handlers) { Send(new ViewHostMsg_DidChangeNumWheelEvents(routing_id_, num_handlers)); }
1,923
60,653
0
void sctp_data_ready(struct sock *sk) { struct socket_wq *wq; rcu_read_lock(); wq = rcu_dereference(sk->sk_wq); if (skwq_has_sleeper(wq)) wake_up_interruptible_sync_poll(&wq->wait, POLLIN | POLLRDNORM | POLLRDBAND); sk_wake_async(sk, SOCK_WAKE_WAITD, POLL_IN); rcu_read_unlock(); }
1,924
118,119
0
WebContents* ChromeWebContentsDelegateAndroid::OpenURLFromTab( WebContents* source, const content::OpenURLParams& params) { WindowOpenDisposition disposition = params.disposition; if (!source || (disposition != CURRENT_TAB && disposition != NEW_FOREGROUND_TAB && dispositi...
1,925
90,750
0
static int mpeg4_decode_studio_mb(MpegEncContext *s, int16_t block_[12][64]) { int i; s->dpcm_direction = 0; /* StudioMacroblock */ /* Assumes I-VOP */ s->mb_intra = 1; if (get_bits1(&s->gb)) { /* compression_mode */ /* DCT */ /* macroblock_type, 1 or 2-bit VLC */ if (!...
1,926
188,413
1
bool Block::IsInvisible() const { return bool(int(m_flags & 0x08) != 0); }
1,927
150,168
0
void StartupBrowserCreator::AddFirstRunTab(const GURL& url) { first_run_tabs_.push_back(url); }
1,928
11,653
0
device_linux_md_expand_authorized_cb (Daemon *daemon, Device *device, DBusGMethodInvocation *context, const gchar *action_id, guint num_user...
1,929
58,653
0
static void security_A(BYTE* master_secret, const BYTE* client_random, BYTE* server_random, BYTE* output) { security_premaster_hash("A", 1, master_secret, client_random, server_random, &output[0]); security_premaster_hash("BB", 2, master_secret, client_random, server_random, &output[16]); security_premaster_hash("...
1,930
63,750
0
static void xen_vbd_resize(struct xen_blkif *blkif) { struct xen_vbd *vbd = &blkif->vbd; struct xenbus_transaction xbt; int err; struct xenbus_device *dev = xen_blkbk_xenbus(blkif->be); unsigned long long new_size = vbd_sz(vbd); pr_info("VBD Resize: Domid: %d, Device: (%d, %d)\n", blkif->domid, MAJOR(vbd->pdev...
1,931
94,081
0
int iwl_get_free_ucode_key_offset(struct iwl_priv *priv) { int i; for (i = 0; i < priv->sta_key_max_num; i++) if (!test_and_set_bit(i, &priv->ucode_key_table)) return i; return WEP_INVALID_OFFSET; }
1,932
92,779
0
static void update_task_scan_period(struct task_struct *p, unsigned long shared, unsigned long private) { unsigned int period_slot; int lr_ratio, ps_ratio; int diff; unsigned long remote = p->numa_faults_locality[0]; unsigned long local = p->numa_faults_locality[1]; /* * If there were no record hinting fau...
1,933
10,338
0
psh_hint_snap_stem_side_delta( FT_Fixed pos, FT_Fixed len ) { FT_Fixed delta1 = FT_PIX_ROUND( pos ) - pos; FT_Fixed delta2 = FT_PIX_ROUND( pos + len ) - pos - len; if ( FT_ABS( delta1 ) <= FT_ABS( delta2 ) ) return delta1; else return delta2; }
1,934
110,827
0
void closeFile(PlatformFileHandle& handle) { if (isHandleValid(handle)) { ::CloseHandle(handle); handle = invalidPlatformFileHandle; } }
1,935
408
0
fz_source_colorspace_cm(fz_context *ctx, const fz_colorspace *cs) { while (cs) { if (fz_colorspace_is_icc(ctx, cs)) return cs; if (fz_colorspace_is_cal(ctx, cs)) return cs; cs = fz_colorspace_base(ctx, cs); } return NULL; }
1,936
165,962
0
void RTCPeerConnectionHandler::CreateOffer( const blink::WebRTCSessionDescriptionRequest& request, const blink::WebRTCOfferOptions& options) { DCHECK(task_runner_->RunsTasksInCurrentSequence()); TRACE_EVENT0("webrtc", "RTCPeerConnectionHandler::createOffer"); scoped_refptr<CreateSessionDescriptionRequest...
1,937
162,053
0
void RenderProcessHostImpl::BindSharedBitmapAllocationNotifier( viz::mojom::SharedBitmapAllocationNotifierRequest request) { shared_bitmap_allocation_notifier_impl_.Bind(std::move(request)); }
1,938
85,047
0
static CURLcode smtp_init(struct connectdata *conn) { CURLcode result = CURLE_OK; struct Curl_easy *data = conn->data; struct SMTP *smtp; smtp = data->req.protop = calloc(sizeof(struct SMTP), 1); if(!smtp) result = CURLE_OUT_OF_MEMORY; return result; }
1,939
169,683
0
bool V8ValueConverter::Strategy::FromV8Number(v8::Local<v8::Number> value, base::Value** out) const { return false; }
1,940
187,795
1
status_t SampleTable::setTimeToSampleParams( off64_t data_offset, size_t data_size) { if (!mTimeToSample.empty() || data_size < 8) { return ERROR_MALFORMED; } uint8_t header[8]; if (mDataSource->readAt( data_offset, header, sizeof(header)) < (ssize_t)sizeof(header)) { return ERROR_IO; } if (U32_AT(header) != 0) {...
1,941
90,233
0
static inline void ipmi_si_set_not_busy(struct timespec64 *ts) { ts->tv_nsec = -1; }
1,942
111,235
0
bool WebPage::nodeHasHover(const WebDOMNode& node) { if (Node* nodeImpl = node.impl()) { if (RenderStyle* style = nodeImpl->renderStyle()) return style->affectedByHoverRules(); } return false; }
1,943
133,352
0
void WindowTreeHostManager::CreatePrimaryHost( const AshWindowTreeHostInitParams& init_params) { const display::Display& primary_candidate = GetDisplayManager()->GetPrimaryDisplayCandidate(); primary_display_id = primary_candidate.id(); CHECK_NE(display::Display::kInvalidDisplayID, primary_display_id); ...
1,944
83,830
0
mac80211_hwsim_beacon(struct hrtimer *timer) { struct mac80211_hwsim_data *data = container_of(timer, struct mac80211_hwsim_data, beacon_timer.timer); struct ieee80211_hw *hw = data->hw; u64 bcn_int = data->beacon_int; ktime_t next_bcn; if (!data->started) goto out; ieee80211_iterate_active_interfac...
1,945
76,322
0
xfs_attr_node_get(xfs_da_args_t *args) { xfs_da_state_t *state; xfs_da_state_blk_t *blk; int error, retval; int i; trace_xfs_attr_node_get(args); state = xfs_da_state_alloc(); state->args = args; state->mp = args->dp->i_mount; /* * Search to see if name exists, and get back a pointer to it. */ error = ...
1,946
175,278
0
dispatchSIM_APDU (Parcel &p, RequestInfo *pRI) { int32_t t; status_t status; RIL_SIM_APDU apdu; #if VDBG RLOGD("dispatchSIM_APDU"); #endif memset (&apdu, 0, sizeof(RIL_SIM_APDU)); status = p.readInt32(&t); apdu.sessionid = (int)t; status = p.readInt32(&t); apdu.cla = (int)t; status...
1,947
116,060
0
ExtensionSettingsHandler::GetExtensionUninstallDialog() { if (!extension_uninstall_dialog_.get()) { extension_uninstall_dialog_.reset( ExtensionUninstallDialog::Create(Profile::FromWebUI(web_ui()), this)); } return extension_uninstall_dialog_.get(); }
1,948
70,150
0
static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSbyteByte(uint8 value) { if (value>0x7F) return(TIFFReadDirEntryErrRange); else return(TIFFReadDirEntryErrOk); }
1,949
49,472
0
int __hid_register_driver(struct hid_driver *hdrv, struct module *owner, const char *mod_name) { int ret; hdrv->driver.name = hdrv->name; hdrv->driver.bus = &hid_bus_type; hdrv->driver.owner = owner; hdrv->driver.mod_name = mod_name; INIT_LIST_HEAD(&hdrv->dyn_list); spin_lock_init(&hdrv->dyn_lock); ret = d...
1,950
157,838
0
void WebContentsImpl::RenderWidgetGotFocus( RenderWidgetHostImpl* render_widget_host) { if (delegate_ && render_widget_host && delegate_->EmbedsFullscreenWidget() && render_widget_host->GetView() == GetFullscreenRenderWidgetHostView()) { NotifyWebContentsFocused(render_widget_host); } }
1,951
117,800
0
void V8TestObj::derefObject(void* object) { static_cast<TestObj*>(object)->deref(); }
1,952
99,759
0
void UpdateProcessTypeToGpuBroker() { base::CommandLine::StringVector exec = base::CommandLine::ForCurrentProcess()->GetArgs(); base::CommandLine::Reset(); base::CommandLine::Init(0, NULL); base::CommandLine::ForCurrentProcess()->InitFromArgv(exec); base::CommandLine::ForCurrentProcess()->AppendSwitchAS...
1,953
154,564
0
error::Error GLES2DecoderPassthroughImpl::DoBindFragmentInputLocationCHROMIUM( GLuint program, GLint location, const char* name) { NOTIMPLEMENTED(); return error::kNoError; }
1,954
68,737
0
size_t iov_iter_copy_from_user_atomic(struct page *page, struct iov_iter *i, unsigned long offset, size_t bytes) { char *kaddr = kmap_atomic(page), *p = kaddr + offset; if (unlikely(i->type & ITER_PIPE)) { kunmap_atomic(kaddr); WARN_ON(1); return 0; } iterate_all_kinds(i, bytes, v, __copy_from_user_inatom...
1,955
90,955
0
void btreeFree(struct BTREE *btree) { free(btree->records); }
1,956
75,893
0
free_parent_mallocs_startup(bool am_child) { if (am_child) { #if HAVE_DECL_CLONE_NEWNET free_dirname(); #endif #ifndef _MEM_CHECK_LOG_ FREE_PTR(syslog_ident); #else free(syslog_ident); #endif syslog_ident = NULL; FREE_PTR(orig_core_dump_pattern); } if (free_main_pidfile) { FREE_PTR(main_pidfile); fre...
1,957
81,723
0
static void dct_unquantize_mpeg2_inter_c(MpegEncContext *s, int16_t *block, int n, int qscale) { int i, level, nCoeffs; const uint16_t *quant_matrix; int sum=-1; if (s->q_scale_type) qscale = ff_mpeg2_non_linear_qscale[qscale]; else qscale <<= 1; ...
1,958
179,718
1
static int init_nss_hash(struct crypto_instance *instance) { PK11SlotInfo* hash_slot = NULL; SECItem hash_param; if (!hash_to_nss[instance->crypto_hash_type]) { return 0; } hash_param.type = siBuffer; hash_param.data = 0; hash_param.len = 0; hash_slot = PK11_GetBestSlot(hash_to_nss[instance->crypto_hash_type], NU...
1,959
55,929
0
const char *tty_name(const struct tty_struct *tty) { if (!tty) /* Hmm. NULL pointer. That's fun. */ return "NULL tty"; return tty->name; }
1,960
151,856
0
BrowserViewHostedAppTest() : TestWithBrowserView(Browser::TYPE_POPUP, BrowserWithTestWindowTest::HostedApp()) {}
1,961
183,820
1
void MockWebRTCPeerConnectionHandler::setRemoteDescription(const WebRTCVoidRequest& request, const WebRTCSessionDescriptionDescriptor& remoteDescription) { if (!remoteDescription.isNull() && remoteDescription.type() == "answer") { m_remoteDescription = remoteDescription; postTask(new RTCVoidRequestT...
1,962
15,804
0
int ssl_cert_type(X509 *x, EVP_PKEY *pkey) { EVP_PKEY *pk; int ret= -1,i; if (pkey == NULL) pk=X509_get_pubkey(x); else pk=pkey; if (pk == NULL) goto err; i=pk->type; if (i == EVP_PKEY_RSA) { ret=SSL_PKEY_RSA_ENC; } else if (i == EVP_PKEY_DSA) { ret=SSL_PKEY_DSA_SIGN; } #ifndef OPENSSL_NO_EC ...
1,963
162,098
0
SiteProcessMap* GetSiteProcessMapForBrowserContext(BrowserContext* context) { DCHECK(context); SiteProcessMap* map = static_cast<SiteProcessMap*>( context->GetUserData(kSiteProcessMapKeyName)); if (!map) { map = new SiteProcessMap(); context->SetUserData(kSiteProcessMapKeyName, base::WrapUnique(map)...
1,964
133,925
0
void AppListControllerDelegate::OnCloseChildDialog() { }
1,965
102,784
0
virtual void drawLayersOnCCThread(CCLayerTreeHostImpl* impl) { m_numDraws++; if (!impl->sourceFrameNumber()) endTest(); }
1,966
52,625
0
ppp_do_recv(struct ppp *ppp, struct sk_buff *skb, struct channel *pch) { ppp_recv_lock(ppp); if (!ppp->closing) ppp_receive_frame(ppp, skb, pch); else kfree_skb(skb); ppp_recv_unlock(ppp); }
1,967
158,990
0
bool PDFiumEngine::OnMouseUp(const pp::MouseInputEvent& event) { if (event.GetButton() != PP_INPUTEVENT_MOUSEBUTTON_LEFT && event.GetButton() != PP_INPUTEVENT_MOUSEBUTTON_MIDDLE) { return false; } if (event.GetButton() == PP_INPUTEVENT_MOUSEBUTTON_LEFT) SetMouseLeftButtonDown(false); int page_in...
1,968
157,025
0
void MultibufferDataSource::CreateResourceLoader(int64_t first_byte_position, int64_t last_byte_position) { DCHECK(render_task_runner_->BelongsToCurrentThread()); SetReader(new MultiBufferReader( url_data()->multibuffer(), first_byte_position, last_byte_positi...
1,969
142,044
0
CGaiaCredentialBase::CGaiaCredentialBase() {}
1,970
65,400
0
access_permit_write(struct nfs4_ol_stateid *stp) { return test_access(NFS4_SHARE_ACCESS_WRITE, stp) || test_access(NFS4_SHARE_ACCESS_BOTH, stp); }
1,971
97,768
0
xmlXPathPositionFunction(xmlXPathParserContextPtr ctxt, int nargs) { CHECK_ARITY(0); if (ctxt->context->proximityPosition >= 0) { valuePush(ctxt, xmlXPathCacheNewFloat(ctxt->context, (double) ctxt->context->proximityPosition)); #ifdef DEBUG_EXPR xmlGenericError(xmlGenericErrorContext, "position() : %...
1,972
151,187
0
void InspectorNetworkAgent::GetResponseBodyBlob( const String& request_id, std::unique_ptr<GetResponseBodyCallback> callback) { NetworkResourcesData::ResourceData const* resource_data = resources_data_->Data(request_id); BlobDataHandle* blob = resource_data->DownloadedFileBlob(); InspectorFileReader...
1,973
129,393
0
error::Error GLES2DecoderImpl::HandleBindAttribLocationBucket( uint32 immediate_data_size, const cmds::BindAttribLocationBucket& c) { GLuint program = static_cast<GLuint>(c.program); GLuint index = static_cast<GLuint>(c.index); Bucket* bucket = GetBucket(c.name_bucket_id); if (!bucket || bucket->size() == 0...
1,974
45,631
0
static void cryptd_aead_exit_tfm(struct crypto_tfm *tfm) { struct cryptd_aead_ctx *ctx = crypto_tfm_ctx(tfm); crypto_free_aead(ctx->child); }
1,975
150,995
0
base::string16 DevToolsConfirmInfoBarDelegate::GetButtonLabel( InfoBarButton button) const { return l10n_util::GetStringUTF16((button == BUTTON_OK) ? IDS_DEV_TOOLS_CONFIRM_ALLOW_BUTTON : IDS_DEV_TOOLS_CONFIRM_DENY_BUTTON); }
1,976
165,819
0
void SVGElement::RemovedFrom(ContainerNode& root_parent) { bool was_in_document = root_parent.isConnected(); if (was_in_document && HasRelativeLengths()) { if (root_parent.IsSVGElement() && !parentNode()) { DCHECK(ToSVGElement(root_parent) .elements_with_relative_lengths_.Contains(this))...
1,977
27,324
0
static bool ldm_parse_tocblock (const u8 *data, struct tocblock *toc) { BUG_ON (!data || !toc); if (MAGIC_TOCBLOCK != get_unaligned_be64(data)) { ldm_crit ("Cannot find TOCBLOCK, database may be corrupt."); return false; } strncpy (toc->bitmap1_name, data + 0x24, sizeof (toc->bitmap1_name)); toc->bitmap1_name...
1,978
47,447
0
static void __exit padlock_fini(void) { struct cpuinfo_x86 *c = &cpu_data(0); if (c->x86_model >= 0x0f) { crypto_unregister_shash(&sha1_alg_nano); crypto_unregister_shash(&sha256_alg_nano); } else { crypto_unregister_shash(&sha1_alg); crypto_unregister_shash(&sha256_alg); } }
1,979
33,824
0
static int vq_memory_access_ok(void __user *log_base, struct vhost_memory *mem, int log_all) { int i; if (!mem) return 0; for (i = 0; i < mem->nregions; ++i) { struct vhost_memory_region *m = mem->regions + i; unsigned long a = m->userspace_addr; if (m->memory_size > ULONG_MAX) return 0; els...
1,980
53,448
0
void warning(char *str) { fprintf(stderr, "warning: %s\n", str); }
1,981
19,272
0
static inline struct netlink_sock *nlk_sk(struct sock *sk) { return container_of(sk, struct netlink_sock, sk); }
1,982
182,500
1
ptaReadStream(FILE *fp) { char typestr[128]; l_int32 i, n, ix, iy, type, version; l_float32 x, y; PTA *pta; PROCNAME("ptaReadStream"); if (!fp) return (PTA *)ERROR_PTR("stream not defined", procName, NULL); if (fscanf(fp, "\n Pta Version %d\n", &version) != 1) return (PTA *)ERROR_PTR("not a pta file...
1,983
78,272
0
coolkey_attribute_start(const u8 *obj, u8 object_record_type, size_t buf_len) { size_t offset = object_record_type == COOLKEY_V1_OBJECT ? sizeof(coolkey_object_header_t) : sizeof(coolkey_v0_object_header_t); if ((object_record_type != COOLKEY_V1_OBJECT) && (object_record_type != COOLKEY_V0_OBJECT)) { return NUL...
1,984
160,451
0
void RenderFrameHostImpl::JavaScriptDialogClosed( IPC::Message* reply_msg, bool success, const base::string16& user_input) { GetProcess()->SetIgnoreInputEvents(false); SendJavaScriptDialogReply(reply_msg, success, user_input); for (RenderFrameHostImpl* frame = this; frame; frame = frame->GetParent()...
1,985
61,782
0
static struct segment *current_segment(struct playlist *pls) { return pls->segments[pls->cur_seq_no - pls->start_seq_no]; }
1,986
154,260
0
error::Error GLES2DecoderImpl::HandleMultiDrawElementsInstancedCHROMIUM( uint32_t immediate_data_size, const volatile void* cmd_data) { const volatile gles2::cmds::MultiDrawElementsInstancedCHROMIUM& c = *static_cast< const volatile gles2::cmds::MultiDrawElementsInstancedCHROMIUM*>( ...
1,987
16,684
0
static void cirrus_vga_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->realize = pci_cirrus_vga_realize; k->romfile = VGABIOS_CIRRUS_FILENAME; k->vendor_id = PCI_VENDOR_ID_CIRRUS; k->device_id = CIRRUS_ID_CLGD54...
1,988
150,525
0
void ResetMonitoredUrls() { base::AutoLock lock(lock_); monitored_urls_.clear(); }
1,989
107,481
0
static Eina_Bool _ewk_view_smart_enable_render(Ewk_View_Smart_Data* smartData) { WRN("not supported by engine. smartData=%p", smartData); return false; }
1,990
45,719
0
static void eseqiv_free(struct crypto_instance *inst) { skcipher_geniv_free(inst); crypto_put_default_rng(); }
1,991
4,500
0
PHP_FUNCTION(openssl_csr_sign) { zval * zcert = NULL, *zcsr, *zpkey, *args = NULL; zend_long num_days; zend_long serial = Z_L(0); X509 * cert = NULL, *new_cert = NULL; X509_REQ * csr; EVP_PKEY * key = NULL, *priv_key = NULL; zend_resource *csr_resource, *certresource = NULL, *keyresource = NULL; int i; struct ...
1,992
107,951
0
void ConfirmInfoBar::Layout() { InfoBar::Layout(); int available_width = AlertInfoBar::GetAvailableWidth(); int ok_button_width = 0; int cancel_button_width = 0; gfx::Size ok_ps = ok_button_->GetPreferredSize(); gfx::Size cancel_ps = cancel_button_->GetPreferredSize(); if (GetDelegate()->GetButtons() &...
1,993
55,326
0
static s32 atl2_read_mac_addr(struct atl2_hw *hw) { if (get_permanent_address(hw)) { /* for test */ /* FIXME: shouldn't we use eth_random_addr() here? */ hw->perm_mac_addr[0] = 0x00; hw->perm_mac_addr[1] = 0x13; hw->perm_mac_addr[2] = 0x74; hw->perm_mac_addr[3] = 0x00; hw->perm_mac_addr[4] = 0x5c; hw->...
1,994
173,326
0
type_sep(FILE *out) { putc(':', out); putc(' ', out); }
1,995
162,829
0
void ContextState::SetWindowRectangles(GLenum mode, size_t count, const volatile GLint* box) { window_rectangles_mode = mode; num_window_rectangles = count; DCHECK_LE(count, GetMaxWindowRectangles()); if (count) { std::copy(box, &...
1,996
47,037
0
static int __init sha1_ssse3_mod_init(void) { char *algo_name; /* test for SSSE3 first */ if (cpu_has_ssse3) { sha1_transform_asm = sha1_transform_ssse3; algo_name = "SSSE3"; } #ifdef CONFIG_AS_AVX /* allow AVX to override SSSE3, it's a little faster */ if (avx_usable()) { sha1_transform_asm = sha1_transf...
1,997
115,361
0
WKBundlePagePolicyAction InjectedBundlePage::decidePolicyForNewWindowAction(WKBundlePageRef, WKBundleFrameRef, WKBundleNavigationActionRef, WKURLRequestRef, WKStringRef, WKTypeRef*) { return WKBundlePagePolicyActionUse; }
1,998
84,328
0
UNCURL_EXPORT void uncurl_free_tls_ctx(struct uncurl_tls_ctx *uc_tls) { if (!uc_tls) return; tlss_free(uc_tls->tlss); free(uc_tls); }
1,999