unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
57,188
0
int nfs4_proc_fs_locations(struct rpc_clnt *client, struct inode *dir, const struct qstr *name, struct nfs4_fs_locations *fs_locations, struct page *page) { struct nfs4_exception exception = { }; int err; do { err = _nfs4_proc_fs_locations(client, dir, name, fs_locations, page); trace_nfs4_...
18,700
107,368
0
gfx::Rect FindBarController::GetLocationForFindbarView( gfx::Rect view_location, const gfx::Rect& dialog_bounds, const gfx::Rect& avoid_overlapping_rect) { if (base::i18n::IsRTL()) { int boundary = dialog_bounds.width() - view_location.width(); view_location.set_x(std::min(view_location.x(), bound...
18,701
97,502
0
bool FrameLoader::shouldReloadToHandleUnreachableURL(DocumentLoader* docLoader) { KURL unreachableURL = docLoader->unreachableURL(); if (unreachableURL.isEmpty()) return false; if (!isBackForwardLoadType(policyChecker()->loadType())) return false; DocumentLoader* compareDocumentLoader...
18,702
64,316
0
static const char *set_serverpath(cmd_parms *cmd, void *dummy, const char *arg) { const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE); if (err != NULL) { return err; } cmd->server->path = arg; cmd->server->pathlen = (int)strlen(arg); retur...
18,703
122,366
0
bool HTMLInputElement::setupDateTimeChooserParameters(DateTimeChooserParameters& parameters) { if (!document().view()) return false; parameters.type = type(); parameters.minimum = minimum(); parameters.maximum = maximum(); parameters.required = isRequired(); if (!RuntimeEnabledFeatures:...
18,704
131,786
0
static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfaceEmptyMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); TestObjectPython* imp = V8TestObjectPytho...
18,705
171,213
0
status_t MediaPlayerService::Client::setRetransmitEndpoint( const struct sockaddr_in* endpoint) { if (NULL != endpoint) { uint32_t a = ntohl(endpoint->sin_addr.s_addr); uint16_t p = ntohs(endpoint->sin_port); ALOGV("[%d] setRetransmitEndpoint(%u.%u.%u.%u:%hu)", mConnId, (a >> 24), (a >> 16) & 0xFF, (a >> ...
18,706
144,972
0
void RenderWidgetHostViewAura::SetBackgroundColor(SkColor color) { UpdateBackgroundColorFromRenderer(color); DCHECK(SkColorGetA(color) == SK_AlphaOPAQUE || SkColorGetA(color) == SK_AlphaTRANSPARENT); host_->SetBackgroundOpaque(SkColorGetA(color) == SK_AlphaOPAQUE); }
18,707
88,197
0
XML_MemMalloc(XML_Parser parser, size_t size) { if (parser == NULL) return NULL; return MALLOC(parser, size); }
18,708
144,991
0
bool RenderWidgetHostViewAura::TransformPointToLocalCoordSpace( const gfx::Point& point, const cc::SurfaceId& original_surface, gfx::Point* transformed_point) { gfx::Point point_in_pixels = gfx::ConvertPointToPixel(device_scale_factor_, point); if (delegated_frame_host_ && !delegated_frame_h...
18,709
113,084
0
void DownloadItemImpl::OffThreadCancel(DownloadFileManager* file_manager) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); request_handle_->CancelRequest(); BrowserThread::PostTask( BrowserThread::FILE, FROM_HERE, base::Bind(&DownloadFileManager::CancelDownload, file_manager,...
18,710
75,392
0
static int opfdivr(RAsm *a, ut8 *data, const Opcode *op) { int l = 0; switch (op->operands_count) { case 1: if ( op->operands[0].type & OT_MEMORY ) { if ( op->operands[0].type & OT_DWORD ) { data[l++] = 0xd8; data[l++] = 0x38 | op->operands[0].regs[0]; } else if ( op->operands[0].type & OT_QWORD ) { ...
18,711
31,572
0
sctp_disposition_t sctp_sf_cookie_echoed_prm_shutdown( struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) { /* There is a single T1 timer, so we should be able to use * common function with the COOKIE-WAIT state. ...
18,712
130,348
0
void HTMLFormControlElement::dispatchBlurEvent(Element* newFocusedElement, WebFocusType type, InputDeviceCapabilities* sourceCapabilities) { if (type != WebFocusTypePage) m_wasFocusedByMouse = false; HTMLElement::dispatchBlurEvent(newFocusedElement, type, sourceCapabilities); hideVisibleValidationMe...
18,713
99,159
0
void InlineFlowBox::placeBoxesInBlockDirection(int top, int maxHeight, int maxAscent, bool strictMode, int& lineTop, int& lineBottom, bool& setLineTop, int& lineTopIncludingMargins, int& lineBottomIncludingMargins, bool& hasAnnotationsBefore, bool& hasAnnotationsAfter, Fon...
18,714
154,394
0
static void WriteAlphaData(void* pixels, uint32_t row_count, uint32_t channel_count, uint32_t alpha_channel_index, uint32_t unpadded_row_size, uint32_t padded_row_size, ...
18,715
47,481
0
static void add_session_id(struct cryp_ctx *ctx) { /* * We never want 0 to be a valid value, since this is the default value * for the software context. */ if (unlikely(atomic_inc_and_test(&session_id))) atomic_inc(&session_id); ctx->session_id = atomic_read(&session_id); }
18,716
103,445
0
ExtensionIdSet ExtensionService::GetAppIds() const { ExtensionIdSet result; for (ExtensionList::const_iterator it = extensions_.begin(); it != extensions_.end(); ++it) { if ((*it)->is_app() && (*it)->location() != Extension::COMPONENT) result.insert((*it)->id()); } return result; }
18,717
101,527
0
bool PrintMsg_Print_Params_IsEqual( const PrintMsg_PrintPages_Params& oldParams, const PrintMsg_PrintPages_Params& newParams) { return PageLayoutIsEqual(oldParams, newParams) && oldParams.params.max_shrink == newParams.params.max_shrink && oldParams.params.min_shrink == newParams.params.min_...
18,718
24,408
0
struct ctl_table_header *__sysctl_head_next(struct nsproxy *namespaces, struct ctl_table_header *prev) { struct ctl_table_root *root; struct list_head *header_list; struct ctl_table_header *head; struct list_head *tmp; spin_lock(&sysctl_lock); if (prev) { head = prev; tmp = &prev->ctl_entry; unuse...
18,719
84,600
0
begin_table(int border, int spacing, int padding, int vspace) { struct table *t; int mincell = minimum_cellspacing(border); int rcellspacing; int mincell_pixels = round(mincell * pixel_per_char); int ppc = round(pixel_per_char); t = newTable(); t->row = t->col = -1; t->maxcol = -1; ...
18,720
95,580
0
void Con_MessageMode_f( void ) { chat_playerNum = -1; chat_team = qfalse; Field_Clear( &chatField ); chatField.widthInChars = 30; Key_SetCatcher( Key_GetCatcher( ) ^ KEYCATCH_MESSAGE ); }
18,721
102,805
0
double ExecutableAllocator::memoryPressureMultiplier(size_t addedMemoryUsage) { MetaAllocator::Statistics statistics = allocator->currentStatistics(); ASSERT(statistics.bytesAllocated <= statistics.bytesReserved); size_t bytesAllocated = statistics.bytesAllocated + addedMemoryUsage; if (bytesAllocated >...
18,722
145,428
0
void OnDataReceivedFromPeer(const char* data, size_t data_len) { DCHECK(delegate_); delegate_->OnPacketDataReceived(data, data_len); }
18,723
21,896
0
void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode) { drm_mode_object_put(dev, &mode->base); kfree(mode); }
18,724
133,047
0
void RenderWidgetHostViewAura::UnlockResources() { DCHECK(frame_provider_); delegated_frame_evictor_->UnlockFrame(); }
18,725
167,435
0
void SVGStyleElement::DispatchPendingEvent() { DispatchEvent(Event::Create(EventTypeNames::error)); }
18,726
183,595
1
void WebPluginDelegateImpl::SendJavaScriptStream(const GURL& url, const std::string& result, bool success, bool notify_needed, intptr_t notify_data) { instance()->SendJavaScriptStream(url, result, success, notify_needed,...
18,727
4,006
0
void FileOutStream::printf(const char *format, ...) { va_list argptr; va_start (argptr, format); vfprintf(f, format, argptr); va_end (argptr); }
18,728
61,898
0
static unsigned int readuint(FILE * f, int bigendian) { unsigned char c1, c2, c3, c4; if (!fread(&c1, 1, 1, f)) { fprintf(stderr, "\nError: fread return a number of element different from the expected.\n"); return 0; } if (!fread(&c2, 1, 1, f)) { fprintf(stderr, ...
18,729
187,842
1
const CuePoint* Cues::GetLast() const { if (m_cue_points == NULL) return NULL; if (m_count <= 0) return NULL; #if 0 LoadCuePoint(); //init cues const size_t count = m_count + m_preload_count; if (count == 0) //weird return NULL; const size_t index = count - 1; CuePoint* const* con...
18,730
78,186
0
authentic_get_challenge(struct sc_card *card, unsigned char *rnd, size_t len) { /* 'GET CHALLENGE' returns always 24 bytes */ unsigned char rbuf[0x18]; size_t out_len; int r; LOG_FUNC_CALLED(card->ctx); r = iso_ops->get_challenge(card, rbuf, sizeof rbuf); LOG_TEST_RET(card->ctx, r, "GET CHALLENGE cmd failed");...
18,731
106,075
0
void JSTestObjConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject) { Base::finishCreation(exec->globalData()); ASSERT(inherits(&s_info)); putDirect(exec->globalData(), exec->propertyNames().prototype, JSTestObjPrototype::self(exec, globalObject), DontDelete | ReadOnly); putDirec...
18,732
184,672
1
string16 ExtensionGlobalError::GenerateMessageSection( const ExtensionIdSet* extensions, int template_message_id) { CHECK(extensions); CHECK(template_message_id); string16 message; for (ExtensionIdSet::const_iterator iter = extensions->begin(); iter != extensions->end(); ++iter) { const Extension* e = extension_servic...
18,733
187,866
1
long AudioTrack::Parse(Segment* pSegment, const Info& info, long long element_start, long long element_size, AudioTrack*& pResult) { if (pResult) return -1; if (info.type != Track::kAudio) return -1; IMkvReader* const pReader = pSegment->m_pReader; const Settings& s = info.settings; assert(s.start >= 0); assert(s.si...
18,734
78,816
0
static int sc_pkcs15emu_sc_hsm_read_tokeninfo (sc_pkcs15_card_t * p15card) { sc_card_t *card = p15card->card; int r; u8 efbin[512]; size_t len; LOG_FUNC_CALLED(card->ctx); /* Read token info */ len = sizeof efbin; r = read_file(p15card, (u8 *) "\x2F\x03", efbin, &len, 1); LOG_TEST_RET(card->ctx, r, "Skipping...
18,735
51,995
0
SpoolssStartPagePrinter_r(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { /* Parse packet */ offset = dissect_doserror( tvb, offset, pinfo, tree, di, drep, hf_rc, NULL); return offset; }
18,736
3,094
0
static int iccalternatespace(i_ctx_t * i_ctx_p, ref *space, ref **r, int *CIESubst) { int components, code = 0; ref *tempref, ICCdict; if (!r_is_array(space)) return_error(gs_error_typecheck); /* Validate parameters, check we have enough operands */ if (r_size(space) != 2) return_er...
18,737
165,714
0
void FileReaderLoader::OnComplete(int32_t status, uint64_t data_length) { DEFINE_THREAD_SAFE_STATIC_LOCAL(SparseHistogram, file_reader_loader_read_errors_histogram, ("Storage.Blob.FileReaderLoader.ReadError")); if (status != net::OK) { net_erro...
18,738
154,288
0
error::Error GLES2DecoderImpl::HandleTexSubImage2D( uint32_t immediate_data_size, const volatile void* cmd_data) { const char* func_name = "glTexSubImage2D"; const volatile gles2::cmds::TexSubImage2D& c = *static_cast<const volatile gles2::cmds::TexSubImage2D*>(cmd_data); TRACE_EVENT2("gpu", "GLES2Decod...
18,739
135,723
0
void InputMethodController::Clear() { has_composition_ = false; if (composition_range_) { composition_range_->setStart(&GetDocument(), 0); composition_range_->collapse(true); } GetDocument().Markers().RemoveMarkersOfTypes(DocumentMarker::kComposition); }
18,740
154,417
0
base::WeakPtr<DecoderContext> GLES2DecoderPassthroughImpl::AsWeakPtr() { return weak_ptr_factory_.GetWeakPtr(); }
18,741
50,389
0
posix_acl_valid(struct user_namespace *user_ns, const struct posix_acl *acl) { const struct posix_acl_entry *pa, *pe; int state = ACL_USER_OBJ; int needs_mask = 0; FOREACH_ACL_ENTRY(pa, acl, pe) { if (pa->e_perm & ~(ACL_READ|ACL_WRITE|ACL_EXECUTE)) return -EINVAL; switch (pa->e_tag) { case ACL_USER_OBJ: ...
18,742
3,119
0
static int rgbbasecolor(i_ctx_t * i_ctx_p, ref *space, int base, int *stage, int *cont, int *stack_depth) { os_ptr op = osp; float RGB[3], CMYK[4], Gray, UCR, BG; int i; const gs_color_space * pcs = gs_currentcolorspace(igs); if (pcs->id == cs_DeviceGray_id) { /* UGLY hack. Its possible fo...
18,743
120,907
0
explicit FactoryForExtensions(const ProfileIOData* profile_io_data) : profile_io_data_(profile_io_data) {}
18,744
67,305
0
struct dentry *d_hash_and_lookup(struct dentry *dir, struct qstr *name) { /* * Check for a fs-specific hash function. Note that we must * calculate the standard hash first, as the d_op->d_hash() * routine may choose to leave the hash value unchanged. */ name->hash = full_name_hash(dir, name->name, name->len);...
18,745
6,493
0
struct timeval *dtls1_get_timeout(SSL *s, struct timeval *timeleft) { struct timeval timenow; /* If no timeout is set, just return NULL */ if (s->d1->next_timeout.tv_sec == 0 && s->d1->next_timeout.tv_usec == 0) { return NULL; } /* Get current time */ get_current_time(&timenow); /...
18,746
151,932
0
void RenderFrameHostImpl::EnterBackForwardCache() { DCHECK(IsBackForwardCacheEnabled()); DCHECK(!is_in_back_forward_cache_); is_in_back_forward_cache_ = true; for (auto& child : children_) child->current_frame_host()->EnterBackForwardCache(); }
18,747
132,680
0
void BlinkTestRunner::SetGeofencingMockProvider(bool service_available) { content::SetGeofencingMockProvider(service_available); }
18,748
121,844
0
ImageLoader::~ImageLoader() { if (m_image) m_image->removeClient(this); ASSERT(m_hasPendingBeforeLoadEvent || !beforeLoadEventSender().hasPendingEvents(this)); if (m_hasPendingBeforeLoadEvent) beforeLoadEventSender().cancelEvent(this); ASSERT(m_hasPendingLoadEvent || !loadEventSender()...
18,749
95,188
0
static void cmd_xmeid(const char *tag, const char *id) { mboxevent_set_client_id(id); prot_printf(imapd_out, "%s OK %s\r\n", tag, error_message(IMAP_OK_COMPLETED)); }
18,750
123,380
0
void RenderWidgetHostViewGuest::InitAsChild( gfx::NativeView parent_view) { NOTIMPLEMENTED(); }
18,751
133,260
0
void set_name(const char* name) { name_ = name; }
18,752
65,240
0
check_gss_callback_principal(struct nfs_client *clp, struct svc_rqst *rqstp) { char *p = rqstp->rq_cred.cr_principal; if (rqstp->rq_authop->flavour != RPC_AUTH_GSS) return 1; /* No RPC_AUTH_GSS on NFSv4.1 back channel yet */ if (clp->cl_minorversion != 0) return 0; /* * It might just be a normal user princ...
18,753
154,694
0
error::Error GLES2DecoderPassthroughImpl::DoGetProgramInfoLog( GLuint program, std::string* infolog) { CheckErrorCallbackState(); GLint info_log_len = 0; api()->glGetProgramivFn(GetProgramServiceID(program, resources_), GL_INFO_LOG_LENGTH, &info_log_len); if (CheckErrorCallbac...
18,754
50,851
0
isofile_free_all_entries(struct iso9660 *iso9660) { struct isofile *file, *file_next; file = iso9660->all_file_list.first; while (file != NULL) { file_next = file->allnext; isofile_free(file); file = file_next; } }
18,755
8,377
0
static void mptsas_process_scsi_task_mgmt(MPTSASState *s, MPIMsgSCSITaskMgmt *req) { MPIMsgSCSITaskMgmtReply reply; MPIMsgSCSITaskMgmtReply *reply_async; int status, count; SCSIDevice *sdev; SCSIRequest *r, *next; BusChild *kid; mptsas_fix_scsi_task_mgmt_endianness(req); QEMU_BUILD_BUG...
18,756
184,298
1
NaClProcessHost::NaClProcessHost(const GURL& manifest_url, bool off_the_record) : manifest_url_(manifest_url), #if defined(OS_WIN) process_launched_by_broker_(false), #elif defined(OS_LINUX) wait_for_nacl_gdb_(false), #endif reply_msg_(NULL), #if defined(OS_WIN) debug_exception_handler_requested_(false), #endif interna...
18,757
155,177
0
void OmniboxViewViews::Update() { if (model()->ResetDisplayTexts()) { RevertAll(); if (model()->has_focus()) { SelectAllForUserGesture(); } } else { EmphasizeURLComponents(); } }
18,758
130,446
0
ThreadWatcher::~ThreadWatcher() {}
18,759
148,795
0
void InterstitialPageImpl::OnDomOperationResponse( RenderFrameHostImpl* source, const std::string& json_string) { std::string json = json_string; NotificationService::current()->Notify(NOTIFICATION_DOM_OPERATION_RESPONSE, Source<WebContents>(web_contents()), ...
18,760
46,805
0
static bool __init sparc64_has_sha256_opcode(void) { unsigned long cfr; if (!(sparc64_elf_hwcap & HWCAP_SPARC_CRYPTO)) return false; __asm__ __volatile__("rd %%asr26, %0" : "=r" (cfr)); if (!(cfr & CFR_SHA256)) return false; return true; }
18,761
119,673
0
static bool shouldAddBorderPaddingMargin(RenderObject* child, bool &checkSide) { if (!child || (child->isText() && !toRenderText(child)->textLength())) return true; checkSide = false; return checkSide; }
18,762
154,408
0
scoped_refptr<TextureRef> texture_ref() { return texture_ref_; }
18,763
91,038
0
void CWebServer::GetJSonPage(WebEmSession & session, const request& req, reply & rep) { Json::Value root; root["status"] = "ERR"; std::string rtype = request::findValue(&req, "type"); if (rtype == "command") { std::string cparam = request::findValue(&req, "param"); if (cparam.empty()) { ...
18,764
19,040
0
static void tcp_v4_reqsk_destructor(struct request_sock *req) { kfree(inet_rsk(req)->opt); }
18,765
156,506
0
SQLiteDatabase::SQLiteDatabase() : db_(nullptr), page_size_(-1), transaction_in_progress_(false), opening_thread_(0), open_error_(SQLITE_ERROR), open_error_message_(), last_changes_count_(0) { }
18,766
83,362
0
static int ssl_parse_server_hello( mbedtls_ssl_context *ssl ) { int ret, i; size_t n; size_t ext_len; unsigned char *buf, *ext; unsigned char comp; #if defined(MBEDTLS_ZLIB_SUPPORT) int accept_comp; #endif #if defined(MBEDTLS_SSL_RENEGOTIATION) int renegotiation_info_seen = 0; #endif int...
18,767
20,600
0
int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) { return -EINVAL; }
18,768
72,839
0
static void jpc_com_destroyparms(jpc_ms_t *ms) { jpc_com_t *com = &ms->parms.com; if (com->data) { jas_free(com->data); } }
18,769
175,043
0
status_t MPEG4Extractor::readMetaData() { if (mInitCheck != NO_INIT) { return mInitCheck; } off64_t offset = 0; status_t err; while (true) { err = parseChunk(&offset, 0); if (err == OK) { continue; } uint32_t hdr[2]; if (mDataSource->readAt(offset, hdr, 8) < 8) { break; } uint32_t chunk_type = n...
18,770
22,205
0
static int rose_info_show(struct seq_file *seq, void *v) { char buf[11], rsbuf[11]; if (v == SEQ_START_TOKEN) seq_puts(seq, "dest_addr dest_call src_addr src_call dev lci neigh st vs vr va t t1 t2 t3 hb idle Snd-Q Rcv-Q inode\n"); else { struct sock *s = sk_entry(v); struct rose_sock *rose...
18,771
93,219
0
finish_input_ppm(j_compress_ptr cinfo, cjpeg_source_ptr sinfo) { /* no work */ }
18,772
115,845
0
void NavigationController::LoadEntry(NavigationEntry* entry) { ChildProcessSecurityPolicy *policy = ChildProcessSecurityPolicy::GetInstance(); if (policy->IsDisabledScheme(entry->url().scheme()) || policy->IsDisabledScheme(entry->virtual_url().scheme())) { VLOG(1) << "URL not loaded because the sche...
18,773
81,684
0
get_response(struct mg_connection *conn, char *ebuf, size_t ebuf_len, int *err) { const char *cl; if (!get_message(conn, ebuf, ebuf_len, err)) { return 0; } if (parse_http_response(conn->buf, conn->buf_size, &conn->response_info) <= 0) { mg_snprintf(conn, NULL, /* No truncation check for ebu...
18,774
114,153
0
int TestOpenFile(std::wstring path, bool for_write) { wchar_t path_expanded[MAX_PATH + 1] = {0}; DWORD size = ::ExpandEnvironmentStrings(path.c_str(), path_expanded, MAX_PATH); if (!size) return sandbox::SBOX_TEST_FAILED_TO_EXECUTE_COMMAND; HANDLE file; file = ::...
18,775
147,909
0
static void TestInterfaceEmptyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Local<v8::Object> holder = info.Holder(); TestObject* impl = V8TestObject::ToImpl(holder); V8SetReturnValueFast(info, WTF::GetPtr(impl->testInterfaceEmptyAttribute()), impl); }
18,776
175,150
0
void NuPlayer::GenericSource::cancelPollBuffering() { ++mPollBufferingGeneration; }
18,777
145,975
0
void ResizeDesktop(int width_delta) { gfx::Size size = display::Screen::GetScreen() ->GetDisplayNearestWindow(Shell::GetPrimaryRootWindow()) .size(); size.Enlarge(0, width_delta); UpdateDisplay(size.ToString()); }
18,778
81,522
0
void tracing_snapshot_alloc(void) { /* Give warning */ tracing_snapshot(); }
18,779
154,625
0
error::Error GLES2DecoderPassthroughImpl::DoDeleteTextures( GLsizei n, const volatile GLuint* textures) { if (n < 0) { InsertError(GL_INVALID_VALUE, "n cannot be negative."); return error::kNoError; } std::vector<GLuint> non_mailbox_client_ids; for (GLsizei ii = 0; ii < n; ++ii) { GLuint cl...
18,780
27,542
0
static struct inotify_inode_mark *inotify_idr_find_locked(struct fsnotify_group *group, int wd) { struct idr *idr = &group->inotify_data.idr; spinlock_t *idr_lock = &group->inotify_data.idr_lock; struct inotify_inode_mark *i_mark; assert_spin_locked(idr_lock); i_mark = idr_find(idr, wd); if (i_mark) { ...
18,781
12,822
0
void *ASN1_item_d2i_bio(const ASN1_ITEM *it, BIO *in, void *x) { BUF_MEM *b = NULL; const unsigned char *p; void *ret = NULL; int len; len = asn1_d2i_read_bio(in, &b); if (len < 0) goto err; p = (const unsigned char *)b->data; ret = ASN1_item_d2i(x, &p, len, it); err: BUF_...
18,782
12,763
0
int ssl3_accept(SSL *s) { BUF_MEM *buf; unsigned long alg_k, Time = (unsigned long)time(NULL); void (*cb) (const SSL *ssl, int type, int val) = NULL; int ret = -1; int new_state, state, skip = 0; RAND_add(&Time, sizeof(Time), 0); ERR_clear_error(); clear_sys_error(); if (s->info_ca...
18,783
149,520
0
void LoadingDataCollector::RecordResourceLoadComplete( const NavigationID& navigation_id, const content::mojom::ResourceLoadInfo& resource_load_info) { auto nav_it = inflight_navigations_.find(navigation_id); if (nav_it == inflight_navigations_.end()) return; if (!ShouldRecordResourceLoad(navigation_...
18,784
84,524
0
numTab(int n) { TabBuffer *tab; int i; if (n == 0) return CurrentTab; if (n == 1) return FirstTab; if (nTab <= 1) return NULL; for (tab = FirstTab, i = 1; tab && i < n; tab = tab->nextTab, i++) ; return tab; }
18,785
174,193
0
status_t Camera3Device::addDummyStreamLocked() { ATRACE_CALL(); status_t res; if (mDummyStreamId != NO_STREAM) { SET_ERR_L("%s: Camera %d: A dummy stream already exists!", __FUNCTION__, mId); return INVALID_OPERATION; } ALOGV("%s: Camera %d: Adding a dummy stream", __FUNCTION__, mI...
18,786
171,805
0
bt_status_t btif_hh_execute_service(BOOLEAN b_enable) { if (b_enable) { /* Enable and register with BTA-HH */ BTA_HhEnable(BTUI_HH_SECURITY, bte_hh_evt); } else { /* Disable HH */ BTA_HhDisable(); } return BT_STATUS_SUCCESS; }
18,787
76,217
0
int cdrom_get_media_event(struct cdrom_device_info *cdi, struct media_event_desc *med) { struct packet_command cgc; unsigned char buffer[8]; struct event_header *eh = (struct event_header *)buffer; init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_READ); cgc.cmd[0] = GPCMD_GET_EVENT_STATUS_NOTIFICATI...
18,788
22,159
0
long do_fork(unsigned long clone_flags, unsigned long stack_start, struct pt_regs *regs, unsigned long stack_size, int __user *parent_tidptr, int __user *child_tidptr) { struct task_struct *p; int trace = 0; long nr; /* * We hope to recycle these flags after 2.6.26 */ if (un...
18,789
84,221
0
selRead(const char *fname) { FILE *fp; SEL *sel; PROCNAME("selRead"); if (!fname) return (SEL *)ERROR_PTR("fname not defined", procName, NULL); if ((fp = fopenReadStream(fname)) == NULL) return (SEL *)ERROR_PTR("stream not opened", procName, NULL); if ((sel = selReadStream(fp)) ==...
18,790
178,356
1
static int ne2000_buffer_full(NE2000State *s) { int avail, index, boundary; index = s->curpag << 8; boundary = s->boundary << 8; if (index < boundary) return 1; return 0; }
18,791
166,652
0
ImageBitmap* WebGLRenderingContextBase::TransferToImageBitmapBase( ScriptState* script_state) { WebFeature feature = WebFeature::kOffscreenCanvasTransferToImageBitmapWebGL; UseCounter::Count(ExecutionContext::From(script_state), feature); if (!GetDrawingBuffer()) return nullptr; std::unique_ptr<viz::Sin...
18,792
113,593
0
bool AccessibilityUIElement::isMultiSelectable() const { return checkElementState(m_element, ATK_STATE_MULTISELECTABLE); }
18,793
113,164
0
void set_focus_cycler(internal::FocusCycler* focus_cycler) { focus_cycler_ = focus_cycler; }
18,794
36,183
0
static struct mount *alloc_vfsmnt(const char *name) { struct mount *mnt = kmem_cache_zalloc(mnt_cache, GFP_KERNEL); if (mnt) { int err; err = mnt_alloc_id(mnt); if (err) goto out_free_cache; if (name) { mnt->mnt_devname = kstrdup(name, GFP_KERNEL); if (!mnt->mnt_devname) goto out_free_id; } ...
18,795
57,476
0
static unsigned long blocks_for_truncate(struct inode *inode) { ext4_lblk_t needed; needed = inode->i_blocks >> (inode->i_sb->s_blocksize_bits - 9); /* Give ourselves just enough room to cope with inodes in which * i_blocks is corrupt: we've seen disk corruptions in the past * which resulted in random data in ...
18,796
131,707
0
static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); TestObjectPythonV8Internal::serializedScriptValueMethodMethod(info); TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); }
18,797
187,608
1
write_png(const char **name, FILE *fp, int color_type, int bit_depth, volatile png_fixed_point gamma, chunk_insert * volatile insert, unsigned int filters, unsigned int *colors) { png_structp png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, name, makepng_error, makepng_warning); volatile png_infop info_ptr =...
18,798
50,253
0
void __sock_tx_timestamp(const struct sock *sk, __u8 *tx_flags) { u8 flags = *tx_flags; if (sk->sk_tsflags & SOF_TIMESTAMPING_TX_HARDWARE) flags |= SKBTX_HW_TSTAMP; if (sk->sk_tsflags & SOF_TIMESTAMPING_TX_SOFTWARE) flags |= SKBTX_SW_TSTAMP; if (sk->sk_tsflags & SOF_TIMESTAMPING_TX_SCHED) flags |= SKBTX_SC...
18,799