idx
int64
func
string
target
int64
226,392
void esds_box_del(GF_Box *s) { GF_ESDBox *ptr = (GF_ESDBox *)s; if (ptr == NULL) return; if (ptr->desc) gf_odf_desc_del((GF_Descriptor *)ptr->desc); gf_free(ptr); }
0
229,154
static void set_status(VirtIODevice *vdev, uint8_t status) { VirtIOSerial *vser; VirtIOSerialPort *port; vser = VIRTIO_SERIAL(vdev); port = find_port_by_id(vser, 0); if (port && !use_multiport(port->vser) && (status & VIRTIO_CONFIG_S_DRIVER_OK)) { /* * Non-multiport guests...
0
195,302
R_API bool r_io_bank_map_add_top(RIO *io, const ut32 bankid, const ut32 mapid) { RIOBank *bank = r_io_bank_get (io, bankid); RIOMap *map = r_io_map_get (io, mapid); r_return_val_if_fail (io && bank && map, false); RIOMapRef *mapref = _mapref_from_map (map); if (!mapref) { return false; } RIOSubMap *sm = r_io_s...
1
512,527
Field *create_tmp_field_ex(TABLE *table, Tmp_field_src *src, const Tmp_field_param *param) { return Item_type_holder::real_type_handler()-> make_and_init_table_field(&name, Record_addr(maybe_null), *this, table); }
0
313,541
static void rose_remove_node(struct rose_node *rose_node) { struct rose_node *s; if ((s = rose_node_list) == rose_node) { rose_node_list = rose_node->next; kfree(rose_node); return; } while (s != NULL && s->next != NULL) { if (s->next == rose_node) { s->next = rose_node->next; kfree(rose_node); r...
0
231,793
TEST_F(QuicServerTransportTest, IdleTimerNotResetOnDuplicatePacket) { EXPECT_CALL(*transportInfoCb_, onNewQuicStream()).Times(1); StreamId streamId = server->createBidirectionalStream().value(); auto expected = IOBuf::copyBuffer("hello"); auto packet = recvEncryptedStream(streamId, *expected); ASSERT_TRUE(se...
0
300,785
static int tipc_recvmsg(struct socket *sock, struct msghdr *m, size_t buflen, int flags) { struct sock *sk = sock->sk; bool connected = !tipc_sk_type_connectionless(sk); struct tipc_sock *tsk = tipc_sk(sk); int rc, err, hlen, dlen, copy; struct tipc_skb_cb *skb_cb; struct sk_buff_head xmitq; struct tipc_msg *...
0
90,179
virtual void RemoveObserverForAllNetworks(NetworkObserver* observer) {}
0
439,150
ModuleExport size_t RegisterICONImage(void) { MagickInfo *entry; entry=SetMagickInfo("CUR"); entry->decoder=(DecodeImageHandler *) ReadICONImage; entry->encoder=(EncodeImageHandler *) WriteICONImage; entry->adjoin=MagickFalse; entry->seekable_stream=MagickTrue; entry->description=ConstantString("Micr...
0
413,582
static void add_single_addr_xrefs(RCore *core, ut64 addr, RGraph *graph) { r_return_if_fail (graph); RFlagItem *f = r_flag_get_at (core->flags, addr, false); char *me = (f && f->offset == addr) ? r_str_new (f->name) : r_str_newf ("0x%" PFMT64x, addr); RGraphNode *curr_node = r_graph_add_node_info (graph, me, N...
0
404,740
__acquires(files->file_lock) { struct fdtable *new_fdt, *cur_fdt; spin_unlock(&files->file_lock); new_fdt = alloc_fdtable(nr); /* make sure all fd_install() have seen resize_in_progress * or have finished their rcu_read_lock_sched() section. */ if (atomic_read(&files->count) > 1) synchronize_rcu(); spin...
0
434,104
do_one_arg(char_u *str) { char_u *p; int inbacktick; inbacktick = FALSE; for (p = str; *str; ++str) { // When the backslash is used for escaping the special meaning of a // character we need to keep it until wildcard expansion. if (rem_backslash(str)) { *p++ = *str++; *p++ = *str; }...
0
338,231
void WasmBinaryWriter::writeField(const Field& field) { if (field.type == Type::i32 && field.packedType != Field::not_packed) { if (field.packedType == Field::i8) { o << S32LEB(BinaryConsts::EncodedType::i8); } else if (field.packedType == Field::i16) { o << S32LEB(BinaryConsts::EncodedType::i16);...
0
463,055
static void sungem_mmio_txdma_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { SunGEMState *s = opaque; if (!(addr < 0x38) && !(addr >= 0x100 && addr <= 0x118)) { qemu_log_mask(LOG_GUEST_ERROR, "Write to unknown TXDMA register 0x%...
0
411,903
_find_by_keyword(smartlist_t *s, directory_keyword keyword, const char *keyword_as_string) { directory_token_t *tok = find_opt_by_keyword(s, keyword); if (PREDICT_UNLIKELY(!tok)) { log_err(LD_BUG, "Missing %s [%d] in directory object that should have " "been validated. Internal error."...
0
225,828
GF_Err edts_box_write(GF_Box *s, GF_BitStream *bs) { GF_EditBox *ptr = (GF_EditBox *)s; //here we have a trick: if editList is empty, skip the box if (ptr->editList && gf_list_count(ptr->editList->entryList)) { return gf_isom_box_write_header(s, bs); } else { s->size = 0; } return GF_OK; }
0
202,392
static inline LineContribType * _gdContributionsAlloc(unsigned int line_length, unsigned int windows_size) { unsigned int u = 0; LineContribType *res; int overflow_error = 0; res = (LineContribType *) gdMalloc(sizeof(LineContribType)); if (!res) { return NULL; } res->WindowSize = windows_size; res->LineLengt...
1
282,885
int rsi_band_check(struct rsi_common *common, struct ieee80211_channel *curchan) { struct rsi_hw *adapter = common->priv; struct ieee80211_hw *hw = adapter->hw; u8 prev_bw = common->channel_width; u8 prev_ep = common->endpoint; int status = 0; if (common->band != curchan->band) { common->rf_reset = 1; c...
0
248,282
DLLIMPORT char *cfg_getstr(cfg_t *cfg, const char *name) { return cfg_getnstr(cfg, name, 0); }
0
317,102
static int smack_ipc_alloc_security(struct kern_ipc_perm *isp) { struct smack_known **blob = smack_ipc(isp); *blob = smk_of_current(); return 0; }
0
220,832
inline int SubscriptToIndex(const NdArrayDesc<4>& desc, int i0, int i1, int i2, int i3) { TFLITE_DCHECK(i0 >= 0 && i0 < desc.extents[0]); TFLITE_DCHECK(i1 >= 0 && i1 < desc.extents[1]); TFLITE_DCHECK(i2 >= 0 && i2 < desc.extents[2]); TFLITE_DCHECK(i3 >= 0 && i3 < desc.extents[3]); ...
0
225,718
GF_Err gen_sample_entry_box_read(GF_Box *s, GF_BitStream *bs) { GF_Err e = gf_isom_base_sample_entry_read((GF_SampleEntryBox *)s, bs); if (e) return e; ISOM_DECREASE_SIZE(s, 8); return gf_isom_box_array_read(s, bs); }
0
455,312
bash_progcomp_ignore_filenames (names) char **names; { _ignore_completion_names (names, test_for_canon_directory); return 0; }
0
361,747
static void em28xx_release_resources(struct em28xx *dev) { struct usb_device *udev = interface_to_usbdev(dev->intf); /*FIXME: I2C IR should be disconnected */ mutex_lock(&dev->lock); em28xx_unregister_media_device(dev); if (dev->def_i2c_bus) em28xx_i2c_unregister(dev, 1); em28xx_i2c_unregister(dev, 0); if...
0
274,678
callbacks_layer_tree_visibility_toggled (gint index) { mainProject->file[index]->isVisible = !mainProject->file[index]->isVisible; callbacks_update_layer_tree (); if (screenRenderInfo.renderType <= GERBV_RENDER_TYPE_GDK_XOR) { render_refresh_rendered_image_on_screen (); } else { render_recreate_composite_sur...
0
353,145
void SplashOutputDev::saveState(GfxState *state) { splash->saveState(); if (t3GlyphStack && !t3GlyphStack->haveDx) { t3GlyphStack->doNotCache = true; error(errSyntaxWarning, -1, "Save (q) operator before d0/d1 in Type 3 glyph"); } }
0
453,034
void nft_immediate_eval(const struct nft_expr *expr, struct nft_regs *regs, const struct nft_pktinfo *pkt) { const struct nft_immediate_expr *priv = nft_expr_priv(expr); nft_data_copy(&regs->data[priv->dreg], &priv->data, priv->dlen); }
0
267,985
static int string_scan_range(RList *list, RBinFile *bf, int min, const ut64 from, const ut64 to, int type, int raw, RBinSection *section) { RBin *bin = bf->rbin; ut8 tmp[R_STRING_SCAN_BUFFER_SIZE]; ut64 str_start, needle = from; int count = 0, i, rc, runes; int str_type = R_STRING_TYPE_DETECT; // if lis...
0
474,073
cp949_mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, const UChar* end, UChar* lower, OnigEncoding enc) { return onigenc_mbn_mbc_case_fold(enc, flag, pp, end, lower); }
0
220,901
bool RemoveControlInput(NodeDef* node, const string& control_input_to_remove, NodeMap* node_map) { for (int pos = node->input_size() - 1; pos >= 0; --pos) { const string& input = node->input(pos); if (input[0] != '^') break; if (input == control_input_to_remove) { node->mutab...
0
369,275
static ssize_t io_iov_buffer_select(struct io_kiocb *req, struct iovec *iov, unsigned int issue_flags) { if (req->flags & REQ_F_BUFFER_SELECTED) { struct io_buffer *kbuf = req->kbuf; iov[0].iov_base = u64_to_user_ptr(kbuf->addr); iov[0].iov_len = kbuf->len; return 0; } if (req->rw.len != 1) return...
0
487,674
static int notifier_chain_unregister(struct notifier_block **nl, struct notifier_block *n) { while ((*nl) != NULL) { if ((*nl) == n) { rcu_assign_pointer(*nl, n->next); return 0; } nl = &((*nl)->next); } return -ENOENT; }
0
430,469
gopherSendComplete(const Comm::ConnectionPointer &conn, char *, size_t size, Comm::Flag errflag, int xerrno, void *data) { GopherStateData *gopherState = (GopherStateData *) data; StoreEntry *entry = gopherState->entry; debugs(10, 5, HERE << conn << " size: " << size << " errflag: " << errflag); if (si...
0
211,785
static jpc_enc_cp_t *cp_create(const char *optstr, jas_image_t *image) { jpc_enc_cp_t *cp; jas_tvparser_t *tvp; int ret; int numilyrrates; double *ilyrrates; int i; int tagid; jpc_enc_tcp_t *tcp; jpc_enc_tccp_t *tccp; jpc_enc_ccp_t *ccp; uint_fast16_t rlvlno; uint_fast16_t prcwidthexpn; uint_fast16_t prche...
1
261,198
int wm_SemFree(wm_Sem *s){ if ((s == NULL) || (*s == NULL)) return MQTT_CODE_ERROR_BAD_ARG; dispatch_release(*s); *s = NULL; return 0; }
0
466,136
static int em_cmpxchg8b(struct x86_emulate_ctxt *ctxt) { u64 old = ctxt->dst.orig_val64; if (((u32) (old >> 0) != (u32) ctxt->regs[VCPU_REGS_RAX]) || ((u32) (old >> 32) != (u32) ctxt->regs[VCPU_REGS_RDX])) { ctxt->regs[VCPU_REGS_RAX] = (u32) (old >> 0); ctxt->regs[VCPU_REGS_RDX] = (u32) (old >> 32); ctxt-...
0
223,461
static SLJIT_INLINE PCRE2_SPTR set_then_offsets(compiler_common *common, PCRE2_SPTR cc, sljit_u8 *current_offset) { PCRE2_SPTR end = bracketend(cc); BOOL has_alternatives = cc[GET(cc, 1)] == OP_ALT; /* Assert captures then. */ if (*cc >= OP_ASSERT && *cc <= OP_ASSERTBACK_NA) current_offset = NULL; /* Conditional blo...
0
309,848
PutCharLR(NCURSES_SP_DCLx const ARG_CH_T ch) { if (!auto_right_margin) { /* we can put the char directly */ PutAttrChar(NCURSES_SP_ARGx ch); } else if (enter_am_mode && exit_am_mode) { /* we can suppress automargin */ NCURSES_PUTP2("exit_am_mode", exit_am_mode); PutAttrChar(NCURSES_SP_ARGx ch); SP_PARM->...
0
318,959
prepare_assert_error(garray_T *gap) { char buf[NUMBUFLEN]; char_u *sname = estack_sfile(ESTACK_NONE); ga_init2(gap, 1, 100); if (sname != NULL) { ga_concat(gap, sname); if (SOURCING_LNUM > 0) ga_concat(gap, (char_u *)" "); } if (SOURCING_LNUM > 0) { sprintf(buf, "line %ld", ...
0
384,300
heap_available() { long avail = 0; void *probes[max_malloc_probes]; uint n; for (n = 0; n < max_malloc_probes; n++) { if ((probes[n] = malloc(malloc_probe_size)) == 0) break; if_debug2('a', "[a]heap_available probe[%d]=0x%lx\n", n, (ulong) probes[n]); ...
0
220,463
Status BuildXlaCompilationCache(DeviceBase* device, FunctionLibraryRuntime* flr, const XlaPlatformInfo& platform_info, XlaCompilationCache** cache) { if (platform_info.xla_device_metadata()) { *cache = new XlaCompilationCache( platform_info.x...
0
270,358
parser_parse_for_statement_start (parser_context_t *context_p) /**< context */ { parser_loop_statement_t loop; JERRY_ASSERT (context_p->token.type == LEXER_KEYW_FOR); lexer_next_token (context_p); #if JERRY_ESNEXT bool is_for_await = false; if (context_p->token.type == LEXER_KEYW_AWAIT) { if (JERRY_U...
0
259,196
static int mov_try_read_block(AVIOContext *pb, size_t size, uint8_t **data) { const unsigned int block_size = 1024 * 1024; uint8_t *buffer = NULL; unsigned int alloc_size = 0, offset = 0; while (offset < size) { unsigned int new_size = alloc_size >= INT_MAX - block_size ? INT_MAX : a...
0
307,850
ciEnv::~ciEnv() { CompilerThread* current_thread = CompilerThread::current(); _factory->remove_symbols(); // Need safepoint to clear the env on the thread. RedefineClasses might // be reading it. GUARDED_VM_ENTRY(current_thread->set_env(NULL);) }
0
264,657
static GF_Err BM_ParseGlobalQuantizer(GF_BifsDecoder *codec, GF_BitStream *bs, GF_List *com_list) { GF_Node *node; GF_Command *com; GF_CommandField *inf; node = gf_bifs_dec_node(codec, bs, NDT_SFWorldNode); if (!node) return GF_NON_COMPLIANT_BITSTREAM; /*reset global QP*/ if (codec->scenegraph->global_qp) { g...
0
336,613
static gpointer openssl_global_init_once(gpointer arg) { SSL_library_init(); SSL_load_error_strings(); openssl_thread_setup(); return NULL; }
0
212,347
append_command(char_u *cmd) { char_u *s = cmd; char_u *d; STRCAT(IObuff, ": "); d = IObuff + STRLEN(IObuff); while (*s != NUL && d - IObuff + 5 < IOSIZE) { if (enc_utf8 ? (s[0] == 0xc2 && s[1] == 0xa0) : *s == 0xa0) { s += enc_utf8 ? 2 : 1; STRCPY(d, "<a0>"); d += 4; } else i...
1
443,704
utf16be_is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end) { const UChar* p = *pp; (*pp) += EncLen_UTF16[*p]; if (*p == 0) { int c, v; p++; if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) { return TRUE; } c = *p; v = ONIGENC_IS_UNIC...
0
372,354
static char *sdb_find_arg(char *p) { p++; while (*p==' ') p++; char *pp=p; while (*pp>' ') pp++; *pp='\0'; return p; }
0
439,141
static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception) { char colorspace[MaxTextExtent], text[MaxTextExtent]; double x_offset, y_offset; Image *image; IndexPacket *indexes; MagickBooleanType status; MagickPixelPacket pixel; QuantumAny ran...
0
226,437
Status CheckExternalState() const override { return Status::OK(); }
0
206,677
unix_expandpath( garray_T *gap, char_u *path, int wildoff, int flags, // EW_* flags int didstar) // expanded "**" once already { char_u *buf; char_u *path_end; char_u *p, *s, *e; int start_len = gap->ga_len; char_u *pat; regmatch_T regmatch; int starts_with_dot; ...
1
310,155
_nc_mouse_event(SCREEN *sp) { MEVENT *eventp = sp->_mouse_eventp; bool result = FALSE; (void) eventp; switch (sp->_mouse_type) { case M_XTERM: /* xterm: never have to query, mouse events are in the keyboard stream */ #if USE_EMX_MOUSE { char kbuf[3]; int i, res = read(M_FD(sp), &kbuf,...
0
393,518
static SQInteger array_insert(HSQUIRRELVM v) { SQObject &o=stack_get(v,1); SQObject &idx=stack_get(v,2); SQObject &val=stack_get(v,3); if(!_array(o)->Insert(tointeger(idx),val)) return sq_throwerror(v,_SC("index out of range")); sq_pop(v,2); return 1; }
0
359,337
DEFUN (clear_bgp_peer_group_soft, clear_bgp_peer_group_soft_cmd, "clear bgp peer-group WORD soft", CLEAR_STR BGP_STR "Clear all members of peer-group\n" "BGP peer-group name\n" "Soft reconfig\n") { return bgp_clear_vty (vty, NULL, AFI_IP6, SAFI_UNICAST, clear_group, ...
0
225,825
void sdp_box_del(GF_Box *s) { GF_SDPBox *ptr = (GF_SDPBox *)s; if (ptr->sdpText) gf_free(ptr->sdpText); gf_free(ptr); }
0
233,815
void fmtutil_handle_id3(deark *c, dbuf *f, struct de_id3info *id3i, unsigned int flags) { i64 id3v1pos = 0; int look_for_id3v1; de_zeromem(id3i, sizeof(struct de_id3info)); id3i->main_start = 0; id3i->main_end = f->len; id3i->has_id3v2 = !dbuf_memcmp(f, 0, "ID3", 3); if(id3i->has_id3v2) { de_module_params i...
0
336,498
static void reds_handle_auth_mechanism(void *opaque) { RedLinkInfo *link = (RedLinkInfo *)opaque; RedsState *reds = link->reds; spice_debug("Auth method: %d", link->auth_mechanism.auth_mechanism); link->auth_mechanism.auth_mechanism = GUINT32_FROM_LE(link->auth_mechanism.auth_mechanism); if (link-...
0
209,955
struct iwl_trans *iwl_trans_pcie_alloc(struct pci_dev *pdev, const struct pci_device_id *ent, const struct iwl_cfg_trans_params *cfg_trans) { struct iwl_trans_pcie *trans_pcie; struct iwl_trans *trans; int ret, addr_size; ret = pcim_enable_device(pdev); if (ret) return ERR_PTR(ret); if (cf...
1
210,692
static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception) { BMPInfo bmp_info; Image *image; IndexPacket index; MagickBooleanType status; MagickOffsetType offset, start_position; MemoryInfo *pixel_info; register IndexPacket *indexes; register ...
1
432,244
void memory_listener_unregister(MemoryListener *listener) { if (!listener->address_space) { return; } listener_del_address_space(listener, listener->address_space); QTAILQ_REMOVE(&listener->address_space->uc->memory_listeners, listener, link); QTAILQ_REMOVE(&listener->address_space->listene...
0
514,295
bool multi_update::send_eof() { char buff[STRING_BUFFER_USUAL_SIZE]; ulonglong id; killed_state killed_status= NOT_KILLED; DBUG_ENTER("multi_update::send_eof"); THD_STAGE_INFO(thd, stage_updating_reference_tables); /* Does updates for the last n - 1 tables, returns 0 if ok; error takes into acco...
0
353,171
SplashPath SplashOutputDev::convertPath(GfxState *state, GfxPath *path, bool dropEmptySubpaths) { SplashPath sPath; GfxSubpath *subpath; int n, i, j; n = dropEmptySubpaths ? 1 : 0; for (i = 0; i < path->getNumSubpaths(); ++i) { subpath = path->getSubpath(i); if (subpath->getNumPoints() > n) { ...
0
416,363
f_getcmdscreenpos(typval_T *argvars UNUSED, typval_T *rettv) { cmdline_info_T *p = get_ccline_ptr(); rettv->vval.v_number = p != NULL ? p->cmdspos + 1 : 0; }
0
459,152
static int tcf_block_insert(struct tcf_block *block, struct net *net, struct netlink_ext_ack *extack) { struct tcf_net *tn = net_generic(net, tcf_net_id); int err; idr_preload(GFP_KERNEL); spin_lock(&tn->idr_lock); err = idr_alloc_u32(&tn->idr, block, &block->index, block->index, GFP_NOWAIT); spin_...
0
482,534
getNumber(widechar *string, widechar *number) { /* Convert a string of wide character digits to an integer */ int k = 0; *number = 0; while (string[k] >= '0' && string[k] <= '9') *number = 10 * *number + (string[k++] - '0'); return k; }
0
402,659
set_up_outpe(context *ctx, int fd, Pe *inpe, Pe **outpe) { size_t size; char *addr; addr = pe_rawfile(inpe, &size); off_t offset = lseek(fd, 0, SEEK_SET); if (offset < 0) { ctx->cms->log(ctx->cms, ctx->priority|LOG_ERR, "could not read output file: %m"); return -1; } int rc = ftruncate(fd, size); if (...
0
381,853
void udf_evict_inode(struct inode *inode) { struct udf_inode_info *iinfo = UDF_I(inode); int want_delete = 0; if (!is_bad_inode(inode)) { if (!inode->i_nlink) { want_delete = 1; udf_setsize(inode, 0); udf_update_inode(inode, IS_SYNC(inode)); } if (iinfo->i_alloc_type != ICBTAG_FLAG_AD_IN_ICB && ...
0
299,908
retry_arg(uschar **paddr, int type) { uschar *p = *paddr; uschar *pp; if (*p++ != ',') log_write(0, LOG_PANIC_DIE|LOG_CONFIG_IN, "comma expected"); while (isspace(*p)) p++; pp = p; while (isalnum(*p) || (type == 1 && *p == '.')) p++; if (*p != 0 && !isspace(*p) && *p != ',' && *p != ';') log_write(0, LOG_PANIC_DIE...
0
328,917
R_API char *r_bin_java_get_bin_obj_json(RBinJavaObj *bin) { PJ *pj = pj_new (); // this is a class dictionary pj_o (pj); // get the initial class dict data r_bin_java_get_class_info_json (bin, pj); // add named lists r_bin_java_get_method_json_definitions (bin, pj); r_bin_java_get_field_json_definitions (bin...
0
272,351
PK11_DestroySlotListElement(PK11SlotList *slots, PK11SlotListElement **psle) { while (psle && *psle) *psle = PK11_GetNextSafe(slots, *psle, PR_FALSE); }
0
442,776
static int ftpcccmethod(struct Configurable *config, char *str) { if(curlx_strequal("passive", str)) return CURLFTPSSL_CCC_PASSIVE; if(curlx_strequal("active", str)) return CURLFTPSSL_CCC_ACTIVE; warnf(config, "unrecognized ftp CCC method '%s', using default\n", str); return CURLFTPSSL_CCC_PASSIVE; }
0
512,876
const double *const_ptr_double() const { return &value; }
0
486,818
static inline void rx_desc_set_eof(uint32_t *desc) { desc[1] |= DESC_1_RX_EOF; }
0
238,489
static int grow_stack_state(struct bpf_func_state *state, int size) { size_t old_n = state->allocated_stack / BPF_REG_SIZE, n = size / BPF_REG_SIZE; if (old_n >= n) return 0; state->stack = realloc_array(state->stack, old_n, n, sizeof(struct bpf_stack_state)); if (!state->stack) return -ENOMEM; state->alloc...
0
204,101
R_API RBinJavaAttrInfo *r_bin_java_constant_value_attr_new(RBinJavaObj *bin, ut8 *buffer, ut64 sz, ut64 buf_offset) { ut64 offset = 6; RBinJavaAttrInfo *attr = r_bin_java_default_attr_new (bin, buffer, sz, buf_offset); if (attr) { attr->type = R_BIN_JAVA_ATTR_TYPE_CONST_VALUE_ATTR; attr->info.constant_value_attr...
1
417,098
mp_sint32 PlayerGeneric::adjustFrequency(mp_uint32 frequency) { this->frequency = frequency; mp_sint32 res = MP_OK; if (mixer) res = mixer->setSampleRate(frequency); return res; }
0
90,799
void QuotaManager::NotifyStorageModified( QuotaClient::ID client_id, const GURL& origin, StorageType type, int64 delta) { NotifyStorageModifiedInternal(client_id, origin, type, delta, base::Time::Now()); }
0
225,462
Status MutableGraphView::RemoveRegularFanin(absl::string_view node_name, const TensorId& fanin) { auto error_status = [node_name, fanin](absl::string_view msg) { string params = absl::Substitute("node_name='$0', fanin='$1'", node_name, ...
0
246,637
static u64 naludmx_next_start_code(GF_BitStream *bs, u64 offset, u64 fsize, u32 *sc_size) { u32 pos=0, nb_zeros=0; while (offset+pos<fsize) { u8 b = gf_bs_read_u8(bs); pos++; switch (b) { case 1: //break at first 0xXX000001 or 0x00000001 if (nb_zeros>=2) { *sc_size = (nb_zeros==2) ? 3 : 4; retur...
0
312,509
vgr_process_args( exarg_T *eap, vgr_args_T *args) { char_u *p; vim_memset(args, 0, sizeof(*args)); args->regmatch.regprog = NULL; args->qf_title = vim_strsave(qf_cmdtitle(*eap->cmdlinep)); if (eap->addr_count > 0) args->tomatch = eap->line2; else args->tomatch = MAXLNUM; // Get the ...
0
316,987
static int selinux_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg) { const struct cred *cred = current_cred(); int err = 0; switch (cmd) { case F_SETFL: if ((file->f_flags & O_APPEND) && !(arg & O_APPEND)) { err = file_has_perm(cred, file, FILE__WRITE); break; } fallthrough;...
0
265,444
static int sqfs_read_inode_table(unsigned char **inode_table) { struct squashfs_super_block *sblk = ctxt.sblk; u64 start, n_blks, table_offset, table_size; int j, ret = 0, metablks_count; unsigned char *src_table, *itb; u32 src_len, dest_offset = 0; unsigned long dest_len = 0; bool compressed; table_size = get...
0
314,481
static int FNAME(sync_page)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp) { union kvm_mmu_page_role mmu_role = vcpu->arch.mmu->mmu_role.base; int i; bool host_writable; gpa_t first_pte_gpa; bool flush = false; /* * Ignore various flags when verifying that it's safe to sync a shadow * page using the current...
0
477,817
static void kvm_rtas_int_on(struct kvm_vcpu *vcpu, struct rtas_args *args) { u32 irq; int rc; if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 1) { rc = -3; goto out; } irq = be32_to_cpu(args->args[0]); if (xics_on_xive()) rc = kvmppc_xive_int_on(vcpu->kvm, irq); else rc = kvmppc_xics_i...
0
509,521
static int maria_rollback(handlerton *hton, THD *thd, bool all) { TRN *trn= THD_TRN; DBUG_ENTER("maria_rollback"); if (!trn) DBUG_RETURN(0); if (trn->undo_lsn) push_warning_printf(thd, Sql_condition::WARN_LEVEL_NOTE, ER_DATA_WAS_COMMITED_UNDER_ROLLBACK, ER...
0
353,130
void SplashOutputDev::clearPatternOpacity(GfxState *state) { splash->clearPatternAlpha(); }
0
90,134
virtual void EnableWifiNetworkDevice(bool enable) { EnableNetworkDeviceType(TYPE_WIFI, enable); }
0
225,040
conninfo_uri_parse_params(char *params, PQconninfoOption *connOptions, PQExpBuffer errorMessage) { while (*params) { char *keyword = params; char *value = NULL; char *p = params; bool malloced = false; int oldmsglen; /* * Scan the params string for '=' and '&', marking the ...
0
412,145
dnscrypt_pad(uint8_t *buf, const size_t len, const size_t max_len, const uint8_t *nonce, const uint8_t *secretkey) { uint8_t *buf_padding_area = buf + len; size_t padded_len; uint32_t rnd; // no padding if (max_len < len + DNSCRYPT_MIN_PAD_LEN) return len; assert(nonce[cry...
0
226,121
GF_Err tmin_box_read(GF_Box *s, GF_BitStream *bs) { GF_TMINBox *ptr = (GF_TMINBox *)s; ISOM_DECREASE_SIZE(ptr, 4) ptr->minTime = gf_bs_read_u32(bs); return GF_OK; }
0
487,650
void emergency_restart(void) { machine_emergency_restart(); }
0
402,649
generate_empty_sequence(cms_context *cms, SECItem *encoded) { SECItem empty = {.type = SEC_ASN1_SEQUENCE, .data = NULL, .len = 0 }; void *ret; ret = SEC_ASN1EncodeItem(cms->arena, encoded, &empty, EmptySequenceTemplate); if (ret == NULL) cmsreterr(-1, cms, "could not encode empty sequence"); retu...
0
387,597
static __poll_t snd_ctl_poll(struct file *file, poll_table * wait) { __poll_t mask; struct snd_ctl_file *ctl; ctl = file->private_data; if (!ctl->subscribed) return 0; poll_wait(file, &ctl->change_sleep, wait); mask = 0; if (!list_empty(&ctl->events)) mask |= EPOLLIN | EPOLLRDNORM; return mask; }
0
473,975
init_property_list(void) { int r; PROPERTY_LIST_ADD_PROP("hiragana", CR_Hiragana); PROPERTY_LIST_ADD_PROP("katakana", CR_Katakana); PropertyInited = 1; end: return r; }
0
455,313
shell_glob_filename (pathname) const char *pathname; { #if defined (USE_POSIX_GLOB_LIBRARY) register int i; char *temp, **results; glob_t filenames; int glob_flags; temp = quote_string_for_globbing (pathname, QGLOB_FILENAME); filenames.gl_offs = 0; # if defined (GLOB_PERIOD) glob_flags = glob_dot...
0
434,903
move_landscape_buffer(ht_landscape_info_t *ht_landscape, byte *contone_align, int data_length) { int k; int position_curr, position_new; if (ht_landscape->index < 0) { /* Moving right to left, move column to far right */ position_curr = ht_landscape->curr_pos + 1; ...
0
361,751
static int em28xx_hint_board(struct em28xx *dev) { int i; if (dev->is_webcam) { if (dev->em28xx_sensor == EM28XX_MT9V011) { dev->model = EM2820_BOARD_SILVERCREST_WEBCAM; } else if (dev->em28xx_sensor == EM28XX_MT9M001 || dev->em28xx_sensor == EM28XX_MT9M111) { dev->model = EM2750_BOARD_UNKNOWN; } ...
0
401,597
static inline void timer_sync_wait_running(struct timer_base *base) { }
0
432,698
ModuleExport size_t RegisterWMFImage(void) { MagickInfo *entry; entry = AcquireMagickInfo("WMF","WMZ","Compressed Windows Meta File"); #if defined(MAGICKCORE_SANS_DELEGATE) || defined(MAGICKCORE_WMF_DELEGATE) entry->decoder=ReadWMFImage; #endif entry->flags|=CoderDecoderSeekableStreamFlag; (void) Registe...
0