idx
int64
func
string
target
int64
210,511
win_close(win_T *win, int free_buf) { win_T *wp; int other_buffer = FALSE; int close_curwin = FALSE; int dir; int help_window = FALSE; tabpage_T *prev_curtab = curtab; frame_T *win_frame = win->w_frame->fr_parent; #ifdef FEAT_DIFF int had_diffmode = win->w_p_diff; #endif #ifdef ME...
1
238,595
static void sanitize_mark_insn_seen(struct bpf_verifier_env *env) { struct bpf_verifier_state *vstate = env->cur_state; /* If we simulate paths under speculation, we don't update the * insn as 'seen' such that when we verify unreachable paths in * the non-speculative domain, sanitize_dead_code() can still * re...
0
337,813
static struct sctp_chunk *sctp_make_reconf(const struct sctp_association *asoc, int length) { struct sctp_reconf_chunk *reconf; struct sctp_chunk *retval; retval = sctp_make_control(asoc, SCTP_CID_RECONF, 0, length, GFP_ATOMIC); if (!retval) return NULL; reconf = (struct sctp_reconf_chunk *)retv...
0
386,482
int DL_Dxf::getLibVersion(const std::string& str) { int d[4]; int idx = 0; //char v[4][5]; std::string v[4]; int ret = 0; for (unsigned int i=0; i<str.length() && idx<3; ++i) { if (str[i]=='.') { d[idx] = i; idx++; } } if (idx>=2) { d[3] ...
0
307,838
ciField* ciEnv::get_field_by_index_impl(ciInstanceKlass* accessor, int index) { ciConstantPoolCache* cache = accessor->field_cache(); if (cache == NULL) { ciField* field = new (arena()) ciField(accessor, index); return field; } else { ciField* field = (ciField*)...
0
387,733
Method* InstanceKlass::lookup_method_in_all_interfaces(Symbol* name, Symbol* signature, DefaultsLookupMode defaults_mode) const { Array<Klass*>* all_ifs = transitive_interfaces(); int num_ifs = all_ifs->len...
0
436,100
/* when returns >0, the caller should retry */ static inline int io_cqring_wait_schedule(struct io_ring_ctx *ctx, struct io_wait_queue *iowq, signed long *timeout) { int ret; /* make sure we run task_work before checking for signals */ ret = io_run_task_work_sig(); if (ret || io_should_wake(iowq)) ...
0
238,809
searchc(cmdarg_T *cap, int t_cmd) { int c = cap->nchar; // char to search for int dir = cap->arg; // TRUE for searching forward long count = cap->count1; // repeat count int col; char_u *p; int len; int stop = TRUE; if (c != NUL) // normal search: remember args for repeat ...
0
412,131
dnsc_shared_secrets_sizefunc(void *k, void* ATTR_UNUSED(d)) { struct shared_secret_cache_key* ssk = (struct shared_secret_cache_key*)k; size_t key_size = sizeof(struct shared_secret_cache_key) + lock_get_mem(&ssk->entry.lock); size_t data_size = crypto_box_BEFORENMBYTES; (void)ssk; /* otherwise ...
0
372,861
static int irda_recvmsg_stream(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t size, int flags) { struct sock *sk = sock->sk; struct irda_sock *self = irda_sk(sk); int noblock = flags & MSG_DONTWAIT; size_t copied = 0; int target, err; long timeo; IRDA_DEBUG(3, "%s()\n", __func__);...
0
226,011
void urn_box_del(GF_Box *s) { GF_DataEntryURNBox *ptr = (GF_DataEntryURNBox *)s; if (ptr == NULL) return; if (ptr->location) gf_free(ptr->location); if (ptr->nameURN) gf_free(ptr->nameURN); gf_free(ptr); }
0
482,486
allocateDisplayTable(const FileInfo *file, DisplayTableHeader **table) { /* Allocate memory for the table and a guess on the number of rules */ const TranslationTableOffset startSize = 2 * sizeof(**table); if (*table) return 1; TranslationTableOffset bytesUsed = sizeof(**table) + OFFSETSIZE; /* So no offset is e...
0
261,202
int MqttClient_WaitMessage(MqttClient *client, int timeout_ms) { if (client == NULL) return MQTT_CODE_ERROR_BAD_ARG; return MqttClient_WaitMessage_ex(client, &client->msg, timeout_ms); }
0
212,095
MOBI_RET mobi_reconstruct_infl(char *outstring, const MOBIIndx *infl, const MOBIIndexEntry *orth_entry) { const char *label = orth_entry->label; uint32_t *infl_groups = NULL; size_t infl_count = mobi_get_indxentry_tagarray(&infl_groups, orth_entry, INDX_TAGARR_ORTH_INFL); if (infl_count == 0 || !in...
1
90,884
void ClientUsageTracker::AddCachedHost(const std::string& host) { cached_hosts_.insert(host); }
0
245,704
static int pull_client_data_chunked (struct conn_s *connptr) { char *buffer = 0; ssize_t len; long chunklen; while(1) { if (buffer) safefree(buffer); len = readline (connptr->client_fd, &buffer); if (len <= 0) goto...
0
318,977
f_test_null_list(typval_T *argvars UNUSED, typval_T *rettv) { rettv_list_set(rettv, NULL); }
0
462,556
void controller::write_item(std::shared_ptr<rss_item> item, const std::string& filename) { std::fstream f; f.open(filename.c_str(),std::fstream::out); if (!f.is_open()) throw exception(errno); write_item(item, f); }
0
512,435
bool get_date(THD *thd, MYSQL_TIME *ltime, date_mode_t fuzzydate) { return get_date_from_string(thd, ltime, fuzzydate); }
0
361,745
static int em28xx_usb_resume(struct usb_interface *intf) { struct em28xx *dev; dev = usb_get_intfdata(intf); if (!dev) return 0; em28xx_resume_extension(dev); return 0; }
0
454,757
static int ismt_int_init(struct ismt_priv *priv) { int err; /* Try using MSI interrupts */ err = pci_enable_msi(priv->pci_dev); if (err) goto intx; err = devm_request_irq(&priv->pci_dev->dev, priv->pci_dev->irq, ismt_do_msi_interrupt, 0, "ismt-msi", priv); if ...
0
219,996
int callback_glewlwyd_get_user_module (const struct _u_request * request, struct _u_response * response, void * user_data) { struct config_elements * config = (struct config_elements *)user_data; json_t * j_module; j_module = get_user_module(config, u_map_get(request->map_url, "name")); if (check_result_valu...
0
221,132
GF_AV1Config *gf_odf_av1_cfg_read_bs(GF_BitStream *bs) { return gf_odf_av1_cfg_read_bs_size(bs, 0); }
0
338,138
void WasmBinaryBuilder::visitRefFunc(RefFunc* curr) { BYN_TRACE("zz node: RefFunc\n"); Index index = getU32LEB(); // We don't know function names yet, so record this use to be updated later. // Note that we do not need to check that 'index' is in bounds, as that will // be verified in the next line. (Also, no...
0
221,178
GF_Err gf_odf_encode_ui_config(GF_UIConfig *cfg, GF_DefaultDescriptor **out_dsi) { u32 i, len; GF_BitStream *bs; GF_DefaultDescriptor *dsi; if (!out_dsi || (cfg->tag != GF_ODF_UI_CFG_TAG)) return GF_BAD_PARAM; *out_dsi = NULL; if (!cfg->deviceName) return GF_OK; bs = gf_bs_new(NULL, 0, GF_BITSTREAM_WRITE); le...
0
247,734
setExpectedRequestedServerName(const std::string& expected_requested_server_name) { expected_requested_server_name_ = expected_requested_server_name; return *this; }
0
309,949
rewrite_sgr(char *s, char *attr) { if (s != 0) { if (PRESENT(attr)) { size_t len_s = strlen(s); size_t len_a = strlen(attr); if (len_s > len_a && !strncmp(attr, s, len_a)) { unsigned n; TR(TRACE_DATABASE, ("rewrite:\n\t%s", s)); for (n = 0; n < len_s - len_a; ++n) { s[n] = s[n + len_a];...
0
459,172
tc_cls_offload_cnt_reset(struct tcf_block *block, struct tcf_proto *tp, u32 *cnt, u32 *flags) { lockdep_assert_held(&block->cb_lock); spin_lock(&tp->lock); tcf_block_offload_dec(block, flags); *cnt = 0; spin_unlock(&tp->lock); }
0
338,081
void WasmBinaryBuilder::readHeader() { BYN_TRACE("== readHeader\n"); verifyInt32(BinaryConsts::Magic); verifyInt32(BinaryConsts::Version); }
0
244,125
GF_Err mhac_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_MHAConfigBox *ptr = (GF_MHAConfigBox *) s; e = gf_isom_box_write_header(s, bs); if (e) return e; gf_bs_write_u8(bs, ptr->configuration_version); gf_bs_write_u8(bs, ptr->mha_pl_indication); gf_bs_write_u8(bs, ptr->reference_channel_layout); gf_bs...
0
253,545
smb2_make_node(unsigned int xid, struct inode *inode, struct dentry *dentry, struct cifs_tcon *tcon, const char *full_path, umode_t mode, dev_t dev) { struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); int rc = -EPERM; FILE_ALL_INFO *buf = NULL; struct cifs_io_parms io_parms = {0}; __u32 oplock =...
0
259,081
void RestoreTensor(OpKernelContext* context, checkpoint::TensorSliceReader::OpenTableFunction open_func, int preferred_shard, bool restore_slice, int restore_index) { const Tensor& file_pattern_t = context->input(0); { const int64_t size = file_pattern_t.NumElements(); ...
0
468,372
connection_attempt_new (void) { ConnectionAttempt *attempt = g_new0 (ConnectionAttempt, 1); g_ref_count_init (&attempt->ref); return attempt; }
0
278,254
set_indent( int size, // measured in spaces int flags) { char_u *p; char_u *newline; char_u *oldline; char_u *s; int todo; int ind_len; // measured in characters int line_len; int doit = FALSE; int ind_done = 0; // measured in spaces #ifdef FEAT_VARTABS ...
0
512,604
String *val_str(String *to) { DBUG_ASSERT(sane()); return null_value ? NULL : m_value.to_datetime(current_thd).to_string(to, decimals); }
0
222,918
DisjointSet() {}
0
492,691
vte_sequence_handler_ic (VteTerminal *terminal, GValueArray *params) { VteVisualPosition save; VteScreen *screen; screen = terminal->pvt->screen; save = screen->cursor_current; _vte_terminal_insert_char(terminal, ' ', TRUE, TRUE); screen->cursor_current = save; }
0
373,520
ipf_is_v6_frag(ovs_be16 ip6f_offlg) { if (ip6f_offlg & (IP6F_OFF_MASK | IP6F_MORE_FRAG)) { return true; } return false; }
0
238,494
static int insn_def_regno(const struct bpf_insn *insn) { switch (BPF_CLASS(insn->code)) { case BPF_JMP: case BPF_JMP32: case BPF_ST: return -1; case BPF_STX: if (BPF_MODE(insn->code) == BPF_ATOMIC && (insn->imm & BPF_FETCH)) { if (insn->imm == BPF_CMPXCHG) return BPF_REG_0; else return insn...
0
401,568
static void do_init_timer(struct timer_list *timer, void (*func)(struct timer_list *), unsigned int flags, const char *name, struct lock_class_key *key) { timer->entry.pprev = NULL; timer->function = func; timer->flags = flags | raw_smp_processor_id(); lockdep_init_map(&timer->lockdep_map, name, key,...
0
436,064
static void io_req_task_queue_fail(struct io_kiocb *req, int ret) { req->result = ret; req->io_task_work.func = io_req_task_cancel; io_req_task_work_add(req); }
0
247,640
TEST_P(SslSocketTest, FailedClientCertificateHashAndSpkiVerificationNoCAWrongClientCertificate) { envoy::config::listener::v3::Listener listener; envoy::config::listener::v3::FilterChain* filter_chain = listener.add_filter_chains(); envoy::extensions::transport_sockets::tls::v3::DownstreamTlsContext tls_context; ...
0
424,912
static u32 iwl_trans_pcie_read_prph(struct iwl_trans *trans, u32 reg) { u32 mask = iwl_trans_pcie_prph_msk(trans); iwl_trans_pcie_write32(trans, HBUS_TARG_PRPH_RADDR, ((reg & mask) | (3 << 24))); return iwl_trans_pcie_read32(trans, HBUS_TARG_PRPH_RDAT); }
0
450,434
static int zrle_send_framebuffer_update(VncState *vs, int x, int y, int w, int h) { bool be = vs->client_be; size_t bytes; int zywrle_level; if (vs->zrle->type == VNC_ENCODING_ZYWRLE) { if (!vs->vd->lossy || vs->tight->quality == (uint8_t)-1 |...
0
216,973
create_worker_threads(uint n) { comp_thread_ctxt_t *threads; uint i; threads = (comp_thread_ctxt_t *) my_malloc(sizeof(comp_thread_ctxt_t) * n, MYF(MY_FAE)); for (i = 0; i < n; i++) { comp_thread_ctxt_t *thd = threads + i; thd->num = i + 1; thd->started = FALSE; thd->cancelled = FALSE; thd->data_a...
1
502,693
long SSL_SESSION_set_time(SSL_SESSION *s, long t) { if (s == NULL) return (0); s->time = t; return (t); }
0
500,065
krb5_decrypt_tkt_part(krb5_context con, krb5_const krb5_keyblock *keys, krb5_ticket *ticket) { if (!krb5_loaded) load_krb5_dll(); if ( p_krb5_decrypt_tkt_part ) return(p_krb5_decrypt_tkt_part(con,keys,ticket)); else return KRB5KRB_ERR_GENERIC; }
0
238,807
get_spat(int idx) { return &spats[idx]; }
0
512,861
bool Item_func_between::fix_length_and_dec_numeric(THD *thd) { /* See the comment about the similar block in Item_bool_func2 */ if (args[0]->real_item()->type() == FIELD_ITEM && !thd->lex->is_ps_or_view_context_analysis()) { Item_field *field_item= (Item_field*) (args[0]->real_item()); if (field_ite...
0
398,535
static void free_comp_unit(RzBinDwarfCompUnit *cu) { size_t i; if (!cu) { return; } for (i = 0; i < cu->count; i++) { if (cu->dies) { free_die(&cu->dies[i]); } } RZ_FREE(cu->dies); }
0
226,151
GF_Err gitn_box_size(GF_Box *s) { u32 i; GroupIdToNameBox *ptr = (GroupIdToNameBox *)s; ptr->size += 2; for (i=0; i<ptr->nb_entries; i++) { ptr->size += 5; if (ptr->entries[i].name) ptr->size += strlen(ptr->entries[i].name); } return GF_OK;
0
225,480
void MutableGraphView::UpdateMaxRegularOutputPortForRemovedFanin( const OutputPort& fanin, const absl::flat_hash_set<InputPort>& fanin_fanouts) { int max_port = max_regular_output_port()[fanin.node]; if (!fanin_fanouts.empty() || max_port != fanin.port_id) { return; } bool updated_max_port = false; ...
0
247,752
bool RWFunction::Validate(RandomNumberGenerator &rng, unsigned int level) const { bool pass = true; pass = pass && m_n > Integer::One() && m_n%8 == 5; return pass; }
0
256,414
PJ_DEF(void) pjmedia_rtcp_rx_rtp2(pjmedia_rtcp_session *sess, unsigned seq, unsigned rtp_ts, unsigned payload, pj_bool_t discarded) { pj_timestamp ts; pj_uint32_t arrival; pj_int32_t transit; pjmedia_rtp_status seq_st; #if !defined(PJMEDIA_HAS_RTCP_XR) || (PJMEDIA_HAS_RTCP_...
0
436,080
static int io_close(struct io_kiocb *req, unsigned int issue_flags) { struct files_struct *files = current->files; struct io_close *close = &req->close; struct fdtable *fdt; struct file *file = NULL; int ret = -EBADF; spin_lock(&files->file_lock); fdt = files_fdtable(files); if (close->fd >= fdt->max_fds) { ...
0
264,301
static void send_ext_audio_ack(VncState *vs) { vnc_lock_output(vs); vnc_write_u8(vs, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE); vnc_write_u8(vs, 0); vnc_write_u16(vs, 1); vnc_framebuffer_update(vs, 0, 0, surface_width(vs->vd->ds), surface_height(vs->vd-...
0
430,371
int seq_open(struct file *file, const struct seq_operations *op) { struct seq_file *p; WARN_ON(file->private_data); p = kmem_cache_zalloc(seq_file_cache, GFP_KERNEL); if (!p) return -ENOMEM; file->private_data = p; mutex_init(&p->lock); p->op = op; // No refcounting: the lifetime of 'p' is constrained /...
0
292,210
inbound_make_idtext (server *serv, char *idtext, int max, int id) { idtext[0] = 0; if (serv->have_idmsg || serv->have_accnotify) { if (id) { safe_strcpy (idtext, prefs.hex_irc_id_ytext, max); } else { safe_strcpy (idtext, prefs.hex_irc_id_ntext, max); } /* convert codes like %C,%U to the proper one...
0
231,031
static BaseType_t prvIsQueueFull( const Queue_t * pxQueue ) { BaseType_t xReturn; taskENTER_CRITICAL(); { if( pxQueue->uxMessagesWaiting == pxQueue->uxLength ) { xReturn = pdTRUE; } else { xReturn = pdFALSE; } } ...
0
383,333
gdImageColorAllocateAlpha (gdImagePtr im, int r, int g, int b, int a) { int i; int ct = (-1); if (im->trueColor) { return gdTrueColorAlpha (r, g, b, a); } for (i = 0; (i < (im->colorsTotal)); i++) { if (im->open[i]) { ct = i; break; } } if (ct == (-1)) { ct = im->...
0
381,869
static int udf_extend_file(struct inode *inode, loff_t newsize) { struct extent_position epos; struct kernel_lb_addr eloc; uint32_t elen; int8_t etype; struct super_block *sb = inode->i_sb; sector_t first_block = newsize >> sb->s_blocksize_bits, offset; unsigned long partial_final_block; int adsize; struct ud...
0
274,699
callbacks_move_layer_down_menu_activate (GtkMenuItem *menuitem, gpointer user_data) { callbacks_move_layer_down_button_clicked(NULL, NULL); gtk_widget_grab_focus (screen.win.layerTree); }
0
437,696
static u32 filter_rx_s_min_width(struct cx23885_dev *dev, u32 min_width_ns) { u32 count = ns_to_lpf_count(min_width_ns); cx23888_ir_write4(dev, CX23888_IR_FILTR_REG, count); return lpf_count_to_ns(count); }
0
292,151
void LinkResolver::resolve_invoke(CallInfo& result, Handle recv, const constantPoolHandle& pool, int index, Bytecodes::Code byte, TRAPS) { switch (byte) { case Bytecodes::_invokestatic : resolve_invokestatic (result, pool, index, CHECK); break; case Bytecodes::_invokespecial : resolve_invokespecial...
0
385,826
follow_link(struct path *link, struct nameidata *nd, void **p) { struct dentry *dentry = link->dentry; int error; char *s; BUG_ON(nd->flags & LOOKUP_RCU); if (link->mnt == nd->path.mnt) mntget(link->mnt); error = -ELOOP; if (unlikely(current->total_link_count >= 40)) goto out_put_nd_path; cond_resched()...
0
453,023
void nft_flow_rule_destroy(struct nft_flow_rule *flow) { struct flow_action_entry *entry; int i; flow_action_for_each(i, entry, &flow->rule->action) { switch (entry->id) { case FLOW_ACTION_REDIRECT: case FLOW_ACTION_MIRRED: dev_put(entry->dev); break; default: break; } } kfree(flow->rule); kfr...
0
254,872
bool operator()(const GroupsMap::value_type* lhs, const GroupsMap::value_type* rhs) const { return _valueComparator.evaluate(lhs->first < rhs->first); }
0
291,843
static void rtrs_clt_info_req_done(struct ib_cq *cq, struct ib_wc *wc) { struct rtrs_clt_con *con = to_clt_con(wc->qp->qp_context); struct rtrs_clt_path *clt_path = to_clt_path(con->c.path); struct rtrs_iu *iu; iu = container_of(wc->wr_cqe, struct rtrs_iu, cqe); rtrs_iu_free(iu, clt_path->s.dev->ib_dev, 1); if ...
0
474,446
ObjectAllocateSlot( TPMI_DH_OBJECT *handle // OUT: handle of allocated object ) { OBJECT *object = FindEmptyObjectSlot(handle); if(object != NULL) { // if found, mark as occupied ObjectSetInUse(object); } return object; }
0
512,783
const MYSQL_TIME *const_ptr_mysql_time() const { return cached_time.get_mysql_time(); }
0
201,451
static Image *ReadCINImage(const ImageInfo *image_info,ExceptionInfo *exception) { #define MonoColorType 1 #define RGBColorType 3 char property[MaxTextExtent]; CINInfo cin; Image *image; MagickBooleanType status; MagickOffsetType offset; QuantumInfo *quantum_info; QuantumT...
1
269,488
static CustomStreamInfo *TIFFAcquireCustomStreamForWriting( PhotoshopProfile *profile,ExceptionInfo *exception) { CustomStreamInfo *custom_stream; custom_stream=AcquireCustomStreamInfo(exception); if (custom_stream == (CustomStreamInfo *) NULL) return(custom_stream); SetCustomStreamData(custom_stream...
0
376,355
gpg_ctx_op_step (struct _GpgCtx *gpg, GCancellable *cancellable, GError **error) { #ifndef G_OS_WIN32 GPollFD polls[6]; gint status, i; gboolean read_data = FALSE, wrote_data = FALSE; for (i = 0; i < 6; i++) { polls[i].fd = -1; polls[i].events = 0; } if (!gpg->seen_eof1) { ...
0
512,868
Item_cond::fix_fields(THD *thd, Item **ref) { DBUG_ASSERT(fixed == 0); List_iterator<Item> li(list); Item *item; uchar buff[sizeof(char*)]; // Max local vars in function bool is_and_cond= functype() == Item_func::COND_AND_FUNC; not_null_tables_cache= 0; used_tables_and_const_cache_init(); /* and_...
0
409,406
limit_screen_size(void) { if (Columns < MIN_COLUMNS) Columns = MIN_COLUMNS; else if (Columns > 10000) Columns = 10000; if (Rows > 1000) Rows = 1000; }
0
391,672
static NTSTATUS fd_open_atomic(struct connection_struct *conn, files_struct *fsp, int flags, mode_t mode, bool *file_created) { NTSTATUS status = NT_STATUS_UNSUCCESSFUL; bool file_existed = VALID_STAT(fsp->fsp_name->st); *file_created = false; if (!(flags & O_CREAT)) { /* * We're not creating the...
0
313,782
del_from_showcmd(int len) { int old_len; if (!p_sc) return; old_len = (int)STRLEN(showcmd_buf); if (len > old_len) len = old_len; showcmd_buf[old_len - len] = NUL; if (!char_avail()) display_showcmd(); }
0
386,516
void DL_Dxf::writeBlock(DL_WriterA& dw, const DL_BlockData& data) { if (data.name.empty()) { std::cerr << "DL_Dxf::writeBlock: " << "Block name must not be empty\n"; return; } std::string n = data.name; std::transform(n.begin(), n.end(), n.begin(), ::toupper); if (n=="*PAPE...
0
405,383
static void __xfrm_policy_inexact_prune_bin(struct xfrm_pol_inexact_bin *b, bool net_exit) { write_seqcount_begin(&b->count); xfrm_policy_inexact_gc_tree(&b->root_d, net_exit); xfrm_policy_inexact_gc_tree(&b->root_s, net_exit); write_seqcount_end(&b->count); if (!RB_EMPTY_ROOT(&b->root_d) || !RB_EMPTY_ROOT(&b->ro...
0
512,583
const Type_handler *type_handler() const { const Type_handler *handler= field->type_handler(); return handler->type_handler_for_item_field(); }
0
261,921
njs_string_alloc(njs_vm_t *vm, njs_value_t *value, uint64_t size, uint64_t length) { uint32_t total, map_offset, *map; njs_string_t *string; if (njs_slow_path(size > NJS_STRING_MAX_LENGTH)) { njs_range_error(vm, "invalid string length"); return NULL; } value->type = NJS_S...
0
387,620
static int snd_ctl_elem_user_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { int change; struct user_element *ue = kcontrol->private_data; unsigned int size = ue->elem_data_size; char *dst = ue->elem_data + snd_ctl_get_ioff(kcontrol, &ucontrol->id) * size; change = memcmp(&ucontr...
0
442,570
static void test_memslot_invalid_slot_id(void) { RedMemSlotInfo mem_info; init_meminfo(&mem_info); memslot_get_virt(&mem_info, 1 << mem_info.memslot_id_shift, 16, 0); }
0
255,757
create_node(authz_rule_segment_t *segment, apr_pool_t *result_pool) { node_t *result = apr_pcalloc(result_pool, sizeof(*result)); if (segment) result->segment = segment->pattern; else { result->segment.data = ""; result->segment.len = 0; } result->rights.access.sequence_numbe...
0
325,820
copy_ciphersuites(gnutls_session_t session, gnutls_buffer_st * cdata, int add_scsv) { int ret; uint8_t cipher_suites[MAX_CIPHERSUITE_SIZE + RESERVED_CIPHERSUITES]; /* allow space for SCSV */ int cipher_suites_size; size_t init_length = cdata->length; ret = _gnutls_supported_ciphersuites(session, cipher_s...
0
265,544
int mempool_releasebuffer(MemoryPoolHandle handle, void *buf, size_t released_buffer_size) { struct mempool *pool = (struct mempool *)handle; struct memory_pool_element *pool_item = (struct memory_pool_element *)buf; char *log_msg_fmt = "mempool(%p): mempool_releasebuffer called fo...
0
262,033
ProtoMakeErrorReplyInt(ServiceConnection *conn, int reqSeqno, VGAuthError err, const char *errMsg) { gchar *packet; gchar *escapedErrMsg = g_markup_escape_text(errMsg, -1); /* * g_markup_printf_escaped() is broken when the printf format ...
0
282,862
static int rsi_send_beacon(struct rsi_common *common) { struct sk_buff *skb = NULL; u8 dword_align_bytes = 0; skb = dev_alloc_skb(MAX_MGMT_PKT_SIZE); if (!skb) return -ENOMEM; memset(skb->data, 0, MAX_MGMT_PKT_SIZE); dword_align_bytes = ((unsigned long)skb->data & 0x3f); if (dword_align_bytes) skb_pull(sk...
0
293,740
static bool check_buffer(RBinFile *bf, RBuffer *b) { if (r_buf_size (b) > 4) { ut8 buf[4]; r_buf_read_at (b, 0, buf, sizeof (buf)); if (!memcmp (buf, "\xcf\xfa\xed\xfe", 4)) { return is_kernelcache_buffer (b); } } return false; }
0
384,810
vim_backtick(char_u *p) { return (*p == '`' && *(p + 1) != NUL && *(p + STRLEN(p) - 1) == '`'); }
0
369,171
static void handle_prev_tw_list(struct io_wq_work_node *node, struct io_ring_ctx **ctx, bool *uring_locked) { if (*ctx && !*uring_locked) spin_lock(&(*ctx)->completion_lock); do { struct io_wq_work_node *next = node->next; struct io_kiocb *req = container_of(node, struct io_kiocb, io_task_work.no...
0
101,681
static uint64_t generatePageID() { static uint64_t uniquePageID = 1; return uniquePageID++; }
0
299,899
get_config_line(void) { int startoffset = 0; /* To first non-blank char in logical line */ int len = 0; /* Of logical line so far */ int newlen; uschar *s, *ss; macro_item *m; BOOL macro_found; /* Loop for handling continuation lines, skipping comments, and dealing with .include files. */ for ...
0
506,691
static int set_cn(X509 *crt, ...) { int ret = 0; X509_NAME *n = NULL; va_list ap; va_start(ap, crt); n = X509_NAME_new(); if (n == NULL) goto out; while (1) { int nid; const char *name; nid = va_arg(ap, int); if (nid == 0) break; ...
0
318,095
static int rsi_usb_master_reg_read(struct rsi_hw *adapter, u32 reg, u32 *value, u16 len) { struct usb_device *usbdev = ((struct rsi_91x_usbdev *)adapter->rsi_dev)->usbdev; u16 temp; int ret; ret = rsi_usb_reg_read(usbdev, reg, &temp, len); if (ret < 0) return ret; *value = temp; return 0; }
0
231,018
static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t * pucQueueStorage, const uint8_t ucQueueType, Queue_t * pxNewQueue ) ...
0
509,473
int ha_maria::write_row(const uchar * buf) { /* If we have an auto_increment column and we are writing a changed row or a new row, then update the auto_increment value in the record. */ if (table->next_number_field && buf == table->record[0]) { int error; if ((error= update_auto_increment())) ...
0
234,865
static void bbio_error(struct btrfs_bio *bbio, struct bio *bio, u64 logical) { atomic_inc(&bbio->error); if (atomic_dec_and_test(&bbio->stripes_pending)) { /* Should be the original bio. */ WARN_ON(bio != bbio->orig_bio); btrfs_io_bio(bio)->mirror_num = bbio->mirror_num; bio->bi_iter.bi_sector = logical >> 9...
0
230,379
PJ_DEF(int) pj_xml_print(const pj_xml_node *node, char *buf, pj_size_t len, pj_bool_t include_prolog) { int prolog_len = 0; int printed; if (!node || !buf || !len) return 0; if (include_prolog) { pj_str_t prolog = {"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n", 39}; if ((int)len < prolog.slen)...
0
481,277
static int mlx5_fpga_conn_connect(struct mlx5_fpga_conn *conn) { struct mlx5_fpga_device *fdev = conn->fdev; int err; MLX5_SET(fpga_qpc, conn->fpga_qpc, state, MLX5_FPGA_QPC_STATE_ACTIVE); err = mlx5_fpga_modify_qp(conn->fdev->mdev, conn->fpga_qpn, MLX5_FPGA_QPC_STATE, &conn->fpga_qpc); if (err) { mlx5_fp...
0