idx
int64
func
string
target
int64
226,172
GF_Box *stbl_box_new() { ISOM_DECL_BOX_ALLOC(GF_SampleTableBox, GF_ISOM_BOX_TYPE_STBL); //maxSamplePer chunk is 10 by default tmp->MaxSamplePerChunk = 10; tmp->groupID = 1; return (GF_Box *)tmp; }
0
314,770
cdf_dump_stream(const cdf_header_t *h, const cdf_stream_t *sst) { size_t ss = sst->sst_dirlen < h->h_min_size_standard_stream ? CDF_SHORT_SEC_SIZE(h) : CDF_SEC_SIZE(h); cdf_dump(sst->sst_tab, ss * sst->sst_len); }
0
500,684
static void sftp_ext_free(sftp_ext ext) { unsigned int i; if (ext == NULL) { return; } if (ext->count) { for (i = 0; i < ext->count; i++) { SAFE_FREE(ext->name[i]); SAFE_FREE(ext->data[i]); } SAFE_FREE(ext->name); SAFE_FREE(ext->data); } SAFE_FREE(ext); }
0
386,590
void DL_Dxf::writeDimAligned(DL_WriterA& dw, const DL_DimensionData& data, const DL_DimAlignedData& edata, const DL_Attributes& attrib) { dw.entity("DIMENSION"); if (version==DL_VERSION_2000) { dw.dxfString(100, "Ac...
0
437,718
static void control_rx_s_carrier_window(struct cx23885_dev *dev, unsigned int carrier, unsigned int *carrier_range_low, unsigned int *carrier_range_high) { u32 v; unsigned int c16 = carrier * 16; if (*carrier_range_low < DIV_ROUND_CLOSEST(c16, 16 + 3)) { v = CNTRL_WIN_3_4; *carrier_range_low = DI...
0
336,632
RedRecord *reds_get_record(RedsState *reds) { if (reds->record) { return red_record_ref(reds->record); } return NULL; }
0
220,397
mrb_ary_pop(mrb_state *mrb, mrb_value ary) { struct RArray *a = mrb_ary_ptr(ary); mrb_int len = ARY_LEN(a); ary_modify_check(mrb, a); if (len == 0) return mrb_nil_value(); ARY_SET_LEN(a, len-1); return ARY_PTR(a)[len-1]; }
0
333,047
nfa_regexec_both( char_u *line, colnr_T startcol, // column to start looking for match proftime_T *tm, // timeout limit or NULL int *timed_out) // flag set on timeout or NULL { nfa_regprog_T *prog; long retval = 0L; int i; colnr_T col = startcol; if (REG_MULTI) ...
0
512,237
void Item_equal::sort(Item_field_cmpfunc compare, void *arg) { bubble_sort<Item>(&equal_items, compare, arg); }
0
225,611
GF_Err stsh_box_read(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 count, i; GF_ShadowSyncBox *ptr = (GF_ShadowSyncBox *)s; ISOM_DECREASE_SIZE(s, 4) count = gf_bs_read_u32(bs); if (ptr->size / 8 < count) return GF_ISOM_INVALID_FILE; for (i = 0; i < count; i++) { GF_StshEntry *ent = (GF_StshEntry *) gf_mallo...
0
224,575
Status ReduceScatterShape(shape_inference::InferenceContext* c) { shape_inference::ShapeHandle in = c->input(0); if (!c->RankKnown(in)) { // Input shape unknown, so set unknown output shape. c->set_output(0, in); return Status::OK(); } shape_inference::ShapeHandle group_assignment_shape = c->input(...
0
292,213
find_session_from_type (int type, server *serv) { session *sess; GSList *list = sess_list; while (list) { sess = list->data; if (sess->type == type && serv == sess->server) return sess; list = list->next; } return NULL; }
0
250,684
HttpFile::HttpFile(std::shared_ptr<HttpFileImpl> &&implPtr) : implPtr_(std::move(implPtr)) { }
0
413,659
static int fcn_print_verbose(RCore *core, RAnalFunction *fcn, bool use_color) { char *name = r_core_anal_fcn_name (core, fcn); int ebbs = 0; int addrwidth = 8; const char *color = ""; const char *color_end = ""; if (use_color) { color_end = Color_RESET; if (strstr (name, "sym.imp.")) { color = Color_YELLOW...
0
450,352
static void write_png_palette(int idx, uint32_t pix, void *opaque) { struct palette_cb_priv *priv = opaque; VncState *vs = priv->vs; png_colorp color = &priv->png_palette[idx]; if (vs->tight->pixel24) { color->red = (pix >> vs->client_pf.rshift) & vs->client_pf.rmax; color->green = ...
0
513,251
change_to_use_tmp_fields(THD *thd, Ref_ptr_array ref_pointer_array, List<Item> &res_selected_fields, List<Item> &res_all_fields, uint elements, List<Item> &all_fields) { List_iterator_fast<Item> it(all_fields); Item *item_field,*item; DBUG_ENTER("change_to_use_tmp_fields"); res_selected_fields.empt...
0
432,205
static void unassigned_io_write(struct uc_struct *uc, void* opaque, hwaddr addr, uint64_t data, unsigned size) { }
0
252,321
static size_t mz_zip_heap_write_func(void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n) { mz_zip_archive *pZip = (mz_zip_archive *)pOpaque; mz_zip_internal_state *pState = pZip->m_pState; mz_uint64 new_size = MZ_MAX(file_ofs + n, pState->m_mem_size); #ifdef _MSC_VE...
0
310,277
routerstatus_format_entry(char *buf, size_t buf_len, routerstatus_t *rs, const char *version, routerstatus_format_type_t format) { int r; struct in_addr in; char *cp; char *summary; char published[ISO_TIME_LEN+1]; char ipaddr[INET_NTOA_BUF_LEN]; char id...
0
90,794
void QuotaManager::NotifyOriginNoLongerInUse(const GURL& origin) { DCHECK(io_thread_->BelongsToCurrentThread()); DCHECK(IsOriginInUse(origin)); int& count = origins_in_use_[origin]; if (--count == 0) origins_in_use_.erase(origin); }
0
364,753
get_tagstack(win_T *wp, dict_T *retdict) { list_T *l; int i; dict_T *d; dict_add_number(retdict, "length", wp->w_tagstacklen); dict_add_number(retdict, "curidx", wp->w_tagstackidx + 1); l = list_alloc_id(aid_tagstack_items); if (l == NULL) return; dict_add_list(retdict, "items", l); ...
0
259,261
static int mov_read_dfla(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; int last, type, size, ret; uint8_t buf[4]; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; if ((uint64_t)atom.size > (1<<30) || atom.size < 42) return AVERROR_I...
0
314,475
static bool FNAME(is_bad_mt_xwr)(struct rsvd_bits_validate *rsvd_check, u64 gpte) { #if PTTYPE != PTTYPE_EPT return false; #else return __is_bad_mt_xwr(rsvd_check, gpte); #endif }
0
253,549
receive_encrypted_read(struct TCP_Server_Info *server, struct mid_q_entry **mid, int *num_mids) { char *buf = server->smallbuf; struct smb2_transform_hdr *tr_hdr = (struct smb2_transform_hdr *)buf; unsigned int npages; struct page **pages; unsigned int len; unsigned int buflen = server->pdu_size; int rc...
0
195,742
static GF_Err gf_isom_parse_movie_boxes_internal(GF_ISOFile *mov, u32 *boxType, u64 *bytesMissing, Bool progressive_mode) { GF_Box *a; u64 totSize, mdat_end=0; GF_Err e = GF_OK; #ifndef GPAC_DISABLE_ISOM_FRAGMENTS if (mov->single_moof_mode && mov->single_moof_state == 2) { return e; } /*restart from where we ...
1
409,488
add_termcode(char_u *name, char_u *string, int flags) { struct termcode *new_tc; int i, j; char_u *s; int len; if (string == NULL || *string == NUL) { del_termcode(name); return; } #if defined(MSWIN) && !defined(FEAT_GUI) s = vim_strnsave(string, STRLEN(string) + 1); #e...
0
289,298
static void snd_pcm_oss_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) { struct snd_pcm_str *pstr = entry->private_data; struct snd_pcm_oss_setup *setup = pstr->oss.setup_list; mutex_lock(&pstr->oss.setup_mutex); while (setup) { snd_iprintf(buffer, "%s %u %u%s%s%s%s%s%s\n", s...
0
222,877
bool ShouldUpdateOutputShapesAndValues(NodeContext* c, int64_t max_size) { InferenceContext* ic = c->inference_context.get(); // Due to the cost of running EvaluateNode(), we limit only to white listed // op types. if (!IsAllowListedOpTypeForEvaluateNode(c->op_data->op_def.name())) { return fal...
0
427,733
cdf_dump_dir(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir) { size_t i, j; cdf_directory_t *d; char name[__arraycount(d->d_name)]; cdf_stream_t scn; struct timespec ts; static const char *types[] = { "empty", "use...
0
264,412
static CURLcode cookie_output(struct Curl_easy *data, struct CookieInfo *c, const char *filename) { struct Cookie *co; FILE *out = NULL; bool use_stdout = FALSE; char *tempstore = NULL; CURLcode error = CURLE_OK; if(!c) /* no cookie engine alive */ return CURLE_OK; ...
0
450,349
void start_auth_vnc(VncState *vs) { Error *err = NULL; if (qcrypto_random_bytes(vs->challenge, sizeof(vs->challenge), &err)) { trace_vnc_auth_fail(vs, vs->auth, "cannot get random bytes", error_get_pretty(err)); error_free(err); authentication_failed(vs); ...
0
432,705
static void ipa_bmp_draw(wmfAPI *API, wmfBMP_Draw_t *bmp_draw) { wmf_magick_t *ddata = WMF_MAGICK_GetData(API); ExceptionInfo *exception; Image *image; MagickWand *magick_wand; double height, width; PixelInfo white; if (bmp_draw->bmp.data == 0) return; image = (Ima...
0
273,402
Tensor OutputSlice(Tensor* t, int pos, const string& name) { Tensor res = UnalignedSlice(*t, pos); if (res.IsAligned()) { return res; } else { Tensor aligned = AlignTensor(res, name); copy_out_.emplace_back(res, aligned); return aligned; } }
0
338,208
uint8_t WasmBinaryBuilder::getLaneIndex(size_t lanes) { BYN_TRACE("<==\n"); auto ret = getInt8(); if (ret >= lanes) { throwError("Illegal lane index"); } BYN_TRACE("getLaneIndex(" << lanes << "): " << ret << " ==>" << std::endl); return ret; }
0
338,194
void WasmBinaryBuilder::readSourceMapHeader() { if (!sourceMap) { return; } auto skipWhitespace = [&]() { while (sourceMap->peek() == ' ' || sourceMap->peek() == '\n') { sourceMap->get(); } }; auto maybeReadChar = [&](char expected) { if (sourceMap->peek() != expected) { return f...
0
508,352
No_such_table_error_handler::handle_condition(THD *, uint sql_errno, const char*, Sql_condition::enum_warning_level *level, const char*,...
0
312,553
ex_cbuffer(exarg_T *eap) { buf_T *buf = NULL; qf_info_T *qi; char_u *au_name = NULL; int res; int_u save_qfid; win_T *wp = NULL; char_u *qf_title; linenr_T line1; linenr_T line2; au_name = cbuffer_get_auname(eap->cmdidx); if (au_name != NULL && apply_autocmds(EVENT_QUICKFIX...
0
487,642
static void k_getrusage(struct task_struct *p, int who, struct rusage *r) { struct task_struct *t; unsigned long flags; cputime_t utime, stime; memset((char *) r, 0, sizeof *r); utime = stime = cputime_zero; rcu_read_lock(); if (!lock_task_sighand(p, &flags)) { rcu_read_unlock(); return; } switch (who) ...
0
222,738
PJ_DEF(pj_status_t) pjmedia_rtcp_xr_update_info( pjmedia_rtcp_xr_session *sess, unsigned info, pj_int32_t val) { int v = val; switch(info) { case PJMEDIA_RTCP_XR_INFO_SIGNAL_LVL: sess->stat.rx.voip_mtc.signal_lvl = (pj_int8_t) v; break; case PJMEDIA_RTCP_XR_INFO_NOISE_LVL: ...
0
215,948
ecc_256_modp (const struct ecc_modulo *p, mp_limb_t *rp) { mp_limb_t u1, u0; mp_size_t n; n = 2*p->size; u1 = rp[--n]; u0 = rp[n-1]; /* This is not particularly fast, but should work well with assembly implementation. */ for (; n >= p->size; n--) { mp_limb_t q2, q1, q0, t, cy; /* <q2, q...
1
259,226
static void mov_build_index(MOVContext *mov, AVStream *st) { MOVStreamContext *sc = st->priv_data; FFStream *const sti = ffstream(st); int64_t current_offset; int64_t current_dts = 0; unsigned int stts_index = 0; unsigned int stsc_index = 0; unsigned int stss_index = 0; unsigned int stps...
0
513,134
static bool register_builtin(struct st_maria_plugin *plugin, struct st_plugin_int *tmp, struct st_plugin_int **ptr) { DBUG_ENTER("register_builtin"); tmp->ref_count= 0; tmp->plugin_dl= 0; if (insert_dynamic(&plugin_array, (uchar*)&tmp)) DBUG_RETURN(...
0
274,650
callbacks_show_selection_on_invisible (GtkMenuItem *menuitem, gpointer user_data) { mainProject->show_invisible_selection = GTK_CHECK_MENU_ITEM(menuitem)->active; render_refresh_rendered_image_on_screen(); }
0
202,125
_inplace_src_spans (void *abstract_renderer, int y, int h, const cairo_half_open_span_t *spans, unsigned num_spans) { cairo_image_span_renderer_t *r = abstract_renderer; uint8_t *m; int x0; if (num_spans == 0) return CAIRO_STATUS_SUCCESS; x0 = spans[0].x; m = r->_buf; do { in...
1
477,263
static void tipc_aead_free(struct rcu_head *rp) { struct tipc_aead *aead = container_of(rp, struct tipc_aead, rcu); struct tipc_tfm *tfm_entry, *head, *tmp; if (aead->cloned) { tipc_aead_put(aead->cloned); } else { head = *get_cpu_ptr(aead->tfm_entry); put_cpu_ptr(aead->tfm_entry); list_for_each_entry_safe...
0
513,139
static void plugin_deinitialize(struct st_plugin_int *plugin, bool ref_check) { /* we don't want to hold the LOCK_plugin mutex as it may cause deinitialization to deadlock if plugins have worker threads with plugin locks */ mysql_mutex_assert_not_owner(&LOCK_plugin); if (plugin->plugin->status_vars...
0
261,905
njs_string_prototype_index_of(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { int64_t from, length; njs_int_t ret; njs_value_t *this, *search, *pos, search_lvalue, pos_lvalue; njs_string_prop_t string, s; this = njs_argument(args, 0); if...
0
369,328
static __cold int io_uring_alloc_task_context(struct task_struct *task, struct io_ring_ctx *ctx) { struct io_uring_task *tctx; int ret; tctx = kzalloc(sizeof(*tctx), GFP_KERNEL); if (unlikely(!tctx)) return -ENOMEM; tctx->registered_rings = kcalloc(IO_RINGFD_REG_MAX, sizeof(struct file *), GF...
0
328,948
R_API RBinJavaElementValuePair *r_bin_java_element_pair_new(ut8 *buffer, ut64 sz, ut64 buf_offset) { if (!buffer || sz < 8) { return NULL; } RBinJavaElementValuePair *evp = R_NEW0 (RBinJavaElementValuePair); if (!evp) { return NULL; } // TODO: What is the signifigance of evp element evp->element_name_idx = R...
0
292,239
do_dns (session *sess, char *nick, char *host, const message_tags_data *tags_data) { GResolver *res = g_resolver_get_default (); GInetAddress *addr; char *po; po = strrchr (host, '@'); if (po) host = po + 1; if (nick) EMIT_SIGNAL_TIMESTAMP (XP_TE_RESOLVINGUSER, sess, nick, host, NULL, NULL, 0, tag...
0
231,699
bool getCanIgnorePathMTU() override { return false; }
0
264,663
static GF_Err BM_ParseProtoDelete(GF_BifsDecoder *codec, GF_BitStream *bs, GF_List *com_list) { u32 flag, count; GF_Command *com = gf_sg_command_new(codec->current_graph, GF_SG_PROTO_DELETE); flag = gf_bs_read_int(bs, 1); if (flag) { count = 0; flag = gf_bs_read_int(bs, 1); while (flag) { com->del_proto_li...
0
447,060
void printIFD(std::ostream& out, PrintStructureOption option, uint64_t dir_offset, int depth) { BasicIo& io = Image::io(); depth++; bool bFirst = true; // buffer bool bPrint = true; ...
0
513,016
Item *get_copy(THD *thd) { return get_item_copy<Item_cache_str_for_nullif>(thd, this); }
0
344,764
mktemp_proto(char *s, size_t len) { const char *tmpdir; int r; if ((tmpdir = getenv("TMPDIR")) != NULL) { r = snprintf(s, len, "%s/ssh-XXXXXXXXXXXX", tmpdir); if (r > 0 && (size_t)r < len) return; } r = snprintf(s, len, "/tmp/ssh-XXXXXXXXXXXX"); if (r < 0 || (size_t)r >= len) fatal_f("template string to...
0
346,452
source_dbg_tick(void *cookie) { return &((source_cookie_T *)cookie)->dbg_tick; }
0
380,955
ins_bs( int c, int mode, int *inserted_space_p) { linenr_T lnum; int cc; int temp = 0; // init for GCC colnr_T save_col; colnr_T mincol; int did_backspace = FALSE; int in_indent; int oldState; int cpc[MAX_MCO]; // composing characters int call_fix_in...
0
274,885
TEST(ComparisonsTest, GreaterEqualBroadcast) { ComparisonOpModel model({1, 1, 1, 4}, {1, 1, 1, 1}, TensorType_INT32, BuiltinOperator_GREATER_EQUAL); model.PopulateTensor<int>(model.input1(), {-1, 9, 7, 3}); model.PopulateTensor<int>(model.input2(), {7}); model.Invoke(); EXPECT_THAT(...
0
352,961
attributeCertificateValidate( Syntax *syntax, struct berval *in ) { BerElementBuffer berbuf; BerElement *ber = (BerElement *)&berbuf; ber_tag_t tag; ber_len_t len; ber_int_t version; int cont = 0; ber_init2( ber, in, LBER_USE_DER ); tag = ber_skip_tag( ber, &len ); /* Signed wrapper */ if ( tag != LBER_SEQU...
0
208,505
networkstatus_parse_vote_from_string(const char *s, const char **eos_out, networkstatus_type_t ns_type) { smartlist_t *tokens = smartlist_create(); smartlist_t *rs_tokens = NULL, *footer_tokens = NULL; networkstatus_voter_info_t *voter = NULL; networkstatus_t *ns = NULL; d...
1
513,138
static void report_error(int where_to, uint error, ...) { va_list args; DBUG_ASSERT(where_to & (REPORT_TO_USER | REPORT_TO_LOG)); if (where_to & REPORT_TO_USER) { va_start(args, error); my_printv_error(error, ER(error), MYF(0), args); va_end(args); } if (where_to & REPORT_TO_LOG) { va_star...
0
369,391
static __cold void io_ring_ctx_free(struct io_ring_ctx *ctx) { io_sq_thread_finish(ctx); if (ctx->mm_account) { mmdrop(ctx->mm_account); ctx->mm_account = NULL; } io_rsrc_refs_drop(ctx); /* __io_rsrc_put_work() may need uring_lock to progress, wait w/o it */ io_wait_rsrc_data(ctx->buf_data); io_wait_rsrc_...
0
139,235
void OverlayWindowViews::OnNativeBlur() { if (is_initialized_) UpdateControlsVisibility(false); views::Widget::OnNativeBlur(); }
0
254,750
njs_typed_array_get_string_tag(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { njs_value_t *this; static const njs_value_t *tags[NJS_OBJ_TYPE_TYPED_ARRAY_SIZE] = { &njs_typed_array_uint8_tag, &njs_typed_array_uint8_clamped_tag, &njs_typed_array_int8_tag, ...
0
247,330
static void pgpPrtHex(const char *pre, const uint8_t *p, size_t plen) { char *hex = NULL; if (!_print) return; if (pre && *pre) fprintf(stderr, "%s", pre); hex = pgpHexStr(p, plen); fprintf(stderr, " %s", hex); free(hex); }
0
248,298
DLLIMPORT double cfg_getnfloat(cfg_t *cfg, const char *name, unsigned int index) { return cfg_opt_getnfloat(cfg_getopt(cfg, name), index); }
0
489,142
struct sctp_chunk *sctp_make_asconf_update_ip(struct sctp_association *asoc, union sctp_addr *laddr, struct sockaddr *addrs, int addrcnt, __be16 flags) { sctp_addip_param_t param; struct sctp_chunk *retval; union sctp_addr_param addr_param; union...
0
482,500
deallocateRuleNames(TranslationTableHeader *table) { RuleName **ruleName = &table->ruleNames; while (*ruleName) { RuleName *rn = *ruleName; *ruleName = rn->next; free(rn); } }
0
314,511
static void parse_version(pj_scanner *scanner, volatile parse_context *ctx) { ctx->last_error = PJMEDIA_SDP_EINVER; /* check equal sign */ if (*(scanner->curptr+1) != '=') { on_scanner_error(scanner); return; } /* check version is 0 */ if (*(scanner->curptr+2) != '...
0
274,754
static int ntfs_attr_map_partial_runlist(ntfs_attr *na, VCN vcn) { VCN last_vcn; VCN highest_vcn; VCN needed; runlist_element *rl; ATTR_RECORD *a; BOOL startseen; ntfs_attr_search_ctx *ctx; BOOL done; BOOL newrunlist; if (NAttrFullyMapped(na)) return 0; ctx = ntfs_attr_get_search_ctx(na->ni, NULL); if (...
0
223,480
static void delayed_mem_copy_move(delayed_mem_copy_status *status, int load_base, sljit_sw load_offset, int store_base, sljit_sw store_offset) { struct sljit_compiler *compiler = status->compiler; int next_tmp_reg = status->next_tmp_reg; int tmp_reg = status->tmp_regs[next_tmp_reg]; SLJIT_ASSERT(load_base > 0 && sto...
0
90,107
virtual void AddNetworkManagerObserver(NetworkManagerObserver* observer) {}
0
415,210
cmd_pksign (assuan_context_t ctx, char *line) { ctrl_t ctrl = assuan_get_pointer (ctx); int rc; unsigned char *outdata; size_t outdatalen; char *keyidstr; int hash_algo; if (has_option (line, "--hash=rmd160")) hash_algo = GCRY_MD_RMD160; else if (has_option (line, "--hash=sha1")) hash_algo = GC...
0
274,739
static void parea_report (gerbv_net_t *net, gerbv_image_t *img, gerbv_project_t *prj) { gerbv_net_t *n; unsigned int c = 0; gerbv_interpolation_t inter_prev; double x, y; if (net->interpolation != GERBV_INTERPOLATION_PAREA_START) return; /* Count vertices */ for (gerbv_net_t *n = net->next; n != NULL; n = ...
0
356,686
bool OtherInstanceOf(Napi::Object source, const char* object_type) { if (strncmp(object_type, "Date", 4) == 0) { return source.InstanceOf(source.Env().Global().Get("Date").As<Function>()); } else if (strncmp(object_type, "RegExp", 6) == 0) { return source.InstanceOf(source.Env().Global().Get("Re...
0
254,899
Value DocumentSourceGroup::computeId(const Document& root) { // If only one expression, return result directly if (_idExpressions.size() == 1) { Value retValue = _idExpressions[0]->evaluate(root, &pExpCtx->variables); return retValue.missing() ? Value(BSONNULL) : std::move(retValue); } ...
0
301,019
pcx24b_print_page(gx_device_printer * pdev, gp_file * file) { pcx_header header; header = pcx_header_prototype; header.version = version_3_0; header.bpp = 8; header.nplanes = 3; assign_ushort(header.palinfo, palinfo_color); return pcx_write_page(pdev, file, &header, true); }
0
359,466
DEFUN (bgp_default_local_preference, bgp_default_local_preference_cmd, "bgp default local-preference <0-4294967295>", "BGP specific commands\n" "Configure BGP defaults\n" "local preference (higher=more preferred)\n" "Configure default local preference value\n") { struct bgp *...
0
512,618
Item_bool_rowready_func2* Le_creator::create(THD *thd, Item *a, Item *b) const { return new(thd->mem_root) Item_func_le(thd, a, b); }
0
214,276
static bool tipc_crypto_key_rcv(struct tipc_crypto *rx, struct tipc_msg *hdr) { struct tipc_crypto *tx = tipc_net(rx->net)->crypto_tx; struct tipc_aead_key *skey = NULL; u16 key_gen = msg_key_gen(hdr); u16 size = msg_data_sz(hdr); u8 *data = msg_data(hdr); spin_lock(&rx->lock); if (unlikely(rx->skey || (key_gen...
1
459,205
void tcf_exts_destroy(struct tcf_exts *exts) { #ifdef CONFIG_NET_CLS_ACT if (exts->actions) { tcf_action_destroy(exts->actions, TCA_ACT_UNBIND); kfree(exts->actions); } exts->nr_actions = 0; #endif }
0
310,076
chop_out(char *string, unsigned i, unsigned j) { TR(TRACE_DATABASE, ("chop_out %d..%d from %s", i, j, _nc_visbuf(string))); while (string[j] != '\0') { string[i++] = string[j++]; } string[i] = '\0'; return i; }
0
326,915
static void vidtv_s302m_write_frames(struct vidtv_encoder *e) { struct vidtv_access_unit *au = e->access_units; struct vidtv_s302m_ctx *ctx = e->ctx; u32 nbytes_per_unit = 0; u32 nbytes = 0; u32 au_sz = 0; u16 sample; u32 j; while (au) { au_sz = au->num_samples * sizeof(struct vidtv_s302m_frame_16); nb...
0
336,668
SPICE_GNUC_VISIBLE int spice_server_get_peer_info(SpiceServer *reds, struct sockaddr *sa, socklen_t *salen) { return -1; }
0
90,879
void reset_status_callback_count() { status_callback_count_ = 0; }
0
326,619
set_xattrs(struct archive_write_disk *a) { struct archive_entry *entry = a->entry; struct archive_string errlist; int ret = ARCHIVE_OK; int i = archive_entry_xattr_reset(entry); short fail = 0; archive_string_init(&errlist); while (i--) { const char *name; const void *value; size_t size; int e; arch...
0
233,865
static void wrap_in_tiff(deark *c, dbuf *f, i64 dpos, i64 dlen, const char *swstring, unsigned int tag, const char *ext, unsigned int createflags) { dbuf *outf = NULL; i64 ifdoffs; i64 sw_len, sw_len_padded; i64 data_len_padded; sw_len = 1+(i64)de_strlen(swstring); if(sw_len<=4) return; sw_len_padded = de_pad_...
0
217,565
static MagickBooleanType GetICCProperty(const Image *image,const char *property) { const StringInfo *profile; /* Return ICC profile property. */ magick_unreferenced(property); profile=GetImageProfile(image,"icc"); if (profile == (StringInfo *) NULL) profile=GetImageProfile(image,"icm"); if (p...
0
349,270
static int parse_exports_table(long long *table_start) { /* * Note on overflow limits: * Size of SBlk.s.inodes is 2^32 (unsigned int) * Max indexes is (2^32*8)/8K or 2^22 * Max length is ((2^32*8)/8K)*8 or 2^25 */ int res; int indexes = SQUASHFS_LOOKUP_BLOCKS((long long) sBlk.s.inodes); int length = SQUAS...
0
246,739
u32 parse_senc_param(char *arg_val, u32 opt) { switch (opt) { case 0: //-sync smenc_opts.flags |= GF_SM_ENCODE_RAP_INBAND; smenc_opts.rap_freq = atoi(arg_val); break; case 1: //-shadow smenc_opts.flags &= ~GF_SM_ENCODE_RAP_INBAND; smenc_opts.flags |= GF_SM_ENCODE_RAP_SHADOW; smenc_opts.rap_freq = atoi(ar...
0
225,829
GF_Err def_parent_box_write(GF_Box *s, GF_BitStream *bs) { return gf_isom_box_write_header(s, bs); }
0
522,327
void GmfSetFloatPrecision(int64_t MshIdx , int FltSiz) { GmfMshSct *msh = (GmfMshSct *)MshIdx; if(FltSiz != 32 && FltSiz != 64) return; msh->FltSiz = FltSiz; GmfSetKwd(MshIdx, GmfFloatingPointPrecision, 1); GmfSetLin(MshIdx, GmfFloatingPointPrecision, FltSiz); }
0
313,140
testStorageLookup(const void *args) { const struct testLookupData *data = args; int ret = 0; virStorageSourcePtr result; virStorageSourcePtr actualParent; unsigned int idx; if (virStorageFileParseChainIndex(data->target, data->name, &idx) < 0 && data->expIndex) { fprintf(stderr,...
0
224,220
static RRBNode *_find_entry_submap_node(RIOBank *bank, RIOSubMap *sm) { RRBNode *node = r_crbtree_find_node (bank->submaps, sm, _find_lowest_intersection_sm_cb, NULL); if (!node) { return NULL; } RRBNode *prev = r_rbnode_prev (node); while (prev && r_io_submap_overlap (((RIOSubMap *)prev->data), sm)) { node = ...
0
411,922
dump_distinct_digest_count(int severity) { #ifdef COUNT_DISTINCT_DIGESTS if (!verified_digests) verified_digests = digestmap_new(); log(severity, LD_GENERAL, "%d *distinct* router digests verified", digestmap_size(verified_digests)); #else (void)severity; /* suppress "unused parameter" warning */ #endif...
0
359,515
safi2str (safi_t safi) { if (safi == SAFI_UNICAST) return "SAFI_UNICAST"; else if (safi == SAFI_MULTICAST) return "SAFI_MULTICAST"; else if (safi == SAFI_MPLS_VPN || safi == BGP_SAFI_VPNV4) return "SAFI_MPLS_VPN"; else return "Unknown SAFI"; }
0
252,346
static mz_bool mz_zip_writer_add_to_central_dir( mz_zip_archive *pZip, const char *pFilename, mz_uint16 filename_size, const void *pExtra, mz_uint16 extra_size, const void *pComment, mz_uint16 comment_size, mz_uint64 uncomp_size, mz_uint64 comp_size, mz_uint32 uncomp_crc32, mz_uint16 method, mz_uint16 b...
0
292,245
inbound_join (server *serv, char *chan, char *user, char *ip, char *account, char *realname, const message_tags_data *tags_data) { session *sess = find_channel (serv, chan); if (sess) { EMIT_SIGNAL_TIMESTAMP (XP_TE_JOIN, sess, user, chan, ip, account, 0, tags_data->timestamp); userlist_add (sess...
0
513,220
static void update_func_str(THD *thd, struct st_mysql_sys_var *var, void *tgt, const void *save) { char *value= *(char**) save; if (var->flags & PLUGIN_VAR_MEMALLOC) { char *old= *(char**) tgt; if (value) *(char**) tgt= my_strdup(value, MYF(0)); else *(char**) ...
0
313,555
void rose_rt_device_down(struct net_device *dev) { struct rose_neigh *s, *rose_neigh; struct rose_node *t, *rose_node; int i; spin_lock_bh(&rose_node_list_lock); spin_lock_bh(&rose_neigh_list_lock); rose_neigh = rose_neigh_list; while (rose_neigh != NULL) { s = rose_neigh; rose_neigh = rose_neigh-...
0