idx
int64
func
string
target
int64
413,826
void CallInfo::set_handle(Klass* resolved_klass, const methodHandle& resolved_method, Handle resolved_appendix, TRAPS) { guarantee(resolved_method.not_null(), "resolved method is null"); assert(resolved_method->intrinsic_id() == vmIntrinsics::_invokeBasic || ...
0
447,040
long CurlIo::write(const byte* data, long wcount) { if (p_->protocol_ == pHttp || p_->protocol_ == pHttps) { return RemoteIo::write(data, wcount); } else { throw Error(1, "doesnt support write for this protocol."); } }
0
253,565
int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon, const char *path, struct cifs_sb_info *cifs_sb, struct cached_fid **cfid) { struct cifs_ses *ses = tcon->ses; struct TCP_Server_Info *server = ses->server; struct cifs_open_parms oparms; struct smb2_create_rsp *o_rsp = NULL; struct smb2_query_info...
0
101,682
void WebProcessProxy::getLaunchOptions(ProcessLauncher::LaunchOptions& launchOptions) { launchOptions.processType = ProcessLauncher::WebProcess; platformGetLaunchOptions(launchOptions); }
0
215,188
void mobi_buffer_move(MOBIBuffer *buf, const int offset, const size_t len) { size_t aoffset = (size_t) abs(offset); unsigned char *source = buf->data + buf->offset; if (offset >= 0) { if (buf->offset + aoffset + len > buf->maxlen) { debug_print("%s", "End of buffer\n"); buf->...
1
198,003
void Compute(OpKernelContext* ctx) override { auto x = ctx->input(0); auto i = ctx->input(1); auto v = ctx->input(2); OP_REQUIRES(ctx, TensorShapeUtils::IsVector(i.shape()), errors::InvalidArgument("i must be a vector. ", i.shape().DebugString()...
1
446,100
atusb_set_txpower(struct ieee802154_hw *hw, s32 mbm) { struct atusb *atusb = hw->priv; u32 i; for (i = 0; i < hw->phy->supported.tx_powers_size; i++) { if (hw->phy->supported.tx_powers[i] == mbm) return atusb_write_subreg(atusb, SR_TX_PWR_23X, i); } return -EINVAL; }
0
337,845
static int sctp_process_param(struct sctp_association *asoc, union sctp_params param, const union sctp_addr *peer_addr, gfp_t gfp) { struct sctp_endpoint *ep = asoc->ep; union sctp_addr_param *addr_param; struct net *net = asoc->base.net; struct sctp_transport *t; enum sctp_scope scope; ...
0
294,498
m_hour(union DateData *x) { if (simple_dat_p(x)) return 0; else { get_c_time(x); #ifndef USE_PACK return x->c.hour; #else return EX_HOUR(x->c.pc); #endif } }
0
246,744
u32 parse_mpegu(char *arg_val, u32 opt) { pack_file = arg_val; pack_wgt = GF_TRUE; return 0; }
0
259,531
CURLUcode curl_url_set(CURLU *u, CURLUPart what, const char *part, unsigned int flags) { char **storep = NULL; long port = 0; bool urlencode = (flags & CURLU_URLENCODE)? 1 : 0; bool plusencode = FALSE; bool urlskipslash = FALSE; bool appendquery = FALSE; bool equalsencode = FALSE; ...
0
267,965
R_API bool r_bin_file_deref(RBin *bin, RBinFile *a) { r_return_val_if_fail (bin && a, false); if (!r_bin_cur_object (bin)) { return false; } bin->cur = NULL; return true; }
0
369,260
static void io_free_file_tables(struct io_file_table *table) { kvfree(table->files); table->files = NULL;
0
234,173
print_addr_index (unsigned int idx, unsigned int len) { static char buf[15]; snprintf (buf, sizeof (buf), "[%d]", idx); printf ("%*s ", len, buf); }
0
385,832
int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs, struct file *filp) { int ret; struct iattr newattrs; /* Not pretty: "inode->i_size" shouldn't really be signed. But it is. */ if (length < 0) return -EINVAL; newattrs.ia_size = length; newattrs.ia_valid = ATTR_SIZE | time_attrs; ...
0
345,137
pxa3xx_gcu_wait_free(struct pxa3xx_gcu_priv *priv) { int ret = 0; QDUMP("Waiting for free..."); /* Does not need to be atomic. There's a lock in user space, * but anyhow, this is just for statistics. */ priv->shared->num_wait_free++; while (!priv->free) { u32 rbexhr = gc_readl(priv, REG_GCRBEXHR); ret = ...
0
486,795
static inline unsigned tx_desc_get_wrap(uint32_t *desc) { return (desc[1] & DESC_1_TX_WRAP) ? 1 : 0; }
0
512,541
bool val_native(THD *thd, Native *to) { return m_value.to_native(to, decimals); }
0
310,285
dirserv_free_all(void) { dirserv_free_fingerprint_list(); cached_dir_decref(the_directory); clear_cached_dir(&the_runningrouters); cached_dir_decref(the_v2_networkstatus); cached_dir_decref(cached_directory); clear_cached_dir(&cached_runningrouters); digestmap_free(cached_v2_networkstatus, _free_cached_...
0
225,074
emitHostIdentityInfo(PGconn *conn, const char *host_addr) { #ifdef HAVE_UNIX_SOCKETS if (IS_AF_UNIX(conn->raddr.addr.ss_family)) { char service[NI_MAXHOST]; pg_getnameinfo_all(&conn->raddr.addr, conn->raddr.salen, NULL, 0, service, sizeof(service), NI_NUMERICSERV); appendPQExpBuffer...
0
244,262
GF_Err lsrc_box_size(GF_Box *s) { GF_LASERConfigurationBox *ptr = (GF_LASERConfigurationBox *)s; ptr->size += ptr->hdr_size; return GF_OK; }
0
253,728
int ccp_run_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) { int ret; cmd->engine_error = 0; cmd_q->cmd_error = 0; cmd_q->int_rcvd = 0; cmd_q->free_slots = cmd_q->ccp->vdata->perform->get_free_slots(cmd_q); switch (cmd->engine) { case CCP_ENGINE_AES: switch (cmd->u.aes.mode) { case CCP_AES_MODE_CMAC...
0
242,575
handle_image (void *data, unsigned int datasize, EFI_LOADED_IMAGE *li, EFI_IMAGE_ENTRY_POINT *entry_point, EFI_PHYSICAL_ADDRESS *alloc_address, UINTN *alloc_pages) { EFI_STATUS efi_status; char *buffer; int i; EFI_IMAGE_SECTION_HEADER *Section; char *base, *end; UINT32 size; PE_COFF_L...
0
346,415
get_one_sourceline(source_cookie_T *sp) { garray_T ga; int len; int c; char_u *buf; #ifdef USE_CRNL int has_cr; // CR-LF found #endif int have_read = FALSE; // use a growarray to store the sourced line ga_init2(&ga, 1, 250); // Loop until there is a finished line (or end...
0
256,145
ALWAYS_INLINE void LoadTwoScalars(const float** data, Packet* l1, Packet* l2) { LoadSingleScalar(data, l1); LoadSingleScalar(data, l2); }
0
265,436
static int sqfs_split_path(char **file, char **dir, const char *path) { char *dirc, *basec, *bname, *dname, *tmp_path; int ret = 0; *file = NULL; *dir = NULL; dirc = NULL; basec = NULL; bname = NULL; dname = NULL; tmp_path = NULL; /* check for first slash in path*/ if (path[0] == '/') { tmp_path = strdup...
0
197,632
njs_promise_perform_then(njs_vm_t *vm, njs_value_t *value, njs_value_t *fulfilled, njs_value_t *rejected, njs_promise_capability_t *capability) { njs_int_t ret; njs_value_t arguments[2]; njs_promise_t *promise; njs_function_t *function; njs_promis...
1
236,197
GF_Box *diST_box_new() { ISOM_DECL_BOX_ALLOC(GF_DIMSScriptTypesBox, GF_ISOM_BOX_TYPE_DIST); return (GF_Box *)tmp; }
0
301,504
score_combine(suginfo_T *su) { int i; int j; garray_T ga; garray_T *gap; langp_T *lp; suggest_T *stp; char_u *p; char_u badsound[MAXWLEN]; int round; int lpi; slang_T *slang = NULL; // Add the alternate score to su_ga. for (lpi = 0; lpi < curwin->w_s->b_langp.ga_...
0
259,166
static int mov_read_moof(MOVContext *c, AVIOContext *pb, MOVAtom atom) { // Set by mov_read_tfhd(). mov_read_trun() will reject files missing tfhd. c->fragment.found_tfhd = 0; if (!c->has_looked_for_mfra && c->use_mfra_for > 0) { c->has_looked_for_mfra = 1; if (pb->seekable & AVIO_SEEKABLE_...
0
219,001
bool ConstantFolding::IsZeros(const NodeDef& node) const { if (feed_nodes_.find(node.name()) != feed_nodes_.end()) { return false; } if (IsOnesLike(node)) return false; if (IsZerosLike(node)) return true; if (node.op() == "Fill") { NodeDef* values = node_map_->GetNode(NodeName(node.input(1))); ret...
0
222,670
void set_session_token(struct tmate_session *session, const char *token) { session->session_token = xstrdup(token); socket_path = get_socket_path(token); xasprintf((char **)&session->obfuscated_session_token, "%.4s...", session->session_token); size_t size = cmdline_end - cmdline; memset(cmdline, 0, size); ...
0
386,480
void DL_Dxf::addDimRadial(DL_CreationInterface* creationInterface) { DL_DimensionData d = getDimData(); DL_DimRadialData dr( // definition point getRealValue(15, 0.0), getRealValue(25, 0.0), getRealValue(35, 0.0), // leader length: getRealValue(40, 0.0)); cre...
0
512,657
Field::geometry_type get_geometry_type() const { return Type_geometry_attributes::get_geometry_type(); }
0
294,626
Init_date_core(void) { #ifdef HAVE_RB_EXT_RACTOR_SAFE RB_EXT_RACTOR_SAFE(true); #endif id_cmp = rb_intern_const("<=>"); id_le_p = rb_intern_const("<="); id_ge_p = rb_intern_const(">="); id_eqeq_p = rb_intern_const("=="); half_days_in_day = rb_rational_new2(INT2FIX(1), INT2FIX(2)); #if (LO...
0
294,524
date_s_jisx0301(int argc, VALUE *argv, VALUE klass) { VALUE str, sg, opt; rb_scan_args(argc, argv, "02:", &str, &sg, &opt); if (!NIL_P(opt)) argc--; switch (argc) { case 0: str = rb_str_new2("-4712-01-01"); case 1: sg = INT2FIX(DEFAULT_SG); } { int argc2 = 1; VAL...
0
424,940
iwl_pcie_set_interrupt_capa(struct pci_dev *pdev, struct iwl_trans *trans, const struct iwl_cfg_trans_params *cfg_trans) { struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); int max_irqs, num_irqs, i, ret; u16 pci_cmd; if (!cfg_trans->mq_rx_supported) goto enable_msi; max_irqs =...
0
215,976
extract_group_icon_cursor_resource(WinLibrary *fi, WinResource *wr, char *lang, int *ressize, bool is_icon) { Win32CursorIconDir *icondir; Win32CursorIconFileDir *fileicondir; char *memory; int c, size, offset, skipped; /* get resource data and size */ icondir = (Win32CursorIco...
1
508,844
bool st_select_lex_node::inc_in_sum_expr() { return 1; }
0
509,481
static void init_aria_psi_keys(void) { const char* category= "aria"; int count; count= array_elements(all_aria_mutexes); mysql_mutex_register(category, all_aria_mutexes, count); count= array_elements(all_aria_rwlocks); mysql_rwlock_register(category, all_aria_rwlocks, count); count= array_elements(all_...
0
512,881
longlong Item_func_truth::val_int() { return (val_bool() ? 1 : 0); }
0
514,309
int multi_update::prepare(List<Item> &not_used_values, SELECT_LEX_UNIT *lex_unit) { TABLE_LIST *table_ref; SQL_I_List<TABLE_LIST> update; table_map tables_to_update; Item_field *item; List_iterator_fast<Item> field_it(*fields); List_iterator_fast<Item> value_it(*values); uint i, max_fields; uint l...
0
227,022
IRC_PROTOCOL_CALLBACK(352) { char *pos_attr, *pos_hopcount, *pos_realname, *str_host; int arg_start, length; struct t_irc_channel *ptr_channel; struct t_irc_nick *ptr_nick; IRC_PROTOCOL_MIN_ARGS(5); /* silently ignore malformed 352 message (missing infos) */ if (argc < 8) return WE...
0
294,591
datetime_s_ordinal(int argc, VALUE *argv, VALUE klass) { VALUE vy, vd, vh, vmin, vs, vof, vsg, y, fr, fr2, ret; int d, h, min, s, rof; double sg; rb_scan_args(argc, argv, "07", &vy, &vd, &vh, &vmin, &vs, &vof, &vsg); y = INT2FIX(-4712); d = 1; h = min = s = 0; fr2 = INT2FIX(0); ro...
0
359,399
bgp_show_summary (struct vty *vty, struct bgp *bgp, int afi, int safi) { struct peer *peer; struct listnode *node, *nnode; unsigned int count = 0; char timebuf[BGP_UPTIME_LEN]; int len; /* Header string for each address family. */ static char header[] = "Neighbor V AS MsgRcvd MsgSent TblVer ...
0
219,902
GF_Err gf_isom_sdp_clean_track(GF_ISOFile *the_file, u32 trackNumber) { GF_TrackBox *trak; GF_UserDataMap *map; GF_HintTrackInfoBox *hnti; trak = gf_isom_get_track_from_file(the_file, trackNumber); if (!trak) return GF_BAD_PARAM; //currently, only RTP hinting supports SDP if (!CheckHintFormat(trak, GF_ISOM_HIN...
0
369,434
static int io_register_files_update(struct io_ring_ctx *ctx, void __user *arg, unsigned nr_args) { struct io_uring_rsrc_update2 up; if (!nr_args) return -EINVAL; memset(&up, 0, sizeof(up)); if (copy_from_user(&up, arg, sizeof(struct io_uring_rsrc_update))) return -EFAULT; if (up.resv || up.resv2) r...
0
206,417
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...
1
358,128
sonmp_suite(void) { Suite *s = suite_create("SONMP"); #ifdef ENABLE_SONMP TCase *tc_send = tcase_create("Send SONMP packets"); TCase *tc_receive = tcase_create("Receive SONMP packets"); tcase_add_checked_fixture(tc_send, pcap_setup, pcap_teardown); tcase_add_test(tc_send, test_send_sonmp); suite_add_tcase(s, tc...
0
247,747
TestUtilOptionsV2( const envoy::config::listener::v3::Listener& listener, const envoy::extensions::transport_sockets::tls::v3::UpstreamTlsContext& client_ctx_proto, bool expect_success, Network::Address::IpVersion version) : TestUtilOptionsBase(expect_success, version), listener_(listener), ...
0
244,102
GF_Err xtra_box_read(GF_Box *s, GF_BitStream *bs) { GF_XtraBox *ptr = (GF_XtraBox *)s; while (ptr->size) { GF_XtraTag *tag; u32 prop_type = 0; char *data=NULL, *data2=NULL; ISOM_DECREASE_SIZE_NO_ERR(ptr, 8) s32 tag_size = gf_bs_read_u32(bs); u32 name_size = gf_bs_read_u32(bs); if (tag_size < 8) return ...
0
405,361
void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev) { while ((dst = xfrm_dst_child(dst)) && dst->xfrm && dst->dev == dev) { dst->dev = blackhole_netdev; dev_hold(dst->dev); dev_put(dev); } }
0
344,255
l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op) { typeerror(L, o, op, varinfo(L, o)); }
0
514,294
static TABLE *item_rowid_table(Item *item) { if (item->type() != Item::FUNC_ITEM) return NULL; Item_func *func= (Item_func *)item; if (func->functype() != Item_func::TEMPTABLE_ROWID) return NULL; Item_temptable_rowid *itr= (Item_temptable_rowid *)func; return itr->table; }
0
336,521
void RedCharDeviceVDIPort::on_free_self_token() { RedsState *reds = get_server(); if (reds->inputs_channel && reds->pending_mouse_event) { spice_debug("pending mouse event"); reds_handle_agent_mouse_event(reds, reds->inputs_channel->get_mouse_state()); } if (reds->pending_device_displa...
0
365,623
_asn1_ltostr (long v, char str[LTOSTR_MAX_SIZE]) { long d, r; char temp[LTOSTR_MAX_SIZE]; int count, k, start; if (v < 0) { str[0] = '-'; start = 1; v = -v; } else start = 0; count = 0; do { d = v / 10; r = v - d * 10; temp[start + count] = '0' + (char...
0
199,712
static void rtrs_clt_dev_release(struct device *dev) { struct rtrs_clt_sess *clt = container_of(dev, struct rtrs_clt_sess, dev); kfree(clt); }
1
300,781
static void tipc_sk_finish_conn(struct tipc_sock *tsk, u32 peer_port, u32 peer_node) { struct sock *sk = &tsk->sk; struct net *net = sock_net(sk); struct tipc_msg *msg = &tsk->phdr; msg_set_syn(msg, 0); msg_set_destnode(msg, peer_node); msg_set_destport(msg, peer_port); msg_set_type(msg, TIPC_CONN_MSG); ms...
0
231,687
TEST_F(QuicServerTransportTest, RecvStopSendingFrameAfterCloseStream) { server->getNonConstConn().ackStates.appDataAckState.nextPacketNum = 3; std::array<std::string, 4> words = { "Hey Bob, this is Alice, for real.", "What message did I send you last time?", "You don't sound like Alice", "Yo...
0
224,995
sendTerminateConn(PGconn *conn) { /* * Note that the protocol doesn't allow us to send Terminate messages * during the startup phase. */ if (conn->sock != PGINVALID_SOCKET && conn->status == CONNECTION_OK) { /* * Try to send "close connection" message to backend. Ignore any * error. */ pqPutMsgSta...
0
312,565
get_nth_entry(qf_list_T *qfl, int errornr, int *new_qfidx) { qfline_T *qf_ptr = qfl->qf_ptr; int qf_idx = qfl->qf_index; // New error number is less than the current error number while (errornr < qf_idx && qf_idx > 1 && qf_ptr->qf_prev != NULL) { --qf_idx; qf_ptr = qf_ptr->qf_prev; } // ...
0
225,102
bool HasAttrStyleType(const OpDef::ArgDef& arg) { return arg.type() != DT_INVALID || !arg.type_attr().empty() || !arg.type_list_attr().empty(); }
0
206,123
RCoreSymCacheElement *r_coresym_cache_element_new(RBinFile *bf, RBuffer *buf, ut64 off, int bits, char * file_name) { RCoreSymCacheElement *result = NULL; ut8 *b = NULL; RCoreSymCacheElementHdr *hdr = r_coresym_cache_element_header_new (buf, off, bits); if (!hdr) { return NULL; } if (hdr->version != 1) { epri...
1
258,082
void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); // If input is provided, check to make sure the first dimension is valid. if (input.dims() > 0) { OP_REQUIRES( context, input.dim_size(0) != 0, errors::InvalidArgument("Invalid input first ...
0
369,384
static int io_eventfd_unregister(struct io_ring_ctx *ctx) { struct io_ev_fd *ev_fd; ev_fd = rcu_dereference_protected(ctx->io_ev_fd, lockdep_is_held(&ctx->uring_lock)); if (ev_fd) { ctx->has_evfd = false; rcu_assign_pointer(ctx->io_ev_fd, NULL); call_rcu(&ev_fd->rcu, io_eventfd_put); return 0; } re...
0
384,798
buf_init_chartab( buf_T *buf, int global) // FALSE: only set buf->b_chartab[] { int c; int c2; char_u *p; int i; int tilde; int do_isalpha; if (global) { /* * Set the default size for printable characters: * From <Space> to '~' is 1 (printable), others are 2 (not pri...
0
438,677
static struct rpmsg_endpoint *virtio_rpmsg_create_ept(struct rpmsg_device *rpdev, rpmsg_rx_cb_t cb, void *priv, struct rpmsg_channel_info chinfo) { struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); return __rpmsg_create_ept(vch->vrp, rpdev, cb, priv, chinfo.src); ...
0
389,696
eval_interp_string(char_u **arg, typval_T *rettv, int evaluate) { typval_T tv; int ret = OK; int quote; garray_T ga; char_u *p; ga_init2(&ga, 1, 80); // *arg is on the '$' character, move it to the first string character. ++*arg; quote = **arg; ++*arg; for (;;) { //...
0
513,015
bool val_native_from_field(Field *field, Native *to) { if ((null_value= field->is_null())) return true; return (null_value= field->val_native(to)); }
0
346,430
get_autoload_prefix(scriptitem_T *si) { char_u *p = script_name_after_autoload(si); char_u *prefix; if (p == NULL) return NULL; prefix = vim_strsave(p); if (prefix == NULL) return NULL; // replace all '/' with '#' and locate ".vim" at the end for (p = prefix; *p != NUL; p += mb_ptr2len(p...
0
411,792
setup_bus_child (gpointer data) { A11yBusLauncher *app = data; (void) app; close (app->pipefd[0]); dup2 (app->pipefd[1], 3); close (app->pipefd[1]); /* On Linux, tell the bus process to exit if this process goes away */ #ifdef __linux #include <sys/prctl.h> prctl (PR_SET_PDEATHSIG, 15); #endif }
0
267,358
append_cap (const char *arg) { exec_options.cap = realloc (exec_options.cap, (exec_options.cap_size + 2) * sizeof (*exec_options.cap)); if (exec_options.cap == NULL) error (EXIT_FAILURE, errno, "cannot allocate memory"); exec_options.cap[exec_options.cap_size + 1] = NULL; exec_options.cap[exec_options.cap_s...
0
387,640
static int read_tlv_buf(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id, unsigned int __user *buf, unsigned int size) { struct snd_kcontrol_volatile *vd = &kctl->vd[snd_ctl_get_ioff(kctl, id)]; unsigned int len; if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_TLV_READ)) return -ENXIO; if (kctl->tlv.p == NULL)...
0
254,745
njs_typed_array_alloc(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_bool_t zeroing, njs_object_type_t type) { double num; int64_t i, length; uint32_t element_size; uint64_t size, offset; njs_int_t ret; njs_value_t *val...
0
253,534
smb2_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb) { int rc; __le16 srch_path = 0; /* Null - open root of share */ u8 oplock = SMB2_OPLOCK_LEVEL_NONE; struct cifs_open_parms oparms; struct cifs_fid fid; oparms.tcon = tcon; oparms.desired_access = FILE_READ_ATTRIBU...
0
413,633
static int find_bb(ut64 *addr, RAnalBlock *bb) { return *addr != bb->addr; }
0
261,422
void thread_task_ctb_row::work() { thread_task_ctb_row* data = this; thread_context* tctx = data->tctx; de265_image* img = tctx->img; const seq_parameter_set& sps = img->get_sps(); int ctbW = sps.PicWidthInCtbsY; state = Running; img->thread_run(this); setCtbAddrFromTS(tctx); int ctby = tctx->CtbA...
0
466,182
static int load_state_from_tss16(struct x86_emulate_ctxt *ctxt, struct tss_segment_16 *tss) { int ret; ctxt->_eip = tss->ip; ctxt->eflags = tss->flag | 2; ctxt->regs[VCPU_REGS_RAX] = tss->ax; ctxt->regs[VCPU_REGS_RCX] = tss->cx; ctxt->regs[VCPU_REGS_RDX] = tss->dx; ctxt->regs[VCPU_REGS_RBX] = tss->bx; ctx...
0
210,204
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) - ...
1
246,736
u32 parse_ttxt(char *arg_val, u32 opt) { if (opt) //-srt dump_srt = GF_TRUE; else dump_ttxt = GF_TRUE; import_subtitle = 1; trackID = 0; if (arg_val && (!strcmp(arg_val, "*") || !strcmp(arg_val, "@") || !strcmp(arg_val, "all")) ) { trackID = (u32)-1; } else if (arg_val) { if (sscanf(arg_val, "%u", &trac...
0
310,316
dirserv_have_any_serverdesc(smartlist_t *fps, int spool_src) { time_t publish_cutoff = time(NULL)-ROUTER_MAX_AGE_TO_PUBLISH; SMARTLIST_FOREACH(fps, const char *, fp, { switch (spool_src) { case DIR_SPOOL_EXTRA_BY_DIGEST: if (extrainfo_get_by_descriptor_digest(fp)) return 1; b...
0
400,719
static int copyout_mc(void __user *to, const void *from, size_t n) { if (access_ok(to, n)) { instrument_copy_to_user(to, from, n); n = copy_mc_to_user((__force void *) to, from, n); } return n; }
0
474,002
code2_hash(OnigCodePoint* x) { return (st_index_t )(x[0] + x[1]); }
0
221,690
void Socket::stopSsl() { #ifdef NETDEBUG std::cout << thread_id << "ssl stopping" << std::endl; #endif if(!isssl) return; isssl = false; if (ssl != NULL) { if (issslserver) { #ifdef NETDEBUG std::cout << thread_id << "this is a server connection" << std::endl; if (SSL_g...
0
432,315
void memory_region_init(struct uc_struct *uc, MemoryRegion *mr, uint64_t size) { memset(mr, 0, sizeof(*mr)); mr->uc = uc; /* memory_region_initfn */ mr->ops = &unassigned_mem_ops; mr->enabled = true; mr->destructor = memory_region_destructor_none; ...
0
487,639
void kernel_power_off(void) { kernel_shutdown_prepare(SYSTEM_POWER_OFF); printk(KERN_EMERG "Power down.\n"); machine_power_off(); }
0
248,286
int strcasecmp(const char *s1, const char *s2) { assert(s1); assert(s2); while (*s1) { int c1 = tolower(*(const unsigned char *)s1); int c2 = tolower(*(const unsigned char *)s2); if (c1 < c2) return -1; if (c1 > c2) return +1; ++s1; ++s2; } if (*s2 != 0) return -1; return 0; }
0
369,409
static enum hrtimer_restart io_link_timeout_fn(struct hrtimer *timer) { struct io_timeout_data *data = container_of(timer, struct io_timeout_data, timer); struct io_kiocb *prev, *req = data->req; struct io_ring_ctx *ctx = req->ctx; unsigned long flags; spin_lock_irqsave(&ctx->timeout_lock, flags); prev = ...
0
281,065
static inline unsigned int idx_hash(struct net *net, u32 index) { return __idx_hash(index, net->xfrm.policy_idx_hmask); }
0
401,557
void del_random_ready_callback(struct random_ready_callback *rdy) { unsigned long flags; struct module *owner = NULL; spin_lock_irqsave(&random_ready_list_lock, flags); if (!list_empty(&rdy->list)) { list_del_init(&rdy->list); owner = rdy->owner; } spin_unlock_irqrestore(&random_ready_list_lock, flags); mo...
0
223,486
static void flush_stubs(compiler_common *common) { DEFINE_COMPILER; stub_list *list_item = common->stubs; while (list_item) { JUMPHERE(list_item->start); add_jump(compiler, &common->stackalloc, JUMP(SLJIT_FAST_CALL)); JUMPTO(SLJIT_JUMP, list_item->quit); list_item = list_item->next; } common->stubs = NULL;...
0
500,058
krb5_rc_destroy(krb5_context con, krb5_rcache rc) { if (!krb5_loaded) load_krb5_dll(); if ( p_krb5_rc_destroy ) return(p_krb5_rc_destroy(con, rc)); else return KRB5KRB_ERR_GENERIC; }
0
244,142
GF_Err dac3_box_size(GF_Box *s) { GF_AC3ConfigBox *ptr = (GF_AC3ConfigBox *)s; if (ptr->cfg.is_ec3) { u32 i; s->size += 2; for (i=0; i<ptr->cfg.nb_streams; i++) { s->size += 3; if (ptr->cfg.streams[i].nb_dep_sub) s->size += 1; } } else { s->size += 3; } return GF_OK; }
0
369,316
static void io_flush_apoll_cache(struct io_ring_ctx *ctx) { struct async_poll *apoll; while (!list_empty(&ctx->apoll_cache)) { apoll = list_first_entry(&ctx->apoll_cache, struct async_poll, poll.wait.entry); list_del(&apoll->poll.wait.entry); kfree(apoll); }
0
202,708
fname_match( regmatch_T *rmp, char_u *name, int ignore_case) // when TRUE ignore case, when FALSE use 'fic' { char_u *match = NULL; char_u *p; if (name != NULL) { // Ignore case when 'fileignorecase' or the argument is set. rmp->rm_ic = p_fic || ignore_case; if (vim_regexec(rmp, name, ...
1
356,679
Napi::Value Statement::Run(const Napi::CallbackInfo& info) { Napi::Env env = info.Env(); Statement* stmt = this; Baton* baton = stmt->Bind<RunBaton>(info); if (baton == NULL) { Napi::Error::New(env, "Data type is not supported").ThrowAsJavaScriptException(); return env.Null(); } ...
0
489,150
sctp_disposition_t sctp_sf_do_prm_asoc(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) { struct sctp_chunk *repl; struct sctp_association* my_asoc; /* The comment below says that we enter...
0
247,571
TEST_P(SslSocketTest, StatelessSessionResumptionEnabledByDefault) { 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: filenam...
0
204,195
static void parse_rtcp_bye(pjmedia_rtcp_session *sess, const void *pkt, pj_size_t size) { pj_str_t reason = {"-", 1}; /* Check and get BYE reason */ if (size > 8) { reason.slen = PJ_MIN(sizeof(sess->stat.peer_sdes_buf_), *((pj_uint8_t*)pkt+8)); pj_memcpy(sess->sta...
1
314,527
static pj_status_t validate_sdp_conn(const pjmedia_sdp_conn *c) { CHECK( c, PJ_EINVAL); CHECK( pj_strcmp2(&c->net_type, "IN")==0, PJMEDIA_SDP_EINCONN); CHECK( pj_strcmp2(&c->addr_type, "IP4")==0 || pj_strcmp2(&c->addr_type, "IP6")==0, PJMEDIA_SDP_EINCONN); CHECK( c->addr.slen != 0, PJMEDIA_SDP_...
0