idx
int64
func
string
target
int64
45,922
static FlatView *generate_memory_topology(struct uc_struct *uc, MemoryRegion *mr) { int i; FlatView *view; view = flatview_new(mr); if (mr) { render_memory_region(view, mr, int128_zero(), addrrange_make(int128_zero(), int128_2_64()), fa...
0
391,645
xmlNodeGetLang(const xmlNode *cur) { xmlChar *lang; if ((cur == NULL) || (cur->type == XML_NAMESPACE_DECL)) return(NULL); while (cur != NULL) { lang = xmlGetNsProp(cur, BAD_CAST "lang", XML_XML_NAMESPACE); if (lang != NULL) return(lang); cur = cur->parent; } return(NULL); }
0
327,145
av_cold int ff_mpv_encode_init(AVCodecContext *avctx) { MpegEncContext *s = avctx->priv_data; int i, ret, format_supported; mpv_encode_defaults(s); switch (avctx->codec_id) { case AV_CODEC_ID_MPEG2VIDEO: if (avctx->pix_fmt != AV_PIX_FMT_YUV420P && avctx->pix_fmt != AV...
1
102,824
static inline loff_t *io_kiocb_update_pos(struct io_kiocb *req) { struct kiocb *kiocb = &req->rw.kiocb; if (kiocb->ki_pos != -1) return &kiocb->ki_pos; if (!(req->file->f_mode & FMODE_STREAM)) { req->flags |= REQ_F_CUR_POS; kiocb->ki_pos = req->file->f_pos; return &kiocb->ki_pos; } kiocb->ki_pos = 0; r...
0
310,188
nfsd4_encode_lock(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_lock *lock) { struct xdr_stream *xdr = &resp->xdr; if (!nfserr) nfserr = nfsd4_encode_stateid(xdr, &lock->lk_resp_stateid); else if (nfserr == nfserr_denied) nfserr = nfsd4_encode_lock_denied(xdr, &lock->lk_denied); return nfserr; }...
0
58,465
int do_netdev_del(Monitor *mon, const QDict *qdict, QObject **ret_data) { const char *id = qdict_get_str(qdict, "id"); VLANClientState *vc; vc = qemu_find_netdev(id); if (!vc || vc->info->type == NET_CLIENT_TYPE_NIC) { qerror_report(QERR_DEVICE_NOT_FOUND, id); return -1; } ...
0
447,858
SendDeviceLedFBs(DeviceIntPtr dev, int class, int id, unsigned wantLength, ClientPtr client) { int length = 0; if (class == XkbDfltXIClass) { if (dev->kbdfeed) class = KbdFeedbackClass; else if (dev->leds) class = LedFeedbackClass; } if ((dev->kb...
0
338,772
int net_client_init(const char *device, const char *p) { static const char * const fd_params[] = { "vlan", "name", "fd", NULL }; char buf[1024]; int vlan_id, ret; VLANState *vlan; char *name = NULL; vlan_id = 0; if (get_param_value(buf, sizeof(buf), "vlan", p)) { ...
0
212,165
void GLES2DecoderImpl::DoCommitOverlayPlanes(uint64_t swap_id, GLbitfield flags) { TRACE_EVENT0("gpu", "GLES2DecoderImpl::DoCommitOverlayPlanes"); if (!supports_commit_overlay_planes_) { LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION, "glCommitOverlayPlanes", ...
0
469,224
static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) { struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); struct xfrm6_tunnel_spi *x6spi; hlist_for_each_entry_rcu(x6spi, &xfrm6_tn->spi_byaddr[xfrm6_tunnel_spi_hash_byaddr(saddr)], list_bya...
0
52,647
static int ext4_delete_entry(handle_t *handle, struct inode *dir, struct ext4_dir_entry_2 *de_del, struct buffer_head *bh) { int err, csum_size = 0; if (ext4_has_inline_data(dir)) { int has_inline_data = 1; err = ext4_delete_inline_entry(handle, dir, de_del, bh, &has_inline_da...
0
254,692
void RenderThreadImpl::OnCreateNewView(const ViewMsg_New_Params& params) { EnsureWebKitInitialized(); RenderViewImpl::Create(params.opener_route_id, params.window_was_created_with_opener, params.renderer_preferences, params.web_preferences, ...
0
213,977
::ppapi::TrackerBase* GetTrackerBase() { return ResourceTracker::Get(); }
0
189,788
void ExtensionTtsController::CheckSpeechStatus() { std::set<std::string> desired_event_types; if (options->HasKey(constants::kDesiredEventTypesKey)) { ListValue* list; EXTENSION_FUNCTION_VALIDATE( options->GetList(constants::kDesiredEventTypesKey, &list)); for (size_t i = 0; i < list->GetSize(...
0
189,251
void GLES2DecoderWithShaderTestBase::SetUp() { GLES2DecoderTestBase::SetUp(); { static AttribInfo attribs[] = { { kAttrib1Name, kAttrib1Size, kAttrib1Type, kAttrib1Location, }, { kAttrib2Name, kAttrib2Size, kAttrib2Type, kAttrib2Location, }, { kAttrib3Name, kAttrib3Size, kAttrib3Type, kAttrib...
0
315,835
static void phar_mung_server_vars(char *fname, char *entry, int entry_len, char *basename, int request_uri_len TSRMLS_DC) /* {{{ */ { HashTable *_SERVER; zval **stuff; char *path_info; int basename_len = strlen(basename); int code; zval *temp; /* "tweak" $_SERVER variables requested in earlier call to Phar::mun...
0
228,382
static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); imp->overloadedPerWorldBindingsMethod(); }
0
229,961
e1000e_set_tidv(E1000ECore *core, int index, uint32_t val) { e1000e_set_16bit(core, index, val); if ((val & E1000_TIDV_FPD) && (core->tidv.running)) { trace_e1000e_irq_tidv_fpd_running(); e1000e_intrmgr_fire_delayed_interrupts(core); } else { trace_e1000e_irq_tidv_fpd_not_running();...
0
166,671
BluetoothSocketAsyncApiFunction::BluetoothSocketAsyncApiFunction() {}
0
338,003
static int dts_probe(AVProbeData *p) { const uint8_t *buf, *bufp; uint32_t state = -1; int markers[4*16] = {0}; int exss_markers = 0, exss_nextpos = 0; int sum, max, pos, i; int64_t diff = 0; uint8_t hdr[12 + AV_INPUT_BUFFER_PADDING_SIZE] = { 0 }; for (pos = FFMIN(4096, p->buf...
0
456,819
static inline int free_consistency_checks(struct kmem_cache *s, struct page *page, void *object, unsigned long addr) { if (!check_valid_pointer(s, page, object)) { slab_err(s, page, "Invalid object pointer 0x%p", object); return 0; } if (on_freelist(s, page, object)) { object_err(s, page, object, "Object al...
0
59,101
sshpkt_get_bignum2(struct ssh *ssh, BIGNUM *v) { return sshbuf_get_bignum2(ssh->state->incoming_packet, v); }
0
239,664
void Browser::TabSelectedAt(TabContentsWrapper* old_contents, TabContentsWrapper* new_contents, int index, bool user_gesture) { if (old_contents == new_contents) return; if (user_gesture && new_contents->tab_contents()->crashed...
0
108,380
static int regex_match_full(char *str, struct regex *r, int len) { /* len of zero means str is dynamic and ends with '\0' */ if (!len) return strcmp(str, r->pattern) == 0; return strncmp(str, r->pattern, len) == 0; }
0
257,516
static int dissect_h225_h225_RasMessage ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) { proto_item * it ; proto_tree * tr ; guint32 offset = 0 ; h225_packet_info * h225_pi ; h225_pi = create_h225_packet_info ( pinfo ) ; h225_pi -> msg_type = H225_RAS ; p_add_proto_data ( wmem_pac...
0
479,813
CImg<ulongT> get_label(const bool is_high_connectivity=false, const Tfloat tolerance=0, const bool is_L2_norm=true) const { if (is_empty()) return CImg<ulongT>(); // Create neighborhood tables. int dx[13], dy[13], dz[13], nb = 0; dx[nb] = 1; dy[nb] = 0; dz[nb++] =...
0
36,555
static void cbcmac_exit_tfm(struct crypto_tfm *tfm) { struct cbcmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); crypto_free_cipher(ctx->child); }
0
97,209
void BinaryProtocolReader::readI32(int32_t& i32) { i32 = in_.readBE<int32_t>(); }
0
293,258
line_interpt(PG_FUNCTION_ARGS) { LINE *l1 = PG_GETARG_LINE_P(0); LINE *l2 = PG_GETARG_LINE_P(1); Point *result; result = line_interpt_internal(l1, l2); if (result == NULL) PG_RETURN_NULL(); PG_RETURN_POINT_P(result); }
0
313,274
bool Dispatcher::IsRuntimeAvailableToContext(ScriptContext* context) { for (const auto& extension : *RendererExtensionRegistry::Get()->GetMainThreadExtensionSet()) { ExternallyConnectableInfo* info = static_cast<ExternallyConnectableInfo*>( extension->GetManifestData(manifest_keys::kExternallyConne...
0
305,999
TensorBuffer* root_buffer() override { return this; }
0
103,228
void jpeg_gdIOCtx_dest (j_compress_ptr cinfo, gdIOCtx * outfile) { my_dest_ptr dest; /* The destination object is made permanent so that multiple JPEG images * can be written to the same file without re-executing jpeg_stdio_dest. * This makes it dangerous to use this manager and a different destination * manag...
0
395,089
void FillFirstShaper(cmsS1Fixed14Number* Table, cmsToneCurve* Curve) { int i; cmsFloat32Number R, y; for (i=0; i < 256; i++) { R = (cmsFloat32Number) (i / 255.0); y = cmsEvalToneCurveFloat(Curve, R); if (y < 131072.0) Table[i] = DOUBLE_TO_1FIXED14(y); else ...
0
276,228
void Document::writeln(const String& text, Document* ownerDocument) { write(text, ownerDocument); write("\n", ownerDocument); }
0
440,583
static u32 eth_hash(const unsigned char *addr) { u64 value = get_unaligned((u64 *)addr); /* only want 6 bytes */ #ifdef __BIG_ENDIAN value >>= 16; #else value <<= 16; #endif return hash_64(value, FDB_HASH_BITS); }
0
405,857
port_name_needs_quotes(const char *port_name) { if (!isalpha((unsigned char) port_name[0])) { return true; } for (const char *p = port_name + 1; *p; p++) { if (!isalnum((unsigned char) *p)) { return true; } } return false; }
0
423,496
dns_zone_setflag(dns_zone_t *zone, unsigned int flags, bool value) { REQUIRE(DNS_ZONE_VALID(zone)); LOCK_ZONE(zone); if (value) DNS_ZONE_SETFLAG(zone, flags); else DNS_ZONE_CLRFLAG(zone, flags); UNLOCK_ZONE(zone); }
0
289,447
static const char * hfinfo_number_vals_format64 ( const header_field_info * hfinfo , char buf [ 64 ] , guint64 value ) { int display = hfinfo -> display & FIELD_DISPLAY_E_MASK ; if ( display == BASE_NONE ) return NULL ; if ( display == BASE_DEC_HEX ) display = BASE_DEC ; if ( display == BASE_HEX_DEC ) display = BAS...
0
68,768
PHP_FUNCTION(imagealphablending) { zval *IM; zend_bool blend; gdImagePtr im; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rb", &IM, &blend) == FAILURE) { return; } ZEND_FETCH_RESOURCE(im, gdImagePtr, &IM, -1, "Image", le_gd); gdImageAlphaBlending(im, blend); RETURN_TRUE; }
0
216,799
V8LazyEventListener::V8LazyEventListener(const AtomicString& functionName, const AtomicString& eventParameterName, const String& code, const String sourceURL, const TextPosition& position, Node* node, v8::Isolate* isolate) : V8AbstractEventListener(true, DOMWrapperWorld::mainWorld(), isolate) , m_functionName(f...
0
12,729
Blob::Blob(const KURL& srcURL, const String& type, long long size) : m_type(type) , m_size(size) { ScriptWrappable::init(this); m_internalURL = BlobURL::createInternalURL(); ThreadableBlobRegistry::registerBlobURL(0, m_internalURL, srcURL); }
1
242,216
void ScriptController::clearForOutOfMemory() { clearForClose(true); }
0
153,455
static int trace_die_handler(struct notifier_block *self, unsigned long val, void *data) { switch (val) { case DIE_OOPS: if (ftrace_dump_on_oops) ftrace_dump(ftrace_dump_on_oops); break; default: break; } return NOTIFY_OK; }
0
269,765
decode_NXAST_RAW_FIN_TIMEOUT(const struct nx_action_fin_timeout *naft, enum ofp_version ofp_version OVS_UNUSED, struct ofpbuf *out) { struct ofpact_fin_timeout *oft; oft = ofpact_put_FIN_TIMEOUT(out); oft->fin_idle_timeout = ntohs(naft->fin_idle_tim...
0
272,830
IdentPtrList* Parser::EnsureRequestedModulesList() { if (m_currentNodeProg->sxModule.requestedModules == nullptr) { m_currentNodeProg->sxModule.requestedModules = Anew(&m_nodeAllocator, IdentPtrList, &m_nodeAllocator); } return m_currentNodeProg->sxModule.requestedModules; }
0
511,891
make_func_export_array () { char **list; SHELL_VAR **vars; vars = map_over_funcs (visible_and_exported); if (vars == 0) return (char **)NULL; list = make_env_array_from_var_list (vars); free (vars); return (list); }
0
174,662
JSValue JSTestEventTarget::indexGetter(ExecState* exec, JSValue slotBase, unsigned index) { JSTestEventTarget* thisObj = jsCast<JSTestEventTarget*>(asObject(slotBase)); ASSERT_GC_OBJECT_INHERITS(thisObj, &s_info); return toJS(exec, thisObj->globalObject(), static_cast<TestEventTarget*>(thisObj->impl())->ite...
0
115,125
static int session_call_on_frame_received(nghttp2_session *session, nghttp2_frame *frame) { int rv; if (session->callbacks.on_frame_recv_callback) { rv = session->callbacks.on_frame_recv_callback(session, frame, session...
0
397,024
wc_ucs_to_iso2022(wc_uint32 ucs) { wc_table *t; wc_wchar_t cc; int f; if (ucs <= WC_C_UCS2_END) { for (f = 0; f <= WC_F_CS96_END - WC_F_ISO_BASE; f++) { t = &ucs_cs96_table[f]; if (t->map == NULL) continue; cc = wc_ucs_to_any((wc_uint16)ucs, t); if (!WC_CCS_IS_UNKNOWN(cc.ccs)) ...
0
307,509
std::vector<RenderWidgetHostView*> GetInputEventRouterRenderWidgetHostViews( WebContents* web_contents) { return static_cast<WebContentsImpl*>(web_contents) ->GetInputEventRouter() ->GetRenderWidgetHostViewsForTests(); }
0
365,888
xmlHashGrow(xmlHashTablePtr table, int size) { unsigned long key; int oldsize, i; xmlHashEntryPtr iter, next; struct _xmlHashEntry *oldtable; #ifdef DEBUG_GROW unsigned long nbElem = 0; #endif if (table == NULL) return(-1); if (size < 8) return(-1); if (size > 8 * 2048) retu...
0
508,667
static int asn1_set_seq_out(STACK_OF(ASN1_VALUE) *sk, unsigned char **out, int skcontlen, const ASN1_ITEM *item, int do_sort, int iclass) { int i; ASN1_VALUE *skitem; unsigned char *tmpdat = NULL, *p = NULL; DER_ENC *derlst = NULL, *tder; if (d...
0
391,836
PHP_METHOD(Phar, getSupportedSignatures) { if (zend_parse_parameters_none() == FAILURE) { return; } array_init(return_value); add_next_index_stringl(return_value, "MD5", 3); add_next_index_stringl(return_value, "SHA-1", 5); #ifdef PHAR_HASH_OK add_next_index_stringl(return_value, "SHA-256", 7); add_next_inde...
0
288,589
IN_PROC_BROWSER_TEST_F ( SitePerProcessInteractiveBrowserTest , SequentialFocusNavigation ) { GURL main_url ( embedded_test_server ( ) -> GetURL ( "a.com" , "/cross_site_iframe_factory.html?a(b,c)" ) ) ; ui_test_utils : : NavigateToURL ( browser ( ) , main_url ) ; content : : WebContents * web_contents = browser ( )...
0
37,220
UnicodeString::getTerminatedBuffer() { if(!isWritable()) { return nullptr; } UChar *array = getArrayStart(); int32_t len = length(); if(len < getCapacity()) { if(fUnion.fFields.fLengthAndFlags & kBufferIsReadonly) { // If len<capacity on a read-only alias, then array[len] is // either the ...
0
238,368
OVS_REQUIRES(ofproto_mutex) { struct rule_collection *old_rules = &ofm->old_rules; enum ofperr error; error = collect_rules_loose(ofproto, &ofm->criteria, old_rules); if (!error) { error = modify_flows_start__(ofproto, ofm); } if (error) { rule_collection_destroy(old_rules...
0
438,310
uint64_t max_block_additional_id() const { return max_block_additional_id_; }
0
483,841
bool device_is_bound(struct device *dev) { return dev->p && klist_node_attached(&dev->p->knode_driver); }
0
443,515
static void window_reset(struct psi_window *win, u64 now, u64 value, u64 prev_growth) { win->start_time = now; win->start_value = value; win->prev_growth = prev_growth; }
0
430,596
static apr_status_t h2_proxy_session_read(h2_proxy_session *session, int block, apr_interval_time_t timeout) { apr_status_t status = APR_SUCCESS; if (APR_BRIGADE_EMPTY(session->input)) { apr_socket_t *socket = NULL; apr_time_t save_timeout = -1; ...
0
510,338
Item *Item_static_float_func::safe_charset_converter(CHARSET_INFO *tocs) { Item_string *conv; char buf[64]; String *s, tmp(buf, sizeof(buf), &my_charset_bin); s= val_str(&tmp); if ((conv= new Item_static_string_func(func_name, s->ptr(), s->length(), s->charset()))) {...
0
210,766
int32_t WebPage::finishComposition() { return d->m_inputHandler->finishComposition(); }
0
161,760
void CLASS phase_one_flat_field (int is_float, int nc) { ushort head[8]; unsigned wide, y, x, c, rend, cend, row, col; float *mrow, num, mult[4]; read_shorts (head, 8); wide = head[2] / head[4]; mrow = (float *) calloc (nc*wide, sizeof *mrow); merror (mrow, "phase_one_flat_field()"); for (y=0; y < head...
0
380,984
int x86_emulate_insn(struct x86_emulate_ctxt *ctxt) { const struct x86_emulate_ops *ops = ctxt->ops; int rc = X86EMUL_CONTINUE; int saved_dst_type = ctxt->dst.type; ctxt->mem_read.pos = 0; /* LOCK prefix is allowed only with some instructions */ if (ctxt->lock_prefix && (!(ctxt->d & Lock) || ctxt->dst.type != O...
0
184,817
void GpuProcessHost::OnAcceleratedSurfaceSuspend(int32 surface_id) { TRACE_EVENT0("gpu", "GpuProcessHost::OnAcceleratedSurfaceSuspend"); gfx::PluginWindowHandle handle = GpuSurfaceTracker::Get()->GetSurfaceWindowHandle(surface_id); if (!handle) return; scoped_refptr<AcceleratedPresenter> presenter( ...
0
384,997
static PHP_FUNCTION(xmlwriter_full_end_element) { php_xmlwriter_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterFullEndElement); }
0
269,942
void __init inode_init(void) { /* inode slab cache */ inode_cachep = kmem_cache_create("inode_cache", sizeof(struct inode), 0, (SLAB_RECLAIM_ACCOUNT|SLAB_PANIC| SLAB_MEM_SPREAD|SLAB_ACCOUNT), init_once); /* Hash may have been set up in inode_init_early */ if (!hashdist) return; in...
0
106,055
validate_maphash(void) { if (!maphash_valid) { vim_memset(maphash, 0, sizeof(maphash)); maphash_valid = TRUE; } }
0
464,445
static void tipc_node_delete_from_list(struct tipc_node *node) { #ifdef CONFIG_TIPC_CRYPTO tipc_crypto_key_flush(node->crypto_rx); #endif list_del_rcu(&node->list); hlist_del_rcu(&node->hash); tipc_node_put(node); }
0
294,837
static int lua_apr_b64decode(lua_State *L) { const char *encoded; char *plain; size_t encoded_len, decoded_len; request_rec *r; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); encoded = lua_tolstring(L, 2, &encoded_len); decoded_len = apr...
0
15,057
static void srtp_calc_aead_iv_srtcp ( srtp_stream_ctx_t * stream , v128_t * iv , uint32_t seq_num , srtcp_hdr_t * hdr ) { v128_t in ; v128_t salt ; memset ( & in , 0 , sizeof ( v128_t ) ) ; memset ( & salt , 0 , sizeof ( v128_t ) ) ; in . v16 [ 0 ] = 0 ; memcpy ( & in . v16 [ 1 ] , & hdr -> ssrc , 4 ) ; in . v16...
0
240,406
void Splash::dumpXPath(SplashXPath *path) { int i; for (i = 0; i < path->length; ++i) { printf(" %4d: x0=%8.2f y0=%8.2f x1=%8.2f y1=%8.2f %s%s%s%s%s%s%s\n", i, (double)path->segs[i].x0, (double)path->segs[i].y0, (double)path->segs[i].x1, (double)path->segs[i].y1, (path->segs[i].flags & splashXPath...
0
266,789
bool_t ipv6IsAnycastAddr(NetInterface *interface, const Ipv6Addr *ipAddr) { uint_t i; Ipv6Addr *anycastAddrList; //Point to the list of anycast addresses assigned to the interface anycastAddrList = interface->ipv6Context.anycastAddrList; //Loop through the list of IPv6 anycast addresses for(i = 0; i...
0
367,937
int pgmraw_to_fits (char *pgmfile, char *fitsfile) {FITS_FILE *fitsout = NULL; FILE *pgmin = NULL; FITS_HDU_LIST *hdu; char buffer[1024]; int width, height, numbytes, maxbytes; int retval = -1; fitsout = fits_open (fitsfile, "w"); if (fitsout == NULL) goto err_return; pgmin = g_fopen (pgmfile, "r"); if (pgm...
0
63,246
int _cdk_sk_get_csum(cdk_pkt_seckey_t sk) { u16 csum = 0, i; if (!sk) return 0; for (i = 0; i < cdk_pk_get_nskey(sk->pubkey_algo); i++) csum += checksum_mpi(sk->mpi[i]); return csum; }
0
349,562
HiiGetDatabaseInfo( IN CONST EFI_HII_DATABASE_PROTOCOL *This ) { EFI_STATUS Status; EFI_HII_PACKAGE_LIST_HEADER *DatabaseInfo; UINTN DatabaseInfoSize; DatabaseInfo = NULL; DatabaseInfoSize = 0; // // Get Hi...
1
442,705
static void hci_cc_reset(struct hci_dev *hdev, struct sk_buff *skb) { __u8 status = *((__u8 *) skb->data); BT_DBG("%s status 0x%2.2x", hdev->name, status); clear_bit(HCI_RESET, &hdev->flags); if (status) return; /* Reset all non-persistent flags */ hci_dev_clear_volatile_flags(hdev); hci_discovery_set_sta...
0
30,052
void EVP_EncodeFinal ( EVP_ENCODE_CTX * ctx , unsigned char * out , int * outl ) { unsigned int ret = 0 ; if ( ctx -> num != 0 ) { ret = EVP_EncodeBlock ( out , ctx -> enc_data , ctx -> num ) ; out [ ret ++ ] = '\n' ; out [ ret ] = '\0' ; ctx -> num = 0 ; } * outl = ret ; }
0
143,086
void fx_TypedArray_prototype_reduceRight(txMachine* the) { mxTypedArrayDeclarations; txInteger delta = dispatch->value.typedArray.dispatch->size; txSlot* function = fxArgToCallback(the, 0); txInteger index = length - 1; if (mxArgc > 1) *mxResult = *mxArgv(1); else if (index >= 0) { (*dispatch->value.typedArra...
0
465,611
static void sctp_sendmsg_update_sinfo(struct sctp_association *asoc, struct sctp_sndrcvinfo *sinfo, struct sctp_cmsgs *cmsgs) { if (!cmsgs->srinfo && !cmsgs->sinfo) { sinfo->sinfo_stream = asoc->default_stream; sinfo->sinfo_ppid = asoc->default_ppid; sinfo->sinfo_context = asoc->default_conte...
0
25,666
void notef ( struct GlobalConfig * config , const char * fmt , ... ) { va_list ap ; va_start ( ap , fmt ) ; if ( config -> tracetype ) voutf ( config , NOTE_PREFIX , fmt , ap ) ; va_end ( ap ) ; }
0
223,503
void FileSelectionCanceled() { proxy_ = nullptr; if (!render_frame_host_) return; std::move(callback_).Run(nullptr); }
0
392,738
xmlGzfileOpen_real (const char *filename) { const char *path = NULL; gzFile fd; if (!strcmp(filename, "-")) { int duped_fd = dup(fileno(stdin)); fd = gzdopen(duped_fd, "rb"); if (fd == Z_NULL && duped_fd >= 0) { close(duped_fd); /* gzdOpen() does not close on failure */...
0
363,738
compat_copy_entry_from_user(struct compat_ip6t_entry *e, void **dstptr, unsigned int *size, const char *name, struct xt_table_info *newinfo, unsigned char *base) { struct xt_entry_target *t; struct xt_target *target; struct ip6t_entry *de; unsigned int origsize; int ret, h; struct xt_entry_match *em...
0
476,798
static void ax_encaps(struct net_device *dev, unsigned char *icp, int len) { struct mkiss *ax = netdev_priv(dev); unsigned char *p; int actual, count; if (ax->mtu != ax->dev->mtu + 73) /* Someone has been ifconfigging */ ax_changedmtu(ax); if (len > ax->mtu) { /* Sigh, shouldn't occur BUT ... */ printk(KERN...
0
281,983
EncodedJSValue JSC_HOST_CALL JSDataViewConstructor::constructJSDataView(ExecState* exec) { if (exec->argument(0).isNull() || !exec->argument(0).isObject()) return throwVMTypeError(exec); RefPtr<DataView> view = constructArrayBufferViewWithArrayBufferArgument<DataView, char>(exec); if (!view.get()) ...
0
228,204
void TouchEventConverterEvdev::OnFileCanReadWithoutBlocking(int fd) { TRACE_EVENT1("evdev", "TouchEventConverterEvdev::OnFileCanReadWithoutBlocking", "fd", fd); input_event inputs[kNumTouchEvdevSlots * 6 + 1]; ssize_t read_size = read(fd, inputs, sizeof(inputs)); if (read_size...
0
255,947
int ssl3_connect(SSL *s) { BUF_MEM *buf=NULL; unsigned long 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_callback != NULL) cb=s->info_callback; e...
1
156,833
void free_cache_bitmap_v2_order(rdpContext* context, CACHE_BITMAP_V2_ORDER* order) { if (order) free(order->bitmapDataStream); free(order); }
0
123,611
static void init_threaded_search(void) { init_recursive_mutex(&read_mutex); pthread_mutex_init(&cache_mutex, NULL); pthread_mutex_init(&progress_mutex, NULL); pthread_cond_init(&progress_cond, NULL); old_try_to_free_routine = set_try_to_free_routine(try_to_free_from_threads); }
0
293,305
void CWebServer::Cmd_AddSceneCode(WebEmSession & session, const request& req, Json::Value &root) { if (session.rights != 2) { session.reply_status = reply::forbidden; return; //Only admin user allowed } std::string sceneidx = request::findValue(&req, "sceneidx"); std::string idx = request::f...
0
158,948
lyp_check_mandatory_choice(struct lys_node *node) { const struct lys_node *mand, *dflt = ((struct lys_node_choice *)node)->dflt; if ((mand = lyp_check_mandatory_(dflt))) { if (mand != dflt) { LOGVAL(node->module->ctx, LYE_INSTMT, LY_VLOG_NONE, NULL, "mandatory"); LOGVAL(node->mo...
0
460,552
int slap_sasl_regexp_rewrite_config( const char *fname, int lineno, const char *match, const char *replace, const char *context ) { int rc; char *argvRule[] = { "rewriteRule", NULL, NULL, ":@", NULL }; /* init at first call */ if ( sasl_rwinfo == NULL ) { char *argvEngine[] = { "rewriteEngine", "on", ...
0
264,174
static void ftrace_shutdown(struct ftrace_ops *ops, int command) { bool hash_disable = true; if (unlikely(ftrace_disabled)) return; ftrace_start_up--; /* * Just warn in case of unbalance, no need to kill ftrace, it's not * critical but the ftrace_call callers may be never nopped again after * further ftra...
0
122,896
inline void LstmCell( const LstmCellParams& params, const RuntimeShape& unextended_input_shape, const float* input_data, const RuntimeShape& unextended_prev_activ_shape, const float* prev_activ_data, const RuntimeShape& weights_shape, const float* weights_data, const RuntimeShape& unextended_bias_shape,...
0
448,027
int sftp_reply_names_add(sftp_client_message msg, const char *file, const char *longname, sftp_attributes attr) { ssh_string name; name = ssh_string_from_char(file); if (name == NULL) { return -1; } if (msg->attrbuf == NULL) { msg->attrbuf = ssh_buffer_new(); if (msg->attrbuf == NULL) { ...
0
208,191
void setJSTestObjUnsignedShortSequenceAttr(ExecState* exec, JSObject* thisObject, JSValue value) { JSTestObj* castedThis = jsCast<JSTestObj*>(thisObject); TestObj* impl = static_cast<TestObj*>(castedThis->impl()); impl->setUnsignedShortSequenceAttr(toNativeArray<unsigned short>(exec, value)); }
0
336,267
void msix_unuse_all_vectors(PCIDevice *dev) { if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) return; msix_free_irq_entries(dev); }
0
4,700
bool HHVM_FUNCTION(apc_clear_cache, const String& /*cache_type*/ /* = "" */) { if (!apcExtension::Enable) return false; return apc_store().clear(); }
1
79,310
SQLiteDBInstanceRef SQLiteDBManager::getUnique() { auto instance = std::make_shared<SQLiteDBInstance>(); attachVirtualTables(instance); return instance; }
0