unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
79,712
0
static void dump_r_bin_dwarf_debug_abbrev(FILE *f, RBinDwarfDebugAbbrev *da) { size_t i, j; ut64 attr_name, attr_form; if (!f || !da) { return; } for (i = 0; i < da->length; i++) { int declstag = da->decls[i].tag; fprintf (f, "Abbreviation Code %"PFMT64d" ", da->decls[i].code); if (declstag>=0 && declstag...
6,200
108,612
0
bool ContainsString(const std::string& haystack, const char* needle) { std::string::const_iterator it = std::search(haystack.begin(), haystack.end(), needle, needle + strlen(needle), base::CaseInsensitiveCompare<char>()); return it != hay...
6,201
170,329
0
status_t SampleTable::findSampleAtTime( uint64_t req_time, uint64_t scale_num, uint64_t scale_den, uint32_t *sample_index, uint32_t flags) { buildSampleEntriesTable(); uint32_t left = 0; uint32_t right_plus_one = mNumSampleSizes; while (left < right_plus_one) { uint32_t center = left + (right_plus_one - left...
6,202
67,735
0
static ssize_t sock_read_iter(struct kiocb *iocb, struct iov_iter *to) { struct file *file = iocb->ki_filp; struct socket *sock = file->private_data; struct msghdr msg = {.msg_iter = *to, .msg_iocb = iocb}; ssize_t res; if (file->f_flags & O_NONBLOCK) msg.msg_flags = MSG_DONTWAIT; if (iocb->ki_pos != ...
6,203
161,905
0
PrintMsg_Print_Params GetCssPrintParams( blink::WebLocalFrame* frame, int page_index, const PrintMsg_Print_Params& page_params) { PrintMsg_Print_Params page_css_params = page_params; int dpi = GetDPI(&page_params); blink::WebDoubleSize page_size_in_pixels( ConvertUnitDouble(page_params.page_siz...
6,204
79,834
0
struct inode *ilookup5(struct super_block *sb, unsigned long hashval, int (*test)(struct inode *, void *), void *data) { struct inode *inode; again: inode = ilookup5_nowait(sb, hashval, test, data); if (inode) { wait_on_inode(inode); if (unlikely(inode_unhashed(inode))) { iput(inode); goto again; } } ...
6,205
161,772
0
void CheckConfigsCountForClient(const scoped_refptr<PlatformSensor>& sensor, PlatformSensor::Client* client, size_t expected_count) { auto client_entry = sensor->GetConfigMapForTesting().find(client); if (sensor->GetConfigMapForTesting().end() == clien...
6,206
91,313
0
static ssize_t provides_device_sdrs_show(struct device *dev, struct device_attribute *attr, char *buf) { struct bmc_device *bmc = to_bmc_device(dev); struct ipmi_device_id id; int rv; rv = bmc_get_device_id(NULL, bmc, &id, NULL, NULL); if (rv) return rv; return snprintf(buf, 10, "%u\n", (id.device...
6,207
174,892
0
status_t Camera2Client::commandStartSmoothZoomL() { ALOGE("%s: Unimplemented!", __FUNCTION__); return OK; }
6,208
105,555
0
bool SendMouseDragJSONRequest( AutomationMessageSender* sender, int browser_index, int tab_index, int start_x, int start_y, int end_x, int end_y, std::string* error_msg) { DictionaryValue dict; dict.SetString("command", "WebkitMouseDrag"); dict.SetInteger("windex", browser_index); ...
6,209
40,998
0
cmsUInt32Number CMSEXPORT cmsMLUgetWide(const cmsMLU* mlu, const char LanguageCode[3], const char CountryCode[3], wchar_t* Buffer, cmsUInt32Number BufferSize) { const wchar_t *Wide; cmsUInt32Number StrLen = 0; cmsUInt16Number Lang...
6,210
151,550
0
ResourceLoadPriority ResourceFetcher::ComputeLoadPriority( Resource::Type type, const ResourceRequest& resource_request, ResourcePriority::VisibilityStatus visibility, FetchParameters::DeferOption defer_option, FetchParameters::SpeculativePreloadType speculative_preload_type, bool is_link_preloa...
6,211
181,077
1
aodv_extension(netdissect_options *ndo, const struct aodv_ext *ep, u_int length) { const struct aodv_hello *ah; switch (ep->type) { case AODV_EXT_HELLO: ah = (const struct aodv_hello *)(const void *)ep; ND_TCHECK(*ah); if (length < sizeof(struct aodv_hello)) goto trunc; ND_PRINT(...
6,212
166,146
0
void RenderFrameHostImpl::OnJavaScriptExecuteResponse( int id, const base::ListValue& result) { const base::Value* result_value; if (!result.Get(0, &result_value)) { NOTREACHED() << "Got bad arguments for OnJavaScriptExecuteResponse"; return; } auto it = javascript_callbacks_.find(id); if (it != ...
6,213
138,117
0
String AXNodeObject::valueDescription() const { if (!supportsRangeValue()) return String(); return getAOMPropertyOrARIAAttribute(AOMStringProperty::kValueText) .getString(); }
6,214
64,669
0
onig_get_options(regex_t* reg) { return reg->options; }
6,215
143,585
0
OomInterventionMetrics OomInterventionImpl::GetCurrentMemoryMetrics() { return CrashMemoryMetricsReporterImpl::Instance().GetCurrentMemoryMetrics(); }
6,216
154,695
0
error::Error GLES2DecoderPassthroughImpl::DoGetProgramInterfaceiv( GLuint program, GLenum program_interface, GLenum pname, GLsizei bufsize, GLsizei* length, GLint* params) { if (bufsize < 1) { return error::kOutOfBounds; } *length = 1; api()->glGetProgramInterfaceivFn(GetProgramServi...
6,217
24,569
0
static void op64_tx_suspend(struct b43_dmaring *ring) { b43_dma_write(ring, B43_DMA64_TXCTL, b43_dma_read(ring, B43_DMA64_TXCTL) | B43_DMA64_TXSUSPEND); }
6,218
33,055
0
static int sctp_setsockopt_mappedv4(struct sock *sk, char __user *optval, unsigned int optlen) { int val; struct sctp_sock *sp = sctp_sk(sk); if (optlen < sizeof(int)) return -EINVAL; if (get_user(val, (int __user *)optval)) return -EFAULT; if (val) sp->v4mapped = 1; else sp->v4mapped = 0; return 0; }
6,219
23,886
0
static int is_valid_veth_mtu(int new_mtu) { return new_mtu >= MIN_MTU && new_mtu <= MAX_MTU; }
6,220
155,703
0
void TestPresentationLocksFocusImpl(WebXrVrBrowserTestBase* t, std::string filename) { t->LoadUrlAndAwaitInitialization(t->GetFileUrlForHtmlTestFile(filename)); t->EnterSessionWithUserGestureOrFail(); t->ExecuteStepAndWait("stepSetupFocusLoss()"); t->EndTest(); }
6,221
160,316
0
void Run() { if (!loader_) return; ExecutionContext& context = loader_->GetElement()->GetDocument(); probe::AsyncTask async_task(&context, this); if (script_state_->ContextIsValid()) { ScriptState::Scope scope(script_state_.get()); loader_->DoUpdateFromElement(should_bypass_main_worl...
6,222
127,374
0
void StyleResolver::collectViewportRules() { viewportStyleResolver()->collectViewportRules(CSSDefaultStyleSheets::defaultStyle, ViewportStyleResolver::UserAgentOrigin); if (document().isMobileDocument()) viewportStyleResolver()->collectViewportRules(CSSDefaultStyleSheets::xhtmlMobileProfileStyle(), Vie...
6,223
168,423
0
bool TestBrowserWindow::IsVisible() const { return true; }
6,224
47,599
0
static inline int ap_instructions_available(void) { register unsigned long reg0 asm ("0") = AP_MKQID(0,0); register unsigned long reg1 asm ("1") = -ENODEV; register unsigned long reg2 asm ("2") = 0UL; asm volatile( " .long 0xb2af0000\n" /* PQAP(TAPQ) */ "0: la %1,0\n" "1:\n" EX_TABLE(0b, 1b) : "+d"...
6,225
112,467
0
HTMLCanvasElement* Document::getCSSCanvasElement(const String& name) { RefPtr<HTMLCanvasElement>& element = m_cssCanvasElements.add(name, 0).iterator->value; if (!element) element = HTMLCanvasElement::create(this); return element.get(); }
6,226
134,006
0
void ExtensionAppItem::ExecuteLaunchCommand(int event_flags) { Launch(event_flags); }
6,227
113,063
0
const GURL& DownloadItemImpl::GetURL() const { return url_chain_.empty() ? GURL::EmptyGURL() : url_chain_.back(); }
6,228
80,304
0
GF_Err padb_Write(GF_Box *s, GF_BitStream *bs) { u32 i; GF_Err e; GF_PaddingBitsBox *ptr = (GF_PaddingBitsBox *) s; e = gf_isom_full_box_write(s, bs); if (e) return e; gf_bs_write_int(bs, ptr->SampleCount, 32); for (i=0 ; i<ptr->SampleCount; i += 2) { gf_bs_write_int(bs, 0, 1); if (i+1 < ptr->SampleCount) ...
6,229
150,316
0
void PasswordAutofillAgent::LogPrefilledUsernameFillOutcome( PrefilledUsernameFillOutcome outcome) { if (prefilled_username_metrics_logged_) return; prefilled_username_metrics_logged_ = true; UMA_HISTOGRAM_ENUMERATION("PasswordManager.PrefilledUsernameFillOutcome", outcome); }
6,230
88,241
0
XML_UseParserAsHandlerArg(XML_Parser parser) { if (parser != NULL) parser->m_handlerArg = parser; }
6,231
103,059
0
explicit TabStripDummyDelegate(TabContentsWrapper* dummy) : dummy_contents_(dummy), can_close_(true), run_unload_(false) {}
6,232
169,814
0
exsltFuncResultComp (xsltStylesheetPtr style, xmlNodePtr inst, xsltTransformFunction function) { xmlNodePtr test; xmlChar *sel; exsltFuncResultPreComp *ret; if ((style == NULL) || (inst == NULL) || (inst->type != XML_ELEMENT_NODE)) return (NULL); /* * "Validity" checking *...
6,233
70,999
0
cmsBool Type_LUT16_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems) { cmsUInt32Number nTabSize; cmsPipeline* NewLUT = (cmsPipeline*) Ptr; cmsStage* mpe; _cmsStageToneCurvesData* PreMPE = NULL, *PostMPE = NULL; _cmsStageMatrixData* MatMPE = NULL; _...
6,234
122,441
0
void HTMLTextAreaElement::parseAttribute(const QualifiedName& name, const AtomicString& value) { if (name == rowsAttr) { int rows = value.toInt(); if (rows <= 0) rows = defaultRows; if (m_rows != rows) { m_rows = rows; if (renderer()) rende...
6,235
102,537
0
virtual void RunCallback() { callback_->Run(error_code(), base::PassPlatformFile(&file_handle_), file_path_); delete callback_; }
6,236
137,464
0
bool MessageLoop::SweepDelayedWorkQueueAndReturnTrueIfStillHasWork() { while (!delayed_work_queue_.empty()) { const PendingTask& pending_task = delayed_work_queue_.top(); if (!pending_task.task.IsCancelled()) return true; #if defined(OS_WIN) DecrementHighResTaskCountIfNeeded(pending_task); #endif ...
6,237
163,242
0
const std::vector<GURL>& redirected_navigation_urls() const { return redirected_navigation_urls_; }
6,238
156,368
0
bool DebuggerAttachFunction::RunAsync() { std::unique_ptr<Attach::Params> params(Attach::Params::Create(*args_)); EXTENSION_FUNCTION_VALIDATE(params.get()); CopyDebuggee(&debuggee_, params->target); if (!InitAgentHost()) return false; if (!DevToolsAgentHost::IsSupportedProtocolVersion( params-...
6,239
20,090
0
receive_packet (struct net_device *dev) { struct netdev_private *np = netdev_priv(dev); int entry = np->cur_rx % RX_RING_SIZE; int cnt = 30; /* If RFDDone, FrameStart and FrameEnd set, there is a new packet in. */ while (1) { struct netdev_desc *desc = &np->rx_ring[entry]; int pkt_len; u64 frame_status; ...
6,240
166,162
0
void RenderFrameHostImpl::UpdateSubresourceLoaderFactories() { DCHECK(base::FeatureList::IsEnabled(network::features::kNetworkService)); if (!has_committed_any_navigation_) return; DCHECK(!IsOutOfProcessNetworkService() || network_service_connection_error_handler_holder_.is_bound()); network::mojo...
6,241
151,646
0
PaymentRequestSettingsLinkTest() : PaymentRequestBrowserTestBase( "/payment_request_no_shipping_test.html") {}
6,242
165,727
0
bool ConfigureWebsocketOverHttp2( const base::CommandLine& command_line, const VariationParameters& http2_trial_params) { if (command_line.HasSwitch(switches::kEnableWebsocketOverHttp2)) return true; const std::string websocket_value = GetVariationParam(http2_trial_params, "websocket_over_http2")...
6,243
133,659
0
static inline void notifyTargetAboutAnimValChange(SVGElement* targetElement, const QualifiedName& attributeName) { ASSERT_WITH_SECURITY_IMPLICATION(!targetElement->m_deletionHasBegun); targetElement->svgAttributeChanged(attributeName); }
6,244
43,383
0
void CLASS stretch() { ushort newdim, (*img)[4], *pix0, *pix1; int row, col, c; double rc, frac; if (pixel_aspect == 1) return; dcraw_message (DCRAW_VERBOSE,_("Stretching the image...\n")); if (pixel_aspect < 1) { newdim = height / pixel_aspect + 0.5; img = (ushort (*)[4]) calloc (width*newdim, siz...
6,245
55,509
0
static void cpu_cgroup_fork(struct task_struct *task) { sched_move_task(task); }
6,246
11,240
0
zval *php_snmp_read_property(zval *object, zval *member, int type, void **cache_slot, zval *rv) { zval tmp_member; zval *retval; php_snmp_object *obj; php_snmp_prop_handler *hnd; int ret; obj = Z_SNMP_P(object); if (Z_TYPE_P(member) != IS_STRING) { ZVAL_COPY(&tmp_member, member); convert_to_string(&tmp_mem...
6,247
12,923
0
int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) { return (remaining >= (int)sizeof(struct nlmsghdr) && nlh->nlmsg_len >= sizeof(struct nlmsghdr) && nlh->nlmsg_len <= remaining); }
6,248
159,779
0
PermissionsBubbleDialogDelegateView::PermissionsBubbleDialogDelegateView( PermissionPromptImpl* owner, const std::vector<PermissionRequest*>& requests) : owner_(owner), persist_checkbox_(nullptr) { DCHECK(!requests.empty()); set_close_on_deactivate(false); set_arrow(kPermissionAnchorArrow); #if defi...
6,249
22,966
0
struct nfs_seqid *nfs_alloc_seqid(struct nfs_seqid_counter *counter) { struct nfs_seqid *new; new = kmalloc(sizeof(*new), GFP_KERNEL); if (new != NULL) { new->sequence = counter; INIT_LIST_HEAD(&new->list); } return new; }
6,250
91,309
0
static int panic_event(struct notifier_block *this, unsigned long event, void *ptr) { struct ipmi_smi *intf; struct ipmi_user *user; if (has_panicked) return NOTIFY_DONE; has_panicked = 1; /* For every registered interface, set it to run to completion. */ list_for_ea...
6,251
141,874
0
void AutofillPopupBaseView::OnGestureEvent(ui::GestureEvent* event) { switch (event->type()) { case ui::ET_GESTURE_TAP_DOWN: case ui::ET_GESTURE_SCROLL_BEGIN: case ui::ET_GESTURE_SCROLL_UPDATE: if (HitTestPoint(event->location())) SetSelection(event->location()); else ClearSele...
6,252
81,824
0
static INLINE void IncrementX963KdfCounter(byte* inOutCtr) { int i; /* in network byte order so start at end and work back */ for (i = 3; i >= 0; i--) { if (++inOutCtr[i]) /* we're done unless we overflow */ return; } }
6,253
179,239
1
static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg) { struct crypto_report_cipher rcipher; snprintf(rcipher.type, CRYPTO_MAX_ALG_NAME, "%s", "cipher"); rcipher.blocksize = alg->cra_blocksize; rcipher.min_keysize = alg->cra_cipher.cia_min_keysize; rcipher.max_keysize = alg->cra_cipher.cia_max...
6,254
104,609
0
ExtensionResource Extension::GetIconResource( int size, ExtensionIconSet::MatchType match_type) const { std::string path = icons().Get(size, match_type); if (path.empty()) return ExtensionResource(); return GetResource(path); }
6,255
165,881
0
RenderWidgetFullscreenPepper* RenderFrameImpl::CreatePepperFullscreenContainer( PepperPluginInstanceImpl* plugin) { blink::WebURL main_frame_url; WebFrame* main_frame = render_view()->webview()->MainFrame(); if (main_frame->IsWebLocalFrame()) main_frame_url = main_frame->ToWebLocalFrame()->GetDocument().U...
6,256
47,424
0
static inline struct aes_ctx *aes_ctx(struct crypto_tfm *tfm) { return aes_ctx_common(crypto_tfm_ctx(tfm)); }
6,257
68,008
0
static MagickBooleanType DecodeImage(const unsigned char *compressed_pixels, const size_t length,unsigned char *pixels,size_t extent) { register const unsigned char *p; register unsigned char *q; ssize_t count; unsigned char byte; (void) LogMagickEvent(TraceEvent,GetMagickModule(),"...")...
6,258
160,258
0
ServiceWorkerLazyBackgroundTest() : ServiceWorkerTest( version_info::Channel::UNKNOWN) {}
6,259
188,398
1
unsigned long long Chapters::Atom::GetUID() const { return m_uid; }
6,260
185,933
1
void V8Window::namedPropertyGetterCustom(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { if (!name->IsString()) return; auto nameString = name.As<v8::String>(); LocalDOMWindow* window = toLocalDOMWindow(V8Window::toImpl(info.Holder())); if (!window) return; ...
6,261
47,847
0
static int snd_pcm_update_hw_ptr0(struct snd_pcm_substream *substream, unsigned int in_interrupt) { struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_uframes_t pos; snd_pcm_uframes_t old_hw_ptr, new_hw_ptr, hw_base; snd_pcm_sframes_t hdelta, delta; unsigned long jdelta; unsigned long curr_jiffie...
6,262
50,066
0
static SECStatus CanFalseStartCallback(PRFileDesc *sock, void *client_data, PRBool *canFalseStart) { struct connectdata *conn = client_data; struct Curl_easy *data = conn->data; SSLChannelInfo channelInfo; SSLCipherSuiteInfo cipherInfo; SECStatus rv; PRBool negotiate...
6,263
176,586
0
xmlFatalErrMsgStr(xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *msg, const xmlChar * val) { if ((ctxt != NULL) && (ctxt->disableSAX != 0) && (ctxt->instate == XML_PARSER_EOF)) return; if (ctxt != NULL) ctxt->errNo = error; __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_...
6,264
116,969
0
void IndexedDBDispatcher::RequestIDBObjectStoreDelete( const IndexedDBKey& key, WebIDBCallbacks* callbacks_ptr, int32 idb_object_store_id, const WebIDBTransaction& transaction, WebExceptionCode* ec) { ResetCursorPrefetchCaches(); scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr); int32 res...
6,265
116,668
0
WebExternalPopupMenu* RenderViewImpl::createExternalPopupMenu( const WebPopupMenuInfo& popup_menu_info, WebExternalPopupMenuClient* popup_menu_client) { DCHECK(!external_popup_menu_.get()); external_popup_menu_.reset( new ExternalPopupMenu(this, popup_menu_info, popup_menu_client)); return external_...
6,266
80,275
0
GF_Err mvex_Write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_MovieExtendsBox *ptr = (GF_MovieExtendsBox *) s; if (!s) return GF_BAD_PARAM; e = gf_isom_box_write_header(s, bs); if (e) return e; if (ptr->mehd) { e = gf_isom_box_write((GF_Box *)ptr->mehd, bs); if (e) return e; } e = gf_isom_box_array_write(s,...
6,267
61,013
0
can_delete_without_confirm (GFile *file) { if (g_file_has_uri_scheme (file, "burn") || g_file_has_uri_scheme (file, "recent") || g_file_has_uri_scheme (file, "x-nautilus-desktop")) { return TRUE; } return FALSE; }
6,268
181,645
1
jp2_box_t *jp2_box_get(jas_stream_t *in) { jp2_box_t *box; jp2_boxinfo_t *boxinfo; jas_stream_t *tmpstream; uint_fast32_t len; uint_fast64_t extlen; bool dataflag; box = 0; tmpstream = 0; if (!(box = jas_malloc(sizeof(jp2_box_t)))) { goto error; } box->ops = &jp2_boxinfo_unk.ops; if (jp2_getuint32(in, &len) || jp2_ge...
6,269
123,025
0
bool RenderWidgetHostImpl::PaintBackingStoreRect( TransportDIB::Id bitmap, const gfx::Rect& bitmap_rect, const std::vector<gfx::Rect>& copy_rects, const gfx::Size& view_size, float scale_factor, const base::Closure& completion_callback) { if (!view_) return false; if (is_hidden_) { ...
6,270
183,160
1
ext4_xattr_block_get(struct inode *inode, int name_index, const char *name, void *buffer, size_t buffer_size) { struct buffer_head *bh = NULL; struct ext4_xattr_entry *entry; size_t size; int error; struct mb_cache *ext4_mb_cache = EXT4_GET_MB_CACHE(inode); ea_idebug(inode, "name=%d.%s, buffer=%p, buffer_size=%ld", n...
6,271
134,562
0
RenderWidgetHostViewAura* ToRenderWidgetHostViewAura( RenderWidgetHostView* view) { if (!view || RenderViewHostFactory::has_factory()) return NULL; // Can't cast to RenderWidgetHostViewAura in unit tests. RenderProcessHostImpl* process = static_cast<RenderProcessHostImpl*>( view->GetRenderWidgetHost(...
6,272
145,293
0
bool ObjectBackedNativeHandler::GetPrivate(v8::Local<v8::Object> obj, const char* key, v8::Local<v8::Value>* result) { return GetPrivate(context_->v8_context(), obj, key, result); }
6,273
41,052
0
static int authenticate_and_decrypt_nss_2_0 ( struct crypto_instance *instance, unsigned char *buf, int *buf_len) { if (hash_to_nss[instance->crypto_hash_type]) { unsigned char tmp_hash[hash_len[instance->crypto_hash_type]]; unsigned char *hash = buf; unsigned char *data = hash + hash_len[instance->crypto_has...
6,274
164,731
0
void TestClearSectionWithNodeContainingSelectOne(const char* html, bool unowned) { LoadHTML(html); WebLocalFrame* web_frame = GetMainFrame(); ASSERT_NE(nullptr, web_frame); FormCache form_cache(web_frame); std::vector<FormData> forms = form_cache...
6,275
164,892
0
std::string DownloadResourceHandler::DebugString() const { const ResourceRequestInfoImpl* info = GetRequestInfo(); return base::StringPrintf("{" " url_ = " "\"%s\"" " info = {" " child_id = " "%d" " reque...
6,276
14,510
0
static inline int padr_bcast(PCNetState *s, const uint8_t *buf, int size) { static const uint8_t BCAST[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; struct qemu_ether_header *hdr = (void *)buf; int result = !CSR_DRCVBC(s) && !memcmp(hdr->ether_dhost, BCAST, 6); #ifdef PCNET_DEBUG_MATCH printf("padr_bcast...
6,277
109,127
0
void RenderViewImpl::focusedNodeChanged(const WebNode& node) { Send(new ViewHostMsg_FocusedNodeChanged(routing_id_, IsEditableNode(node))); FOR_EACH_OBSERVER(RenderViewObserver, observers_, FocusedNodeChanged(node)); }
6,278
78,625
0
piv_check_protected_objects(sc_card_t *card) { int r = 0; int i; piv_private_data_t * priv = PIV_DATA(card); u8 buf[8]; /* tag of 53 with 82 xx xx will fit in 4 */ u8 * rbuf; size_t buf_len; static int protected_objects[] = {PIV_OBJ_PI, PIV_OBJ_CHF, PIV_OBJ_IRIS_IMAGE}; LOG_FUNC_CALLED(card->ctx); /* * rou...
6,279
23,335
0
static int decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) { return decode_opaque_fixed(xdr, stateid->data, NFS4_STATEID_SIZE); }
6,280
136,855
0
String HTMLInputElement::AltText() const { String alt = FastGetAttribute(altAttr); if (alt.IsNull()) alt = FastGetAttribute(titleAttr); if (alt.IsNull()) alt = FastGetAttribute(valueAttr); if (alt.IsNull()) alt = GetLocale().QueryString(WebLocalizedString::kInputElementAltText); return alt; }
6,281
53,222
0
static int proc_disconnectsignal_compat(struct usb_dev_state *ps, void __user *arg) { struct usbdevfs_disconnectsignal32 ds; if (copy_from_user(&ds, arg, sizeof(ds))) return -EFAULT; ps->discsignr = ds.signr; ps->disccontext = compat_ptr(ds.context); return 0; }
6,282
100,780
0
void HttpResponseHeaders::AddHopContentRangeHeaders(HeaderSet* result) { result->insert("content-range"); }
6,283
122,763
0
void BrowserPluginGuest::Resize( RenderViewHost* embedder_rvh, const BrowserPluginHostMsg_ResizeGuest_Params& params) { RenderWidgetHostImpl* render_widget_host = RenderWidgetHostImpl::From(web_contents()->GetRenderViewHost()); render_widget_host->ResetSizeAndRepaintPendingFlags(); if (!TransportDIB...
6,284
89,602
0
_gcry_cipher_gcm_authenticate (gcry_cipher_hd_t c, const byte * aadbuf, size_t aadbuflen) { static const unsigned char zerobuf[MAX_BLOCKSIZE]; if (c->spec->blocksize != GCRY_GCM_BLOCK_LEN) return GPG_ERR_CIPHER_ALGO; if (c->u_mode.gcm.datalen_over_limits) return GPG_ERR_INV...
6,285
50,311
0
static int v9fs_set_acl(struct p9_fid *fid, int type, struct posix_acl *acl) { int retval; char *name; size_t size; void *buffer; if (!acl) return 0; /* Set a setxattr request to server */ size = posix_acl_xattr_size(acl->a_count); buffer = kmalloc(size, GFP_KERNEL); if (!buffer) return -ENOMEM; retval =...
6,286
3,562
0
static int ldb_match_scope(struct ldb_context *ldb, struct ldb_dn *base, struct ldb_dn *dn, enum ldb_scope scope) { int ret = 0; if (base == NULL || dn == NULL) { return 1; } switch (scope) { case LDB_SCOPE_BASE: if (ldb_dn_compare(base, dn) == 0) { ret = 1; } break; case LDB_SCOPE...
6,287
77,657
0
ofputil_protocol_from_ofp_version(enum ofp_version version) { return rightmost_1bit(ofputil_protocols_from_ofp_version(version)); }
6,288
55,925
0
int tty_init_termios(struct tty_struct *tty) { struct ktermios *tp; int idx = tty->index; if (tty->driver->flags & TTY_DRIVER_RESET_TERMIOS) tty->termios = tty->driver->init_termios; else { /* Check for lazy saved data */ tp = tty->driver->termios[idx]; if (tp != NULL) tty->termios = *tp; else tty-...
6,289
186,881
1
BaseRenderingContext2D::BaseRenderingContext2D() : clip_antialiasing_(kNotAntiAliased) { state_stack_.push_back(CanvasRenderingContext2DState::Create()); }
6,290
182,328
1
static enum AVPixelFormat h263_get_format(AVCodecContext *avctx) { /* MPEG-4 Studio Profile only, not supported by hardware */ if (avctx->bits_per_raw_sample > 8) { av_assert1(avctx->profile == FF_PROFILE_MPEG4_SIMPLE_STUDIO); return avctx->pix_fmt; } if (avctx->codec->id == AV_CODEC_ID_MSS2) return AV_PIX_FMT...
6,291
41,260
0
static void scsi_disk_reset(DeviceState *dev) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev.qdev, dev); uint64_t nb_sectors; scsi_device_purge_requests(&s->qdev, SENSE_CODE(RESET)); bdrv_get_geometry(s->bs, &nb_sectors); nb_sectors /= s->cluster_size; if (nb_sectors) { nb_sectors-...
6,292
111,212
0
IntPoint WebPagePrivate::mapFromTransformedContentsToTransformedViewport(const IntPoint& point) const { return m_backingStoreClient->mapFromTransformedContentsToTransformedViewport(point); }
6,293
109,170
0
WebKit::WebUserMediaClient* RenderViewImpl::userMediaClient() { EnsureMediaStreamImpl(); return media_stream_impl_; }
6,294
60,752
0
ModuleExport size_t RegisterYUVImage(void) { MagickInfo *entry; entry=AcquireMagickInfo("YUV","YUV","CCIR 601 4:1:1 or 4:2:2"); entry->decoder=(DecodeImageHandler *) ReadYUVImage; entry->encoder=(EncodeImageHandler *) WriteYUVImage; entry->flags^=CoderAdjoinFlag; entry->flags|=CoderRawSupportFlag; (v...
6,295
155,150
0
void OmniboxViewViews::OnPaint(gfx::Canvas* canvas) { if (latency_histogram_state_ == CHAR_TYPED) { DCHECK(!insert_char_time_.is_null()); UMA_HISTOGRAM_TIMES("Omnibox.CharTypedToRepaintLatency.ToPaint", base::TimeTicks::Now() - insert_char_time_); latency_histogram_state_ = ON_PAIN...
6,296
18,585
0
void ext4_ext_truncate(struct inode *inode) { struct address_space *mapping = inode->i_mapping; struct super_block *sb = inode->i_sb; ext4_lblk_t last_block; handle_t *handle; loff_t page_len; int err = 0; /* * finish any pending end_io work so we won't run the risk of * converting any truncated blocks to i...
6,297
55,677
0
static inline void ttwu_activate(struct rq *rq, struct task_struct *p, int en_flags) { activate_task(rq, p, en_flags); p->on_rq = TASK_ON_RQ_QUEUED; /* if a worker is waking up, notify workqueue */ if (p->flags & PF_WQ_WORKER) wq_worker_waking_up(p, cpu_of(rq)); }
6,298
176,601
0
xmlParseAttValueComplex(xmlParserCtxtPtr ctxt, int *attlen, int normalize) { xmlChar limit = 0; xmlChar *buf = NULL; xmlChar *rep = NULL; size_t len = 0; size_t buf_size = 0; int c, l, in_space = 0; xmlChar *current = NULL; xmlEntityPtr ent; if (NXT(0) == '"') { ctxt->instate = XML_PARSER_ATTR...
6,299