idx
int64
func
string
target
int64
259,175
static int mov_read_pitm(MOVContext *c, AVIOContext *pb, MOVAtom atom) { avio_rb32(pb); // version & flags. c->primary_item_id = avio_rb16(pb); return atom.size; }
0
483,494
static int __init __find_uefi_params(unsigned long node, struct param_info *info, struct params *params) { const void *prop; void *dest; u64 val; int i, len; for (i = 0; i < EFI_FDT_PARAMS_SIZE; i++) { prop = of_get_flat_dt_prop(node, params[i].propname, &len); if (!prop) { info->missing ...
0
512,334
void Item_func_in::mark_as_condition_AND_part(TABLE_LIST *embedding) { THD *thd= current_thd; Query_arena *arena, backup; arena= thd->activate_stmt_arena_if_needed(&backup); if (!transform_into_subq_checked) { if ((transform_into_subq= to_be_transformed_into_in_subq(thd))) thd->lex->current_select...
0
366,195
static int do_move_mount(struct path *old_path, struct path *new_path) { struct mnt_namespace *ns; struct mount *p; struct mount *old; struct mount *parent; struct mountpoint *mp, *old_mp; int err; bool attached; mp = lock_mount(new_path); if (IS_ERR(mp)) return PTR_ERR(mp); old = real_mount(old_path->mnt...
0
238,414
static void __mark_reg_unknown(const struct bpf_verifier_env *env, struct bpf_reg_state *reg) { /* * Clear type, id, off, and union(map_ptr, range) and * padding between 'type' and union */ memset(reg, 0, offsetof(struct bpf_reg_state, var_off)); reg->type = SCALAR_VALUE; reg->var_off = tnum_unknown...
0
355,648
eval_to_string_safe( char_u *arg, int use_sandbox, int keep_script_version) { char_u *retval; funccal_entry_T funccal_entry; int save_sc_version = current_sctx.sc_version; int save_garbage = may_garbage_collect; if (!keep_script_version) current_sctx.sc_version = 1; save_funcca...
0
413,636
static RList *anal_graph_to(RCore *core, ut64 addr, int depth, HtUP *avoid) { RAnalFunction *cur_fcn = r_anal_get_fcn_in (core->anal, core->offset, 0); RList *list = r_list_new (); HtUP *state = ht_up_new0 (); if (!list || !state || !cur_fcn) { r_list_free (list); ht_up_free (state); return NULL; } // for...
0
344,239
lua_Number luaV_modf (lua_State *L, lua_Number m, lua_Number n) { lua_Number r; luai_nummod(L, m, n, r); return r; }
0
221,646
bool hermes::evalIsFalse(IRBuilder &builder, Literal *operand) { if (auto *lit = evalToBoolean(builder, operand)) return !lit->getValue(); return false; }
0
448,911
unsigned long ZEXPORT inflateCodesUsed(strm) z_streamp strm; { struct inflate_state FAR *state; if (inflateStateCheck(strm)) return (unsigned long)-1; state = (struct inflate_state FAR *)strm->state; return (unsigned long)(state->next - state->codes); }
0
231,669
void updateWritableByteLimitOnRecvPacket(QuicServerConnectionState& conn) { // When we receive a packet we increase the limit again. The reasoning this is // that a peer can do the same by opening a new connection. if (conn.writableBytesLimit) { conn.writableBytesLimit = *conn.writableBytesLimit + con...
0
221,394
static bool nested_vmcb_check_cr3_cr4(struct kvm_vcpu *vcpu, struct vmcb_save_area *save) { /* * These checks are also performed by KVM_SET_SREGS, * except that EFER.LMA is not checked by SVM against * CR0.PG && EFER.LME. */ if ((save->efer & EFER_LME) && (save->cr0 & X86_CR0_PG)) { if (CC(!(save-...
0
473,851
st_init_table_with_size(const struct st_hash_type *type, st_index_t size) { st_table *tbl; #ifdef HASH_LOG # if HASH_LOG+0 < 0 { const char *e = getenv("ST_HASH_LOG"); if (!e || !*e) init_st = 1; } # endif if (init_st == 0) { init_st = 1; atexit(stat_col); } #endif size = new_size(size); /...
0
229,293
virtual void visit(const messages::result_message::schema_change& m) override { auto change = m.get_change(); switch (change->type) { case event::event_type::SCHEMA_CHANGE: { auto sc = static_pointer_cast<event::schema_change>(change); _response.write_int(0x0005); ...
0
445,888
open_files_extract_ready_cb (GObject *source_object, GAsyncResult *result, gpointer user_data) { OpenFilesData *odata = user_data; GError *error = NULL; open_files_data_ref (odata); fr_archive_operation_finish (FR_ARCHIVE (source_object), result, &error); _archive_operation_comple...
0
257,698
static int wstunnel_check_request(request_st * const r, handler_ctx * const hctx) { const buffer * const vers = http_header_request_get(r, HTTP_HEADER_OTHER, CONST_STR_LEN("Sec-WebSocket-Version")); const long hybivers = (NULL != vers) ? light_isdigit(*vers->ptr) ? strtol(vers->ptr, NULL, 10) : -1 ...
0
473,961
code_to_mbclen(OnigCodePoint code, OnigEncoding enc ARG_UNUSED) { if ((code & 0xffffff80) == 0) return 1; else if ((code & 0xfffff800) == 0) return 2; else if ((code & 0xffff0000) == 0) return 3; else if ((code & 0xffe00000) == 0) return 4; else if ((code & 0xfc000000) == 0) return 5; else if ((code & ...
0
411,940
is_anon_tgs_request_p(const KDC_REQ_BODY *b, const EncTicketPart *tgt) { KDCOptions f = b->kdc_options; /* * Versions of Heimdal from 1.0 to 7.6, inclusive, send both the * request-anonymous and cname-in-addl-tkt flags for constrained * delegation requests. A true anonymous TGS request w...
0
401,532
void add_input_randomness(unsigned int type, unsigned int code, unsigned int value) { static unsigned char last_value; /* ignore autorepeat and the like */ if (value == last_value) return; last_value = value; add_timer_randomness(&input_timer_state, (type << 4) ^ code ^ (code >> 4) ^ value); trac...
0
329,927
_cairo_image_compositor_reset_static_data (void) { CAIRO_MUTEX_LOCK (_cairo_glyph_cache_mutex); if (global_glyph_cache) pixman_glyph_cache_destroy (global_glyph_cache); global_glyph_cache = NULL; CAIRO_MUTEX_UNLOCK (_cairo_glyph_cache_mutex); }
0
513,165
static void free_plugin_mem(struct st_plugin_dl *p) { #ifdef HAVE_DLOPEN if (p->ptr_backup) { DBUG_ASSERT(p->nbackups); DBUG_ASSERT(p->handle); restore_ptr_backup(p->nbackups, p->ptr_backup); my_free(p->ptr_backup); } if (p->handle) dlclose(p->handle); #endif my_free(p->dl.str); if (p->a...
0
310,291
dirserv_add_descriptor(routerinfo_t *ri, const char **msg, const char *source) { was_router_added_t r; routerinfo_t *ri_old; char *desc, *nickname; size_t desclen = 0; *msg = NULL; /* If it's too big, refuse it now. Otherwise we'll cache it all over the * network and it'll clog everything up. */ if (r...
0
238,466
static int kfunc_desc_cmp_by_id_off(const void *a, const void *b) { const struct bpf_kfunc_desc *d0 = a; const struct bpf_kfunc_desc *d1 = b; /* func_id is not greater than BTF_MAX_TYPE */ return d0->func_id - d1->func_id ?: d0->offset - d1->offset; }
0
253,616
smb3_init_transform_rq(struct TCP_Server_Info *server, int num_rqst, struct smb_rqst *new_rq, struct smb_rqst *old_rq) { struct page **pages; struct smb2_transform_hdr *tr_hdr = new_rq[0].rq_iov[0].iov_base; unsigned int npages; unsigned int orig_len = 0; int i, j; int rc = -ENOMEM; for (i = 1; i < num...
0
225,095
const OpDef::ArgDef* FindInputArg(StringPiece name, const OpDef& op_def) { for (int i = 0; i < op_def.input_arg_size(); ++i) { if (op_def.input_arg(i).name() == name) { return &op_def.input_arg(i); } } return nullptr; }
0
277,669
get_word_gray_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) /* This version is for reading raw-word-format PGM files with any maxval */ { ppm_source_ptr source = (ppm_source_ptr) sinfo; register JSAMPROW ptr; register U_CHAR * bufferptr; register JSAMPLE *rescale = source->rescale; JDIMENSION col; if ...
0
508,298
TABLE *find_locked_table(TABLE *list, const char *db, const char *table_name) { char key[MAX_DBKEY_LENGTH]; uint key_length= tdc_create_key(key, db, table_name); for (TABLE *table= list; table ; table=table->next) { if (table->s->table_cache_key.length == key_length && !memcmp(table->s->table_cache_key.st...
0
294,635
d_lite_jd(VALUE self) { get_d1(self); return m_real_local_jd(dat); }
0
476,099
int config_ep_by_speed_and_alt(struct usb_gadget *g, struct usb_function *f, struct usb_ep *_ep, u8 alt) { struct usb_endpoint_descriptor *chosen_desc = NULL; struct usb_interface_descriptor *int_desc = NULL; struct usb_descriptor_header **speed_desc = NULL; struct usb_ss_ep_comp_descriptor *comp_desc ...
0
238,454
static int sanitize_check_bounds(struct bpf_verifier_env *env, const struct bpf_insn *insn, const struct bpf_reg_state *dst_reg) { u32 dst = insn->dst_reg; /* For unprivileged we require that resulting offset must be in bounds * in order to be able to sanitize access later on. */ if (env->bypass_spec_...
0
512,500
bool eq(const Item_args *other, bool binary_cmp) const { for (uint i= 0; i < arg_count ; i++) { if (!args[i]->eq(other->args[i], binary_cmp)) return false; } return true; }
0
139,222
gfx::Size OverlayWindowViews::GetMaximumSize() const { return max_size_; }
0
247,528
TEST_P(SslSocketTest, ClientCertificateSpkiVerification) { 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; envoy::extensions::transport_sockets:...
0
238,544
static int check_stack_write_fixed_off(struct bpf_verifier_env *env, /* stack frame we're writing to */ struct bpf_func_state *state, int off, int size, int value_regno, int insn_idx) { struct bpf_func_state *cur; /* state of the current function */ int i, slot = -off - 1, ...
0
445,994
_encrypt_operation_completed_with_error (FrWindow *window, FrAction action, GError *error) { gboolean opens_dialog; g_return_if_fail (error != NULL); #ifdef DEBUG debug (DEBUG_INFO, "%s [DONE] (FR::Window)\n", action_names[action]); #endif _fr_window_stop_activity_mode (window); _handle_archive_o...
0
261,452
void free_significant_coeff_ctxIdx_lookupTable() { free(ctxIdxLookup[0][0][0][0]); ctxIdxLookup[0][0][0][0]=NULL; }
0
369,309
static int io_connect_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) { struct io_connect *conn = &req->connect; if (unlikely(req->ctx->flags & IORING_SETUP_IOPOLL)) return -EINVAL; if (sqe->ioprio || sqe->len || sqe->buf_index || sqe->rw_flags || sqe->splice_fd_in) return -EINVAL; conn->addr ...
0
484,723
void mobi_buffer_free_null(MOBIBuffer *buf) { if (buf == NULL) { return; } free(buf); }
0
220,430
mrb_ary_unshift(mrb_state *mrb, mrb_value self, mrb_value item) { struct RArray *a = mrb_ary_ptr(self); mrb_int len = ARY_LEN(a); if (ARY_SHARED_P(a) && a->as.heap.aux.shared->refcnt == 1 /* shared only referenced from this array */ && a->as.heap.ptr - a->as.heap.aux.shared->ptr >= 1) /* there's room...
0
225,440
static const struct v4l2l_format *format_by_fourcc(int fourcc) { unsigned int i; for (i = 0; i < FORMATS; i++) { if (formats[i].fourcc == fourcc) return formats + i; } dprintk("unsupported format '%c%c%c%c'\n", (fourcc >> 0) & 0xFF, (fourcc >> 8) & 0xFF, (fourcc >> 16) & 0xFF, (fourcc >> 24) & 0xFF); re...
0
468,337
main (int argc, char *argv[]) { g_test_init (&argc, &argv, NULL); g_test_add_func ("/socket-client/happy-eyeballs/slow", test_happy_eyeballs); g_test_add_func ("/socket-client/happy-eyeballs/cancellation", test_happy_eyeballs_cancel); return g_test_run (); }
0
220,031
string DebugString() const override { return "A SparseTensorsMap"; }
0
244,047
void proj_type_box_del(GF_Box *s) { gf_free(s); }
0
218,974
Status ConstantFolding::FoldNode(NodeDef* node, GraphDef* output_graph, bool* result_too_large) { *result_too_large = false; if (IsMerge(*node)) { return FoldMergeNode(node, output_graph); } std::vector<NodeDef> const_nodes; TF_RETURN_IF_ERROR( EvaluateOneFoldable(*...
0
224,174
TF_EXCLUSIVE_LOCKS_REQUIRED(mu_) { if (index >= dtypes_.size()) { return Status(errors::InvalidArgument( "Index '", index, "' for key '", key.scalar<int64_t>()(), "' was out of bounds '", dtypes_.size(), "'.")); } return Status::OK(); }
0
421,399
static void pvarlist(int d, js_Ast *list) { while (list) { assert(list->type == AST_LIST); pvar(d, list->a); list = list->b; if (list) comma(); } }
0
242,666
dissect_header_lens_v2(tvbuff_t *tvb, wtap_syscall_header* syscall_header, int offset, proto_tree *tree, int encoding) { guint32 param_count; proto_item *ti; proto_tree *len_tree; ti = proto_tree_add_item(tree, hf_se_param_lens, tvb, offset, syscall_header->nparams * SYSDIG_PARAM_SIZE_V2, ENC_NA); ...
0
310,008
drv_CanHandle(TERMINAL_CONTROL_BLOCK * TCB, const char *tname, int *errret) { bool result = FALSE; int status; TERMINAL *termp; SCREEN *sp; START_TRACE(); T((T_CALLED("tinfo::drv_CanHandle(%p)"), (void *) TCB)); assert(TCB != 0 && tname != 0); termp = (TERMINAL *) TCB; sp = TCB->cs...
0
224,496
static void ttxt_parse_text_style(GF_TXTIn *ctx, GF_XMLNode *n, GF_StyleRecord *style) { u32 i=0; GF_XMLAttribute *att; memset(style, 0, sizeof(GF_StyleRecord)); style->fontID = 1; style->font_size = ctx->fontsize ; style->text_color = 0xFFFFFFFF; while ( (att=(GF_XMLAttribute *)gf_list_enum(n->attributes, &i))...
0
405,711
static int xemaclite_mdio_write(struct mii_bus *bus, int phy_id, int reg, u16 val) { struct net_local *lp = bus->priv; u32 ctrl_reg; dev_dbg(&lp->ndev->dev, "%s(phy_id=%i, reg=%x, val=%x)\n", __func__, phy_id, reg, val); if (xemaclite_mdio_wait(lp)) return -ETIMEDOUT; /* Write the PHY address, registe...
0
196,829
void Compute(OpKernelContext* ctx) override { const Tensor& val = ctx->input(0); int64 id = ctx->session_state()->GetNewId(); TensorStore::TensorAndKey tk{val, id, requested_device()}; OP_REQUIRES_OK(ctx, ctx->tensor_store()->AddTensor(name(), tk)); Tensor* handle = nullptr; OP_REQUIRES_OK(ct...
1
317,318
static int smack_set_mnt_opts(struct super_block *sb, void *mnt_opts, unsigned long kern_flags, unsigned long *set_kern_flags) { struct dentry *root = sb->s_root; struct inode *inode = d_backing_inode(root); struct superblock_smack *sp = smack_superblock(sb); struct inode_smack *isp; struct smack_known *skp;...
0
328,978
R_API char *r_bin_java_print_unknown_cp_stringify(RBinJavaCPTypeObj *obj) { return r_str_newf ("%d.0x%04"PFMT64x ".%s", obj->metas->ord, obj->file_offset + obj->loadaddr, ((RBinJavaCPTypeMetas *) obj->metas->type_info)->name); }
0
512,682
bool Item_func_in::prepare_predicant_and_values(THD *thd, uint *found_types) { uint type_cnt; have_null= false; add_predicant(this, 0); for (uint i= 1 ; i < arg_count; i++) { if (add_value_skip_null(Item_func_in::func_name(), this, i, &have_null)) return true; } all_values_added(&m_comparator, ...
0
197,998
void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); const TensorShape& input_shape = input.shape(); const int32 input_dims = input_shape.dims(); const Tensor& segment_id = context->input(1); const TensorShape& segment_id_shape = segment_id.shape(); const...
1
310,163
init_extended_pair(int pair, int f, int b) { return NCURSES_SP_NAME(init_extended_pair) (CURRENT_SCREEN, pair, f, b); }
0
473,910
next_state_class(CClassNode* cc, OnigCodePoint* vs, enum CCVALTYPE* type, enum CCSTATE* state, ScanEnv* env) { int r; if (*state == CCS_RANGE) return ONIGERR_CHAR_CLASS_VALUE_AT_END_OF_RANGE; if (*state == CCS_VALUE && *type != CCV_CLASS) { if (*type == CCV_SB) BITSET_SET_BIT_CHKDUP(cc->bs, (in...
0
455,291
run_wordexp (words) char *words; { int code, nw, nb; WORD_LIST *wl, *tl, *result; code = setjmp_nosigs (top_level); if (code != NOT_JUMPED) { switch (code) { /* Some kind of throw to top_level has occurred. */ case FORCE_EOF: return last_command_exit_value = 127; case ERREXIT: case EX...
0
405,394
static struct dst_entry *xfrm_dst_check(struct dst_entry *dst, u32 cookie) { /* Code (such as __xfrm4_bundle_create()) sets dst->obsolete * to DST_OBSOLETE_FORCE_CHK to force all XFRM destinations to * get validated by dst_ops->check on every use. We do this * because when a normal route referenced by an XFRM d...
0
344,778
set_nodelay(int fd) { int opt; socklen_t optlen; optlen = sizeof opt; if (getsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, &optlen) == -1) { debug("getsockopt TCP_NODELAY: %.100s", strerror(errno)); return; } if (opt == 1) { debug2("fd %d is TCP_NODELAY", fd); return; } opt = 1; debug2("fd %d setting TC...
0
512,339
bool is_bool_literal() const { return true; }
0
464,942
mbfl_filt_conv_big5_wchar(int c, mbfl_convert_filter *filter) { int k; int c1, w, c2; switch (filter->status) { case 0: if (filter->from->no_encoding == mbfl_no_encoding_cp950) { c1 = 0x80; } else { c1 = 0xa0; } if (c >= 0 && c <= 0x80) { /* latin */ CK((*filter->output_function)(c, filter->data)...
0
336,582
SPICE_GNUC_VISIBLE int spice_server_set_playback_compression(SpiceServer *reds, int enable) { reds->config->playback_compression = !!enable; snd_set_playback_compression(enable); return 0; }
0
225,909
void ccst_box_del(GF_Box *s) { GF_CodingConstraintsBox *ptr = (GF_CodingConstraintsBox *)s; if (ptr) gf_free(ptr); return; }
0
277,474
MOBI_RET mobi_get_indxentry_tagvalue(uint32_t *tagvalue, const MOBIIndexEntry *entry, const unsigned tag_arr[]) { if (entry == NULL) { debug_print("%s", "INDX entry not initialized\n"); return MOBI_INIT_FAILED; } size_t i = 0; while (i < entry->tags_count) { if (entry->tags[i].ta...
0
273,060
clock_getres(clockid_t clock_id, struct timespec *res) { if (! res) return -1; /* hardcode ms resolution */ res->tv_sec = 0; res->tv_nsec = 1000; return 0; }
0
244,296
GF_Err dac3_box_read(GF_Box *s, GF_BitStream *bs) { GF_AC3ConfigBox *ptr = (GF_AC3ConfigBox *)s; if (ptr == NULL) return GF_BAD_PARAM; return gf_odf_ac3_config_parse_bs(bs, ptr->cfg.is_ec3, &ptr->cfg); }
0
317,185
static int bpf_fd_pass(struct file *file, u32 sid) { struct bpf_security_struct *bpfsec; struct bpf_prog *prog; struct bpf_map *map; int ret; if (file->f_op == &bpf_map_fops) { map = file->private_data; bpfsec = map->security; ret = avc_has_perm(&selinux_state, sid, bpfsec->sid, SECCLASS_BPF, ...
0
513,040
bool Item_equal::fix_length_and_dec() { Item *item= get_first(NO_PARTICULAR_TAB, NULL); const Type_handler *handler= item->type_handler(); eval_item= handler->make_cmp_item(current_thd, item->collation.collation); return eval_item == NULL; }
0
90,863
void NotifyOriginNoLongerInUse(const GURL& origin) { quota_manager_->NotifyOriginNoLongerInUse(origin); }
0
312,467
qf_init(win_T *wp, char_u *efile, char_u *errorformat, int newlist, // TRUE: start a new error list char_u *qf_title, char_u *enc) { qf_info_T *qi = &ql_info; if (wp != NULL) { qi = ll_get_or_alloc_list(wp); if (qi == NULL) return FAIL; } return qf_init_ext...
0
180,235
v8::Handle<v8::Value> V8ThrowException::throwGeneralError(v8::Isolate* isolate, const String& message) { v8::Handle<v8::Value> exception = V8ThrowException::createGeneralError(isolate, message); return V8ThrowException::throwException(exception, isolate); }
0
250,690
int HttpFile::saveAs(const std::string &fileName) const { return implPtr_->saveAs(fileName); }
0
205,806
void sdb_edit(procinfo *pi) { char * filename = omStrDup("/tmp/sd000000"); sprintf(filename+7,"%d",getpid()); FILE *fp=fopen(filename,"w"); if (fp==NULL) { Print("cannot open %s\n",filename); omFree(filename); return; } if (pi->language!= LANG_SINGULAR) { Print("cannot edit type %d\n",pi...
1
384,124
raptor_xml_writer_start_element_common(raptor_xml_writer* xml_writer, raptor_xml_element* element, int auto_empty) { raptor_iostream* iostr = xml_writer->iostr; raptor_namespace_stack *nstack = xml_writer->nstack; int depth = xml_writer...
0
387,866
Method* InstanceKlass::method_with_orig_idnum(int idnum) { if (idnum >= methods()->length()) { return NULL; } Method* m = methods()->at(idnum); if (m != NULL && m->orig_method_idnum() == idnum) { return m; } // Obsolete method idnum does not match the original idnum for (int index = 0; index < met...
0
343,314
void dopass(char *password) { static unsigned int tapping; char *hd; #if !defined(MINIMAL) && defined(HAVE_GETGROUPS) && defined(DISPLAY_GROUPS) gid_t *groups = NULL; int ngroups; # if defined(NGROUPS_MAX) && NGROUPS_MAX > 0 int ngroups_max = NGROUPS_MAX; /* Use the compile time value */ # else ...
0
384,823
f_browsedir(typval_T *argvars UNUSED, typval_T *rettv) { # ifdef FEAT_BROWSE char_u *title; char_u *initdir; char_u buf[NUMBUFLEN]; if (in_vim9script() && (check_for_string_arg(argvars, 0) == FAIL || check_for_string_arg(argvars, 1) == FAIL)) return; title = tv_get_string_chk(&argvars[0]);...
0
333,091
report_state(char *action, regsub_T *sub, nfa_state_T *state, int lid, nfa_pim_T *pim) { int col; if (sub->in_use <= 0) col = -1; else if (REG_MULTI) col = sub->list.multi[0].start_col; else col = (int)(sub->list.line[0].start - rex.line); nfa_set_code(state->c); fpri...
0
236,207
void dims_box_del(GF_Box *s) { gf_isom_sample_entry_predestroy((GF_SampleEntryBox *)s); gf_free(s); }
0
430,344
struct hlist_node *seq_hlist_start(struct hlist_head *head, loff_t pos) { struct hlist_node *node; hlist_for_each(node, head) if (pos-- == 0) return node; return NULL; }
0
261,885
njs_string_hex(njs_vm_t *vm, njs_value_t *value, const njs_str_t *src) { size_t length; njs_str_t dst; length = njs_encode_hex_length(src, &dst.length); dst.start = njs_string_alloc(vm, value, dst.length, length); if (njs_fast_path(dst.start != NULL)) { njs_encode_hex(&dst, src); ...
0
294,544
rt__valid_commercial_p(VALUE y, VALUE w, VALUE d, VALUE sg) { VALUE nth, rjd2; int ry, rw, rd, rjd, ns; if (!valid_commercial_p(y, NUM2INT(w), NUM2INT(d), NUM2DBL(sg), &nth, &ry, &rw, &rd, &rjd, &ns)) return Qnil; encode_jd(nth, rjd, &rjd2); return rjd2; }
0
220,407
mrb_ary_splat(mrb_state *mrb, mrb_value v) { mrb_value ary; struct RArray *a; if (mrb_array_p(v)) { a = ary_dup(mrb, mrb_ary_ptr(v)); return mrb_obj_value(a); } if (!mrb_respond_to(mrb, v, MRB_SYM(to_a))) { return mrb_ary_new_from_values(mrb, 1, &v); } ary = mrb_funcall_id(mrb, v, MRB_SYM(t...
0
222,528
string FunctionLibraryRuntime::ExecutorType(const InstantiateOptions& options, AttrSlice attrs) { if (!options.executor_type.empty()) { return options.executor_type; } else if (const AttrValue* executor_attr = attrs.Find(kExecutorAttr)) { return executor_attr->s()...
0
301,501
suggest_try_soundalike_prep(void) { langp_T *lp; int lpi; slang_T *slang; // Do this for all languages that support sound folding and for which a // .sug file has been loaded. for (lpi = 0; lpi < curwin->w_s->b_langp.ga_len; ++lpi) { lp = LANGP_ENTRY(curwin->w_s->b_langp, lpi); slang = l...
0
256,394
static int bio_copy_to_iter(struct bio *bio, struct iov_iter iter) { struct bio_vec *bvec; struct bvec_iter_all iter_all; bio_for_each_segment_all(bvec, bio, iter_all) { ssize_t ret; ret = copy_page_to_iter(bvec->bv_page, bvec->bv_offset, bvec->bv_len, &iter); if (!iov_iter_count(&iter)) b...
0
301,411
static int vfswrap_stat(vfs_handle_struct *handle, struct smb_filename *smb_fname) { int result = -1; START_PROFILE(syscall_stat); if (smb_fname->stream_name) { errno = ENOENT; goto out; } result = sys_stat(smb_fname->base_name, &smb_fname->st, lp_fake_dir_create_times(SNUM(handle->conn))); out: E...
0
234,133
get_line_filename_and_dirname (dwarf_vma line_offset, dwarf_vma fileidx, unsigned char **dir_name) { struct dwarf_section *section = &debug_displays [line].section; unsigned char *hdrptr, *dirtable, *file_name; unsigned int offset_size; unsigned int version, opcode_base; dwarf_vma length, ...
0
381,857
static void udf_update_extent_cache(struct inode *inode, loff_t estart, struct extent_position *pos) { struct udf_inode_info *iinfo = UDF_I(inode); spin_lock(&iinfo->i_extent_cache_lock); /* Invalidate previously cached extent */ __udf_clear_extent_cache(inode); if (pos->bh) get_bh(pos->bh); memcpy(&ii...
0
386,556
void DL_Dxf::writeArc(DL_WriterA& dw, const DL_ArcData& data, const DL_Attributes& attrib) { dw.entity("ARC"); if (version==DL_VERSION_2000) { dw.dxfString(100, "AcDbEntity"); } dw.entityAttributes(attrib); if (version==DL_VERSION_2000) { d...
0
222,900
static int64_t Unknown() { return -1; }
0
263,512
static int sco_sock_release(struct socket *sock) { struct sock *sk = sock->sk; int err = 0; BT_DBG("sock %p, sk %p", sock, sk); if (!sk) return 0; sco_sock_close(sk); if (sock_flag(sk, SOCK_LINGER) && sk->sk_lingertime && !(current->flags & PF_EXITING)) { lock_sock(sk); err = bt_sock_wait_state(sk,...
0
222,568
string FunctionLibraryDefinition::FindGradient(const string& func) const { tf_shared_lock l(mu_); return gtl::FindWithDefault(func_grad_, func, ""); }
0
359,631
DEFUN (clear_ip_bgp_peer_ipv4_in_prefix_filter, clear_ip_bgp_peer_ipv4_in_prefix_filter_cmd, "clear ip bgp A.B.C.D ipv4 (unicast|multicast) in prefix-filter", CLEAR_STR IP_STR BGP_STR "BGP neighbor address to clear\n" "Address family\n" "Address Family modifier\n"...
0
512,947
double val_real_from_item(Item *item) { DBUG_ASSERT(is_fixed()); double value= item->val_real(); null_value= item->null_value; return value; }
0
359,651
DEFUN (clear_bgp_all_soft_in, clear_bgp_all_soft_in_cmd, "clear bgp * soft in", CLEAR_STR BGP_STR "Clear all peers\n" "Soft reconfig\n" "Soft reconfig inbound update\n") { if (argc == 1) return bgp_clear_vty (vty, argv[0], AFI_IP6, SAFI_UNICAST, clear_all, ...
0
225,765
GF_Err moov_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem) { GF_MovieBox *ptr = (GF_MovieBox *)s; switch (a->type) { case GF_ISOM_BOX_TYPE_IODS: BOX_FIELD_ASSIGN(iods, GF_ObjectDescriptorBox) //if no IOD, delete the box if (ptr->iods && !ptr->iods->descriptor) { ptr->iods = NULL; gf_isom_box_del_parent(...
0
447,047
byte* FileIo::mmap(bool isWriteable) { assert(p_->fp_ != 0); if (munmap() != 0) { #ifdef EXV_UNICODE_PATH if (p_->wpMode_ == Impl::wpUnicode) { throw WError(2, wpath(), strError().c_str(), "munmap"); } else #endif { ...
0
243,003
int mbedtls_ssl_check_pending( const mbedtls_ssl_context *ssl ) { /* * Case A: We're currently holding back * a message for further processing. */ if( ssl->keep_current_message == 1 ) { MBEDTLS_SSL_DEBUG_MSG( 3, ( "ssl_check_pending: record held back for processing" ) ); retu...
0