unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
74,233
0
write_stats(void) { FILE *fp; #ifdef DOSYNCTODR struct timeval tv; #if !defined(VMS) int prio_set; #endif #ifdef HAVE_GETCLOCK struct timespec ts; #endif int o_prio; /* * Sometimes having a Sun can be a drag. * * The kernel variable dosynctodr controls whether the system's * soft clock is kept in sync wi...
11,400
87,432
0
static void LodePNGIText_init(LodePNGInfo* info) { info->itext_num = 0; info->itext_keys = NULL; info->itext_langtags = NULL; info->itext_transkeys = NULL; info->itext_strings = NULL; }
11,401
82,761
0
INST_HANDLER (sleep) { // SLEEP ESIL_A ("BREAK"); }
11,402
24,255
0
is_xioctl_allowed(u8 mode, int cmd) { if(sizeof(xioctl_filter)-1 < cmd) { A_PRINTF("Filter for this cmd=%d not defined\n",cmd); return 0; } if(xioctl_filter[cmd] == 0xFF) return 0; if(xioctl_filter[cmd] & mode) return 0; return A_ERROR; }
11,403
27,043
0
g_NPN_GetStringIdentifier(const NPUTF8 *name) { if (!thread_check()) { npw_printf("WARNING: NPN_GetStringIdentifier not called from the main thread\n"); return NULL; } if (name == NULL) return NULL; D(bugiI("NPN_GetStringIdentifier name='%s'\n", name)); NPIdentifier ret = cached_NPN_GetStringIdentifier(n...
11,404
140,396
0
void TypingCommand::forwardDeleteKeyPressed(TextGranularity granularity, bool killRing, EditingState* editingState) { LocalFrame* frame = document().frame(); if (!frame) return; frame->spellChecker().updateMarkersForWords...
11,405
39,686
0
force_reval_path(struct path *path, struct nameidata *nd) { int status; struct dentry *dentry = path->dentry; /* * only check on filesystems where it's possible for the dentry to * become stale. It's assumed that if this flag is set then the * d_revalidate op will also be defined. */ if (!(dentry->d_sb->s_...
11,406
17,799
0
static int init_screen(ScreenPtr pScreen, int i, Bool gpu) { int scanlinepad, format, depth, bitsPerPixel, j, k; dixInitScreenSpecificPrivates(pScreen); if (!dixAllocatePrivates(&pScreen->devPrivates, PRIVATE_SCREEN)) { return -1; } pScreen->myNum = i; if (gpu) { pScreen->myNum...
11,407
65,988
0
static struct svc_xprt *svc_rdma_bc_create(struct svc_serv *serv, struct net *net, struct sockaddr *sa, int salen, int flags) { struct svcxprt_rdma *cma_xprt; struct svc_xprt *xprt; cma_xprt = rdma_create_xprt(serv, 0); if (!cma_xprt) return ERR_PTR(-ENOMEM); xprt = &cma_xprt->sc_xprt; ...
11,408
49,499
0
static const struct hid_device_id *hid_match_device(struct hid_device *hdev, struct hid_driver *hdrv) { struct hid_dynid *dynid; spin_lock(&hdrv->dyn_lock); list_for_each_entry(dynid, &hdrv->dyn_list, list) { if (hid_match_one_id(hdev, &dynid->id)) { spin_unlock(&hdrv->dyn_lock); return &dynid->id; } }...
11,409
163,533
0
void PushMessagingServiceImpl::UnsubscribeInternal( content::mojom::PushUnregistrationReason reason, const GURL& origin, int64_t service_worker_registration_id, const std::string& app_id, const std::string& sender_id, const UnregisterCallback& callback) { DCHECK(!app_id.empty() || (!origin.is_...
11,410
43,472
0
static void aesni_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) { glue_xts_crypt_128bit_one(ctx, dst, src, iv, GLUE_FUNC_CAST(aesni_enc)); }
11,411
41,284
0
static int __init comedi_init(void) { int i; int retval; printk(KERN_INFO "comedi: version " COMEDI_RELEASE " - http://www.comedi.org\n"); if (comedi_num_legacy_minors < 0 || comedi_num_legacy_minors > COMEDI_NUM_BOARD_MINORS) { printk(KERN_ERR "comedi: error: invalid value for module " "p...
11,412
113,645
0
JSRetainPtr<JSStringRef> AccessibilityUIElement::url() { return JSStringCreateWithCharacters(0, 0); }
11,413
159,186
0
DownloadItemImpl::RequestInfo::RequestInfo( const std::vector<GURL>& url_chain, const GURL& referrer_url, const GURL& site_url, const GURL& tab_url, const GURL& tab_referrer_url, const std::string& suggested_filename, const base::FilePath& forced_file_path, ui::PageTransition transition_...
11,414
112,220
0
QuotaThreadTask::QuotaThreadTask( QuotaTaskObserver* observer, TaskRunner* target_task_runner) : QuotaTask(observer), target_task_runner_(target_task_runner) { }
11,415
33,986
0
static void netbk_fatal_tx_err(struct xenvif *vif) { netdev_err(vif->dev, "fatal error; disabling device\n"); xenvif_carrier_off(vif); xenvif_put(vif); }
11,416
91,826
0
inline void comps_rtree_pair_destroy_v(void * pair) { free(((COMPS_RTreePair *)pair)->key); free(pair); }
11,417
43,264
0
int CLASS foveon_apply_curve (short *curve, int i) { if (abs(i) >= curve[0]) return 0; return i < 0 ? -curve[1-i] : curve[1+i]; }
11,418
129,059
0
void AttachedClientHosts::Add(ExtensionDevToolsClientHost* client_host) { client_hosts_.insert(client_host); }
11,419
34,026
0
void xenvif_get(struct xenvif *vif) { atomic_inc(&vif->refcnt); }
11,420
133,090
0
void HWNDMessageHandler::GetWindowPlacement( gfx::Rect* bounds, ui::WindowShowState* show_state) const { WINDOWPLACEMENT wp; wp.length = sizeof(wp); const bool succeeded = !!::GetWindowPlacement(hwnd(), &wp); DCHECK(succeeded); if (bounds != NULL) { if (wp.showCmd == SW_SHOWNORMAL) { const ...
11,421
11,084
0
static void smbd_sig_hup_handler(struct tevent_context *ev, struct tevent_signal *se, int signum, int count, void *siginfo, void *private_data) { change_to_root_user(); DEBUG(1,("Reloading services after SIGHUP\n")); reload_services(False); }
11,422
171,659
0
static size_t out_get_buffer_size(const struct audio_stream *stream) { struct a2dp_stream_out *out = (struct a2dp_stream_out *)stream; DEBUG("buffer_size : %zu", out->common.buffer_sz); return out->common.buffer_sz; }
11,423
10,717
0
TT_DotFix14_long_long( FT_Int32 ax, FT_Int32 ay, FT_Int bx, FT_Int by ) { /* Temporarily disable the warning that C90 doesn't support */ /* `long long'. */ long long temp1 = (...
11,424
168,130
0
int MakeFrontendID(const std::string& cc_sid, const std::string& profile_sid) const { return autofill_manager_->MakeFrontendID(cc_sid, profile_sid); }
11,425
144,080
0
png_set_iCCP(png_structp png_ptr, png_infop info_ptr, png_charp name, int compression_type, png_charp profile, png_uint_32 proflen) { png_charp new_iccp_name; png_charp new_iccp_profile; png_uint_32 length; png_debug1(1, "in %s storage function", "iCCP"); if (png_ptr == NULL |...
11,426
129,705
0
ResourcePtr<RawResource> ResourceFetcher::fetchMainResource(FetchRequest& request, const SubstituteData& substituteData) { if (substituteData.isValid()) preCacheSubstituteDataForMainResource(request, substituteData); return toRawResource(requestResource(Resource::MainResource, request)); }
11,427
187,023
1
ProcessIdToFilterMap* GetProcessIdToFilterMap() { static base::NoDestructor<ProcessIdToFilterMap> instance; return instance.get(); }
11,428
19,858
0
static int nfs41_proc_reclaim_complete(struct nfs_client *clp) { struct nfs4_reclaim_complete_data *calldata; struct rpc_task *task; struct rpc_message msg = { .rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_RECLAIM_COMPLETE], }; struct rpc_task_setup task_setup_data = { .rpc_client = clp->cl_rpcclient, .rpc_mess...
11,429
3,790
0
_dbus_get_autolaunch_shm (DBusString *address, DBusString *shm_name) { HANDLE sharedMem; char *shared_addr; int i; for(i=0;i<20;++i) { sharedMem = OpenFileMappingA( FILE_MAP_READ, FALSE, _dbus_string_get_const_data(shm_name)); if( sharedMem == 0 ) Sleep( 100 ); if ( sharedMem != 0) ...
11,430
183,964
1
virtual void SetImePropertyActivated(const std::string& key, bool activated) { if (!initialized_successfully_) return; DCHECK(!key.empty()); chromeos::SetImePropertyActivated( input_method_status_connection_, key.c_str(), activated); }
11,431
72,866
0
static int jpc_ppt_dumpparms(jpc_ms_t *ms, FILE *out) { jpc_ppt_t *ppt = &ms->parms.ppt; fprintf(out, "ind=%d; len = %"PRIuFAST32";\n", ppt->ind, ppt->len); if (ppt->len > 0) { fprintf(out, "data =\n"); jas_memdump(out, ppt->data, ppt->len); } return 0; }
11,432
1,968
0
SPICE_GNUC_VISIBLE int spice_server_migrate_info(SpiceServer *s, const char* dest, int port, int secure_port, const char* cert_subject) { spice_info(NULL); spice_assert(!migration_interface); spice_assert(reds == s); if...
11,433
37,741
0
static inline void clr_exception_intercept(struct vcpu_svm *svm, int bit) { struct vmcb *vmcb = get_host_vmcb(svm); vmcb->control.intercept_exceptions &= ~(1U << bit); recalc_intercepts(svm); }
11,434
183,268
1
static void copy_asoundrc(void) { // copy XAUTHORITY_FILE in the new home directory char *src = RUN_ASOUNDRC_FILE ; char *dest; if (asprintf(&dest, "%s/.asoundrc", cfg.homedir) == -1) errExit("asprintf"); // if destination is a symbolic link, exit the sandbox!!! if (is_link(dest)) { fprintf(stderr, "Error: %s is a symb...
11,435
136,843
0
void LocalDOMWindow::setStatus(const String& string) { status_ = string; }
11,436
42,187
0
static int sane_signal_32_frame(unsigned int sp) { struct signal_frame_32 __user *sf; unsigned int regs; sf = (struct signal_frame_32 __user *) (unsigned long) sp; if (read_user_stack_32((unsigned int __user *) &sf->sctx.regs, &regs)) return 0; return regs == (unsigned long) &sf->mctx; }
11,437
180,842
1
static const ut8 *r_bin_dwarf_parse_comp_unit(Sdb *s, const ut8 *obuf, RBinDwarfCompUnit *cu, const RBinDwarfDebugAbbrev *da, size_t offset, const ut8 *debug_str, size_t debug_str_len) { const ut8 *buf = obuf, *buf_end = obuf + (cu->hdr.length - 7); ut64 abbr_code; size_t i; if (cu->hdr.length > debug_str_len) { //avo...
11,438
159,358
0
MetricsPrivateDelegate* ChromeExtensionsAPIClient::GetMetricsPrivateDelegate() { if (!metrics_private_delegate_) metrics_private_delegate_.reset(new ChromeMetricsPrivateDelegate()); return metrics_private_delegate_.get(); }
11,439
116,503
0
bool SendCommandDebuggerFunction::RunImpl() { if (!InitClientHost()) return false; std::string method; EXTENSION_FUNCTION_VALIDATE(args_->GetString(1, &method)); Value *params; if (!args_->Get(2, &params)) params = NULL; client_host_->SendMessageToBackend(this, method, params); return true; }
11,440
42,282
0
static int sg_proc_open_debug(struct inode *inode, struct file *file) { return seq_open(file, &debug_seq_ops); }
11,441
170,620
0
void Reverb_getConfig(ReverbContext *pContext, effect_config_t *pConfig) { *pConfig = pContext->config; } /* end Reverb_getConfig */
11,442
161,823
0
void PlatformSensorProviderWin::StopSensorThread() { if (sensor_thread_ && sensor_thread_->IsRunning()) sensor_thread_->Stop(); }
11,443
140,919
0
bool PresentationConnection::matches(const String& id, const KURL& url) const { return m_url == url && m_id == id; }
11,444
180,983
1
static Image *ReadJNGImage(const ImageInfo *image_info,ExceptionInfo *exception) { Image *image; MagickBooleanType logging, status; MngInfo *mng_info; char magic_number[MaxTextExtent]; size_t count; /* Open image file. */ assert(image_info != (const ImageInfo *) NULL); ...
11,445
21,686
0
static inline void init_timeout(struct aio_timeout *to) { setup_timer_on_stack(&to->timer, timeout_func, (unsigned long) to); to->timed_out = 0; to->p = current; }
11,446
45,609
0
static void chainiv_free(struct crypto_instance *inst) { skcipher_geniv_free(inst); crypto_put_default_rng(); }
11,447
77,964
0
ModuleExport size_t RegisterCALSImage(void) { #define CALSDescription "Continuous Acquisition and Life-cycle Support Type 1" #define CALSNote "Specified in MIL-R-28002 and MIL-PRF-28002" MagickInfo *entry; entry=AcquireMagickInfo("CALS","CAL",CALSDescription); entry->decoder=(DecodeImageHandler *) ReadCAL...
11,448
26,377
0
static unsigned long get_sample_period(void) { /* * convert watchdog_thresh from seconds to ns * the divide by 5 is to give hrtimer 5 chances to * increment before the hardlockup detector generates * a warning */ return get_softlockup_thresh() * (NSEC_PER_SEC / 5); }
11,449
47,418
0
static int zlib_decompress_setup(struct crypto_pcomp *tfm, void *params, unsigned int len) { struct zlib_ctx *ctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); struct z_stream_s *stream = &ctx->decomp_stream; struct nlattr *tb[ZLIB_DECOMP_MAX + 1]; int ret = 0; ret = nla_parse(tb, ZLIB_DECOMP_MAX, params, len, NU...
11,450
34,378
0
static void fill_inode_item(struct btrfs_trans_handle *trans, struct extent_buffer *leaf, struct btrfs_inode_item *item, struct inode *inode) { btrfs_set_inode_uid(leaf, item, i_uid_read(inode)); btrfs_set_inode_gid(leaf, item, i_gid_read(inode)); btrfs_set_inode_size(leaf, item, BTRFS_I(inode)-...
11,451
119,369
0
void RenderThreadImpl::AddEmbeddedWorkerRoute(int32 routing_id, IPC::Listener* listener) { AddRoute(routing_id, listener); if (devtools_agent_message_filter_.get()) { devtools_agent_message_filter_->AddEmbeddedWorkerRouteOnMainThread( routing_id); } }
11,452
151,366
0
InspectorStyleInvalidatorInvalidateEvent::SelectorPart( Element& element, const char* reason, const InvalidationSet& invalidation_set, const String& selector_part) { std::unique_ptr<TracedValue> value = FillCommonPart(element, reason); value->BeginArray("invalidationList"); invalidation_set.ToTrac...
11,453
102,376
0
void AppendFormattedComponent(const std::string& spec, const url_parse::Component& original_component, const std::vector<size_t>& original_offsets, const AppendComponentTransform& transform, string16*...
11,454
26,323
0
void sched_destroy_group(struct task_group *tg) { unsigned long flags; int i; /* end participation in shares distribution */ for_each_possible_cpu(i) unregister_fair_sched_group(tg, i); spin_lock_irqsave(&task_group_lock, flags); list_del_rcu(&tg->list); list_del_rcu(&tg->siblings); spin_unlock_irqrestore(&...
11,455
122,469
0
void InspectorController::didCommitLoadForMainFrame() { Vector<InspectorAgent*> agents = m_moduleAgents; for (size_t i = 0; i < agents.size(); i++) agents[i]->didCommitLoadForMainFrame(); }
11,456
175,031
0
sp<MediaSource> MPEG4Extractor::getTrack(size_t index) { status_t err; if ((err = readMetaData()) != OK) { return NULL; } Track *track = mFirstTrack; while (index > 0) { if (track == NULL) { return NULL; } track = track->next; --index; } if (track == NULL) { return NULL; } ALOGV("getTrack ...
11,457
150,890
0
BluetoothAdapter::~BluetoothAdapter() { if (set_powered_callbacks_) set_powered_callbacks_->error_callback.Run(); }
11,458
188,183
1
static jboolean enableNative(JNIEnv* env, jobject obj) { ALOGV("%s:",__FUNCTION__); jboolean result = JNI_FALSE; if (!sBluetoothInterface) return result; int ret = sBluetoothInterface->enable(); result = (ret == BT_STATUS_SUCCESS || ret == BT_STATUS_DONE) ? JNI_TRUE : JNI_FALSE; return result; }
11,459
36,515
0
int snd_card_file_add(struct snd_card *card, struct file *file) { struct snd_monitor_file *mfile; mfile = kmalloc(sizeof(*mfile), GFP_KERNEL); if (mfile == NULL) return -ENOMEM; mfile->file = file; mfile->disconnected_f_op = NULL; INIT_LIST_HEAD(&mfile->shutdown_list); spin_lock(&card->files_lock); if (card-...
11,460
53,312
0
static int handle_exception(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); struct kvm_run *kvm_run = vcpu->run; u32 intr_info, ex_no, error_code; unsigned long cr2, rip, dr6; u32 vect_info; enum emulation_result er; vect_info = vmx->idt_vectoring_info; intr_info = vmx->exit_intr_info; if (is_m...
11,461
111,736
0
void EditorClientBlackBerry::willSetInputMethodState() { notImplemented(); }
11,462
74,256
0
struct pathnames *add_subdir(struct pathnames *paths, struct pathname *path) { if(paths->count % PATHS_ALLOC_SIZE == 0) { paths = realloc(paths, sizeof(struct pathnames *) + (paths->count + PATHS_ALLOC_SIZE) * sizeof(struct pathname *)); if(paths == NULL) EXIT_UNSQUASH("Out of memory in add_subdir\n"); }...
11,463
166,795
0
BackingVisitor(ThreadState* state, std::vector<void*>* objects) : Visitor(state), objects_(objects) {}
11,464
9,322
0
static void handle_s_without_atn(ESPState *s) { uint8_t buf[32]; int len; if (s->dma && !s->dma_enabled) { s->dma_cb = handle_s_without_atn; return; } len = get_cmd(s, buf, sizeof(buf)); if (len) { do_busid_cmd(s, buf, 0); } }
11,465
165,684
0
bool ProcessNeedsProfileDir(const std::string& process_type) { return ProcessNeedsProfileDir(GetProcessType(UTF8ToUTF16(process_type))); }
11,466
136,051
0
const Extension* ExtensionWebContentsObserver::GetExtensionFromFrame( content::RenderFrameHost* render_frame_host) const { return ExtensionRegistry::Get( render_frame_host->GetProcess()->GetBrowserContext()) ->enabled_extensions() .GetByID(GetExtensionIdFromFrame(render_frame_host)); }
11,467
146,432
0
WebGLTexture* WebGLRenderingContextBase::ValidateTextureBinding( const char* function_name, GLenum target) { WebGLTexture* tex = nullptr; switch (target) { case GL_TEXTURE_2D: tex = texture_units_[active_texture_unit_].texture2d_binding_.Get(); break; case GL_TEXTURE_CUBE_MAP: tex ...
11,468
134,805
0
int TouchEventConverterEvdev::GetTouchPoints() const { return touch_points_; }
11,469
104,257
0
RTCSessionDescriptionRequestImpl::~RTCSessionDescriptionRequestImpl() { }
11,470
59,807
0
static void hid_irq_out(struct urb *urb) { struct hid_device *hid = urb->context; struct usbhid_device *usbhid = hid->driver_data; unsigned long flags; int unplug = 0; switch (urb->status) { case 0: /* success */ break; case -ESHUTDOWN: /* unplug */ unplug = 1; case -EILSEQ: /* protocol error or unplug ...
11,471
104,916
0
PP_Bool Paint(PP_Resource resource, const PP_Rect* rect, PP_Resource image_id) { scoped_refptr<PPB_Widget_Impl> widget( Resource::GetAs<PPB_Widget_Impl>(resource)); if (!widget) return PP_FALSE; scoped_refptr<PPB_ImageData_Impl> image( Resource::GetAs<PPB_ImageData_Imp...
11,472
39,298
0
int security_sid_to_context_force(u32 sid, char **scontext, u32 *scontext_len) { return security_sid_to_context_core(sid, scontext, scontext_len, 1); }
11,473
41,755
0
static int addrconf_dad_end(struct inet6_ifaddr *ifp) { int err = -ENOENT; spin_lock_bh(&ifp->state_lock); if (ifp->state == INET6_IFADDR_STATE_DAD) { ifp->state = INET6_IFADDR_STATE_POSTDAD; err = 0; } spin_unlock_bh(&ifp->state_lock); return err; }
11,474
38,360
0
static int cm_dreq_handler(struct cm_work *work) { struct cm_id_private *cm_id_priv; struct cm_dreq_msg *dreq_msg; struct ib_mad_send_buf *msg = NULL; int ret; dreq_msg = (struct cm_dreq_msg *)work->mad_recv_wc->recv_buf.mad; cm_id_priv = cm_acquire_id(dreq_msg->remote_comm_id, dreq_msg->local_comm_id); ...
11,475
114,921
0
void TestingAutomationProvider::GetInitialLoadTimes( Browser*, DictionaryValue*, IPC::Message* reply_message) { scoped_ptr<DictionaryValue> return_value( initial_load_observer_->GetTimingInformation()); std::string json_return; base::JSONWriter::Write(return_value.get(), false, &json_return); ...
11,476
28,770
0
int kvm_hv_vapic_msr_read(struct kvm_vcpu *vcpu, u32 reg, u64 *data) { struct kvm_lapic *apic = vcpu->arch.apic; u32 low, high = 0; if (!kvm_vcpu_has_lapic(vcpu)) return 1; if (apic_reg_read(apic, reg, 4, &low)) return 1; if (reg == APIC_ICR) apic_reg_read(apic, APIC_ICR2, 4, &high); *data = (((u64)high)...
11,477
154,319
0
void GLES2DecoderImpl::OnOutOfMemoryError() { if (lose_context_when_out_of_memory_ && !WasContextLost()) { error::ContextLostReason other = error::kOutOfMemory; if (CheckResetStatus()) { other = error::kUnknown; } else { MarkContextLost(error::kOutOfMemory); } group_->LoseContexts(othe...
11,478
147,062
0
int WebLocalFrameImpl::SelectNearestFindMatch(const WebFloatPoint& point, WebRect* selection_rect) { return EnsureTextFinder().SelectNearestFindMatch(point, selection_rect); }
11,479
66,497
0
static void free_skb_pool(rtl8150_t *dev) { int i; for (i = 0; i < RX_SKB_POOL_SIZE; i++) if (dev->rx_skb_pool[i]) dev_kfree_skb(dev->rx_skb_pool[i]); }
11,480
12,969
0
ssh_packet_not_very_much_data_to_write(struct ssh *ssh) { if (ssh->state->interactive_mode) return sshbuf_len(ssh->state->output) < 16384; else return sshbuf_len(ssh->state->output) < 128 * 1024; }
11,481
34,236
0
static void ip_vs_trash_cleanup(struct net *net) { struct ip_vs_dest *dest, *nxt; struct netns_ipvs *ipvs = net_ipvs(net); list_for_each_entry_safe(dest, nxt, &ipvs->dest_trash, n_list) { list_del(&dest->n_list); ip_vs_dst_reset(dest); __ip_vs_unbind_svc(dest); free_percpu(dest->stats.cpustats); kfree(des...
11,482
123,595
0
void InspectorPageAgent::applyEmulatedMedia(String* media) { String emulatedMedia = m_state->getString(PageAgentState::pageAgentEmulatedMedia); if (!emulatedMedia.isEmpty()) *media = emulatedMedia; }
11,483
69,836
0
cell_queue_append(cell_queue_t *queue, packed_cell_t *cell) { if (queue->tail) { tor_assert(!queue->tail->next); queue->tail->next = cell; } else { queue->head = cell; } queue->tail = cell; cell->next = NULL; ++queue->n; }
11,484
80
0
long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) { int ret=0; #if !defined(OPENSSL_NO_DSA) || !defined(OPENSSL_NO_RSA) if ( #ifndef OPENSSL_NO_RSA cmd == SSL_CTRL_SET_TMP_RSA || cmd == SSL_CTRL_SET_TMP_RSA_CB || #endif #ifndef OPENSSL_NO_DSA cmd == SSL_CTRL_SET_TMP_DH || cmd == SSL_CTRL_SE...
11,485
21,991
0
raptor_option_get_option_area_for_domain(raptor_domain domain) { raptor_option_area area = RAPTOR_OPTION_AREA_NONE; if(domain == RAPTOR_DOMAIN_PARSER) area = RAPTOR_OPTION_AREA_PARSER; else if(domain == RAPTOR_DOMAIN_SERIALIZER) area = RAPTOR_OPTION_AREA_SERIALIZER; else if(domain == RAPTOR_DOMAIN_SAX...
11,486
89,138
0
compile_string_raw_node(StrNode* sn, regex_t* reg) { if (sn->end <= sn->s) return 0; return add_compile_string(sn->s, 1 /* sb */, (int )(sn->end - sn->s), reg, 0); }
11,487
172,076
0
static inline int create_server_socket(const char* name) { int s = socket(AF_LOCAL, SOCK_STREAM, 0); if(s < 0) return -1; APPL_TRACE_DEBUG("covert name to android abstract name:%s", name); if(socket_local_server_bind(s, name, ANDROID_SOCKET_NAMESPACE_ABSTRACT) >= 0) { if(listen(s, 5) == 0) { APPL...
11,488
66,889
0
static inline int range_is_allowed(unsigned long pfn, unsigned long size) { u64 from = ((u64)pfn) << PAGE_SHIFT; u64 to = from + size; u64 cursor = from; while (cursor < to) { if (!devmem_is_allowed(pfn)) return 0; cursor += PAGE_SIZE; pfn++; } return 1; }
11,489
80,353
0
GF_Box *rssr_New() { ISOM_DECL_BOX_ALLOC(GF_ReceivedSsrcBox, GF_ISOM_BOX_TYPE_RSSR); return (GF_Box *)tmp; }
11,490
104,663
0
ExtensionManifestTest() : enable_apps_(true) {}
11,491
18,056
0
jbig2_image_clear(Jbig2Ctx *ctx, Jbig2Image *image, int value) { const uint8_t fill = value ? 0xFF : 0x00; memset(image->data, fill, image->stride * image->height); }
11,492
62,793
0
static void MSLStartElement(void *context,const xmlChar *tag, const xmlChar **attributes) { AffineMatrix affine, current; ChannelType channel; ChannelType channel_mask; char *attribute, key[MagickPathExtent], *value; const char *keyword; double angle; DrawInfo ...
11,493
166,400
0
bool GLES2Util::IsFloatFormat(uint32_t internal_format) { switch (internal_format) { case GL_R16F: case GL_R32F: case GL_RG16F: case GL_RG32F: case GL_R11F_G11F_B10F: case GL_RGB16F: case GL_RGB32F: case GL_RGBA16F: case GL_RGBA32F: return true; default: return fals...
11,494
65,858
0
nfssvc_decode_fhandle(struct svc_rqst *rqstp, __be32 *p, struct nfsd_fhandle *args) { p = decode_fh(p, &args->fh); if (!p) return 0; return xdr_argsize_check(rqstp, p); }
11,495
9,593
0
static PHP_FUNCTION(session_write_close) { php_session_flush(TSRMLS_C); }
11,496
87,983
0
static void pcd_request(void) { struct pcd_unit *cd; if (pcd_busy) return; if (!pcd_req && !set_next_request()) return; cd = pcd_req->rq_disk->private_data; if (cd != pcd_current) pcd_bufblk = -1; pcd_current = cd; pcd_sector = blk_rq_pos(pcd_req); pcd_count = blk_rq_cur_sectors(pcd_req); pcd_buf = bi...
11,497
28,104
0
static inline void avg_tpel_pixels_mc21_c(uint8_t *dst, const uint8_t *src, int stride, int width, int height){ int i,j; for (i=0; i < height; i++) { for (j=0; j < width; j++) { dst[j] = (dst[j] + ((2731*(3*src[j] + 4*src[j+1] + 2*src[j+stride] + 3*src[j+stride+1] + 6)) >> 15) + 1) >> 1; } ...
11,498
12,717
0
int ssl_cert_type(const X509 *x, const EVP_PKEY *pk) { if (pk == NULL && (pk = X509_get0_pubkey(x)) == NULL) return -1; switch (EVP_PKEY_id(pk)) { default: return -1; case EVP_PKEY_RSA: return SSL_PKEY_RSA_ENC; case EVP_PKEY_DSA: return SSL_PKEY_DSA_SIGN; #ifndef OPE...
11,499