idx
int64
func
string
target
int64
462,547
void controller::execute_commands(char ** argv, unsigned int i) { if (v->formaction_stack_size() > 0) v->pop_current_formaction(); for (; argv[i]; ++i) { LOG(level::DEBUG, "controller::execute_commands: executing `%s'", argv[i]); std::string cmd(argv[i]); if (cmd == "reload") { reload_all(true); } else i...
0
261,908
njs_string_prototype_to_string(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { njs_int_t ret; njs_str_t enc, str; njs_value_t value; njs_string_prop_t string; ret = njs_string_prototype_value_of(vm, args, nargs, unused); if (njs_slow_path(r...
0
436,105
static int __io_async_wake(struct io_kiocb *req, struct io_poll_iocb *poll, __poll_t mask, io_req_tw_func_t func) { /* for instances that support it check for an event match first: */ if (mask && !(mask & poll->events)) return 0; trace_io_uring_task_add(req->ctx, req->opcode, req->user_data, mask); list_...
0
234,135
xcrealloc (void *ptr, size_t nmemb, size_t size) { /* Check for overflow. */ if (nmemb >= ~(size_t) 0 / size) { error (_("Attempt to re-allocate an array with an excessive number of elements: 0x%lx\n"), (long) nmemb); xexit (1); } return xrealloc (ptr, nmemb * size); }
0
244,085
void tref_box_del(GF_Box *s) { GF_TrackReferenceBox *ptr = (GF_TrackReferenceBox *)s; if (ptr == NULL) return; gf_free(ptr); }
0
508,885
void st_select_lex_node::include_down(st_select_lex_node *upper) { if ((next= upper->slave)) next->prev= &next; prev= &upper->slave; upper->slave= this; master= upper; slave= 0; }
0
359,274
peer_address_self_check (union sockunion *su) { struct interface *ifp = NULL; if (su->sa.sa_family == AF_INET) ifp = if_lookup_by_ipv4_exact (&su->sin.sin_addr); #ifdef HAVE_IPV6 else if (su->sa.sa_family == AF_INET6) ifp = if_lookup_by_ipv6_exact (&su->sin6.sin6_addr); #endif /* HAVE IPV6 */ if (ifp)...
0
247,371
int pgpPrtParamsSubkeys(const uint8_t *pkts, size_t pktlen, pgpDigParams mainkey, pgpDigParams **subkeys, int *subkeysCount) { const uint8_t *p = pkts; const uint8_t *pend = pkts + pktlen; pgpDigParams *digps = NULL; int count = 0; int alloced = 10; struct pgpPkt pkt; int rc, i; d...
0
517,459
static void do_home(HttpResponse res) { do_head(res, "", "", Run.polltime); StringBuffer_append(res->outputbuffer, "<table id='header' width='100%%'>" " <tr>" " <td colspan=2 valign='top' class='left' width='100%%'>" ...
0
498,150
void cgit_patch_link(const char *name, const char *title, const char *class, const char *head, const char *rev, const char *path) { reporevlink("patch", name, title, class, head, rev, path); }
0
522,356
int GmfCpyLin(int64_t InpIdx, int64_t OutIdx, int KwdCod) { char s[ WrdSiz * FilStrSiz ]; double d; float f; int i, a, err; int64_t l; GmfMshSct *InpMsh = (GmfMshSct *)InpIdx, *OutMsh = (GmfMshSct *)OutIdx; KwdSct *kwd = &InpMsh->KwdTab[ KwdCod ]; // Save th...
0
232,360
GF_Err gf_isom_box_write_listing(GF_Box *a, GF_BitStream *bs) { if (!a) return GF_BAD_PARAM; if (!a->registry) { GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[iso file] Write invalid box type %s without registry\n", gf_4cc_to_str(a->type) )); return GF_ISOM_INVALID_FILE; } return a->registry->write_fn(a, bs);
0
488,378
static int do_linear_fault(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long address, pte_t *page_table, pmd_t *pmd, int write_access, pte_t orig_pte) { pgoff_t pgoff = (((address & PAGE_MASK) - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff; unsigned int flags = (write_access ? FAULT_FLAG_WRITE :...
0
319,424
static MagickBooleanType IsCIN(const unsigned char *magick,const size_t length) { if (length < 4) return(MagickFalse); if (memcmp(magick,"\200\052\137\327",4) == 0) return(MagickTrue); return(MagickFalse); }
0
253,574
smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon, struct cifsFileInfo *cfile, void __user *ioc_buf) { char *retbuf = NULL; unsigned int ret_data_len = 0; int rc; u32 max_response_size; struct smb_snapshot_array snapshot_in; /* * On the first query to enumerate the list of snapshots avail...
0
450,406
static int send_png_rect(VncState *vs, int x, int y, int w, int h, VncPalette *palette) { png_byte color_type; png_structp png_ptr; png_infop info_ptr; png_colorp png_palette = NULL; pixman_image_t *linebuf; int level = tight_png_conf[vs->tight->compression].png_zlib_lev...
0
387,627
int snd_ctl_rename_id(struct snd_card *card, struct snd_ctl_elem_id *src_id, struct snd_ctl_elem_id *dst_id) { struct snd_kcontrol *kctl; down_write(&card->controls_rwsem); kctl = snd_ctl_find_id(card, src_id); if (kctl == NULL) { up_write(&card->controls_rwsem); return -ENOENT; } remove_hash_entries...
0
275,475
njs_value_string_get(njs_value_t *value, njs_str_t *dst) { njs_string_get(value, dst); }
0
225,944
void free_box_del(GF_Box *s) { GF_FreeSpaceBox *ptr = (GF_FreeSpaceBox *)s; if (ptr->data) gf_free(ptr->data); gf_free(ptr); }
0
294,721
df_utc_to_local(int df, int of) { df += of; if (df < 0) df += DAY_IN_SECONDS; else if (df >= DAY_IN_SECONDS) df -= DAY_IN_SECONDS; return df; }
0
245,191
char* get_xtrabackup_info(MYSQL *connection) { const char *uuid = get_backup_uuid(connection); char *server_version = read_mysql_one_value(connection, "SELECT VERSION()"); static const size_t time_buf_size = 100; char buf_start_time[time_buf_size]; char buf_end_time[time_buf_size]; format_time(history_start_tim...
0
254,877
Value DocumentSourceGroup::serialize(boost::optional<ExplainOptions::Verbosity> explain) const { MutableDocument insides; // Add the _id. if (_idFieldNames.empty()) { invariant(_idExpressions.size() == 1); insides["_id"] = _idExpressions[0]->serialize(static_cast<bool>(explain)); } else...
0
522,351
int my_aio_write(struct aiocb *aiocbp) { if( (MYFSEEK(aiocbp->aio_fildes, (off_t)aiocbp->aio_offset, SEEK_SET) == 0) && (fwrite(aiocbp->aio_buf, 1, aiocbp->aio_nbytes, aiocbp->aio_fildes) == aiocbp->aio_nbytes) ) { aiocbp->aio_lio_opcode = 0; } else { aiocbp->aio_lio_opcode = -1; ...
0
482,484
parseDots(const FileInfo *file, CharsString *cells, const CharsString *token) { /* get dot patterns */ widechar cell = 0; /* assembly place for dots */ int cellCount = 0; int index; int start = 0; for (index = 0; index < token->length; index++) { int started = index != start; widechar character = token->char...
0
294,672
m_min(union DateData *x) { if (simple_dat_p(x)) return 0; else { get_c_time(x); #ifndef USE_PACK return x->c.min; #else return EX_MIN(x->c.pc); #endif } }
0
310,179
reset_color_pairs(void) { NCURSES_SP_NAME(reset_color_pairs) (CURRENT_SCREEN); }
0
247,326
int pgpPubkeyKeyID(const uint8_t * pkt, size_t pktlen, pgpKeyID_t keyid) { struct pgpPkt p; if (decodePkt(pkt, pktlen, &p)) return -1; return getKeyID(p.body, p.blen, keyid); }
0
369,278
static unsigned int io_file_get_flags(struct file *file) { umode_t mode = file_inode(file)->i_mode; unsigned int res = 0; if (S_ISREG(mode)) res |= FFS_ISREG; if (__io_file_supports_nowait(file, mode)) res |= FFS_NOWAIT; return res; }
0
265,058
tsetcap(int cap, int flags) { if (tccan(cap) && !isset(SINGLELINEZLE) && !(termflags & (TERM_NOUP|TERM_BAD|TERM_UNKNOWN))) { switch (flags & TSC_OUTPUT_MASK) { case TSC_RAW: tputs(tcstr[cap], 1, putraw); break; case 0: default: tputs(tcstr[cap], 1, putshout); break; case TSC_PROMPT:...
0
502,727
void SSL_CTX_set_cookie_generate_cb(SSL_CTX *ctx, int (*cb) (SSL *ssl, unsigned char *cookie, unsigned int *cookie_len)) { ctx->app_gen_cookie_cb = cb; }
0
203,622
con_insert_unipair(struct uni_pagedir *p, u_short unicode, u_short fontpos) { int i, n; u16 **p1, *p2; p1 = p->uni_pgdir[n = unicode >> 11]; if (!p1) { p1 = p->uni_pgdir[n] = kmalloc_array(32, sizeof(u16 *), GFP_KERNEL); if (!p1) return -ENOMEM; for (i = 0; i < 32; i++) p1[i] = NULL; } p2 = ...
1
294,532
date_s__iso8601(int argc, VALUE *argv, VALUE klass) { VALUE str, opt; rb_scan_args(argc, argv, "1:", &str, &opt); check_limit(str, opt); return date__iso8601(str); }
0
318,105
static int rsi_reset_card(struct rsi_hw *adapter) { int ret; rsi_dbg(INFO_ZONE, "Resetting Card...\n"); rsi_usb_master_reg_write(adapter, RSI_TA_HOLD_REG, 0xE, 4); /* This msleep will ensure Thread-Arch processor to go to hold * and any pending dma transfers to rf in device to finish. */ msleep(100); ret =...
0
90,896
ClientUsageTracker* UsageTracker::GetClientTracker(QuotaClient::ID client_id) { ClientTrackerMap::iterator found = client_tracker_map_.find(client_id); if (found != client_tracker_map_.end()) return found->second; return NULL; }
0
221,641
LiteralString *hermes::evalToString(IRBuilder &builder, Literal *operand) { if (auto *str = llvh::dyn_cast<LiteralString>(operand)) return str; if (auto *num = llvh::dyn_cast<LiteralNumber>(operand)) { char buf[NUMBER_TO_STRING_BUF_SIZE]; auto len = numberToString(num->getValue(), buf, sizeof(buf)); ...
0
384,887
win_nolbr_chartabsize( win_T *wp, char_u *s, colnr_T col, int *headp) { int n; if (*s == TAB && (!wp->w_p_list || wp->w_lcs_chars.tab1)) { # ifdef FEAT_VARTABS return tabstop_padding(col, wp->w_buffer->b_p_ts, wp->w_buffer->b_p_vts_array); # else n = wp->w_buffer->b_p_ts; retur...
0
427,232
static void yindex (LexState *ls, expdesc *v) { /* index -> '[' expr ']' */ luaX_next(ls); /* skip the '[' */ expr(ls, v); luaK_exp2val(ls->fs, v); checknext(ls, ']'); }
0
513,282
bool JOIN::prepare_result(List<Item> **columns_list) { DBUG_ENTER("JOIN::prepare_result"); error= 0; /* Create result tables for materialized views. */ if (!zero_result_cause && select_lex->handle_derived(thd->lex, DT_CREATE)) goto err; if (result->prepare2()) goto err; if ((select_lex->opt...
0
313,771
nv_lineop(cmdarg_T *cap) { cap->oap->motion_type = MLINE; if (cursor_down(cap->count1 - 1L, cap->oap->op_type == OP_NOP) == FAIL) clearopbeep(cap->oap); else if ( (cap->oap->op_type == OP_DELETE // only with linewise motions && cap->oap->motion_force != 'v' && cap->oap->motion_force != Ctrl_V) ||...
0
417,473
virNodeDeviceCapMdevTypesFormat(virBufferPtr buf, virMediatedDeviceTypePtr *mdev_types, const size_t nmdev_types) { size_t i; if (nmdev_types > 0) { virBufferAddLit(buf, "<capability type='mdev_types'>\n"); virBufferAdjustIndent(bu...
0
492,677
vte_sequence_handler_ta (VteTerminal *terminal, GValueArray *params) { VteScreen *screen; long old_len, newcol, col; /* Calculate which column is the next tab stop. */ screen = terminal->pvt->screen; newcol = col = screen->cursor_current.col; g_assert (col >= 0); if (terminal->pvt->tabstops != NULL) { /* Fi...
0
316,986
static int smk_bu_inode(struct inode *inode, int mode, int rc) { struct task_smack *tsp = smack_cred(current_cred()); struct inode_smack *isp = smack_inode(inode); char acc[SMK_NUM_ACCESS_TYPE + 1]; if (isp->smk_flags & SMK_INODE_IMPURE) pr_info("Smack Unconfined Corruption: inode=(%s %ld) %s\n", inode->i_sb-...
0
513,099
in_string::in_string(THD *thd, uint elements, qsort2_cmp cmp_func, CHARSET_INFO *cs) :in_vector(thd, elements, sizeof(String), cmp_func, cs), tmp(buff, sizeof(buff), &my_charset_bin) {}
0
275,970
static void mul2add(uECC_word_t a, uECC_word_t b, uECC_word_t *r0, uECC_word_t *r1, uECC_word_t *r2) { #if uECC_WORD_SIZE == 8 && !SUPPORTS_INT128 uint64_t a0 = a & 0xffffffffull; uint64_t a1 = a >> 32; uint64_t b0 = b & 0xfffff...
0
202,276
block_insert( oparg_T *oap, char_u *s, int b_insert, struct block_def *bdp) { int ts_val; int count = 0; // extra spaces to replace a cut TAB int spaces = 0; // non-zero if cutting a TAB colnr_T offset; // pointer along new line colnr_T startcol; // column where insert starts...
1
229,286
cql_server::connection::process_query(uint16_t stream, request_reader in, service::client_state& client_state, service_permit permit, tracing::trace_state_ptr trace_state) { ++_server._stats.query_requests; return process(stream, in, client_state, std::move(permit), std::move(trace_state), process_query_interna...
0
281,646
void CLASS canon_sraw_load_raw() { struct jhead jh; short *rp=0, (*ip)[4]; int jwide, slice, scol, ecol, row, col, jrow=0, jcol=0, pix[3], c; int v[3]={0,0,0}, ver, hue; char *cp; if (!ljpeg_start (&jh, 0) || jh.clrs < 4) return; jwide = (jh.wide >>= 1) * jh.clrs; #ifdef LIBRAW_LIBRARY_BUILD try { #en...
0
244,317
GF_Box *lsrc_box_new() { ISOM_DECL_BOX_ALLOC(GF_LASERConfigurationBox, GF_ISOM_BOX_TYPE_LSRC); return (GF_Box *)tmp; }
0
336,140
static void ip6gre_tnl_parm_to_user(struct ip6_tnl_parm2 *u, const struct __ip6_tnl_parm *p) { u->proto = IPPROTO_GRE; u->laddr = p->laddr; u->raddr = p->raddr; u->flags = p->flags; u->hop_limit = p->hop_limit; u->encap_limit = p->encap_limit; u->flowinfo = p->flowinfo; u->link = p->link; u->i_key = p->i_key;...
0
359,377
bgp_config_write_redistribute (struct vty *vty, struct bgp *bgp, afi_t afi, safi_t safi, int *write) { int i; /* Unicast redistribution only. */ if (safi != SAFI_UNICAST) return 0; for (i = 0; i < ZEBRA_ROUTE_MAX; i++) { /* Redistribute BGP does not make sense. */ if (bgp->redi...
0
343,273
void addreply_noformat(const int code, const char * const line) { if (code != 0) { replycode = code; } addreply_newline(line, strlen(line) + (size_t) 1U); }
0
521,480
~ZipInputStream() override { #if JUCE_DEBUG if (inputStream != nullptr && inputStream == file.inputStream) file.streamCounter.numOpenStreams--; #endif }
0
265,423
static int getLineToStop( const std::string &fulltext){ int lineNo=1; bool inString=false; for (unsigned int i=0; i<fulltext.length(); ++i) { // increase line number if (fulltext[i] == '\n') { lineNo++; continue; } // skip escaped quotes inside strings if (inString && fulltext.compare(i, 2, "\\\"") =...
0
247,555
TEST_P(SslSocketTest, NoCert) { const std::string client_ctx_yaml = R"EOF( common_tls_context: )EOF"; 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_c...
0
384,885
transstr(char_u *s) { char_u *res; char_u *p; int l, len, c; char_u hexbuf[11]; if (has_mbyte) { // Compute the length of the result, taking account of unprintable // multi-byte characters. len = 0; p = s; while (*p != NUL) { if ((l = (*mb_ptr2len)(p)) > 1) { c = (*mb_ptr2cha...
0
256,175
ALWAYS_INLINE Packet ConvertFourBfloat16ToFloat(const bfloat16* src) { return Eigen::internal::pload4bf16<Packet>( reinterpret_cast<const float*>(src)); }
0
291,849
static void rtrs_clt_path_up(struct rtrs_clt_path *clt_path) { struct rtrs_clt_sess *clt = clt_path->clt; int up; /* * We can fire RECONNECTED event only when all paths were * connected on rtrs_clt_open(), then each was disconnected * and the first one connected again. That's why this nasty * game with cou...
0
238,505
static bool check_ids(u32 old_id, u32 cur_id, struct bpf_id_pair *idmap) { unsigned int i; for (i = 0; i < BPF_ID_MAP_SIZE; i++) { if (!idmap[i].old) { /* Reached an empty slot; haven't seen this id before */ idmap[i].old = old_id; idmap[i].cur = cur_id; return true; } if (idmap[i].old == old_id) ...
0
226,007
GF_Box *srpp_box_new() { ISOM_DECL_BOX_ALLOC(GF_SRTPProcessBox, GF_ISOM_BOX_TYPE_SRPP); return (GF_Box *)tmp; }
0
224,284
gopherStateFree(const CommCloseCbParams &params) { GopherStateData *gopherState = (GopherStateData *)params.data; // Assume that FwdState is monitoring and calls noteClosure(). See XXX about // Connection sharing with FwdState in gopherStart(). delete gopherState; }
0
247,115
Bool gf_filter_unclaim_opengl_provider(GF_Filter *filter, void *vout) { return GF_FALSE; }
0
310,337
_free_cached_dir(void *_d) { cached_dir_t *d; if (!_d) return; d = (cached_dir_t *)_d; cached_dir_decref(d); }
0
294,493
dt_lite_iso8601(int argc, VALUE *argv, VALUE self) { long n = 0; rb_check_arity(argc, 0, 1); if (argc >= 1) n = NUM2LONG(argv[0]); return rb_str_append(strftimev("%Y-%m-%d", self, set_tmx), iso8601_timediv(self, n)); }
0
276,982
virtual ~SampleReader() {}
0
489,135
sctp_disposition_t sctp_sf_do_asconf(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 *chunk = arg; struct sctp_chunk *asconf_ack = NULL; struct sctp_paramhdr *err_param = NULL; sctp_ad...
0
294,416
check_numeric(VALUE obj, const char* field) { if(!RTEST(rb_obj_is_kind_of(obj, rb_cNumeric))) { rb_raise(rb_eTypeError, "invalid %s (not numeric)", field); } }
0
226,377
GF_Err fpar_box_read(GF_Box *s, GF_BitStream *bs) { u32 i; GF_Err e; FilePartitionBox *ptr = (FilePartitionBox *)s; ISOM_DECREASE_SIZE(ptr, ((ptr->version ? 4 : 2) + 12) ); ptr->itemID = gf_bs_read_int(bs, ptr->version ? 32 : 16); ptr->packet_payload_size = gf_bs_read_u16(bs); gf_bs_read_u8(bs); ptr->FEC_enco...
0
310,057
safe_strdup(const char *value) { if (value == NULL) value = ""; return strdup(value); }
0
336,522
static void reds_disconnect(RedsState *reds) { spice_debug("trace"); for (auto client: reds->clients) { reds_client_disconnect(reds, client); } reds_mig_cleanup(reds); }
0
448,931
static unsigned long mmap_rnd(void) { unsigned long rnd = 0; if (current->flags & PF_RANDOMIZE) rnd = (long)get_random_int() & STACK_RND_MASK; return rnd << PAGE_SHIFT; }
0
219,031
string ConstantFolding::OptimizedNodeName(const NodeDef& node, StringPiece suffix) const { return AddPrefixToNodeName(strings::StrCat(node.name(), suffix), kConstantFoldingConst); }
0
220,831
gemmlowp::FixedPoint<tRawType, tIntegerBits> SaturatingAddNonGemmlowp( gemmlowp::FixedPoint<tRawType, tIntegerBits> a, gemmlowp::FixedPoint<tRawType, tIntegerBits> b) { return gemmlowp::FixedPoint<tRawType, tIntegerBits>::FromRaw( SaturatingAddNonGemmlowp(a.raw(), b.raw())); }
0
452,256
PHP_FUNCTION(xsl_xsltprocessor_register_php_functions) { zval *id; xsl_object *intern; zval *array_value, **entry, *new_string; int name_len = 0; char *name; DOM_GET_THIS(id); if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "a", &array_value) == SUCCESS) { intern = (xsl_obj...
0
247,762
void InvertibleRWFunction::BERDecode(BufferedTransformation &bt) { BERSequenceDecoder seq(bt); m_n.BERDecode(seq); m_p.BERDecode(seq); m_q.BERDecode(seq); m_u.BERDecode(seq); seq.MessageEnd(); }
0
90,897
void UsageTracker::GetGlobalUsage(GlobalUsageCallback* callback) { if (client_tracker_map_.size() == 0) { callback->Run(type_, 0, 0); delete callback; return; } if (global_usage_callbacks_.Add(callback)) { global_usage_.pending_clients = client_tracker_map_.size(); global_usage_.usage = 0; ...
0
225,771
GF_Err strk_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem) { GF_SubTrackBox *ptr = (GF_SubTrackBox *)s; if (!a) return GF_OK; switch (a->type) { case GF_ISOM_BOX_TYPE_STRI: BOX_FIELD_ASSIGN(info, GF_SubTrackInformationBox) return GF_OK; case GF_ISOM_BOX_TYPE_STRD: BOX_FIELD_ASSIGN(strd, GF_Box) return GF...
0
452,995
nft_fwd_select_ops(const struct nft_ctx *ctx, const struct nlattr * const tb[]) { if (tb[NFTA_FWD_SREG_ADDR]) return &nft_fwd_neigh_netdev_ops; if (tb[NFTA_FWD_SREG_DEV]) return &nft_fwd_netdev_ops; return ERR_PTR(-EOPNOTSUPP); }
0
262,004
Curl_conncache_find_bundle(struct Curl_easy *data, struct connectdata *conn, struct conncache *connc, const char **hostp) { struct connectbundle *bundle = NULL; CONNCACHE_LOCK(data); if(connc) { char key[HASHKEY_SIZE]; hashke...
0
220,803
explicit RaggedCount(OpKernelConstruction* context) : OpKernel(context) { OP_REQUIRES_OK(context, context->GetAttr("minlength", &minlength_)); OP_REQUIRES_OK(context, context->GetAttr("maxlength", &maxlength_)); OP_REQUIRES_OK(context, context->GetAttr("binary_output", &binary_output_)); }
0
336,567
static void reds_mig_target_client_add(RedsState *reds, RedClient *client) { RedsMigTargetClient *mig_client; g_return_if_fail(reds); spice_debug("trace"); mig_client = g_new0(RedsMigTargetClient, 1); mig_client->client = client; reds->mig_target_clients = g_list_append(reds->mig_target_clients...
0
267,354
parse_opt (int key, char *arg, struct argp_state *state) { switch (key) { case OPTION_CONSOLE_SOCKET: exec_options.console_socket = arg; break; case OPTION_PID_FILE: exec_options.pid_file = arg; break; case OPTION_NO_NEW_PRIVS: exec_options.no_new_privs = true; br...
0
405,385
static int xfrm_policy_addr_delta(const xfrm_address_t *a, const xfrm_address_t *b, u8 prefixlen, u16 family) { u32 ma, mb, mask; unsigned int pdw, pbi; int delta = 0; switch (family) { case AF_INET: if (prefixlen == 0) return 0; mask = ~0U << (32 - prefixlen); ma = ntohl(a->a4) & mask; mb ...
0
224,468
static Bool ttml_check_range(TTMLInterval *interval, s64 ts_begin, s64 ts_end) { //if in current interval, push node if ((ts_begin != -1) && (ts_end != -1) && ((ts_begin>=interval->begin) && (ts_end<=interval->end)) ) { return GF_TRUE; } //begin not set, end set: in range if end less than interval end range els...
0
373,549
OVS_REQUIRES(ipf->ipf_lock) { bool duped_frag = ipf_is_frag_duped(ipf_list->frag_list, ipf_list->last_inuse_idx, start_data_byte, end_data_byte); int last_inuse_idx = ipf_list->last_inuse_idx; if (!duped_frag) { if (last_inuse_idx < ipf_list->size - 1) { /* In the case of dp...
0
307,830
bool ciEnv::check_klass_accessibility(ciKlass* accessing_klass, Klass* resolved_klass) { if (accessing_klass == NULL || !accessing_klass->is_loaded()) { return true; } if (accessing_klass->is_obj_array_klass()) { accessing_klass = accessing_klass->as_obj_array_klass()...
0
247,578
void testUtilV2(const TestUtilOptionsV2& options) { Event::SimulatedTimeSystem time_system; ContextManagerImpl manager(*time_system); // SNI-based selection logic isn't happening in SslSocket anymore. ASSERT(options.listener().filter_chains().size() == 1); const auto& filter_chain = options.listener().filter...
0
317,199
static void selinux_bprm_committed_creds(struct linux_binprm *bprm) { const struct task_security_struct *tsec = selinux_cred(current_cred()); u32 osid, sid; int rc; osid = tsec->osid; sid = tsec->sid; if (sid == osid) return; /* Check whether the new SID can inherit signal state from the old SID. * If not...
0
202,822
search_impl(i_ctx_t *i_ctx_p, bool forward) { os_ptr op = osp; os_ptr op1 = op - 1; uint size = r_size(op); uint count; byte *pat; byte *ptr; byte ch; int incr = forward ? 1 : -1; check_read_type(*op1, t_string); check_read_type(*op, t_string); if (size > r_size(op1)) { /* c...
1
355,629
eval_index( char_u **arg, typval_T *rettv, evalarg_T *evalarg, int verbose) // give error messages { int evaluate = evalarg != NULL && (evalarg->eval_flags & EVAL_EVALUATE); int empty1 = FALSE, empty2 = FALSE; typval_T var1, var2; int range = FALSE; char_u *key = NULL; ...
0
226,148
GF_Err smhd_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_SoundMediaHeaderBox *ptr = (GF_SoundMediaHeaderBox *)s; e = gf_isom_full_box_write(s, bs); if (e) return e; gf_bs_write_u16(bs, ptr->balance); gf_bs_write_u16(bs, ptr->reserved); return GF_OK; }
0
387,637
static int snd_ctl_dev_register(struct snd_device *device) { struct snd_card *card = device->device_data; struct snd_ctl_layer_ops *lops; int err; err = snd_register_device(SNDRV_DEVICE_TYPE_CONTROL, card, -1, &snd_ctl_f_ops, card, &card->ctl_dev); if (err < 0) return err; down_read(&card->controls_rwsem...
0
517,428
static void doGet(HttpRequest req, HttpResponse res) { set_content_type(res, "text/html"); if (ACTION(HOME)) { LOCK(Run.mutex) do_home(res); END_LOCK; } else if (ACTION(RUNTIME)) { handle_runtime(req, res); } else if (ACTION...
0
333,044
nfa_regbranch(void) { int old_post_pos; old_post_pos = (int)(post_ptr - post_start); // First branch, possibly the only one if (nfa_regconcat() == FAIL) return FAIL; // Try next concats while (peekchr() == Magic('&')) { skipchr(); // if concat is empty do emit a node if (old_post_pos...
0
226,111
GF_Err tssy_box_size(GF_Box *s) { s->size += 1; return GF_OK; }
0
252,334
void clear() { channels.clear(); attributes.clear(); data_window[0] = 0; data_window[1] = 0; data_window[2] = 0; data_window[3] = 0; line_order = 0; display_window[0] = 0; display_window[1] = 0; display_window[2] = 0; display_window[3] = 0; screen_window_center[0] = 0....
0
234,168
read_and_display_attr_value (unsigned long attribute, unsigned long form, dwarf_signed_vma implicit_const, unsigned char * start, unsigned char * data, unsigned char * end, dwarf_vma cu_offset, dwarf...
0
261,969
njs_string_slice_args(njs_vm_t *vm, njs_slice_prop_t *slice, njs_value_t *args, njs_uint_t nargs) { int64_t start, end, length; njs_int_t ret; njs_value_t *value; length = slice->string_length; value = njs_arg(args, nargs, 1); if (njs_slow_path(!njs_is_number(value))) { r...
0
338,180
int32_t WasmBinaryBuilder::getS32LEB() { BYN_TRACE("<==\n"); S32LEB ret; ret.read([&]() { return (int8_t)getInt8(); }); BYN_TRACE("getS32LEB: " << ret.value << " ==>\n"); return ret.value; }
0
346,468
source_breakpoint(void *cookie) { return &((source_cookie_T *)cookie)->breakpoint; }
0
401,554
static inline struct timer_base *get_timer_cpu_base(u32 tflags, u32 cpu) { struct timer_base *base = per_cpu_ptr(&timer_bases[BASE_STD], cpu); /* * If the timer is deferrable and NO_HZ_COMMON is set then we need * to use the deferrable base. */ if (IS_ENABLED(CONFIG_NO_HZ_COMMON) && (tflags & TIMER_DEFERRABLE...
0