idx
int64
func
string
target
int64
159,404
static int addrconf_notify(struct notifier_block *this, unsigned long event, void *ptr) { struct net_device *dev = netdev_notifier_info_to_dev(ptr); struct inet6_dev *idev = __in6_dev_get(dev); int run_pending = 0; int err; switch (event) { case NETDEV_REGISTER: if (!idev && dev->mtu >= IPV6_MIN_MTU) { ...
0
432,150
static int snd_line6_control_playback_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { int i; struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); for (i = 0; i < 2; i++) ucontrol->value.integer.value[i] = line6pcm->volume_playback[i]; return 0; }
0
44,592
static int get_float64(QEMUFile *f, void *pv, size_t size) { float64 *v = pv; *v = make_float64(qemu_get_be64(f)); return 0; }
1
51,658
static inline bool kvm_apic_sw_enabled(struct kvm_lapic *apic) { if (static_key_false(&apic_sw_disabled.key)) return apic->sw_enabled; return true; }
0
32,139
static struct fdtable * alloc_fdtable(unsigned int nr) { struct fdtable *fdt; void *data; /* * Figure out how many fds we actually want to support in this fdtable. * Allocation steps are keyed to the size of the fdarray, since it * grows far faster than any of the other dynamic data. We try to fit * the fda...
0
146,748
CURLcode Curl_auth_create_external_message(struct Curl_easy *data, const char *user, char **outptr, size_t *outlen) { /* This is the same formatting as the login message */ return Curl_auth_create_login_message(data, user, outptr,...
0
275,146
void QtBuiltinBundlePage::registerNavigatorQtObject(JSGlobalContextRef context) { static JSStringRef postMessageName = JSStringCreateWithUTF8CString("postMessage"); static JSStringRef navigatorName = JSStringCreateWithUTF8CString("navigator"); static JSStringRef qtName = JSStringCreateWithUTF8CString("qt");...
0
341,363
static coroutine_fn int qcow_co_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { BDRVQcowState *s = bs->opaque; int index_in_cluster; int ret = 0, n; uint64_t cluster_offset; struct iovec hd_iov; QEMUIOVector hd_qiov; uin...
0
174,236
DrawingBufferClientRestorePixelUnpackBufferBinding() {}
0
275,039
BOOLEAN btif_hl_find_app_idx_using_deleted_mdl_id( UINT8 mdl_id, UINT8 *p_app_idx){ btif_hl_app_cb_t *p_acb; BOOLEAN found=FALSE; UINT8 i; for (i=0; i<BTA_HL_NUM_APPS; i++) { p_acb =BTIF_HL_GET_APP_CB_PTR(i); if (p_acb->delete_mdl.active) { ...
0
217,327
HTTP_Init(void) { #define HTTPH(a, b, c, d, e, f, g) b[0] = (char)strlen(b + 1); #include "http_headers.h" #undef HTTPH }
0
127,161
iperf_setaffinity(int affinity) { #ifdef linux cpu_set_t cpu_set; CPU_ZERO(&cpu_set); CPU_SET(affinity, &cpu_set); if (sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set) != 0) { i_errno = IEAFFINITY; return -1; } return 0; #else /*linux*/ i_errno = IEAFFINITY; return -1; #endif ...
0
38,941
auth_sig_compatible(uint8_t type) { switch (type) { case IKEV2_AUTH_RSA_SIG: case IKEV2_AUTH_ECDSA_256: case IKEV2_AUTH_ECDSA_384: case IKEV2_AUTH_ECDSA_521: case IKEV2_AUTH_SIG_ANY: return (1); } return (0); }
0
372,598
void addHeader(string &headers, const char *name, const StaticString &value) { if (name != NULL) { headers.append(name); headers.append(1, '\0'); headers.append(value.c_str(), value.size()); headers.append(1, '\0'); } }
0
342,591
static void virtio_setup(uint64_t dev_info) { struct schib schib; int ssid; bool found = false; uint16_t dev_no; /* * We unconditionally enable mss support. In every sane configuration, * this will succeed; and even if it doesn't, stsch_err() can deal * with the consequence...
1
302,107
static void uv__write_int(int fd, int val) { ssize_t n; do n = write(fd, &val, sizeof(val)); while (n == -1 && errno == EINTR); if (n == -1 && errno == EPIPE) return; /* parent process has quit */ assert(n == sizeof(val)); }
0
224,060
ResourceFetcher::~ResourceFetcher() {}
0
273,662
hfs_make_badblockfile(HFS_INFO * hfs, TSK_FS_FILE * fs_file) { TSK_FS_ATTR *fs_attr; unsigned char dummy1, dummy2; uint64_t dummy3; uint8_t result; if (tsk_verbose) tsk_fprintf(stderr, "hfs_make_badblockfile: Making virtual badblock file\n"); if (hfs_make_specialbase(fs_fil...
0
463,963
static CURLcode gtls_sha256sum(const unsigned char *tmp, /* input */ size_t tmplen, unsigned char *sha256sum, /* output */ size_t sha256len) { struct sha256_ctx SHA256pw; sha256_init(&SHA256pw); sha256_update(&SHA256pw, (...
0
305,829
static int cac_match_card(sc_card_t *card) { int r; SC_FUNC_CALLED(card->ctx, SC_LOG_DEBUG_VERBOSE); /* Since we send an APDU, the card's logout function may be called... * however it may be in dirty memory */ card->ops->logout = NULL; r = cac_find_and_initialize(card, 0); return (r == SC_SUCCESS); /* never ma...
0
236,180
qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream, guint32 fourcc, const guint8 * data, int len, gchar ** codec_name) { GstCaps *caps; const GstStructure *s; const gchar *name; gint endian = 0; GST_DEBUG_OBJECT (qtdemux, "resolve fourcc %08x", fourcc); switch (fourcc) { case GST_MAK...
0
51,937
Status operator()(const GPUDevice& d, typename TTypes<qint8, 4, int>::ConstTensor in, int input_pad_top, int input_pad_bottom, int input_pad_left, int input_pad_right, typename TTypes<qint8, 4, int>::Tensor out, Tensor...
0
161,400
kernel_map_pages(struct page *page, int numpages, int enable) { if (!debug_pagealloc_enabled()) return; __kernel_map_pages(page, numpages, enable); }
0
227,955
void CreateLinearAccelerationFusionSensor() { auto fusion_algorithm = std::make_unique<LinearAccelerationFusionAlgorithmUsingAccelerometer>(); CreateFusionSensor(std::move(fusion_algorithm)); }
0
208,036
int WebContentsImpl::GetCrashedErrorCode() const { return crashed_error_code_; }
0
239,495
virtual status_t getSecureStops(List<Vector<uint8_t> > &secureStops) { Parcel data, reply; data.writeInterfaceToken(IDrm::getInterfaceDescriptor()); status_t status = remote()->transact(GET_SECURE_STOPS, data, &reply); if (status != OK) { return status; } secureStops.clear(); uint32_t count = r...
0
1,200
int parse_CCategSpec ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) { proto_item * item ; proto_tree * tree ; va_list ap ; guint32 type ; const char * txt ; va_start ( ap , fmt ) ; txt = wmem_strdup_vprintf ( wmem_packet_scope ( ) , fmt , ap ) ; va_en...
1
49,438
static int snd_timer_user_params(struct file *file, struct snd_timer_params __user *_params) { struct snd_timer_user *tu; struct snd_timer_params params; struct snd_timer *t; int err; tu = file->private_data; if (!tu->timeri) return -EBADFD; t = tu->timeri->timer; if (!t) return -EBADFD; if (copy_fro...
0
304,421
Status TrySimplify(NodeDef* node, string* simplified_node_name) override { Tensor pow; if (!GetTensorFromConstNode(node->input(1), &pow)) return Status::OK(); complex128 prev, curr; for (int i = 0; i < pow.NumElements(); ++i) { if (!GetElementUnexhaustive(pow, i, {pow.dtype()}, &curr)) { ...
0
211,671
static int parseOptions(int argc, char **argv) { int i; for (i = 1; i < argc; i++) { int lastarg = i==argc-1; if (!strcmp(argv[i],"-h") && !lastarg) { sdsfree(config.hostip); config.hostip = sdsnew(argv[++i]); } else if (!strcmp(argv[i],"-h") && lastarg) { ...
0
371,509
void AuthorizationManager::logoutDatabase(const std::string& dbname) { Principal* principal = _authenticatedPrincipals.lookupByDBName(dbname); if (!principal) return; _acquiredPrivileges.revokePrivilegesFromPrincipal(principal->getName()); _authenticatedPrincipals.removeB...
0
79,770
static int init_types(void) { static int initialized; if (initialized) return 1; if (add_ast_fields() < 0) return 0; mod_type = make_type("mod", &AST_type, NULL, 0); if (!mod_type) return 0; if (!add_attributes(mod_type, NULL, 0)) return 0; Module_type = make_type("Module", mod_type, Module_...
0
111,142
unsigned long get_max_files(void) { return files_stat.max_files; }
0
146,121
void initialize() override { setMaxRequestHeadersKb(60); setMaxRequestHeadersCount(100); envoy::config::route::v3::RetryPolicy retry_policy; auto pass_through = config_helper_.createVirtualHost("pass.through.internal.redirect"); config_helper_.addVirtualHost(pass_through); auto handle = conf...
0
179,727
ofputil_put_ofp11_table_stats(const struct ofputil_table_stats *stats, const struct ofputil_table_features *features, struct ofpbuf *buf) { struct mf_bitmap wc = wild_or_nonmatchable_fields(features); struct ofp11_table_stats *out; out = ofpbuf_pu...
0
445,938
BOOL rfx_context_reset(RFX_CONTEXT* context, UINT32 width, UINT32 height) { if (!context) return FALSE; context->width = width; context->height = height; context->state = RFX_STATE_SEND_HEADERS; context->expectedDataBlockType = WBT_FRAME_BEGIN; context->frameIdx = 0; return TRUE; }
0
95,273
PJ_DEF(void) pjsip_tx_data_invalidate_msg( pjsip_tx_data *tdata ) { tdata->buf.cur = tdata->buf.start; tdata->info = NULL; }
0
93,005
void CL_LocalServers_f( void ) { char *message; int i, j; netadr_t to; Com_Printf( "Scanning for servers on the local network...\n"); // reset the list, waiting for response cls.numlocalservers = 0; cls.pingUpdateSource = AS_LOCAL; for (i = 0; i < MAX_OTHER_SERVERS; i++) { qboolean b = cls.localServers[...
0
300,741
void RequestContext::FillCheckRequestInfo( service_control::CheckRequestInfo *info) { FillOperationInfo(info); request_->FindHeader(kXAndroidPackage, &info->android_package_name); request_->FindHeader(kXAndroidCert, &info->android_cert_fingerprint); request_->FindHeader(kXIosBundleId, &info->ios_bundle_id)...
0
27,417
static void cluster_all_databases ( bool verbose , const char * maintenance_db , const char * host , const char * port , const char * username , enum trivalue prompt_password , const char * progname , bool echo , bool quiet ) { PGconn * conn ; PGresult * result ; PQExpBufferData connstr ; int i ; conn = connectMai...
0
433,023
v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode, unsigned int flags) { umode_t mode; struct v9fs_inode *v9inode = V9FS_I(inode); if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) { inode->i_atime.tv_sec = stat->st_atime_sec; inode->i_atime.tv_nsec = stat->st_atime_nsec; ...
0
358,184
static int nfs4_init_client(struct nfs_client *clp, int proto, int timeo, int retrans, const char *ip_addr, rpc_authflavor_t authflavour) { int error; if (clp->cl_cons_state == NFS_CS_READY) { /* the client is initialised already */ dprintk("<-- nfs4_init_client() = 0 [already %p]\n", clp); return 0; } ...
0
74,262
static void sig_exit_handler(int sig) { sig_exit_handler_sig = sig; sig_exit_handler_called = 1; }
0
513,839
cliprdr_server_file_contents_response(CliprdrServerContext* context, const CLIPRDR_FILE_CONTENTS_RESPONSE* fileContentsResponse) { wStream* s; CliprdrServerPrivate* cliprdr = (CliprdrServerPrivate*)context->handle; if (fileContentsResponse->msgType != CB_FILECONTENTS_RESPONSE) ...
0
505,434
void OpenSSLDie(const char *file,int line,const char *assertion) { OPENSSL_showfatal( "%s(%d): OpenSSL internal error, assertion failed: %s\n", file,line,assertion); abort(); }
0
29,777
int qemuMonitorTextSetCPU ( qemuMonitorPtr mon , int cpu , int online ) { char * cmd ; char * reply = NULL ; int ret = - 1 ; if ( virAsprintf ( & cmd , "cpu_set %d %s" , cpu , online ? "online" : "offline" ) < 0 ) { virReportOOMError ( ) ; return - 1 ; } if ( qemuMonitorHMPCommand ( mon , cmd , & reply ) < 0 ) ...
0
409,967
static inline void skb_set_mac_header(struct sk_buff *skb, const int offset) { skb_reset_mac_header(skb); skb->mac_header += offset;
0
375,416
findchar(char *str, int c) { while (*str) { if (t_iseq(str, c)) return str; str += pg_mblen(str); } return NULL; }
0
134,924
get_option_value( char_u *name, long *numval, char_u **stringval, // NULL when only checking existence int opt_flags) { int opt_idx; char_u *varp; opt_idx = findoption(name); if (opt_idx < 0) // option not in the table { int key; if (STRLEN(name) == 4 && name[0] == 't'...
0
155,281
xfs_buf_ioerror( xfs_buf_t *bp, int error) { ASSERT(error >= 0 && error <= 0xffff); bp->b_error = (unsigned short)error; trace_xfs_buf_ioerror(bp, error, _RET_IP_); }
0
90,866
static struct sock *ncp_connection_hack(struct ipx_interface *intrfc, struct ipxhdr *ipx) { /* The packet's target is a NCP connection handler. We want to hand it * to the correct socket directly within the kernel, so that the * mars_nwe packet distribution process does not have to do it. Here we * only car...
0
116,303
BGD_DECLARE(void *) gdImageGd2Ptr (gdImagePtr im, int cs, int fmt, int *size) { _noLibzError(); }
0
77,542
BGD_DECLARE(gdImagePtr) gdImageCreateFromGd2PartCtx (gdIOCtx * in, int srcx, int srcy, int w, int h) { _noLibzError(); return NULL; }
0
218,895
void ChromeNetworkDelegate::set_cookie_settings( CookieSettings* cookie_settings) { cookie_settings_ = cookie_settings; }
0
164,911
aspath_add_asns (struct aspath *aspath, as_t asno, u_char type, unsigned num) { struct assegment *assegment = aspath->segments; unsigned i; if (assegment && assegment->type == type) { /* extend existing segment */ aspath->segments = assegment_prepend_asns (aspath->segments, asno, num); } el...
0
167,895
void BaseRenderingContext2D::ClearCanvas() { FloatRect canvas_rect(0, 0, Width(), Height()); CheckOverdraw(canvas_rect, nullptr, CanvasRenderingContext2DState::kNoImage, kClipFill); PaintCanvas* c = DrawingCanvas(); if (c) c->clear(HasAlpha() ? SK_ColorTRANSPARENT : SK_ColorBLACK); }
0
313,184
handle_meter_request(struct ofconn *ofconn, const struct ofp_header *request, enum ofptype type) { struct ofproto *ofproto = ofconn_get_ofproto(ofconn); struct ovs_list replies; uint64_t bands_stub[256 / 8]; struct ofpbuf bands; uint32_t meter_id, first, last; ofputil_decod...
0
518,187
bool Item_temporal_literal::eq(const Item *item, bool binary_cmp) const { return item->basic_const_item() && type() == item->type() && field_type() == ((Item_temporal_literal *) item)->field_type() && !my_time_compare(&cached_time, &((Item_temporal_literal *) item)->cached_time); }
0
325,696
CPUPPCState *cpu_ppc_init(void) { CPUPPCState *env; cpu_exec_init(); env = qemu_mallocz(sizeof(CPUPPCState)); if (!env) return NULL; #if !defined(CONFIG_USER_ONLY) && defined (USE_OPEN_FIRMWARE) setup_machine(env, 0); #else // env->spr[PVR] = 0; /* Basic PPC */ env->spr...
0
285,589
void InterstitialPage::DontProceed() { DCHECK(action_taken_ != DONT_PROCEED_ACTION); Disable(); action_taken_ = DONT_PROCEED_ACTION; if (new_navigation_) TakeActionOnResourceDispatcher(RESUME); else TakeActionOnResourceDispatcher(CANCEL); if (should_discard_pending_nav_entry_) { tab_->control...
0
429,505
dir_changed (GFileMonitor *monitor, GFile *file, GFile *other_file, GFileMonitorEvent event_type, gpointer user_data) { GKeyfileSettingsBackend *kfsb = user_data; g_keyfile_settings_backend_keyfile_writable (kfsb); }
0
298,838
static void index_entry_adjust_namemask( git_index_entry *entry, size_t path_length) { entry->flags &= ~GIT_IDXENTRY_NAMEMASK; if (path_length < GIT_IDXENTRY_NAMEMASK) entry->flags |= path_length & GIT_IDXENTRY_NAMEMASK; else entry->flags |= GIT_IDXENTRY_NAMEMASK; }
0
144,988
static int oom_reaper(void *unused) { while (true) { struct task_struct *tsk = NULL; wait_event_freezable(oom_reaper_wait, oom_reaper_list != NULL); spin_lock(&oom_reaper_lock); if (oom_reaper_list != NULL) { tsk = oom_reaper_list; oom_reaper_list = tsk->oom_reaper_list; } spin_unlock(&oom_reaper_lo...
0
258,833
term_getjob(term_T *term) { return term != NULL ? term->tl_job : NULL; }
0
250,318
static void on_connection_close(nw_ses *ses) { log_trace("connection %s close", nw_sock_human_addr(&ses->peer_addr)); struct clt_info *info = ses->privdata; struct ws_svr *svr = ws_svr_from_ses(ses); if (info->upgrade) { if (svr->type.on_close) { svr->type.on_close(ses, info->remote)...
0
178,657
void WebContentsImpl::RequestToLockMouse( RenderWidgetHostImpl* render_widget_host, bool user_gesture, bool last_unlocked_by_target, bool privileged) { for (WebContentsImpl* current = this; current; current = current->GetOuterWebContents()) { if (current->mouse_lock_widget_) { render_...
0
219,933
void ClipboardMessageFilter::OnReadHTML(ui::ClipboardType type, base::string16* markup, GURL* url, uint32* fragment_start, uint32* fragment_end) { std::string...
0
432,012
void tcp_send_ack(struct sock *sk) { struct sk_buff *buff; /* If we have been reset, we may not send again. */ if (sk->sk_state == TCP_CLOSE) return; tcp_ca_event(sk, CA_EVENT_NON_DELAYED_ACK); /* We are not putting this on the write queue, so * tcp_transmit_skb() will set the ownership to this * sock. ...
0
155,649
static int irda_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) { struct sock *sk = sock->sk; struct irda_sock *self = irda_sk(sk); struct irda_device_list list; struct irda_device_info *discoveries; struct irda_ias_set * ias_opt; /* IAS get/query params */ s...
0
96,398
BOOL CALLBACK win_init_once( PINIT_ONCE InitOnce, PVOID Parameter, PVOID *lpContext) { return !mysql_once_init(); return TRUE; }
0
41,766
void Compute(OpKernelContext* context) override { const Tensor& input_sizes = context->input(0); const Tensor& filter = context->input(1); const Tensor& out_backprop = context->input(2); TensorShape input_shape; OP_REQUIRES_OK(context, Conv2DBackpropComputeInputShape(input_size...
0
456,918
static void remove_full(struct kmem_cache *s, struct kmem_cache_node *n, struct page *page) { if (!(s->flags & SLAB_STORE_USER)) return; lockdep_assert_held(&n->list_lock); list_del(&page->slab_list); }
0
310,974
dhcpv4_print(netdissect_options *ndo, const u_char *cp, u_int length, int indent) { u_int i, t; const u_char *tlv, *value; uint8_t type, optlen; i = 0; while (i < length) { if (i + 2 > length) return -1; tlv = cp + i; type = (uint8_t)tlv[0]; ...
0
448,998
UTI_CompareNtp64(NTP_int64 *a, NTP_int64 *b) { int32_t diff; if (a->hi == b->hi && a->lo == b->lo) return 0; diff = ntohl(a->hi) - ntohl(b->hi); if (diff < 0) return -1; if (diff > 0) return 1; return ntohl(a->lo) < ntohl(b->lo) ? -1 : 1; }
0
331,603
static int vb_decode_framedata(VBDecContext *c, const uint8_t *buf, int offset) { uint8_t *prev, *cur; int blk, blocks, t, blk2; int blocktypes = 0; int x, y, a, b; int pattype, pattern; const int width = c->avctx->width; uint8_t *pstart = c->prev_frame; uint8_t *pend = c->prev_...
0
247,147
static Image *ReadJPEGImage(const ImageInfo *image_info, ExceptionInfo *exception) { char value[MaxTextExtent]; const char *option; ErrorManager error_manager; Image *image; IndexPacket index; JSAMPLE *volatile jpeg_pixels; JSAMPROW scanline[1]; MagickBooleanType ...
0
103,378
int cil_gen_tunif(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) { enum cil_syntax syntax[] = { CIL_SYN_STRING, CIL_SYN_STRING | CIL_SYN_LIST, CIL_SYN_LIST, CIL_SYN_LIST | CIL_SYN_END, CIL_SYN_END }; int syntax_len = sizeof(syntax)/sizeof(*syntax); struct cil_tunab...
0
128,887
WasmResult set(absl::string_view vm_id, absl::string_view key, absl::string_view value, uint32_t cas) { absl::WriterMutexLock l(&mutex); absl::flat_hash_map<std::string, std::pair<std::string, uint32_t>>* map; auto map_it = data.find(vm_id); if (map_it == data.end()) { map = &da...
0
384,325
static void dma_buf_commit(IDEState *s, uint32_t tx_bytes) { if (s->bus->dma->ops->commit_buf) { s->bus->dma->ops->commit_buf(s->bus->dma, tx_bytes); } qemu_sglist_destroy(&s->sg); }
0
146,865
static void l2tp_ip6_destroy_sock(struct sock *sk) { struct l2tp_tunnel *tunnel = l2tp_sock_to_tunnel(sk); lock_sock(sk); ip6_flush_pending_frames(sk); release_sock(sk); if (tunnel) { l2tp_tunnel_closeall(tunnel); sock_put(sk); } inet6_destroy_sock(sk); }
0
112,003
RAMBlock *qemu_ram_alloc(struct uc_struct *uc, ram_addr_t size, MemoryRegion *mr) { return qemu_ram_alloc_from_ptr(uc, size, NULL, mr); }
0
493,232
RemoveStatisticsById(Oid statsOid) { Relation relation; HeapTuple tup; Form_pg_statistic_ext statext; Oid relid; /* * First delete the pg_statistic_ext_data tuple holding the actual * statistical data. */ relation = table_open(StatisticExtDataRelationId, RowExclusiveLock); tup = SearchSysCache1(STATEXT...
0
304,425
char *url_decode_r(char *to, char *url, size_t size) { char *s = url, // source *d = to, // destination *e = &to[size - 1]; // destination end while(*s && d < e) { if(unlikely(*s == '%')) { if(likely(s[1] && s[2])) { char t = from_hex(s...
0
474,584
static struct cgroup_pidlist *cgroup_pidlist_find(struct cgroup *cgrp, enum cgroup_filetype type) { struct cgroup_pidlist *l; /* don't need task_nsproxy() if we're looking at ourself */ struct pid_namespace *ns = task_active_pid_ns(current); lockdep_assert_held(&cgrp->pidlist_mutex); list_for_each_entry(...
0
48,618
static void spl_filesystem_tree_it_current_data(zend_object_iterator *iter, zval ***data TSRMLS_DC) { spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; spl_filesystem_object *object = spl_filesystem_iterator_to_object(iterator); if (SPL_FILE_DIR_CURRENT(object, SPL_FILE_DIR_CURRENT_AS_PATHNAM...
0
233,908
void AudioOutputDeviceTest::WaitUntilRenderCallback() { io_loop_.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), TestTimeouts::action_timeout()); io_loop_.Run(); }
0
490,603
Bool gf_filter_has_pid_connection_pending(GF_Filter *filter, GF_Filter *stop_at_filter) { GF_FilterSession *fsess; Bool res; if (!filter) return GF_FALSE; //lock session, this is an unsafe call fsess = filter->session; gf_mx_p(fsess->filters_mx); res = gf_filter_has_pid_connection_pending_internal(filter, stop_a...
0
518,265
static void warn_if_datadir_altered(THD *thd, const partition_element *part_elem) { DBUG_ASSERT(part_elem); if (part_elem->engine_type && part_elem->engine_type->db_type != DB_TYPE_INNODB) return; if (part_elem->data_file_name) { push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN, ...
0
396,539
GC_API size_t GC_CALL GC_get_free_bytes(void) { /* ignore the memory space returned to OS */ return (size_t)(GC_large_free_bytes - GC_unmapped_bytes); }
0
96,566
void NumberFormatTest::TestHostClone() { /* Verify that a cloned formatter gives the same results and is useable after the original has been deleted. */ // This is mainly important on Windows. UErrorCode status = U_ZERO_ERROR; Locale loc("en_US@compat=host"); UDate now = Calendar::getNow...
0
66,273
ParseNodePtr Parser::ParseMetaProperty(tokens metaParentKeyword, charcount_t ichMin, _Out_opt_ BOOL* pfCanAssign) { AssertMsg(metaParentKeyword == tkNEW, "Only supported for tkNEW parent keywords"); AssertMsg(this->m_token.tk == tkDot, "We must be currently sitting on the dot after the parent keyword"); m_...
0
128,855
NOEXPORT void session_cache_retrieve(CLI *c) { SSL_SESSION *sess; CRYPTO_THREAD_read_lock(stunnel_locks[LOCK_SESSION]); if(c->opt->option.delayed_lookup) { sess=c->opt->session; } else { /* per-destination client cache */ if(c->opt->connect_session) { sess=c->opt->connect_se...
0
522,010
double user_var_entry::val_real(bool *null_value) { if ((*null_value= (value == 0))) return 0.0; switch (type) { case REAL_RESULT: return *(double*) value; case INT_RESULT: return (double) *(longlong*) value; case DECIMAL_RESULT: { double result; my_decimal2double(E_DEC_FATAL_ERROR, (my...
0
10,771
bool DeleteReparsePoint(HANDLE source) { DWORD returned; REPARSE_DATA_BUFFER data = {0}; data.ReparseTag = 0xa0000003; if (!DeviceIoControl(source, FSCTL_DELETE_REPARSE_POINT, &data, 8, NULL, 0, &returned, NULL)) { return false; } return true; }
1
261,228
static void __fput(struct file *file) { struct dentry *dentry = file->f_path.dentry; struct vfsmount *mnt = file->f_path.mnt; struct inode *inode = file->f_inode; might_sleep(); fsnotify_close(file); /* * The function eventpoll_release() should be the first called * in the file cleanup chain. */ eventpol...
0
386,724
OPJ_UINT32 opj_j2k_get_max_toc_size (opj_j2k_t *p_j2k) { OPJ_UINT32 i; OPJ_UINT32 l_nb_tiles; OPJ_UINT32 l_max = 0; opj_tcp_t * l_tcp = 00; l_tcp = p_j2k->m_cp.tcps; l_nb_tiles = p_j2k->m_cp.tw * p_j2k->m_cp.th ; for (i=0;i<l_nb_tiles;++i) { l_ma...
0
223,780
static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), UseCounter::voidMethod); TestObjectPythonV8Internal::deprecatedVoidMethodMethod(inf...
0
175,511
int TabStrip::GetInactiveTabWidth() const { return layout_helper_->inactive_tab_width(); }
0
457,566
rb_update_read_stamp(struct ring_buffer_per_cpu *cpu_buffer, struct ring_buffer_event *event) { u64 delta; switch (event->type_len) { case RINGBUF_TYPE_PADDING: return; case RINGBUF_TYPE_TIME_EXTEND: delta = ring_buffer_event_time_stamp(event); cpu_buffer->read_stamp += delta; return; case RINGBU...
0
175,267
void GuestViewBase::UpdatePreferredSize( content::WebContents* target_web_contents, const gfx::Size& pref_size) { DCHECK_EQ(web_contents(), target_web_contents); if (IsPreferredSizeModeEnabled()) { OnPreferredSizeChanged(pref_size); } }
0