idx
int64
func
string
target
int64
395,066
redraw_asap(int type) { int rows; int cols = screen_Columns; int r; int ret = 0; schar_T *screenline; // copy from ScreenLines[] sattr_T *screenattr; // copy from ScreenAttrs[] int i; u8char_T *screenlineUC = NULL; // copy from ScreenLinesUC[] u8char_T *screenlineC[MAX_MCO]; // ...
0
508,361
bool setup_tables_and_check_access(THD *thd, Name_resolution_context *context, List<TABLE_LIST> *from_clause, TABLE_LIST *tables, List<TABLE_LIST> &leaves, bool select_insert, ulong want_access_first, ...
0
384,800
gettail(char_u *fname) { char_u *p1, *p2; if (fname == NULL) return (char_u *)""; for (p1 = p2 = get_past_head(fname); *p2; ) // find last part of path { if (vim_ispathsep_nocolon(*p2)) p1 = p2 + 1; MB_PTR_ADV(p2); } return p1; }
0
417,119
mp_int64 PlayerGeneric::getSyncCount() const { if (player) return player->getSyncCount(); return 0; }
0
376,329
gpg_ctx_free (struct _GpgCtx *gpg) { gint i; if (gpg == NULL) return; if (gpg->session) g_object_unref (gpg->session); g_hash_table_foreach (gpg->userid_hint, userid_hint_free, NULL); g_hash_table_destroy (gpg->userid_hint); g_slist_free_full (gpg->userids, g_free); g_free (gpg->sigfile); if (gpg->rec...
0
282,877
int rsi_set_antenna(struct rsi_common *common, u8 antenna) { struct rsi_ant_sel_frame *ant_sel_frame; struct sk_buff *skb; skb = dev_alloc_skb(FRAME_DESC_SZ); if (!skb) { rsi_dbg(ERR_ZONE, "%s: Failed in allocation of skb\n", __func__); return -ENOMEM; } memset(skb->data, 0, FRAME_DESC_SZ); ant_sel_fra...
0
224,479
static GF_Err gf_text_ttml_setup(GF_Filter *filter, GF_TXTIn *ctx) { GF_Err e; u32 i, nb_children, ID; u64 file_size; s32 sub_fps_num, sub_fps_den; GF_XMLAttribute *att; GF_XMLNode *root, *node, *body_node; const char *lang = ctx->lang; ctx->is_setup = GF_TRUE; ctx->parser = gf_xml_dom_new(); e = gf_xml_dom...
0
509,540
int ha_maria::enable_indexes(uint mode) { int error; ha_rows start_rows= file->state->records; DBUG_PRINT("info", ("ha_maria::enable_indexes mode: %d", mode)); if (maria_is_all_keys_active(file->s->state.key_map, file->s->base.keys)) { /* All indexes are enabled already. */ return 0; } if (mode =...
0
359,454
DEFUN (no_bgp_graceful_restart_stalepath_time, no_bgp_graceful_restart_stalepath_time_cmd, "no bgp graceful-restart stalepath-time", NO_STR "BGP specific commands\n" "Graceful restart capability parameters\n" "Set the max time to hold onto restarting peer's stale paths\n") { ...
0
225,689
void gnrm_box_del(GF_Box *s) { GF_GenericSampleEntryBox *ptr = (GF_GenericSampleEntryBox *)s; gf_isom_sample_entry_predestroy((GF_SampleEntryBox *)ptr); if (ptr->data) gf_free(ptr->data); gf_free(ptr); }
0
238,469
static void scrub_spilled_slot(u8 *stype) { if (*stype != STACK_INVALID) *stype = STACK_MISC; }
0
294,445
date_s__xmlschema(int argc, VALUE *argv, VALUE klass) { VALUE str, opt; rb_scan_args(argc, argv, "1:", &str, &opt); check_limit(str, opt); return date__xmlschema(str); }
0
310,071
NCURSES_SP_NAME(_nc_mvcur_resume) (NCURSES_SP_DCL0) /* what to do at initialization time and after each shellout */ { if (!SP_PARM || !IsTermInfo(SP_PARM)) return; /* initialize screen for cursor access */ if (enter_ca_mode) { NCURSES_PUTP2("enter_ca_mode", enter_ca_mode); } /* * Doing this...
0
506,438
mech_rpa_build_token2(struct rpa_auth_request *request, size_t *size) { const struct auth_settings *set = request->auth_request.set; unsigned int realms_len, length; string_t *realms; buffer_t *buf; unsigned char timestamp[RPA_TIMESTAMP_LEN / 2]; const char *const *tmp; realms = t_str_new(64); for (tmp = set->...
0
267,971
R_IPI RBinFile *r_bin_file_xtr_load_buffer(RBin *bin, RBinXtrPlugin *xtr, const char *filename, RBuffer *buf, ut64 baseaddr, ut64 loadaddr, int idx, int fd, int rawstr) { r_return_val_if_fail (bin && xtr && buf, NULL); RBinFile *bf = r_bin_file_find_by_name (bin, filename); if (!bf) { bf = r_bin_file_new (bin, fi...
0
312,496
qf_list_empty(qf_list_T *qfl) { return qfl == NULL || qfl->qf_count <= 0; }
0
252,445
mz_bool mz_zip_writer_add_file(mz_zip_archive *pZip, const char *pArchive_name, const char *pSrc_filename, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags) { mz_uint uncomp_crc32 = MZ_CRC32_INIT, level, ...
0
198,552
static int pkey_GOST_ECcp_encrypt(EVP_PKEY_CTX *pctx, unsigned char *out, size_t *out_len, const unsigned char *key, size_t key_len) { GOST_KEY_TRANSPORT *gkt = NULL; EVP_PKEY *pubk = EVP_PKEY_CTX_get0_pkey(pctx); struct gost_pmeth_data *data = EVP_PKEY_...
1
196,790
Status Examples::Initialize(OpKernelContext* const context, const ModelWeights& weights, const int num_sparse_features, const int num_sparse_features_with_values, const int num_dense_features) { num_feature...
1
238,498
static bool insn_has_def32(struct bpf_verifier_env *env, struct bpf_insn *insn) { int dst_reg = insn_def_regno(insn); if (dst_reg == -1) return false; return !is_reg64(env, insn, dst_reg, NULL, DST_OP); }
0
349,887
void hw_atl_utils_mpi_read_stats(struct aq_hw_s *self, struct hw_atl_utils_mbox *pmbox) { int err = 0; err = hw_atl_utils_fw_downld_dwords(self, self->mbox_addr, (u32 *)(void *)pmbox, sizeof(*pmbox) / sizeof(u32)); if (err < 0) goto err_exit; if (ATL_HW_IS_CHIP_FEATURE(self, REVI...
0
248,762
static struct Cookie *dup_cookie(struct Cookie *src) { struct Cookie *d = calloc(sizeof(struct Cookie), 1); if(d) { CLONE(expirestr); CLONE(domain); CLONE(path); CLONE(spath); CLONE(name); CLONE(value); CLONE(maxage); CLONE(version); d->expires = src->expires; d->tailmatch = ...
0
359,258
DEFUN (bgp_bestpath_med2, bgp_bestpath_med2_cmd, "bgp bestpath med confed missing-as-worst", "BGP specific commands\n" "Change the default bestpath selection\n" "MED attribute\n" "Compare MED among confederation paths\n" "Treat missing MED as the least preferred one\n") ...
0
308,203
static int fastrpc_init(void) { int ret; ret = platform_driver_register(&fastrpc_cb_driver); if (ret < 0) { pr_err("fastrpc: failed to register cb driver\n"); return ret; } ret = register_rpmsg_driver(&fastrpc_driver); if (ret < 0) { pr_err("fastrpc: failed to register rpmsg driver\n"); platform_driver_...
0
390,602
XkbSendIndicatorMap( ClientPtr client, XkbIndicatorPtr indicators, xkbGetIndicatorMapReply * rep) { int length; CARD8 * map; register int i; register unsigned bit; length = rep->length*4; if (length>0) { CARD8 *to; to= map= (CARD8 *)xalloc(length); if (map) { xkbIndicatorMapWireDesc *w...
0
466,155
static int em_popa(struct x86_emulate_ctxt *ctxt) { int rc = X86EMUL_CONTINUE; int reg = VCPU_REGS_RDI; while (reg >= VCPU_REGS_RAX) { if (reg == VCPU_REGS_RSP) { register_address_increment(ctxt, &ctxt->regs[VCPU_REGS_RSP], ctxt->op_bytes); --reg; } rc = emulate_pop(ctxt, &ctxt->regs[reg], ctxt-...
0
242,625
bool WouldExceedMemoryLimit(std::size_t bytes) const { return bytes + current_bytes_ > memory_limit_; }
0
512,665
void Item_equal::update_used_tables() { not_null_tables_cache= used_tables_cache= 0; if ((const_item_cache= cond_false || cond_true)) return; Item_equal_fields_iterator it(*this); Item *item; const_item_cache= 1; while ((item= it++)) { item->update_used_tables(); used_tables_cache|= item->used...
0
400,113
vector<PortForwardSourceRequest> parseRangesToRequests(const string& input) { vector<PortForwardSourceRequest> pfsrs; auto j = split(input, ','); for (auto& pair : j) { vector<string> sourceDestination = split(pair, ':'); try { if (sourceDestination[0].find_first_not_of("0123456789-") != ...
0
275,506
njs_vm_prop_magic32(njs_object_prop_t *prop) { return prop->value.data.magic32; }
0
352,970
issuerAndThisUpdateValidate( Syntax *syntax, struct berval *in ) { int rc; struct berval i, tu; Debug( LDAP_DEBUG_TRACE, ">>> issuerAndThisUpdateValidate: <%s>\n", in->bv_val ); rc = issuerAndThisUpdateCheck( in, &i, &tu, NULL ); if ( rc ) { goto done; } /* validate DN -- doesn't handle double dquote */...
0
274,849
TEST(ComparisonsTest, GreaterEqualQuantized) { const float kMin = -1.f; const float kMax = 128.f; ComparisonOpModel model({TensorType_UINT8, {1, 2, 2, 1}, kMin, kMax}, {TensorType_UINT8, {1, 2, 2, 1}, kMin, kMax}, TensorType_UINT8, BuiltinOperator_GREATER_EQUAL)...
0
484,755
static void rx_refill_timeout(struct timer_list *t) { struct netfront_queue *queue = from_timer(queue, t, rx_refill_timer); napi_schedule(&queue->napi); }
0
333,077
st_error(int *postfix UNUSED, int *end UNUSED, int *p UNUSED) { #ifdef NFA_REGEXP_ERROR_LOG FILE *df; int *p2; df = fopen(NFA_REGEXP_ERROR_LOG, "a"); if (df) { fprintf(df, "Error popping the stack!\n"); # ifdef DEBUG fprintf(df, "Current regexp is \"%s\"\n", nfa_regengine.expr); # endif fprintf(...
0
450,423
static void framebuffer_update_request(VncState *vs, int incremental, int x, int y, int w, int h) { if (incremental) { if (vs->update != VNC_STATE_UPDATE_FORCE) { vs->update = VNC_STATE_UPDATE_INCREMENTAL; } } else { vs->update = VNC_STA...
0
238,543
static int check_sock_access(struct bpf_verifier_env *env, int insn_idx, u32 regno, int off, int size, enum bpf_access_type t) { struct bpf_reg_state *regs = cur_regs(env); struct bpf_reg_state *reg = &regs[regno]; struct bpf_insn_access_aux info = {}; bool valid; if (reg->smin_value < 0) { verb...
0
234,799
static int btrfs_free_dev_extent(struct btrfs_trans_handle *trans, struct btrfs_device *device, u64 start, u64 *dev_extent_len) { struct btrfs_fs_info *fs_info = device->fs_info; struct btrfs_root *root = fs_info->dev_root; int ret; struct btrfs_path *path; struct btrfs_key key; struct btrfs_key found_k...
0
221,074
OpTypeConstructor UnaryTensorContainer(FullTypeId t, FullTypeId dtype) { return [t, dtype](OpDef* op_def) { FullTypeDef* tdef = op_def->mutable_output_arg(0)->mutable_experimental_full_type(); tdef->set_type_id(t); FullTypeDef* arg = tdef->add_args(); arg->set_type_id(TFT_TENSOR); FullTyp...
0
508,350
uint get_table_def_key(const TABLE_LIST *table_list, const char **key) { /* This call relies on the fact that TABLE_LIST::mdl_request::key object is properly initialized, so table definition cache can be produced from key used by MDL subsystem. */ DBUG_ASSERT(!strcmp(table_list->get_db_name(), ...
0
218,996
void ConstantFolding::ReplaceOperationWithNoOp(NodeDef* node, GraphProperties* properties, GraphDef* graph) { if (HasRegularOutputs(*node, *node_map_)) return; node->set_op("NoOp"); EraseRegularNodeAttributes(node); Er...
0
247,638
TEST_P(SslSocketTest, TicketSessionResumption) { const std::string server_ctx_yaml = R"EOF( common_tls_context: tls_certificates: certificate_chain: filename: "{{ test_rundir }}/test/extensions/transport_sockets/tls/test_data/unittest_cert.pem" private_key: filename: "{{ test_rundir ...
0
512,546
void in_string::set(uint pos,Item *item) { String *str=((String*) base)+pos; String *res=item->val_str(str); if (res && res != str) { if (res->uses_buffer_owned_by(str)) res->copy(); if (item->type() == Item::FUNC_ITEM) str->copy(*res); else *str= *res; } if (!str->charset()) ...
0
512,563
const Type_handler *real_type_handler() const { return (*ref)->real_type_handler(); }
0
338,137
void WasmBinaryBuilder::visitNop(Nop* curr) { BYN_TRACE("zz node: Nop\n"); }
0
488,413
void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, unsigned long address) { pte_t *ptep, pte; spinlock_t *ptl; swp_entry_t entry; struct page *page; ptep = pte_offset_map_lock(mm, pmd, address, &ptl); pte = *ptep; if (!is_swap_pte(pte)) goto out; entry = pte_to_swp_entry(pte); if (!is_migratio...
0
224,462
static GF_Err swf_svg_add_iso_sample(void *user, const u8 *data, u32 length, u64 timestamp, Bool isRap) { GF_FilterPacket *pck; u8 *pck_data; GF_TXTIn *ctx = (GF_TXTIn *)user; if (ctx->seek_state==2) { Double ts = (Double) timestamp; ts/=1000; if (ts<ctx->start_range) return GF_OK; ctx->seek_state = 0; } ...
0
232,939
new_unencoding_writer(struct Curl_easy *data, const struct content_encoding *handler, struct contenc_writer *downstream) { size_t sz = offsetof(struct contenc_writer, params) + handler->paramsize; struct contenc_writer *writer = (struct contenc_writer *)calloc(1, sz); ...
0
439,174
static MagickBooleanType WriteAVSImage(const ImageInfo *image_info,Image *image) { MagickBooleanType status; MagickOffsetType scene; MemoryInfo *pixel_info; register const PixelPacket *magick_restrict p; register ssize_t x; register unsigned char *magick_restrict q; size_t ...
0
384,828
rem_backslash(char_u *str) { #ifdef BACKSLASH_IN_FILENAME return (str[0] == '\\' && str[1] < 0x80 && (str[1] == ' ' || (str[1] != NUL && str[1] != '*' && str[1] != '?' && !vim_isfilec(str[1])))); #else return (str[0] == '\\' && str[1] != NUL); #endif }
0
310,026
_nc_retrace_void_ptr(void *code) { T((T_RETURN("%p"), code)); return code; }
0
273,398
explicit LSTMBlockCellOp(OpKernelConstruction* ctx) : OpKernel(ctx) { OP_REQUIRES_OK(ctx, ctx->GetAttr("forget_bias", &forget_bias_)); OP_REQUIRES_OK(ctx, ctx->GetAttr("cell_clip", &cell_clip_)); OP_REQUIRES_OK(ctx, ctx->GetAttr("use_peephole", &use_peephole_)); }
0
226,178
GF_Err moov_box_read(GF_Box *s, GF_BitStream *bs) { return gf_isom_box_array_read(s, bs); }
0
312,440
qf_win_pos_update( qf_info_T *qi, int old_qf_index) // previous qf_index or zero { win_T *win; int qf_index = qf_get_curlist(qi)->qf_index; // Put the cursor on the current error in the quickfix window, so that // it's viewable. win = qf_find_win(qi); if (win != NULL && qf_index ...
0
462,278
static pj_status_t decode_errcode_attr(pj_pool_t *pool, const pj_uint8_t *buf, const pj_stun_msg_hdr *msghdr, void **p_attr) { pj_stun_errcode_attr *attr; pj_str_t value; PJ_UNUSED_ARG(msghdr); /* Create the attribute */ attr = PJ_POOL_ZALLOC_T(pool, pj_stun_errc...
0
90,223
virtual const WifiNetworkVector& remembered_wifi_networks() const { return wifi_networks_; }
0
307,840
ciInstance* ciEnv::unloaded_ciinstance() { GUARDED_VM_ENTRY(return _factory->get_unloaded_object_constant();) }
0
230,394
static pj_xml_node *xml_parse_node( pj_pool_t *pool, pj_scanner *scanner) { pj_xml_node *node; pj_str_t end_name; PJ_CHECK_STACK(); if (*scanner->curptr != '<') on_syntax_error(scanner); /* Handle Processing Instructino (PI) construct (i.e. "<?") */ if (*scanner->curptr == '<' && *(scanner->...
0
218,997
static Status PutValueIntoTensor(const int64_t value, const DataType& type, const int index, Tensor* tensor) { if (type == DT_INT32) { if (value >= INT_MAX) { return Status(error::INVALID_ARGUMENT, "int32 overflow"); } tensor->flat<int32>()(index) = static_cast<int32...
0
384,848
lbr_chartabsize( char_u *line UNUSED, // start of the line unsigned char *s, colnr_T col) { #ifdef FEAT_LINEBREAK if (!curwin->w_p_lbr && *get_showbreak_value(curwin) == NUL && !curwin->w_p_bri) { #endif if (curwin->w_p_wrap) return win_nolbr_chartabsize(curwin, s, col, NULL); RET...
0
238,474
static int __check_ptr_off_reg(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int regno, bool fixed_off_ok) { /* Access to this pointer-typed register or passing it to a helper * is only allowed in its original, unmodified form. */ if (!fixed_off_ok && reg->off) { verbose(en...
0
261,954
njs_string_prototype_to_utf8(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { njs_int_t ret; njs_slice_prop_t slice; njs_string_prop_t string; ret = njs_string_object_validate(vm, njs_argument(args, 0)); if (njs_slow_path(ret != NJS_OK)) { return ret;...
0
310,276
dirserv_generate_networkstatus_vote_obj(crypto_pk_env_t *private_key, authority_cert_t *cert) { or_options_t *options = get_options(); networkstatus_t *v3_out = NULL; uint32_t addr; char *hostname = NULL, *client_versions = NULL, *server_versions = NULL; const char *con...
0
300,766
static int tipc_connect(struct socket *sock, struct sockaddr *dest, int destlen, int flags) { struct sock *sk = sock->sk; struct tipc_sock *tsk = tipc_sk(sk); struct sockaddr_tipc *dst = (struct sockaddr_tipc *)dest; struct msghdr m = {NULL,}; long timeout = (flags & O_NONBLOCK) ? 0 : tsk->conn_timeout; int pr...
0
220,432
mrb_ary_concat_m(mrb_state *mrb, mrb_value self) { mrb_value ary; mrb_get_args(mrb, "A", &ary); mrb_ary_concat(mrb, self, ary); return self; }
0
317,328
static int selinux_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen) { struct sock *sk = sock->sk; struct sk_security_struct *sksec = sk->sk_security; u16 family; int err; err = sock_has_perm(sk, SOCKET__BIND); if (err) goto out; /* If PF_INET or PF_INET6, check name_bind permission for...
0
448,538
int bgp_nlri_parse(struct peer *peer, struct attr *attr, struct bgp_nlri *packet, int mp_withdraw) { switch (packet->safi) { case SAFI_UNICAST: case SAFI_MULTICAST: return bgp_nlri_parse_ip(peer, mp_withdraw ? NULL : attr, packet); case SAFI_LABELED_UNICAST: return bgp_nlri_parse_label(peer, mp_withd...
0
276,897
static int do_i2c_probe(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { int j; int addr = -1; int found = 0; #if defined(CONFIG_SYS_I2C_NOPROBES) int k, skip; unsigned int bus = GET_BUS_NUM; #endif /* NOPROBES */ int ret; #if CONFIG_IS_ENABLED(DM_I2C) struct udevice *bus, *dev; if (i2c_get_...
0
516,237
static bool virtio_net_can_receive(NetClientState *nc) { VirtIONet *n = qemu_get_nic_opaque(nc); VirtIODevice *vdev = VIRTIO_DEVICE(n); VirtIONetQueue *q = virtio_net_get_subqueue(nc); if (!vdev->vm_running) { return false; } if (nc->queue_index >= n->curr_queues) { return fals...
0
430,380
static struct nlattr *reserve_sfa_size(struct sw_flow_actions **sfa, int attr_len, bool log) { struct sw_flow_actions *acts; int new_acts_size; size_t req_size = NLA_ALIGN(attr_len); int next_offset = offsetof(struct sw_flow_actions, actions) + (*sfa)->actions_len; if (req_size <= (ksize(*sfa) - ...
0
307,870
ciInstanceKlass* ciEnv::get_instance_klass_for_declared_method_holder(ciKlass* method_holder) { // For the case of <array>.clone(), the method holder can be a ciArrayKlass // instead of a ciInstanceKlass. For that case simply pretend that the // declared holder is Object.clone since that's where the call will bo...
0
221,517
flatpak_run_parse_pulse_server (const char *value) { g_auto(GStrv) servers = g_strsplit (value, " ", 0); gsize i; for (i = 0; servers[i] != NULL; i++) { const char *server = servers[i]; if (g_str_has_prefix (server, "{")) { const char * closing = strstr (server, "}"); ...
0
383,306
gdAlphaOverlayColor( int src, int dst, int max ) { /* this function implements the algorithm * * for dst[rgb] < 0.5, * c[rgb] = 2.src[rgb].dst[rgb] * and for dst[rgb] > 0.5, * c[rgb] = -2.src[rgb].dst[rgb] + 2.dst[rgb] + 2.src[rgb] - 1 * */ dst = dst << 1; if( dst > max ) { /* in the "light"...
0
359,527
DEFUN (no_neighbor_shutdown, no_neighbor_shutdown_cmd, NO_NEIGHBOR_CMD2 "shutdown", NO_STR NEIGHBOR_STR NEIGHBOR_ADDR_STR2 "Administratively shut down this neighbor\n") { return peer_flag_unset_vty (vty, argv[0], PEER_FLAG_SHUTDOWN); }
0
312,527
copy_nonerror_line(char_u *linebuf, int linelen, qffields_T *fields) { char_u *p; if (linelen >= fields->errmsglen) { // linelen + null terminator if ((p = vim_realloc(fields->errmsg, linelen + 1)) == NULL) return QF_NOMEM; fields->errmsg = p; fields->errmsglen = linelen + 1; } // copy who...
0
224,582
Status ValidateSparseTensor(InferenceContext* c, ShapeHandle indices_shape, ShapeHandle values_shape, ShapeHandle shape_shape) { // Validate ranks. ShapeHandle unused_shape; TF_RETURN_IF_ERROR(c->WithRank(indices_shape, 2, &unused_shape)); TF_RETURN_IF_ERROR(c->WithRank(values_shape,...
0
252,345
static unsigned int readUInt(const char buf[4]) { const unsigned char *b = (const unsigned char *)buf; return (b[0] & 0x000000ff) | ((b[1] << 8) & 0x0000ff00) | ((b[2] << 16) & 0x00ff0000) | ((b[3] << 24) & 0xff000000); }
0
90,865
QuotaManagerTest() : callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), mock_time_counter_(0) { }
0
252,300
static void hufBuildEncTable( long long *frq, // io: input frequencies [HUF_ENCSIZE], output table int *im, // o: min frq index int *iM) // o: max frq index { // // This function assumes that when it is called, array frq // indicates the frequency of all possible symbols in the data...
0
309,969
_nc_mouse_init(SCREEN *sp) /* initialize the mouse */ { bool result = FALSE; if (sp != 0) { if (!sp->_mouse_initialized) { int i; sp->_mouse_initialized = TRUE; TR(MY_TRACE, ("_nc_mouse_init() called")); sp->_mouse_eventp = FirstEV(sp); for (i = 0; i < EV_MAX; i++) Invalidate(sp-...
0
430,341
ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) { struct iovec iov = { .iov_base = buf, .iov_len = size}; struct kiocb kiocb; struct iov_iter iter; ssize_t ret; init_sync_kiocb(&kiocb, file); iov_iter_init(&iter, READ, &iov, 1, size); kiocb.ki_pos = *ppos; ret = seq_read_iter(...
0
487,615
void kernel_halt(void) { kernel_shutdown_prepare(SYSTEM_HALT); printk(KERN_EMERG "System halted.\n"); machine_halt(); }
0
225,400
static int vidioc_enum_fmt_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f) { struct v4l2_loopback_device *dev; MARK(); dev = v4l2loopback_getdevice(file); if (f->index) return -EINVAL; if (dev->ready_for_capture) { const __u32 format = dev->pix_format.pixelformat; snprintf(f->descriptio...
0
234,188
display_debug_str_offsets (struct dwarf_section *section, void *file ATTRIBUTE_UNUSED) { unsigned long idx; if (section->size == 0) { printf (_("\nThe %s section is empty.\n"), section->name); return 0; } unsigned char *start = section->start; unsigned char *end = start + section->si...
0
389,733
check_for_string_or_dict_arg(typval_T *args, int idx) { if (args[idx].v_type != VAR_STRING && args[idx].v_type != VAR_DICT) { semsg(_(e_string_or_dict_required_for_argument_nr), idx + 1); return FAIL; } return OK; }
0
226,113
GF_Err sbgp_box_size(GF_Box *s) { GF_SampleGroupBox *p = (GF_SampleGroupBox*)s; p->size += 8; if (p->grouping_type_parameter) p->version=1; if (p->version==1) p->size += 4; p->size += 8*p->entry_count; return GF_OK;
0
372,349
void sdb_show_bp() { for(int i=0; i<7;i++) if (sdb_lines[i]!= -1) Print("Breakpoint %d: %s::%d\n",i+1,sdb_files[i],sdb_lines[i]); }
0
512,440
double Item_func_case::real_op() { DBUG_ASSERT(fixed == 1); Item *item= find_item(); double res; if (!item) { null_value=1; return 0; } res= item->val_real(); null_value=item->null_value; return res; }
0
512,720
void Item_func_if::fix_after_pullout(st_select_lex *new_parent, Item **ref, bool merge) { /* This will re-calculate attributes of the arguments */ Item_func::fix_after_pullout(new_parent, ref, merge); /* Then, re-calculate not_null_tables_cache according to our special rules *...
0
243,001
static void ssl_build_record_nonce( unsigned char *dst_iv, size_t dst_iv_len, unsigned char const *fixed_iv, size_t fixed_iv_len, unsigned char const *dynamic_iv, ...
0
522,322
static void RecWrd(GmfMshSct *msh, const void *wrd) { // [Bruno] added error control #ifdef WITH_GMF_AIO if(write(msh->FilDes, wrd, WrdSiz) != WrdSiz) #else if(fwrite(wrd, WrdSiz, 1, msh->hdl) != 1) #endif longjmp(msh->err,-28); }
0
379,667
static RAnalVar *get_stack_var(RAnalFunction *fcn, int delta) { void **it; r_pvector_foreach (&fcn->vars, it) { RAnalVar *var = *it; bool is_stack = var->kind == R_ANAL_VAR_KIND_SPV || var->kind == R_ANAL_VAR_KIND_BPV; if (is_stack && var->delta == delta) { return var; } } return NULL; }
0
401,483
int wait_for_random_bytes(void) { if (likely(crng_ready())) return 0; do { int ret; ret = wait_event_interruptible_timeout(crng_init_wait, crng_ready(), HZ); if (ret) return ret > 0 ? 0 : ret; try_to_generate_entropy(); } while (!crng_ready()); return 0; }
0
437,699
static int cx23888_ir_tx_shutdown(struct v4l2_subdev *sd) { struct cx23888_ir_state *state = to_state(sd); struct cx23885_dev *dev = state->dev; mutex_lock(&state->tx_params_lock); /* Disable or slow down all IR Tx circuits and counters */ irqenable_tx(dev, 0); control_tx_enable(dev, false); control_tx_modulat...
0
223,402
static SLJIT_INLINE BOOL assert_needs_str_ptr_saving(PCRE2_SPTR cc) { while (TRUE) { switch (*cc) { case OP_CALLOUT_STR: cc += GET(cc, 1 + 2*LINK_SIZE); break; case OP_NOT_WORD_BOUNDARY: case OP_WORD_BOUNDARY: case OP_CIRC: case OP_CIRCM: case OP_DOLL: case OP_DOLLM: cas...
0
512,288
Item_func_if::eval_not_null_tables(void *opt_arg) { if (Item_func::eval_not_null_tables(NULL)) return 1; not_null_tables_cache= (args[1]->not_null_tables() & args[2]->not_null_tables()); return 0; }
0
468,329
on_connected_cancelled (GObject *source_object, GAsyncResult *result, gpointer user_data) { GSocketConnection *conn; GError *error = NULL; conn = g_socket_client_connect_to_uri_finish (G_SOCKET_CLIENT (source_object), result, &error); g_assert_error (er...
0
387,720
Symbol* InstanceKlass::package_from_name(const Symbol* name, TRAPS) { if (name == NULL) { return NULL; } else { if (name->utf8_length() <= 0) { return NULL; } ResourceMark rm; const char* package_name = ClassLoader::package_from_name((const char*) name->as_C_string()); if (package_name...
0
256,986
static void route4_queue_work(struct route4_filter *f) { tcf_queue_work(&f->rwork, route4_delete_filter_work); }
0
432,734
static void ipa_region_clip(wmfAPI *API, wmfPolyRectangle_t *poly_rect) { long i; wmf_magick_t *ddata = WMF_MAGICK_GetData (API); /* Reset any existing clip paths by popping wand */ if (ddata->clipping) (void) PopDrawingWand(WmfDrawingWand); ddata->clipping = MagickFalse; if (poly_rect->count...
0
412,101
respip_addr_lookup(const struct reply_info *rep, struct rbtree_type* iptree, size_t* rrset_id) { size_t i; struct resp_addr* ra; struct sockaddr_storage ss; socklen_t addrlen; for(i=0; i<rep->an_numrrsets; i++) { size_t j; const struct packed_rrset_data* rd; uint16_t rtype = ntohs(rep->rrsets[i]->rk.type);...
0