idx
int64
func
string
target
int64
438,762
push_glob0_caller(const char *path, VALUE val, void *enc) { struct push_glob0_args *arg = (struct push_glob0_args *)val; return ruby_glob0(path, arg->fd, arg->base, arg->flags, arg->funcs, arg->arg, enc); }
0
365,315
rb_str_center(argc, argv, str) int argc; VALUE *argv; VALUE str; { return rb_str_justify(argc, argv, str, 'c'); }
0
303,050
XML_GetIdAttributeIndex(XML_Parser parser) { if (parser == NULL) return -1; return parser->m_idAttIndex; }
0
458,515
skip_non_digits(char *str) { while (!isdigit(*str) && *str != 0) { str++; } return str; }
0
519,111
Field_timestampf(uchar *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg, enum utype unireg_check_arg, const LEX_CSTRING *field_name_arg, TABLE_SHARE *share, uint dec_arg) : Field_timestamp_with_dec(ptr_arg, null_ptr_arg, null_bit_arg, ...
0
275,387
static int zend_parse_va_args(int num_args, const char *type_spec, va_list *va, int flags TSRMLS_DC) /* {{{ */ { const char *spec_walk; int c, i; int min_num_args = -1; int max_num_args = 0; int post_varargs = 0; zval **arg; int arg_count; int quiet = flags & ZEND_PARSE_PARAMS_QUIET; zend_bool have_varargs = ...
0
515,328
smtp_server_connection_send_replies(struct smtp_server_connection *conn) { /* Send more replies until no more replies remain, the output blocks again, or the connection is closed */ while (!conn->disconnected && smtp_server_connection_next_reply(conn)); smtp_server_connection_timeout_update(conn); /* Accept m...
0
363,247
pango_ot_info_list_languages (PangoOTInfo *info, PangoOTTableType table_type, guint script_index, PangoOTTag language_tag G_GNUC_UNUSED) { hb_ot_layout_table_type_t tt = get_hb_table_type (table_type); PangoOTTag *result; unsigned int count, i; count = hb_ot_...
0
378,957
int LZ4IO_setNotificationLevel(int level) { displayLevel = level; return displayLevel; }
0
448,161
static char *mk_str(link_ctx *ctx, size_t end) { if (ctx->i < end) { return apr_pstrndup(ctx->pool, ctx->s + ctx->i, end - ctx->i); } return (char*)""; }
0
311,678
void LazyBackgroundPageNativeHandler::IncrementKeepaliveCount( const v8::FunctionCallbackInfo<v8::Value>& args) { if (context() && ExtensionFrameHelper::IsContextForEventPage(context())) { content::RenderFrame* render_frame = context()->GetRenderFrame(); render_frame->Send(new ExtensionHostMsg_IncrementLa...
0
466,578
TEST_F(HttpConnectionManagerImplTest, 100ContinueResponse) { proxy_100_continue_ = true; setup(false, "envoy-custom-server", false); // Store the basic request encoder during filter chain setup. std::shared_ptr<MockStreamDecoderFilter> filter(new NiceMock<MockStreamDecoderFilter>()); EXPECT_CALL(*filter, de...
0
198,395
GURL SavePackage::GetUrlToBeSaved() { NavigationEntry* active_entry = web_contents()->GetController().GetActiveEntry(); return active_entry->GetURL(); }
0
167,784
void InspectorOverlay::setOverridesTopOffset(int offset)
0
341,462
static int parse_presentation_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size, int64_t pts) { PGSSubContext *ctx = avctx->priv_data; int i, state, ret; const uint8_t *buf_end = buf + buf_size; // Video descriptor...
1
279,544
void GuestViewBase::WillAttach(content::WebContents* embedder_web_contents, int element_instance_id, bool is_full_page_plugin) { if (owner_web_contents_ != embedder_web_contents) { DCHECK_EQ(owner_contents_observer_->web_contents(), owner_web_contents_...
0
298,959
Bool gf_sys_get_battery_state(Bool *onBattery, u32 *onCharge, u32*level, u32 *batteryLifeTime, u32 *batteryFullLifeTime) { #if defined(_WIN32_WCE) SYSTEM_POWER_STATUS_EX sps; GetSystemPowerStatusEx(&sps, 0); if (onBattery) *onBattery = sps.ACLineStatus ? 0 : 1; if (onCharge) *onCharge = (sps.BatteryFlag & BATTERY_F...
0
365,139
connection_dirserv_flushed_some(dir_connection_t *conn) { tor_assert(conn->_base.state == DIR_CONN_STATE_SERVER_WRITING); if (buf_datalen(conn->_base.outbuf) >= DIRSERV_BUFFER_MIN) return 0; switch (conn->dir_spool_src) { case DIR_SPOOL_EXTRA_BY_DIGEST: case DIR_SPOOL_EXTRA_BY_FP: case DIR_SPOOL...
0
304,094
static int instantiate_none(struct lxc_handler *handler, struct lxc_netdev *netdev) { netdev->ifindex = 0; return 0; }
0
391,485
static int snd_usb_capture_open(struct snd_pcm_substream *substream) { return snd_usb_pcm_open(substream, SNDRV_PCM_STREAM_CAPTURE); }
0
420,805
http_open (http_t *r_hd, http_req_t reqtype, const char *url, const char *httphost, const char *auth, unsigned int flags, const char *proxy, http_session_t session, const char *srvtag, strlist_t headers) { gpg_error_t err; http_t hd; *r_hd = NULL; if (!(reqtype == HTTP_REQ_GET...
0
124,290
void MirrorJob::Statistics::Reset() { tot_files=new_files=mod_files=del_files= tot_symlinks=new_symlinks=mod_symlinks=del_symlinks= dirs=del_dirs=0; }
0
156,886
gboolean mono_verifier_is_method_full_trust (MonoMethod *method) { /* The verifier was disabled at compile time */ return TRUE;
0
438,169
long long Segment::CreateInstance(IMkvReader* pReader, long long pos, Segment*& pSegment) { if (pReader == NULL || pos < 0) return E_PARSE_FAILED; pSegment = NULL; long long total, available; const long status = pReader->Length(&total, &available); if (status < 0) //...
0
478,112
static CImg<T> identity_matrix(const unsigned int N) { CImg<T> res(N,N,1,1,0); cimg_forX(res,x) res(x,x) = 1; return res; }
0
60,777
CertificateValidationContextSdsRotationApiTest() { envoy::config::core::v3::ConfigSource config_source; sds_api_ = std::make_unique<CertificateValidationContextSdsApi>( config_source, "abc.com", subscription_factory_, time_system_, validation_visitor_, stats_, []() {}, mock_dispatcher_, *api_)...
0
272,398
static void sdma_desc_avail(struct sdma_engine *sde, uint avail) { struct iowait *wait, *nw, *twait; struct iowait *waits[SDMA_WAIT_BATCH_SIZE]; uint i, n = 0, seq, tidx = 0; #ifdef CONFIG_SDMA_VERBOSITY dd_dev_err(sde->dd, "CONFIG SDMA(%u) %s:%d %s()\n", sde->this_idx, slashstrip(__FILE__), __LINE__, __func_...
0
285,955
void Document::setTitle(const String& title) { m_titleSetExplicitly = true; if (!isHTMLDocument() && !isXHTMLDocument()) m_titleElement = 0; else if (!m_titleElement) { if (HTMLElement* headElement = head()) { m_titleElement = createElement(titleTag, false); headEleme...
0
242,994
void AppCacheUpdateJob::FetchMasterEntries() { DCHECK(internal_state_ == NO_UPDATE || internal_state_ == DOWNLOADING); while (master_entry_fetches_.size() < kMaxConcurrentUrlFetches && !master_entries_to_fetch_.empty()) { const GURL& url = *master_entries_to_fetch_.begin(); if (AlreadyFetchedEntr...
0
392,234
void rebuild_check_host(void) { delete_dynamic(&acl_wild_hosts); my_hash_free(&acl_check_hosts); init_check_host(); }
0
121,485
SpoolssReplyOpenPrinter_r(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep _U_) { dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data; e_ctx_hnd policy_hnd; proto_item *hnd_item; guint32 status; /* Parse packet */ offset = dissect_nt_policy...
0
344,880
private int mget(struct magic_set *ms, const unsigned char *s, struct magic *m, size_t nbytes, size_t o, unsigned int cont_level, int mode, int text, int flip, int recursion_level, int *printed_something, int *need_separator, int *returnval) { uint32_t soffset, offset = ms->offset; uint32_t count = m->st...
1
496,535
bool operator() (SFace_handle sf1, SFace_handle sf2) const { CGAL_NEF_TRACEN("sort sfaces"); if(&*sf1 == &*sf2) return false; sort_vertices<T> SORT(*this->sncp()); CGAL_NEF_TRACEN(" vertices " << sf1->center_vertex()->point() << " , " << sf2->center_vertex()->point()); if(sf1->center_vertex() !...
0
84,694
static void sig_chat_protocol_deinit(CHAT_PROTOCOL_REC *proto) { disconnect_servers(servers, proto->id); disconnect_servers(lookup_servers, proto->id); }
0
439,208
Ptr<FileStorageParser> createXMLParser(FileStorage_API* fs) { return makePtr<XMLParser>(fs); }
0
24,307
IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , Navigate_Http ) { StartHttpServer ( ) ; NavigateTwiceInTabAndClose ( http_test_server_ -> GetURL ( "/simple.html" ) , GURL ( chrome : : kChromeUIVersionURL ) ) ; histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 1 ) ; ...
0
332,239
static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) { SVQ1EncContext *const s = avctx->priv_data; AVFrame *const p = avctx->coded_frame; int i, ret; if (!pkt->data && (ret = av_new_packet(pkt, s->y_...
0
372,247
cmsBool Done(void) { jpeg_destroy_decompress(&Decompressor); jpeg_destroy_compress(&Compressor); return fclose(InFile) + fclose(OutFile); }
0
96,945
libFile(char *base) { return expandPath(Strnew_m_charp(w3m_lib_dir(), "/", base, NULL)->ptr); }
0
223,660
ftrace_snapshot_init(struct ftrace_probe_ops *ops, struct trace_array *tr, unsigned long ip, void *init_data, void **data) { struct ftrace_func_mapper *mapper = *data; if (!mapper) { mapper = allocate_ftrace_func_mapper(); if (!mapper) return -ENOMEM; *data = mapper; } return ftrace_func_mapper_ad...
0
236,828
bool InputMethodLinuxX11::DispatchFabricatedKeyEvent( const ui::KeyEvent& event) { if (DispatchFabricatedKeyEventPostIME(event.type(), event.key_code(), event.flags())) return true; if (event.type() == ET_KEY_PRESSED && GetTextInputClient()) { const uint16 ch = e...
0
447,508
smtp_rset (CamelSmtpTransport *transport, CamelStreamBuffer *istream, CamelStream *ostream, GCancellable *cancellable, GError **error) { /* we are going to reset the smtp server (just to be nice) */ gchar *cmdbuf, *respbuf = NULL; cmdbuf = g_strdup ("RSET\r\n"); d (fprintf (stderr, "...
0
414,674
ext4_find_extent(struct inode *inode, ext4_lblk_t block, struct ext4_ext_path **orig_path, int flags) { struct ext4_extent_header *eh; struct buffer_head *bh; struct ext4_ext_path *path = orig_path ? *orig_path : NULL; short int depth, i, ppos = 0; int ret; eh = ext_inode_hdr(inode); depth = ext_depth(inode)...
0
253,398
MagickExport const IndexPacket *GetVirtualIndexesFromNexus(const Cache cache, NexusInfo *nexus_info) { CacheInfo *restrict cache_info; assert(cache != (Cache) NULL); cache_info=(CacheInfo *) cache; assert(cache_info->signature == MagickSignature); if (cache_info->storage_class == UndefinedClass) re...
0
426,208
flatpak_context_load_metadata (FlatpakContext *context, GKeyFile *metakey, GError **error) { gboolean remove; g_auto(GStrv) groups = NULL; int i; if (g_key_file_has_key (metakey, FLATPAK_METADATA_GROUP_CONTEXT, FLATPAK_METADATA_KEY_SHAR...
0
450,449
static int nfs4_xdr_dec_open_confirm(struct rpc_rqst *rqstp, struct xdr_stream *xdr, void *data) { struct nfs_open_confirmres *res = data; struct compound_hdr hdr; int status; status = decode_compound_hdr(xdr, &hdr); if (status) goto out; status = decode_putfh(xdr); if (status) goto out; ...
0
453,752
static uint32_t dp8393x_wt(dp8393xState *s) { return s->regs[SONIC_WT1] << 16 | s->regs[SONIC_WT0]; }
0
500,312
void qpdf_set_ignore_xref_streams(qpdf_data qpdf, QPDF_BOOL value) { QTC::TC("qpdf", "qpdf-c called qpdf_set_ignore_xref_streams"); qpdf->qpdf->setIgnoreXRefStreams(value); }
0
485,772
static int snd_pcm_oss_release(struct inode *inode, struct file *file) { struct snd_pcm *pcm; struct snd_pcm_substream *substream; struct snd_pcm_oss_file *pcm_oss_file; pcm_oss_file = file->private_data; substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK]; if (substream == NULL) substream = pcm_oss_f...
0
406,542
Settable_routine_parameter *get_settable_routine_parameter() { return this; }
0
413,603
static void _fb_rdlock(void) { slurm_mutex_lock(&file_bcast_mutex); while (1) { if ((fb_write_wait_lock == 0) && (fb_write_lock == 0)) { fb_read_lock++; break; } else { /* wait for state change and retry */ slurm_cond_wait(&file_bcast_cond, &file_bcast_mutex); } } slurm_mutex_unlock(&file_bcast_mutex...
0
49,387
static void __exit ip6_tables_fini(void) { nf_unregister_sockopt(&ip6t_sockopts); xt_unregister_matches(ip6t_builtin_mt, ARRAY_SIZE(ip6t_builtin_mt)); xt_unregister_targets(ip6t_builtin_tg, ARRAY_SIZE(ip6t_builtin_tg)); unregister_pernet_subsys(&ip6_tables_net_ops); }
0
137,813
int MemFile::getc() { assertx(m_len != -1); return File::getc(); }
0
421,252
void FAST_FUNC udhcp_add_binary_option(struct dhcp_packet *packet, uint8_t *addopt) { unsigned len; uint8_t *optionptr = packet->options; unsigned end = udhcp_end_option(optionptr); len = OPT_DATA + addopt[OPT_LEN]; /* end position + (option code/length + addopt length) + end option */ if (end + len + 1 >= DHCP_...
0
508,894
int ssl3_send_server_key_exchange(SSL *s) { #ifndef OPENSSL_NO_RSA unsigned char *q; int j, num; RSA *rsa; unsigned char md_buf[MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH]; unsigned int u; #endif #ifndef OPENSSL_NO_DH DH *dh = NULL, *dhp; #endif #ifndef OPENSSL_NO_ECDH EC_KEY *ecdh = NULL, *ecdhp...
0
382,580
p_count(p) register struct parse *p; { register int count = 0; register int ndigits = 0; while (MORE() && my_isdigit(p->charset,PEEK()) && count <= DUPMAX) { count = count*10 + (GETNEXT() - '0'); ndigits++; } if(REQUIRE(ndigits > 0 && count <= DUPMAX, REG_BADBR)) {} return(count); }
0
426,678
void release() { if (set_) { set_ = false; LeaveCriticalSection(cs_); } }
0
371,420
void ZrtpStateClass::evWaitConfirm2(void) { DEBUGOUT((cout << "Checking for match in WaitConfirm2.\n")); char *msg, first, secondLast, last; uint8_t *pkt; uint32_t errorCode = 0; if (event->type == ZrtpPacket) { pkt = event->packet; msg = (char *)pkt + 4; first = tolower(...
0
418,742
amgtar_selfcheck( application_argument_t *argument) { char *option; if (argument->dle.disk) { char *qdisk = quote_string(argument->dle.disk); fprintf(stdout, "OK disk %s\n", qdisk); amfree(qdisk); } printf("OK amgtar version %s\n", VERSION); amgtar_build_exinclude(&argument->dle, 1, NULL, N...
0
510,377
my_decimal *Item_int::val_decimal(my_decimal *decimal_value) { int2my_decimal(E_DEC_FATAL_ERROR, value, unsigned_flag, decimal_value); return decimal_value; }
0
21,780
static int SpoolssAddForm_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) { dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ; guint32 level ; proto_item * hidden_item ; hidden_item = proto_tree_add_uint ( tree , hf_form , tvb , off...
0
259,543
static int setup_netdev(struct lxc_netdev *netdev) { char ifname[IFNAMSIZ]; char *current_ifname = ifname; int err; /* empty network namespace */ if (!netdev->ifindex) { if (netdev->flags & IFF_UP) { err = lxc_netdev_up("lo"); if (err) { ERROR("failed to set the loopback up : %s", strerror(-...
0
460,567
static int parseTreeDelete ( Operation *op, SlapReply *rs, LDAPControl *ctrl ) { if ( op->o_tree_delete != SLAP_CONTROL_NONE ) { rs->sr_text = "treeDelete control specified multiple times"; return LDAP_PROTOCOL_ERROR; } if ( !BER_BVISNULL( &ctrl->ldctl_value )) { rs->sr_text = "treeDelete control value not...
0
493,057
void PM_io_parser<PMDEC>::dump(const PMDEC& D, std::ostream& os) { PM_io_parser<PMDEC> Out(os,D); Out.print(); }
0
283,081
explicit TaskManagerTableModel(TaskManagerModel* model) : model_(model), observer_(NULL) { model_->AddObserver(this); }
0
25,869
static VALUE mHash_to_json ( int argc , VALUE * argv , VALUE self ) { GENERATE_JSON ( object ) ; }
0
20,240
void unireg_end ( void ) { clean_up ( 1 ) ; my_thread_end ( ) ; # if defined ( SIGNALS_DONT_BREAK_READ ) exit ( 0 ) ; # else pthread_exit ( 0 ) ; # endif }
0
138,394
point_inside(Point *p, int npts, Point *plist) { double x0, y0; double prev_x, prev_y; int i = 0; double x, y; int cross, total_cross = 0; if (npts <= 0) return 0; /* compute first polygon point relative to single point */ x0 = plist[0].x - p->x; y0 = plist[0].y - p->y; prev_x = x0...
0
84,061
static int ntop_get_interface_local_flows_info(lua_State* vm) { return(ntop_get_interface_flows(vm, location_local_only)); }
0
289,227
static void stroke_unroute ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) { pop_string ( msg , & msg -> terminate . name ) ; DBG1 ( DBG_CFG , "received stroke: unroute '%s'" , msg -> route . name ) ; this -> control -> unroute ( this -> control , msg , out ) ; }
0
43,294
do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) { struct svc_fh *current_fh = &cstate->current_fh; int accmode; __be32 status; *resfh = kmalloc(sizeof(struct svc_fh), GFP_KERNEL); if (!*resfh) return nfserr_jukebox; fh_init(*resfh, NFS...
0
124,875
static int doport3(const int protocol) { struct sockaddr_storage dataconn; /* his endpoint */ # ifndef NON_ROOT_FTP static const in_port_t portlist[] = FTP_ACTIVE_SOURCE_PORTS; const in_port_t *portlistpnt = portlist; # else static const in_port_t portlist[] = { 0U }; const in_port_t *portlistpnt ...
0
82,075
find_lively_task_by_vpid(pid_t vpid) { struct task_struct *task; int err; rcu_read_lock(); if (!vpid) task = current; else task = find_task_by_vpid(vpid); if (task) get_task_struct(task); rcu_read_unlock(); if (!task) return ERR_PTR(-ESRCH); /* Reuse ptrace permission checks for now. */ err = -EACC...
0
296,474
static __always_inline bool bpf_tree_less(struct latch_tree_node *a, struct latch_tree_node *b) { return bpf_get_prog_addr_start(a) < bpf_get_prog_addr_start(b); }
0
446,682
virDomainHostdevMatchCapsMisc(virDomainHostdevDefPtr a, virDomainHostdevDefPtr b) { return STREQ_NULLABLE(a->source.caps.u.misc.chardev, b->source.caps.u.misc.chardev); }
0
463,758
void intel_pmu_pebs_enable(struct perf_event *event) { struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); struct hw_perf_event *hwc = &event->hw; struct debug_store *ds = cpuc->ds; hwc->config &= ~ARCH_PERFMON_EVENTSEL_INT; cpuc->pebs_enabled |= 1ULL << hwc->idx; if ((event->hw.flags & PERF_X86_EVENT_P...
0
255,640
int jpc_bitstream_putbits(jpc_bitstream_t *bitstream, int n, long v) { int m; /* We can reliably put at most 31 bits since ISO/IEC 9899 only guarantees that a long can represent values up to 2^31-1. */ assert(n >= 0 && n < 32); /* Ensure that only the bits to be output are nonzero. */ assert(!(v & (~JAS_ONES(n...
1
457,134
p11_rpc_buffer_get_attribute_array_value (p11_buffer *buffer, size_t *offset, void *value, CK_ULONG *value_length) { uint32_t count, i; CK_ATTRIBUTE *attr, temp; if (!p11_rpc_buffer_get_uint32 (buffer, offset, &count)) return false; if (!value) { memset (&temp, 0, sizeof (CK_ATTRIBUTE)); ...
0
97,873
const char *proxytype(proxytypes_t proxytype) { int i; for (i = 0; proxynames[i].name; i++) if (proxynames[i].proxytype == proxytype) return proxynames[i].name; return "invalid"; }
0
168,283
bool GLES2DecoderImpl::HasMoreIdleWork() const { return !pending_readpixel_fences_.empty() || gpu_tracer_->HasTracesToProcess() || !texture_refs_pending_destruction_.empty(); }
0
47,170
void inet_netconf_notify_devconf(struct net *net, int type, int ifindex, struct ipv4_devconf *devconf) { struct sk_buff *skb; int err = -ENOBUFS; skb = nlmsg_new(inet_netconf_msgsize_devconf(type), GFP_ATOMIC); if (!skb) goto errout; err = inet_netconf_fill_devconf(skb, ifindex, devconf, 0, 0, RTM_NE...
0
456,785
__add_partial(struct kmem_cache_node *n, struct page *page, int tail) { n->nr_partial++; if (tail == DEACTIVATE_TO_TAIL) list_add_tail(&page->slab_list, &n->partial); else list_add(&page->slab_list, &n->partial); }
0
282,447
virtual void AnimationProgressed(const ui::Animation* animation) { TabAnimation::AnimationProgressed(animation); int x = animation_.CurrentValueBetween(start_bounds_.x(), target_bounds_.x()); int width = animation_.CurrentValueBetween(start_bounds_.width(), ...
0
440,910
vnc_display_setup_auth(int *auth, int *subauth, QCryptoTLSCreds *tlscreds, bool password, bool sasl, bool websocket, Error **errp) { /* * We have a choice of 3 authenticatio...
0
193,867
EntryFolderFeature(bool is_machine_root, bool is_arbitrary_sync_folder, bool is_external_media) : is_machine_root(is_machine_root), is_arbitrary_sync_folder(is_arbitrary_sync_folder), is_external_media(is_external_media) {}
0
161,340
static void virtio_serial_port_class_init(ObjectClass *klass, void *data) { DeviceClass *k = DEVICE_CLASS(klass); set_bit(DEVICE_CATEGORY_INPUT, k->categories); k->bus_type = TYPE_VIRTIO_SERIAL_BUS; k->realize = virtser_port_device_realize; k->unrealize = virtser_port_device_unrealize; k->props...
0
57,347
static int nl80211_valid_4addr(struct cfg80211_registered_device *rdev, struct net_device *netdev, u8 use_4addr, enum nl80211_iftype iftype) { if (!use_4addr) { if (netdev && (netdev->priv_flags & IFF_BRIDGE_PORT)) return -EBUSY; return 0; } switch (iftype) { case NL80211_IFTYPE_AP_VLAN:...
0
393,971
static int sched_group_set_rt_period(struct task_group *tg, u64 rt_period_us) { u64 rt_runtime, rt_period; rt_period = rt_period_us * NSEC_PER_USEC; rt_runtime = tg->rt_bandwidth.rt_runtime; return tg_set_rt_bandwidth(tg, rt_period, rt_runtime); }
0
131,933
static int binder_put_node_cmd(struct binder_proc *proc, struct binder_thread *thread, void __user **ptrp, binder_uintptr_t node_ptr, binder_uintptr_t node_cookie, int node_debug_id, uint32_t cmd, const char *cmd_name) { void __user *ptr = *ptrp; if (put_us...
0
382,482
prepare_for_client_read(void) { if (DoingCommandRead) { /* Enable immediate processing of asynchronous signals */ EnableNotifyInterrupt(); EnableCatchupInterrupt(); /* Allow die interrupts to be processed while waiting */ ImmediateInterruptOK = true; /* And don't forget to detect one that already arrive...
0
223,277
gx_dc_binary_masked_load(gx_device_color * pdevc, const gs_gstate * pgs, gx_device * dev, gs_color_select_t select) { int code = (*gx_dc_type_data_ht_binary.load) (pdevc, pgs, dev, select); if (code < 0) return code; FINISH_PATTERN_LOAD }
0
323,463
void bdrv_io_limits_enable(BlockDriverState *bs) { qemu_co_queue_init(&bs->throttled_reqs); bs->block_timer = qemu_new_timer_ns(vm_clock, bdrv_block_timer, bs); bs->io_limits_enabled = true; }
0
214,706
double EglRenderingVDAClient::frames_per_second() { base::TimeDelta delta = last_frame_delivered_ticks_ - initialize_done_ticks_; if (delta.InSecondsF() == 0) return 0; return num_decoded_frames_ / delta.InSecondsF(); }
0
114,919
Status ConstantFolding::MaterializeBroadcastGradientArgs( const NodeDef& node, const GraphProperties& properties) { const NodeDef* shape_node1 = node_map_->GetNode(node.input(0)); const NodeDef* shape_node2 = node_map_->GetNode(node.input(1)); if (shape_node1 == nullptr || (shape_node1->op() != "Shape" ...
0
331,657
int ff_mediacodec_dec_close(AVCodecContext *avctx, MediaCodecDecContext *s) { if (s->codec) { ff_AMediaCodec_delete(s->codec); s->codec = NULL; } if (s->format) { ff_AMediaFormat_delete(s->format); s->format = NULL; } return 0; }
1
427,621
push_handlers (void) { orig_error_handler = TIFFSetErrorHandler (NULL); orig_warning_handler = TIFFSetWarningHandler (NULL); }
0
290,322
void xps_parse_brush ( xps_document * doc , const fz_matrix * ctm , const fz_rect * area , char * base_uri , xps_resource * dict , fz_xml * node ) { if ( doc -> cookie && doc -> cookie -> abort ) return ; if ( ! strcmp ( fz_xml_tag ( node ) , "ImageBrush" ) ) xps_parse_image_brush ( doc , ctm , area , base_uri , dict...
0
119,267
extern "C" char *my_demangle(const char *mangled_name, int *status) { return abi::__cxa_demangle(mangled_name, NULL, NULL, status); }
0
308,761
float AXNodeObject::stepValueForRange() const { if (!isNativeSlider()) return 0.0; Decimal step = toHTMLInputElement(*getNode()).createStepRange(RejectAny).step(); return step.toString().toFloat(); }
0
252,097
static void sapi_update_response_code(int ncode TSRMLS_DC) { /* if the status code did not change, we do not want to change the status line, and no need to change the code */ if (SG(sapi_headers).http_response_code == ncode) { return; } if (SG(sapi_headers).http_status_line) { efree(SG(sapi_headers).http_s...
0