unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
163,061
0
void SandboxIPCHandler::HandleRequestFromChild(int fd) { std::vector<base::ScopedFD> fds; char buf[FontConfigIPC::kMaxFontFamilyLength + 128]; const ssize_t len = base::UnixDomainSocket::RecvMsg(fd, buf, sizeof(buf), &fds); if (len == -1) { NOTREACHED() << "Sandbox host message is larger than kMaxFo...
7,200
71,808
0
static void draw_stroke_color_rgb( wmfAPI* API, const wmfRGB* rgb ) { PixelWand *stroke_color; stroke_color=NewPixelWand(); PixelSetRedQuantum(stroke_color,ScaleCharToQuantum(rgb->r)); PixelSetGreenQuantum(stroke_color,ScaleCharToQuantum(rgb->g)); PixelSetBlueQuantum(stroke_color,ScaleCharToQuantum(rgb->...
7,201
110,503
0
void GLES2DecoderImpl::DoTexImageIOSurface2DCHROMIUM( GLenum target, GLsizei width, GLsizei height, GLuint io_surface_id, GLuint plane) { #if defined(OS_MACOSX) if (gfx::GetGLImplementation() != gfx::kGLImplementationDesktopGL) { SetGLError( GL_INVALID_OPERATION, "glTexImageIOSurface2DCHRO...
7,202
125,429
0
void GDataFileSystem::OnUpdatedFileUploaded( const FileOperationCallback& callback, GDataFileError error, scoped_ptr<UploadFileInfo> upload_file_info) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); DCHECK(upload_file_info.get()); if (error != GDATA_FILE_OK) { if (!callback.is_null()) ...
7,203
147,575
0
static void NewObjectTestInterfaceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { TestObject* impl = V8TestObject::ToImpl(info.Holder()); TestInterfaceImplementation* result = impl->newObjectTestInterfaceMethod(); DCHECK(!result || DOMDataStore::GetWrapper(result, info.GetIsolate()).IsEmpty()); ...
7,204
72,339
0
cleanup_exit(int i) { cleanup_socket(); _exit(i); }
7,205
39,694
0
struct dentry *lookup_create(struct nameidata *nd, int is_dir) { struct dentry *dentry = ERR_PTR(-EEXIST); mutex_lock_nested(&nd->path.dentry->d_inode->i_mutex, I_MUTEX_PARENT); /* * Yucky last component or no last component at all? * (foo/., foo/.., /////) */ if (nd->last_type != LAST_NORM) goto fail; nd...
7,206
126,306
0
virtual ~SwichToMetroUIHandler() { default_browser_worker_->ObserverDestroyed(); }
7,207
41,599
0
static int irda_sendmsg_ultra(struct socket *sock, struct msghdr *msg, size_t len) { struct sock *sk = sock->sk; struct irda_sock *self; __u8 pid = 0; int bound = 0; struct sk_buff *skb; int err; pr_debug("%s(), len=%zd\n", __func__, len); err = -EINVAL; if (msg->msg_flags & ~(MSG_DONTWAIT|MSG_CMSG_...
7,208
83,778
0
static void hw_roc_done(struct work_struct *work) { struct mac80211_hwsim_data *hwsim = container_of(work, struct mac80211_hwsim_data, roc_done.work); mutex_lock(&hwsim->mutex); ieee80211_remain_on_channel_expired(hwsim->hw); hwsim->tmp_chan = NULL; mutex_unlock(&hwsim->mutex); wiphy_dbg(hwsim->hw->wiphy, "hw...
7,209
14,341
0
static int ssl3_get_record(SSL *s) { int ssl_major,ssl_minor,al; int enc_err,n,i,ret= -1; SSL3_RECORD *rr; SSL_SESSION *sess; unsigned char *p; unsigned char md[EVP_MAX_MD_SIZE]; short version; unsigned mac_size, orig_len; size_t extra; rr= &(s->s3->rrec); sess=s->session; if (s->options & SSL_OP_MICROSO...
7,210
151,866
0
RenderFrameHostImpl::AccessibilityGetNativeViewAccessible() { RenderWidgetHostViewBase* view = static_cast<RenderWidgetHostViewBase*>( render_view_host_->GetWidget()->GetView()); if (view) return view->AccessibilityGetNativeViewAccessible(); return nullptr; }
7,211
75,665
0
error_detected(uint32_t errnum, char *errstr, ...) { va_list args; va_start(args, errstr); { TSK_ERROR_INFO *errInfo = tsk_error_get_info(); char *loc_errstr = errInfo->errstr; if (errInfo->t_errno == 0) errInfo->t_errno = errnum; else { size_t sl =...
7,212
14,224
0
PHP_FUNCTION(openssl_open) { zval **privkey, *opendata; EVP_PKEY *pkey; int len1, len2; unsigned char *buf; long keyresource = -1; EVP_CIPHER_CTX ctx; char * data; int data_len; char * ekey; int ekey_len; char *method =NULL; int method_len = 0; const EVP_CIPHER *cipher; if (zend_parse_parameters(ZEND_NUM_A...
7,213
71,205
0
static long kvm_dev_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg) { long r = -EINVAL; switch (ioctl) { case KVM_GET_API_VERSION: if (arg) goto out; r = KVM_API_VERSION; break; case KVM_CREATE_VM: r = kvm_dev_ioctl_create_vm(arg); break; case KVM_CHECK_EXTENSION: r = kvm_vm_io...
7,214
14,810
0
ftp_site(ftpbuf_t *ftp, const char *cmd) { if (ftp == NULL) { return 0; } if (!ftp_putcmd(ftp, "SITE", cmd)) { return 0; } if (!ftp_getresp(ftp) || ftp->resp < 200 || ftp->resp >= 300) { return 0; } return 1; }
7,215
110,389
0
PP_Bool ReadImageData(PP_Resource device_context_2d, PP_Resource image, const PP_Point* top_left) { EnterResource<PPB_Graphics2D_API> enter(device_context_2d, true); if (enter.failed()) return PP_FALSE; return BoolToPPBool(static_cast<PPB_Graphics2D_Impl*>(enter.obj...
7,216
153,865
0
GLenum GLES2DecoderImpl::AdjustGetPname(GLenum pname) { if (GL_MAX_SAMPLES == pname && features().use_img_for_multisampled_render_to_texture) { return GL_MAX_SAMPLES_IMG; } if (GL_ALIASED_POINT_SIZE_RANGE == pname && gl_version_info().is_desktop_core_profile) { return GL_POINT_SIZE_RANGE; } ...
7,217
137,374
0
bool cancel_composition_called() const { return cancel_composition_called_; }
7,218
14,587
0
polkit_backend_session_monitor_class_init (PolkitBackendSessionMonitorClass *klass) { GObjectClass *gobject_class; gobject_class = G_OBJECT_CLASS (klass); gobject_class->finalize = polkit_backend_session_monitor_finalize; /** * PolkitBackendSessionMonitor::changed: * @monitor: A #PolkitBackendSessionMo...
7,219
135,087
0
AppCacheHost::~AppCacheHost() { service_->RemoveObserver(this); FOR_EACH_OBSERVER(Observer, observers_, OnDestructionImminent(this)); if (associated_cache_.get()) associated_cache_->UnassociateHost(this); if (group_being_updated_.get()) group_being_updated_->RemoveUpdateObserver(this); storage()->Canc...
7,220
15,991
0
ImportTIFF_StandardMappings ( XMP_Uns8 ifd, const TIFF_Manager & tiff, SXMPMeta * xmp ) { const bool nativeEndian = tiff.IsNativeEndian(); TIFF_Manager::TagInfo tagInfo; const TIFF_MappingToXMP * mappings = 0; if ( ifd == kTIFF_PrimaryIFD ) { mappings = sPrimaryIFDMappings; } else if ( ifd == kTIFF_ExifIFD ) {...
7,221
136,948
0
inline void HTMLInputElement::RemoveFromRadioButtonGroup() { if (RadioButtonGroupScope* scope = GetRadioButtonGroupScope()) scope->RemoveButton(this); }
7,222
75,759
0
void testToStringCharsRequired() { TEST_ASSERT(testToStringCharsRequiredHelper(L"http://www.example.com/")); TEST_ASSERT(testToStringCharsRequiredHelper(L"http://www.example.com:80/")); TEST_ASSERT(testToStringCharsRequiredHelper(L"http://user:pass@www.example.com/")); TEST_ASSERT(testToStringCharsRequiredHelp...
7,223
112,044
0
string Get(int64 metahandle, syncable::StringField field) { return GetField(metahandle, field, string()); }
7,224
126,840
0
void BrowserView::ProcessFullscreen(bool fullscreen, FullscreenType type, const GURL& url, FullscreenExitBubbleType bubble_type) { ignore_layout_ = true; LocationBarView* location_bar = GetLocationBarView(); ...
7,225
122,630
0
ExtensionInfo::ExtensionInfo(const DictionaryValue* manifest, const std::string& id, const FilePath& path, Manifest::Location location) : extension_id(id), extension_path(path), extension_location(location) { if (ma...
7,226
164,258
0
void AppCacheUpdateJob::NotifySingleHost( AppCacheHost* host, blink::mojom::AppCacheEventID event_id) { host->frontend()->EventRaised(event_id); }
7,227
106,340
0
void SyncBackendHost::Core::NotifyPassphraseAccepted( const std::string& bootstrap_token) { if (!host_ || !host_->frontend_) return; DCHECK_EQ(MessageLoop::current(), host_->frontend_loop_); processing_passphrase_ = false; host_->PersistEncryptionBootstrapToken(bootstrap_token); host_->frontend_->On...
7,228
71,053
0
void Type_Signature_Free(struct _cms_typehandler_struct* self, void* Ptr) { _cmsFree(self ->ContextID, Ptr); }
7,229
120,365
0
bool mouse_release() const { return mouse_release_; }
7,230
97,527
0
void FrameLoader::write(const char* str, int len, bool flush) { if (len == 0 && !flush) return; if (len == -1) len = strlen(str); Tokenizer* tokenizer = m_frame->document()->tokenizer(); if (tokenizer && tokenizer->wantsRawData()) { if (len > 0) tokenizer->write...
7,231
29,814
0
cifs_find_smb_ses(struct TCP_Server_Info *server, struct smb_vol *vol) { struct cifs_ses *ses; spin_lock(&cifs_tcp_ses_lock); list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { if (!match_session(ses, vol)) continue; ++ses->ses_count; spin_unlock(&cifs_tcp_ses_lock); return ses; } spin_unl...
7,232
106,473
0
void WebPageProxy::didChooseFilesForOpenPanel(const Vector<String>& fileURLs) { if (!isValid()) return; #if ENABLE(WEB_PROCESS_SANDBOX) for (size_t i = 0; i < fileURLs.size(); ++i) { SandboxExtension::Handle sandboxExtensionHandle; SandboxExtension::createHandle(fileURLs[i], SandboxExte...
7,233
160,937
0
void ChromeClientImpl::ChromeDestroyed() { }
7,234
147,699
0
void V8TestObject::PerWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_perWorldBindingsVoidMethodTestInterfaceEmptyArg"); test_object_v8_internal::PerWorldBindingsVoidMetho...
7,235
6,353
0
nm_ip4_config_new (int ifindex) { g_return_val_if_fail (ifindex >= -1, NULL); return (NMIP4Config *) g_object_new (NM_TYPE_IP4_CONFIG, NM_IP4_CONFIG_IFINDEX, ifindex, NULL); }
7,236
166,165
0
void MediaStreamDispatcherHost::GenerateStream( int32_t page_request_id, const StreamControls& controls, bool user_gesture, GenerateStreamCallback callback) { DCHECK_CURRENTLY_ON(BrowserThread::IO); base::PostTaskAndReplyWithResult( base::CreateSingleThreadTaskRunnerWithTraits({BrowserThread...
7,237
90,458
0
static void ib_uverbs_free_hw_resources(struct ib_uverbs_device *uverbs_dev, struct ib_device *ib_dev) { struct ib_uverbs_file *file; struct ib_uverbs_async_event_file *event_file; struct ib_event event; /* Pending running commands to terminate */ uverbs_disassociate_api_pre(uverbs_dev); event.event = IB_EV...
7,238
147,137
0
bool DocumentLoader::ShouldPersistUserGestureValue( const SecurityOrigin* previous_security_origin, const SecurityOrigin* new_security_origin) { if (!CheckOriginIsHttpOrHttps(previous_security_origin) || !CheckOriginIsHttpOrHttps(new_security_origin)) return false; if (previous_security_origin->H...
7,239
145,480
0
DownloadInterruptReason CallbackAndReturn( const DownloadUrlParameters::OnStartedCallback& started_cb, DownloadInterruptReason interrupt_reason) { if (started_cb.is_null()) return interrupt_reason; BrowserThread::PostTask( BrowserThread::UI, FROM_HERE, base::Bind( started_cb,...
7,240
77,027
0
ofpacts_pull_openflow_instructions(struct ofpbuf *openflow, unsigned int instructions_len, enum ofp_version version, const struct vl_mff_map *vl_mff_map, uint64_t *ofpacts_tlv_bitm...
7,241
186,678
1
int PDFiumEngine::GetVisiblePageIndex(FPDF_PAGE page) { for (int page_index : visible_pages_) { if (pages_[page_index]->GetPage() == page) return page_index; } return -1; }
7,242
97,857
0
void AutoFillHelper::SendForms(WebFrame* frame) { WebKit::WebVector<WebFormElement> web_forms; frame->forms(web_forms); std::vector<webkit_glue::FormData> forms; for (size_t i = 0; i < web_forms.size(); ++i) { const WebFormElement& web_form = web_forms[i]; webkit_glue::FormData form; if (FormManag...
7,243
112,554
0
void Document::setCookie(const String& value, ExceptionCode& ec) { if (page() && !page()->settings()->cookieEnabled()) return; if (!securityOrigin()->canAccessCookies()) { ec = SECURITY_ERR; return; } KURL cookieURL = this->cookieURL(); if (cookieURL.isEmpty()) ret...
7,244
161,233
0
bool ShouldSendOnIO(const std::string& method) { return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || method == "Debugger.setBreakpointByUrl" || method == "Debugger.removeBreakpoint" || method == "Debugger.setBreakpointsActive" || method == "Performance.getMet...
7,245
115,677
0
bool HostNPScriptObject::Disconnect(const NPVariant* args, uint32_t arg_count, NPVariant* result) { CHECK_EQ(base::PlatformThread::CurrentId(), np_thread_id_); if (arg_count != 0) { SetException("disconnect: bad number of arguments"); r...
7,246
28,048
0
static av_always_inline void decode_line(FFV1Context *s, int w, int16_t *sample[2], int plane_index, int bits) { PlaneContext *const p = &s->plane[plane_index]; RangeCoder *const c = &s->c; int x; int run_count = 0; ...
7,247
51,048
0
int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry, struct inode **delegated_inode) { struct inode *inode = old_dentry->d_inode; unsigned max_links = dir->i_sb->s_max_links; int error; if (!inode) return -ENOENT; error = may_create(dir, new_dentry); if (error) return error;...
7,248
168,237
0
bool BrowserView::CanTriggerOnMouse() const { return !IsImmersiveModeEnabled(); }
7,249
149,063
0
static void checkPtrmap( IntegrityCk *pCheck, /* Integrity check context */ Pgno iChild, /* Child page number */ u8 eType, /* Expected pointer map type */ Pgno iParent /* Expected pointer map parent page number */ ){ int rc; u8 ePtrmapType; Pgno iPtrmapParent; rc = pt...
7,250
172,377
0
OMX_ERRORTYPE omx_video::use_EGL_image(OMX_IN OMX_HANDLETYPE hComp, OMX_INOUT OMX_BUFFERHEADERTYPE** bufferHdr, OMX_IN OMX_U32 port, OMX_IN OMX_PTR appData, OMX_IN void* eglImage) { (void)hComp, (void)bufferHdr, (void)po...
7,251
164,576
0
static int dbpageRowid(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid){ DbpageCursor *pCsr = (DbpageCursor *)pCursor; *pRowid = pCsr->pgno; return SQLITE_OK; }
7,252
170,943
0
static vpx_codec_err_t vp8_get_frame_corrupted(vpx_codec_alg_priv_t *ctx, va_list args) { int *corrupted = va_arg(args, int *); VP8D_COMP *pbi = (VP8D_COMP *)ctx->yv12_frame_buffers.pbi[0]; if (corrupted && pbi) { const YV12_BUFFER_CONFIG *const frame = pbi->comm...
7,253
118,109
0
ChromeWebContentsDelegateAndroid::ChromeWebContentsDelegateAndroid(JNIEnv* env, jobject obj) : WebContentsDelegateAndroid(env, obj) { }
7,254
45,781
0
static void gcm_hash_len_done(struct crypto_async_request *areq, int err) { struct aead_request *req = areq->data; __gcm_hash_len_done(req, err); }
7,255
77,302
0
ofproto_configure_table(struct ofproto *ofproto, int table_id, const struct ofproto_table_settings *s) { struct oftable *table; ovs_assert(table_id >= 0 && table_id < ofproto->n_tables); table = &ofproto->tables[table_id]; oftable_set_name(table, s->name); if (table->flags...
7,256
90,437
0
static ssize_t version_show(struct device_driver *dd, char *buf) { return snprintf(buf, strlen(MEGASAS_VERSION) + 2, "%s\n", MEGASAS_VERSION); }
7,257
181,170
1
int MSG_ReadBits( msg_t *msg, int bits ) { int value; int get; qboolean sgn; int i, nbits; // FILE* fp; value = 0; if ( bits < 0 ) { bits = -bits; sgn = qtrue; } else { sgn = qfalse; } if (msg->oob) { if(bits==8) { value = msg->data[msg->readcount]; msg->readcount += 1; msg->bit += 8; } else if(bits==16) { sho...
7,258
185,222
1
void UnloadController::TabDetachedAt(TabContents* contents, int index) { TabDetachedImpl(contents); }
7,259
140,841
0
bool IsValidPVRTCSize(GLint level, GLsizei size) { return GLES2Util::IsPOT(size); }
7,260
56,528
0
ext4_file_write_iter(struct kiocb *iocb, struct iov_iter *from) { struct file *file = iocb->ki_filp; struct inode *inode = file_inode(iocb->ki_filp); struct mutex *aio_mutex = NULL; struct blk_plug plug; int o_direct = iocb->ki_flags & IOCB_DIRECT; int overwrite = 0; ssize_t ret; /* * Unaligned direct AIO mu...
7,261
1,363
0
static __be32 *xdr_inline_decode(struct xdr_stream *xdr, size_t nbytes) { __be32 *p; if (nbytes == 0) return xdr->p; if (xdr->p == xdr->end) return NULL; p = __xdr_inline_decode(xdr, nbytes); return p; }
7,262
148,614
0
void WaitForDidFirstVisuallyNonEmptyPaint() { if (did_fist_visually_non_empty_paint_) return; base::RunLoop run_loop; on_did_first_visually_non_empty_paint_ = run_loop.QuitClosure(); run_loop.Run(); }
7,263
105,976
0
bool JSTestEventTargetConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) { return getStaticValueDescriptor<JSTestEventTargetConstructor, JSDOMWrapper>(exec, &JSTestEventTargetConstructorTable, jsCast<JSTestEventTargetConstructor*>...
7,264
43,277
0
int CLASS fscanf(FILE *stream, const char *format, void *ptr) { int count = ::fscanf(stream, format, ptr); if ( count != 1 ) dcraw_message(DCRAW_WARNING, "%s: fscanf %d != 1\n", ifname_display, count); return 1; }
7,265
167,577
0
void RenderFrameHostManager::OnEnforceInsecureNavigationsSet( const std::vector<uint32_t>& insecure_navigations_set) { for (const auto& pair : proxy_hosts_) { pair.second->Send(new FrameMsg_EnforceInsecureNavigationsSet( pair.second->GetRoutingID(), insecure_navigations_set)); } }
7,266
119,350
0
void OmniboxEditModel::OnWillKillFocus(gfx::NativeView view_gaining_focus) { if (user_input_in_progress_ || !in_revert_) delegate_->OnInputStateChanged(); }
7,267
95,161
0
static void cmd_search(char *tag, int usinguid) { int c; struct searchargs *searchargs; clock_t start = clock(); char mytime[100]; int n; if (backend_current) { /* remote mailbox */ const char *cmd = usinguid ? "UID Search" : "Search"; prot_printf(backend_current->out, ...
7,268
149,161
0
void CheckAdjustedOffsets(const std::string& url_string, FormatUrlTypes format_types, net::UnescapeRule::Type unescape_rules, const size_t* output_offsets) { GURL url(url_string); size_t url_length = url_string.length(); std::vector<siz...
7,269
95,863
0
void Sys_Quit( void ) { Sys_Exit( 0 ); }
7,270
36,114
0
static char *get_symlink_chunk(char *rpnt, struct rock_ridge *rr, char *plimit) { int slen; int rootflag; struct SL_component *oldslp; struct SL_component *slp; slen = rr->len - 5; slp = &rr->u.SL.link; while (slen > 1) { rootflag = 0; switch (slp->flags & ~1) { case 0: if (slp->len > plimit - rpnt) ...
7,271
47,273
0
static int lzo_init(struct crypto_tfm *tfm) { struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); ctx->lzo_comp_mem = kmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL | __GFP_NOWARN | __GFP_REPEAT); if (!ctx->lzo_comp_mem) ctx->lzo_comp_mem = vmalloc(LZO1X_MEM_COMPRESS); if (!ctx->lzo_comp_mem) return -ENOMEM; return 0...
7,272
163,227
0
void ExpectChildFrameSetAsCollapsedInFTN(Shell* shell, bool expect_collapsed) { FrameTreeNode* root = static_cast<WebContentsImpl*>(shell->web_contents()) ->GetFrameTree() ->root(); ASSERT_EQ(1u, root->child_count()); FrameTreeNode* child = root->child_at(0u...
7,273
95,024
0
cmd_http_loop(CMD_ARGS) { struct http *hp; unsigned n, m; char *s; CAST_OBJ_NOTNULL(hp, priv, HTTP_MAGIC); AN(av[1]); AN(av[2]); AZ(av[3]); n = strtoul(av[1], NULL, 0); for (m = 1 ; m <= n; m++) { vtc_log(vl, 4, "Loop #%u", m); s = strdup(av[2]); AN(s); parse_string(s, cmd, hp, vl); } }
7,274
140,795
0
error::Error GLES2DecoderImpl::HandleGetActiveUniformBlockiv( uint32 immediate_data_size, const void* cmd_data) { if (!unsafe_es3_apis_enabled()) return error::kUnknownCommand; const gles2::cmds::GetActiveUniformBlockiv& c = *static_cast<const gles2::cmds::GetActiveUniformBlockiv*>(cmd_data); GLuint...
7,275
48,227
0
combineSeparateSamplesBytes (unsigned char *srcbuffs[], unsigned char *out, uint32 cols, uint32 rows, uint16 spp, uint16 bps, FILE *dumpfile, int format, int level) { int i, bytes_per_sample; uint32 row, col, col_offset, src_rowsize, dst_rowsize, row_offse...
7,276
133,548
0
void WebContentsImpl::DetachInterstitialPage() { if (GetInterstitialPage()) GetRenderManager()->remove_interstitial_page(); FOR_EACH_OBSERVER(WebContentsObserver, observers_, DidDetachInterstitialPage()); }
7,277
60,005
0
static void snd_usb_mixer_interrupt(struct urb *urb) { struct usb_mixer_interface *mixer = urb->context; int len = urb->actual_length; int ustatus = urb->status; if (ustatus != 0) goto requeue; if (mixer->protocol == UAC_VERSION_1) { struct uac1_status_word *status; for (status = urb->transfer_buffer; ...
7,278
89,289
0
static int boco_clear_bits(u8 reg, u8 flags) { int ret; u8 regval; /* give access to the EEPROM from FPGA */ ret = i2c_read(BOCO_ADDR, reg, 1, &regval, 1); if (ret) { printf("%s: error reading the BOCO @%#x !!\n", __func__, reg); return ret; } regval &= ~flags; ret = i2c_write(BOCO_ADDR, reg, 1, &regval...
7,279
41,740
0
static int __ipv6_isatap_ifid(u8 *eui, __be32 addr) { if (addr == 0) return -1; eui[0] = (ipv4_is_zeronet(addr) || ipv4_is_private_10(addr) || ipv4_is_loopback(addr) || ipv4_is_linklocal_169(addr) || ipv4_is_private_172(addr) || ipv4_is_test_192(addr) || ipv4_is_anycast_6to4(addr) || ipv4_is_private_192...
7,280
156,125
0
const AtomicString& HTMLLinkElement::Rel() const { return getAttribute(relAttr); }
7,281
135,807
0
static bool ShouldRespectSVGTextBoundaries( const Node& target_node, const FrameSelection& frame_selection) { const PositionInFlatTree& base = frame_selection.ComputeVisibleSelectionInFlatTree().Base(); const Node* const base_node = base.AnchorNode(); if (!base_node) return false; LayoutObject...
7,282
186,323
1
void BinaryUploadService::IsAuthorized(AuthorizationCallback callback) { // Start |timer_| on the first call to IsAuthorized. This is necessary in // order to invalidate the authorization every 24 hours. if (!timer_.IsRunning()) { timer_.Start(FROM_HERE, base::TimeDelta::FromHours(24), this, &BinaryUploadService::Reset...
7,283
36,798
0
PHP_FUNCTION(gethostname) { char buf[HOST_NAME_MAX]; if (zend_parse_parameters_none() == FAILURE) { return; } if (gethostname(buf, sizeof(buf) - 1)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to fetch host [%d]: %s", errno, strerror(errno)); RETURN_FALSE; } RETURN_STRING(buf, 1); }
7,284
111,837
0
void SyncBackendHost::Core::SaveChanges() { DCHECK_EQ(MessageLoop::current(), sync_loop_); sync_manager_->SaveChanges(); }
7,285
102,070
0
void SyncBackendHost::Core::HandleStopSyncingPermanentlyOnFrontendLoop() { if (!host_ || !host_->frontend_) return; host_->frontend_->OnStopSyncingPermanently(); }
7,286
145,501
0
ResourceDispatcherHostImpl::IncrementOutstandingRequestsMemory( int count, const ResourceRequestInfoImpl& info) { DCHECK_EQ(1, abs(count)); OustandingRequestsStats stats = GetOutstandingRequestsStats(info); stats.memory_cost += count * info.memory_cost(); DCHECK_GE(stats.memory_cost, 0); UpdateOutst...
7,287
89,383
0
int part_get_info_by_dev_and_name_or_num(const char *dev_iface, const char *dev_part_str, struct blk_desc **dev_desc, disk_partition_t *part_info) { /* Split the part_name if passed as "$dev_num#part_name". */ if (!part_get_info_by_dev_and_name(dev_iface, dev_part_str, dev_desc, part_info)) ...
7,288
128,024
0
void AwContents::OnPermissionRequest( base::android::ScopedJavaLocalRef<jobject> j_request, AwPermissionRequest* request) { DCHECK(!j_request.is_null()); DCHECK(request); JNIEnv* env = AttachCurrentThread(); ScopedJavaLocalRef<jobject> j_ref = java_ref_.get(env); if (j_ref.is_null()) { permission...
7,289
153,883
0
void GLES2DecoderImpl::BindTexImage2DCHROMIUMImpl(const char* function_name, GLenum target, GLenum internalformat, GLint image_id) { if (target == GL_TEXTURE_CUBE_MAP) ...
7,290
180,305
1
static void tcp_send_challenge_ack(struct sock *sk, const struct sk_buff *skb) { /* unprotected vars, we dont care of overwrites */ static u32 challenge_timestamp; static unsigned int challenge_count; struct tcp_sock *tp = tcp_sk(sk); u32 now; /* First check our per-socket dupack rate limit. */ if (tcp_oow_rate_limit...
7,291
128,682
0
bool SettingsWindowEnabled() { #if defined(OS_CHROMEOS) return !base::CommandLine::ForCurrentProcess()->HasSwitch( ::switches::kDisableSettingsWindow); #else return base::CommandLine::ForCurrentProcess()->HasSwitch( ::switches::kEnableSettingsWindow); #endif }
7,292
90,623
0
static MagickBooleanType WriteCINImage(const ImageInfo *image_info,Image *image, ExceptionInfo *exception) { char timestamp[MagickPathExtent]; const char *value; CINInfo cin; const StringInfo *profile; MagickBooleanType status; MagickOffsetType offset; QuantumInfo *quan...
7,293
71,135
0
int mkfifo_atomic(const char *path, mode_t mode) { _cleanup_free_ char *t = NULL; int r; assert(path); r = tempfn_random(path, NULL, &t); if (r < 0) return r; if (mkfifo(t, mode) < 0) return -errno; if (rename(t, path) < 0) { ...
7,294
104,757
0
void NavigationController::LoadURL(const GURL& url, const GURL& referrer, PageTransition::Type transition) { needs_reload_ = false; NavigationEntry* entry = CreateNavigationEntry(url, referrer, transition, profile_); LoadEntry(e...
7,295
138,350
0
void ShutDown() { BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)->PostTask( FROM_HERE, base::Bind(&InProcessServiceManagerContext::ShutDownOnIOThread, this)); }
7,296
35,326
0
static void ipgre_tap_setup(struct net_device *dev) { ether_setup(dev); dev->netdev_ops = &ipgre_tap_netdev_ops; dev->destructor = ipgre_dev_free; dev->iflink = 0; dev->features |= NETIF_F_NETNS_LOCAL; }
7,297
94,767
0
static MagickBooleanType ClonePixelCacheRepository( CacheInfo *magick_restrict clone_info,CacheInfo *magick_restrict cache_info, ExceptionInfo *exception) { #define MaxCacheThreads 2 #define cache_threads(source,destination) \ num_threads(((source)->type == DiskCache) || \ ((destination)->type == DiskCache) ...
7,298
9,999
0
render_state_draw( RenderState state, const unsigned char* text, int idx, int x, int y, int width, int ...
7,299