idx
int64
func
string
target
int64
401,529
static void extract_crng(__u8 out[CHACHA_BLOCK_SIZE]) { struct crng_state *crng = NULL; #ifdef CONFIG_NUMA if (crng_node_pool) crng = crng_node_pool[numa_node_id()]; if (crng == NULL) #endif crng = &primary_crng; _extract_crng(crng, out); }
0
343,151
static struct ip_esp_hdr *esp_output_tcp_encap(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp) { return ERR_PTR(-EOPNOTSUPP); }
0
242,647
GF_Err isoffin_initialize(GF_Filter *filter) { ISOMReader *read = gf_filter_get_udta(filter); GF_Err e = GF_OK; read->filter = filter; read->channels = gf_list_new(); if (read->xps_check==MP4DMX_XPS_AUTO) { read->xps_check = (read->smode==MP4DMX_SPLIT_EXTRACTORS) ? MP4DMX_XPS_KEEP : MP4DMX_XPS_REMOVE; } if (...
0
294,514
datetime_s_weeknum(int argc, VALUE *argv, VALUE klass) { VALUE vy, vw, vd, vf, vh, vmin, vs, vof, vsg, y, fr, fr2, ret; int w, d, f, h, min, s, rof; double sg; rb_scan_args(argc, argv, "09", &vy, &vw, &vd, &vf, &vh, &vmin, &vs, &vof, &vsg); y = INT2FIX(-4712); w = 0; d = 1; f = 0; ...
0
240,297
do_put( int regname, char_u *expr_result, // result for regname "=" when compiled int dir, // BACKWARD for 'P', FORWARD for 'p' long count, int flags) { char_u *ptr; char_u *newp, *oldp; int yanklen; int totlen = 0; // init for gcc linenr_T lnum; colnr_T col; long ...
0
466,187
static int em_imul_ex(struct x86_emulate_ctxt *ctxt) { u8 ex = 0; emulate_1op_rax_rdx(ctxt, "imul", ex); return X86EMUL_CONTINUE; }
0
463,153
static int annotation_set_tofile(annotate_state_t *state __attribute__((unused)), struct annotate_entry_list *entry, int maywrite) { const char *filename = (const char *)entry->desc->rock; char path[MAX_MAILBOX...
0
272,367
unescape_html_in_place(char *s) { size_t sz = strlen(s) + 1; size_t pos = 0; char *s1; dprintf("unescaping pos:%zd sz:%zd \"%s\"", pos, sz, s); do { s1 = strchrnul(&s[pos], '%'); if (s1[0] == '\0') break; dprintf("s1 is \"%s\"", s1); if ((size_t)(s1 - s) < (size_t)(sz - 3)) { int c; c = (hexchar...
0
90,744
bool AddCallback(GetUsageAndQuotaCallback* callback, bool unlimited) { if (unlimited) unlimited_callbacks_.push_back(callback); else callbacks_.push_back(callback); return (callbacks_.size() + unlimited_callbacks_.size() == 1); }
0
226,373
GF_Err moof_box_write(GF_Box *s, GF_BitStream *bs) { return gf_isom_box_write_header(s, bs); }
0
241,366
explicit MatrixSolveOpGpu(OpKernelConstruction* context) : AsyncOpKernel(context) { OP_REQUIRES_OK(context, context->GetAttr("adjoint", &adjoint_)); }
0
380,949
ins_tab(void) { int ind; int i; int temp; if (Insstart_blank_vcol == MAXCOL && curwin->w_cursor.lnum == Insstart.lnum) Insstart_blank_vcol = get_nolist_virtcol(); if (echeck_abbr(TAB + ABBR_OFF)) return FALSE; ind = inindent(0); if (ind) can_cindent = FALSE; /* * When nothi...
0
346,451
may_prefix_autoload(char_u *name) { if (SCRIPT_ID_VALID(current_sctx.sc_sid)) { scriptitem_T *si = SCRIPT_ITEM(current_sctx.sc_sid); if (si->sn_autoload_prefix != NULL) { char_u *basename = name; size_t len; char_u *res; if (*name == K_SPECIAL) { char_u *p = vim_strchr(name, '...
0
512,243
Item_cache_datetime(THD *thd) :Item_cache_temporal(thd, &type_handler_datetime2) { }
0
517,429
static void print_service_rules_socket(HttpResponse res, Service_T s) { for (Port_T p = s->socketlist; p; p = p->next) { StringBuffer_append(res->outputbuffer, "<tr class='rule'><td>Unix Socket</td><td>"); if (p->retry > 1) Util_printRule(res->outputbuffer...
0
412,109
dnsc_nonces_lookup(struct slabhash* cache, const uint8_t nonce[crypto_box_HALF_NONCEBYTES], const uint8_t magic_query[DNSCRYPT_MAGIC_HEADER_LEN], const uint8_t pk[crypto_box_PUBLICKEYBYTES], uint32_t hash) { struct nonce_cache_key k; me...
0
448,921
int ZEXPORT inflateGetDictionary(strm, dictionary, dictLength) z_streamp strm; Bytef *dictionary; uInt *dictLength; { struct inflate_state FAR *state; /* check state */ if (inflateStateCheck(strm)) return Z_STREAM_ERROR; state = (struct inflate_state FAR *)strm->state; /* copy dictionary */ if...
0
240,278
free_register(void *reg) { yankreg_T tmp; tmp = *y_current; *y_current = *(yankreg_T *)reg; free_yank_all(); vim_free(reg); *y_current = tmp; }
0
229,253
std::unique_ptr<cql_server::response> cql_server::connection::make_supported(int16_t stream, const tracing::trace_state_ptr& tr_state) const { std::multimap<sstring, sstring> opts; opts.insert({"CQL_VERSION", cql3::query_processor::CQL_VERSION}); opts.insert({"COMPRESSION", "lz4"}); opts.insert({"COMPRE...
0
310,142
_nc_use_tracef(unsigned mask) { bool result = FALSE; _nc_lock_global(tst_tracef); if (!MyNested++) { if ((result = (_nc_tracing & (mask))) != 0 && _nc_try_global(tracef) == 0) { /* we will call _nc_locked_tracef(), no nesting so far */ } else { /* we will not call _nc_locked_tracef() */ ...
0
468,385
set_last_error (GSocketClientAsyncConnectData *data, GError *error) { g_clear_error (&data->last_error); data->last_error = error; }
0
264,369
inline protobuf::RepeatedPtrField<string>* MutableTensorProtoData<tstring>( TensorProto* t) { static_assert(SaveTypeTraits<tstring>::supported, "Specified type tstring not supported for Save"); return t->mutable_string_val(); }
0
508,779
static int rr_from_cache(READ_RECORD *info) { uint i; ulong length; my_off_t rest_of_file; int16 error; uchar *position,*ref_position,*record_pos; ulong record; for (;;) { if (info->cache_pos != info->cache_end) { if (info->cache_pos[info->error_offset]) { shortget(error,info->cach...
0
224,741
void ipro_box_del(GF_Box *s) { GF_ItemProtectionBox *ptr = (GF_ItemProtectionBox *)s; if (ptr == NULL) return; gf_list_del(ptr->protection_information); gf_free(ptr); }
0
225,785
GF_Box *void_box_new() { ISOM_DECL_BOX_ALLOC(GF_Box, GF_ISOM_BOX_TYPE_VOID); return tmp;
0
219,003
bool ConstantFolding::MergeConcat(bool use_shape_info, GraphProperties* properties, GraphDef* optimized_graph, NodeDef* node) { // We only optimize for ConcatV2. int axis; if (!use_shape_info || !GetConcatAxis(*node, &axis) || nodes_to_pres...
0
462,581
controller::controller() : v(0), urlcfg(0), rsscache(0), url_file("urls"), cache_file("cache.db"), config_file("config"), queue_file("queue"), refresh_on_start(false), api(0) { }
0
207,780
static RList *create_cache_bins(RBinFile *bf, RDyldCache *cache) { RList *bins = r_list_newf ((RListFree)free_bin); ut16 *depArray = NULL; cache_imgxtr_t *extras = NULL; if (!bins) { return NULL; } char *target_libs = NULL; RList *target_lib_names = NULL; int *deps = NULL; target_libs = r_sys_getenv ("R_DYL...
1
418,792
reset_held_button() { held_button = MOUSE_RELEASE; }
0
393,487
static SQInteger class_getbase(HSQUIRRELVM v) { return SQ_SUCCEEDED(sq_getbase(v,-1))?1:SQ_ERROR; }
0
344,782
argv_free(char **av, int ac) { int i; if (av == NULL) return; for (i = 0; i < ac; i++) free(av[i]); free(av); }
0
450,367
static void vnc_client_cache_addr(VncState *client) { Error *err = NULL; client->info = g_malloc0(sizeof(*client->info)); vnc_init_basic_info_from_remote_addr(client->sioc, qapi_VncClientInfo_base(client->info), &err); cl...
0
512,756
bool Item_func_case::time_op(THD *thd, MYSQL_TIME *ltime) { DBUG_ASSERT(fixed == 1); Item *item= find_item(); if (!item) return (null_value= true); return (null_value= Time(thd, item).copy_to_mysql_time(ltime)); }
0
234,829
void btrfs_get_bbio(struct btrfs_bio *bbio) { WARN_ON(!refcount_read(&bbio->refs)); refcount_inc(&bbio->refs); }
0
309,847
usage(void) { static const char *msg[] = { "Usage: dots_termcap [options]" ,"" ,"Options:" ," -T TERM override $TERM" ," -e allow environment $LINES / $COLUMNS" ," -m SIZE set margin (default: 2)" ," -r SECS self-interrupt/exit after specified number of seconds" ," -s MSECS delay 1% of the time...
0
308,183
static int fastrpc_get_args(u32 kernel, struct fastrpc_invoke_ctx *ctx) { struct device *dev = ctx->fl->sctx->dev; struct fastrpc_remote_arg *rpra; struct fastrpc_invoke_buf *list; struct fastrpc_phy_page *pages; int inbufs, i, oix, err = 0; u64 len, rlen, pkt_size; u64 pg_start, pg_end; uintptr_t args; int me...
0
244,326
GF_Err metx_box_size(GF_Box *s) { GF_MetaDataSampleEntryBox *ptr = (GF_MetaDataSampleEntryBox *)s; ptr->size += 8; if (ptr->type!=GF_ISOM_BOX_TYPE_STPP) { if (ptr->content_encoding) ptr->size += strlen(ptr->content_encoding); ptr->size++; } if ((ptr->type==GF_ISOM_BOX_TYPE_METX) || (ptr->type==GF_ISOM_BOX...
0
220,210
Status Node::input_node(int idx, Node** n) const { const Edge* e; TF_RETURN_IF_ERROR(input_edge(idx, &e)); if (e == nullptr) { *n = nullptr; } else { *n = e->src(); } return Status::OK(); }
0
417,123
void PlayerGeneric::setRepeat(bool repeat) { this->repeat = repeat; if (player) player->setRepeat(repeat); }
0
413,647
R_API int r_core_anal_esil_fcn(RCore *core, ut64 at, ut64 from, int reftype, int depth) { const char *esil; eprintf ("TODO\n"); while (1) { // TODO: Implement the proper logic for doing esil analysis RAnalOp *op = r_core_anal_op (core, at, R_ANAL_OP_MASK_ESIL); if (!op) { break; } esil = R_STRBUF_SAFEGE...
0
237,879
qeh_write_type (struct qpack_enc_hdl *qeh) { int s; #ifndef NDEBUG const char *env = getenv("LSQUIC_RND_VARINT_LEN"); if (env && atoi(env)) { s = rand() & 3; LSQ_DEBUG("writing %d-byte stream type", 1 << s); } else #endif s = 0; switch (s) { case 0: ...
0
328,947
R_API char *r_bin_java_print_methodhandle_cp_stringify(RBinJavaCPTypeObj *obj) { ut8 ref_kind = obj->info.cp_method_handle.reference_kind; return r_str_newf ("%d.0x%04"PFMT64x ".%s.%s.%d", obj->metas->ord, obj->file_offset + obj->loadaddr, ((RBinJavaCPTypeMetas *) obj->metas->type_info)->name, R_BIN_JAVA_REF_ME...
0
427,153
static void singlevar (LexState *ls, expdesc *var) { TString *varname = str_checkname(ls); FuncState *fs = ls->fs; singlevaraux(fs, varname, var, 1); if (var->k == VVOID) { /* global name? */ expdesc key; singlevaraux(fs, ls->envn, var, 1); /* get environment variable */ lua_assert(var->k != VVOID...
0
468,363
g_socket_client_tls_handshake_callback (GObject *object, GAsyncResult *result, gpointer user_data) { GSocketClientAsyncConnectData *data = user_data; if (g_tls_connection_handshake_finish (G_TLS_CONNECTION (object), result, &data->last_error)) { g_object_unref (data->conne...
0
413,687
static int is_string(const ut8 *buf, int size, int *len) { int i, fakeLen = 0; if (size < 1) { return 0; } if (!len) { len = &fakeLen; } if (size > 3 && buf[0] && !buf[1] && buf[2] && !buf[3]) { *len = 1; // XXX: TODO: Measure wide string length return 2; // is wide } for (i = 0; i < size; i++) { if (...
0
224,175
std::size_t get_tuple_bytes(const Tuple& tuple) { return std::accumulate(tuple.begin(), tuple.end(), static_cast<std::size_t>(0), [](const std::size_t& lhs, const Tensor& rhs) { return lhs + rhs.TotalBytes(); ...
0
343,168
static int esp4_rcv_cb(struct sk_buff *skb, int err) { return 0; }
0
231,023
QueueSetMemberHandle_t xQueueSelectFromSetFromISR( QueueSetHandle_t xQueueSet ) { QueueSetMemberHandle_t xReturn = NULL; ( void ) xQueueReceiveFromISR( ( QueueHandle_t ) xQueueSet, &xReturn, NULL ); /*lint !e961 Casting from one typedef to another is not redundant. */ return xRetur...
0
417,117
void PlayerGeneric::setPlayMode(PlayModes mode) { playMode = mode; if (player) player->setPlayMode(mode); }
0
241,311
mrb_remove_method(mrb_state *mrb, struct RClass *c, mrb_sym mid) { mt_tbl *h; MRB_CLASS_ORIGIN(c); h = c->mt; if (h && mt_del(mrb, h, mid)) { mrb_mc_clear_by_class(mrb, c); return; } mrb_name_error(mrb, mid, "method '%n' not defined in %C", mid, c); }
0
400,120
void LogHandler::setupLogFile(el::Configurations *defaultConf, string filename, string maxlogsize) { // Enable strict log file size check el::Loggers::addFlag(el::LoggingFlag::StrictLogFileSizeCheck); defaultConf->setGlobally(el::ConfigurationType::Filename, filename); defaultConf-...
0
272,343
generate_signature(cms_context *cms) { int rc = 0; if (cms->digests[cms->selected_digest].pe_digest == NULL) cnreterr(-1, cms, "PE digest has not been allocated"); if (content_is_empty(cms->digests[cms->selected_digest].pe_digest->data, cms->digests[cms->selected_digest].pe_digest->len)) cnreterr(-1, cms, "...
0
231,686
bool verifyFramePresent( std::vector<std::unique_ptr<folly::IOBuf>>& socketWrites, QuicReadCodec& readCodec, QuicFrame::Type frameType) { AckStates ackStates; for (auto& write : socketWrites) { auto packetQueue = bufToQueue(write->clone()); auto result = readCodec.parsePacket(packetQueue, ackSta...
0
349,268
static void squashfs_stat(char *source) { time_t mkfs_time = (time_t) sBlk.s.mkfs_time; struct tm *t = use_localtime ? localtime(&mkfs_time) : gmtime(&mkfs_time); char *mkfs_str = asctime(t); #if __BYTE_ORDER == __BIG_ENDIAN printf("Found a valid %sSQUASHFS %d:%d superblock on %s.\n", swap ? "little endian ...
0
244,081
GF_Err udta_box_size(GF_Box *s) { GF_Err e; u32 i; GF_UserDataMap *map; GF_UserDataBox *ptr = (GF_UserDataBox *)s; i=0; while ((map = (GF_UserDataMap *)gf_list_enum(ptr->recordList, &i))) { //warning: here we are not passing the actual "parent" of the list //but the UDTA box. The parent itself is not an box,...
0
484,748
static int xennet_xdp_set(struct net_device *dev, struct bpf_prog *prog, struct netlink_ext_ack *extack) { unsigned long max_mtu = XEN_PAGE_SIZE - XDP_PACKET_HEADROOM; struct netfront_info *np = netdev_priv(dev); struct bpf_prog *old_prog; unsigned int i, err; if (dev->mtu > max_mtu) { netdev_warn(dev, "XD...
0
387,790
void InstanceKlass::process_interfaces(Thread *thread) { // link this class into the implementors list of every interface it implements for (int i = local_interfaces()->length() - 1; i >= 0; i--) { assert(local_interfaces()->at(i)->is_klass(), "must be a klass"); InstanceKlass* interf = InstanceKlass::cast(...
0
313,734
adjust_cursor(oparg_T *oap) { // The cursor cannot remain on the NUL when: // - the column is > 0 // - not in Visual mode or 'selection' is "o" // - 'virtualedit' is not "all" and not "onemore". if (curwin->w_cursor.col > 0 && gchar_cursor() == NUL && (!VIsual_active || *p_sel == 'o') && !virtua...
0
412,331
static bool check_buffer(RzBuffer *buf) { ut8 tmp[6]; int r = rz_buf_read_at(buf, 0, tmp, sizeof(tmp)); return r == sizeof(tmp) && !memcmp(tmp, QNX_MAGIC, sizeof(tmp)); }
0
359,657
community_list_config_write (struct vty *vty) { struct community_list *list; struct community_entry *entry; struct community_list_master *cm; int write = 0; /* Community-list. */ cm = community_list_master_lookup (bgp_clist, COMMUNITY_LIST_MASTER); for (list = cm->num.head; list; list = list->next) ...
0
231,698
void onServerCloseOpenState(QuicServerConnectionState& conn) { conn.state = ServerState::Closed; }
0
374,036
static void header(RBinFile *bf) { r_return_if_fail (bf && bf->o); RCoreSymCacheElement *element = bf->o->bin_obj; if (!element) { return; } RBin *bin = bf->rbin; PrintfCallback p = bin->cb_printf; PJ *pj = pj_new (); if (!pj) { return; } pj_o (pj); pj_kn (pj, "cs_version", element->hdr->version); pj...
0
262,803
void Compute(OpKernelContext* context) override { // Read ragged_splits inputs. OpInputList ragged_nested_splits_in; OP_REQUIRES_OK(context, context->input_list("rt_nested_splits", &ragged_nested_splits_in)); const int ragged_nested_splits_len = ragged_n...
0
430,424
int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, const struct sw_flow_key *key, struct sw_flow_actions **sfa, bool log) { int err; u32 mpls_label_count = 0; *sfa = nla_alloc_flow_actions(min(nla_len(attr), MAX_ACTIONS_BUFSIZE)); if (IS_ERR(*sfa)) return PTR_ERR(*sfa); if (eth_p_mpls...
0
220,244
const Edge* Graph::AddControlEdge(Node* source, Node* dest, bool allow_duplicates) { if (!allow_duplicates) { for (const Edge* edge : dest->in_edges()) { if (edge->IsControlEdge() && edge->src() == source) { // The requested edge already exists. return nullp...
0
241,058
int client_add(int fd, const struct booth_transport *tpt, void (*workfn)(int ci), void (*deadfn)(int ci)) { int i; struct client *c; if (client_size - 1 <= client_maxi ) { client_alloc(); } for (i = 0; i < client_size; i++) { c = clients + i; if (c->fd != -1) continue; c->workfn = workfn; if (...
0
195,403
TfLiteIntArray* TfLiteIntArrayCreate(int size) { int alloc_size = TfLiteIntArrayGetSizeInBytes(size); if (alloc_size <= 0) return NULL; TfLiteIntArray* ret = (TfLiteIntArray*)malloc(alloc_size); if (!ret) return ret; ret->size = size; return ret; }
1
384,199
int nft_chain_validate(const struct nft_ctx *ctx, const struct nft_chain *chain) { struct nft_expr *expr, *last; const struct nft_data *data; struct nft_rule *rule; int err; if (ctx->level == NFT_JUMP_STACK_SIZE) return -EMLINK; list_for_each_entry(rule, &chain->rules, list) { if (!nft_is_active_next(ctx->n...
0
195,246
static s32 avc_parse_slice(GF_BitStream *bs, AVCState *avc, Bool svc_idr_flag, AVCSliceInfo *si) { s32 pps_id, num_ref_idx_l0_active_minus1 = 0, num_ref_idx_l1_active_minus1 = 0; /*s->current_picture.reference= h->nal_ref_idc != 0;*/ gf_bs_read_ue_log(bs, "first_mb_in_slice"); si->slice_type = gf_bs_read_ue_log(bs...
1
329,945
_cairo_image_bounded_opaque_spans (void *abstract_renderer, int y, int height, const cairo_half_open_span_t *spans, unsigned num_spans) { cairo_image_span_renderer_t *r = abstract_renderer; if (num_spans == 0) return CAIRO_STATUS_SUCCESS; do { if (spans[0].coverage) pixman_imag...
0
338,061
void WasmBinaryWriter::writeDebugLocationEnd(Expression* curr, Function* func) { if (func && !func->expressionLocations.empty()) { auto& span = binaryLocations.expressions.at(curr); span.end = o.size(); } }
0
376,315
gpg_ctx_set_istream (struct _GpgCtx *gpg, CamelStream *istream) { g_object_ref (istream); if (gpg->istream) g_object_unref (gpg->istream); gpg->istream = istream; }
0
508,783
bool init_read_record(READ_RECORD *info,THD *thd, TABLE *table, SQL_SELECT *select, SORT_INFO *filesort, int use_record_cache, bool print_error, bool disable_rr_cache) { IO_CACHE *tempfile; SORT_ADDON_FIELD *addon_field= filesort ? filesort->addon_field :...
0
292,159
int LinkResolver::vtable_index_of_interface_method(Klass* klass, const methodHandle& resolved_method) { int vtable_index = Method::invalid_vtable_index; Symbol* name = resolved_method->name(); Symbol* signature = resolved_method->signature(); InstanceKlass* ik...
0
483,504
static int __init efi_load_efivars(void) { struct platform_device *pdev; if (!efi_enabled(EFI_RUNTIME_SERVICES)) return 0; pdev = platform_device_register_simple("efivars", 0, NULL, 0); return PTR_ERR_OR_ZERO(pdev); }
0
482,555
verifyStringOrDots(const FileInfo *file, TranslationTableOpcode opcode, int isString, int actionPart, int nofor) { if (!wantsString(opcode, actionPart, nofor) == !isString) return 1; compileError(file, "%s are not allowed in the %s part of a %s translation %s rule.", isString ? "strings" : "dots", getPartName(a...
0
361,742
static void request_module_async(struct work_struct *work) { struct em28xx *dev = container_of(work, struct em28xx, request_module_wk); /* * The em28xx extensions can be modules or builtin. If the * modules are already loaded or are built in, those extensions * can be initialised right now. Otherwise, ...
0
247,604
const envoy::extensions::transport_sockets::tls::v3::UpstreamTlsContext& clientCtxProto() const { return client_ctx_proto_; }
0
231,712
void handleKnobParams(const TransportKnobParams& params) { handleTransportKnobParams(params); }
0
221,389
static int nested_svm_intercept(struct vcpu_svm *svm) { u32 exit_code = svm->vmcb->control.exit_code; int vmexit = NESTED_EXIT_HOST; switch (exit_code) { case SVM_EXIT_MSR: vmexit = nested_svm_exit_handled_msr(svm); break; case SVM_EXIT_IOIO: vmexit = nested_svm_intercept_ioio(svm); break; case SVM_EXIT_...
0
462,224
PJ_DEF(pj_status_t) pj_stun_msg_encode(pj_stun_msg *msg, pj_uint8_t *buf, pj_size_t buf_size, unsigned options, const pj_str_t *key, pj_size_t *p_msg_len) { pj_uint8_t *start = buf; pj_stun_msgint_attr *amsgint = NULL; pj_stun_fingerprint_attr *afingerprint = NULL...
0
337,799
static int sctp_process_inv_paramlength(const struct sctp_association *asoc, struct sctp_paramhdr *param, const struct sctp_chunk *chunk, struct sctp_chunk **errp) { /* This is a fatal error. Any accumulated non-fatal errors are * not reported. */ if (*errp) sctp_chunk_free(*errp); /* Create a...
0
222,874
bool IsEnqueue(const NodeDef& n) { return (n.op().find("Enqueue") != string::npos && n.op().find("EnqueueMany") == string::npos); }
0
259,176
static int mov_read_stco(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; MOVStreamContext *sc; unsigned int i, entries; if (c->trak_index < 0) { av_log(c->fc, AV_LOG_WARNING, "STCO outside TRAK\n"); return 0; } if (c->fc->nb_streams < 1) return 0; st = ...
0
522,441
int flag2str(int flag, char *flag_str) { if (flag & 0x1) flag_str[2] = 'E'; if (flag >> 1 & 0x1) flag_str[1] = 'W'; if (flag >> 2 & 0x1) flag_str[0] = 'R'; return 0; }
0
476,133
int usb_string_ids_n(struct usb_composite_dev *c, unsigned n) { unsigned next = c->next_string_id; if (unlikely(n > 254 || (unsigned)next + n > 254)) return -ENODEV; c->next_string_id += n; return next + 1; }
0
175,771
AvailableSpaceQueryTask( QuotaManager* manager, scoped_refptr<base::MessageLoopProxy> db_message_loop, const FilePath& profile_path, AvailableSpaceCallback* callback) : QuotaThreadTask(manager, db_message_loop), profile_path_(profile_path), space_(-1), callback_(c...
0
261,912
njs_string_slice(njs_vm_t *vm, njs_value_t *dst, const njs_string_prop_t *string, const njs_slice_prop_t *slice) { njs_string_prop_t prop; njs_string_slice_string_prop(&prop, string, slice); if (njs_fast_path(prop.size != 0)) { return njs_string_new(vm, dst, prop.start, prop.size, prop.length...
0
292,215
inbound_topictime (server *serv, char *chan, char *nick, time_t stamp, const message_tags_data *tags_data) { char *tim = ctime (&stamp); session *sess = find_channel (serv, chan); if (!sess) sess = serv->server_session; tim[24] = 0; /* get rid of the \n */ EMIT_SIGNAL_TIMESTAMP (XP_TE_TOPICDATE, sess, c...
0
261,250
int wm_SemUnlock(wm_Sem *s) { xSemaphoreGive(*s); return 0; }
0
225,904
void totl_box_del(GF_Box *s) { gf_free((GF_TRPYBox *)s); }
0
234,723
static struct btrfs_bio *alloc_btrfs_bio(int total_stripes, int real_stripes) { struct btrfs_bio *bbio = kzalloc( /* the size of the btrfs_bio */ sizeof(struct btrfs_bio) + /* plus the variable array for the stripes */ sizeof(struct btrfs_bio_stripe) * (total_stripes) + /* plus the variable array for the tg...
0
246,451
RPVector *r_bin_wasm_get_elements(RBinWasmObj *bin) { r_return_val_if_fail (bin && bin->g_sections, NULL); return bin->g_elements? bin->g_elements: parse_unique_subsec_vec_by_id (bin, R_BIN_WASM_SECTION_ELEMENT); }
0
281,159
void xfrm_spd_getinfo(struct net *net, struct xfrmk_spdinfo *si) { si->incnt = net->xfrm.policy_count[XFRM_POLICY_IN]; si->outcnt = net->xfrm.policy_count[XFRM_POLICY_OUT]; si->fwdcnt = net->xfrm.policy_count[XFRM_POLICY_FWD]; si->inscnt = net->xfrm.policy_count[XFRM_POLICY_IN+XFRM_POLICY_MAX]; si->outscnt = net->...
0
344,774
convtime(const char *s) { long total, secs, multiplier; const char *p; char *endp; errno = 0; total = 0; p = s; if (p == NULL || *p == '\0') return -1; while (*p) { secs = strtol(p, &endp, 10); if (p == endp || (errno == ERANGE && (secs == INT_MIN || secs == INT_MAX)) || secs < 0) return...
0
369,429
static int io_arm_poll_handler(struct io_kiocb *req, unsigned issue_flags) { const struct io_op_def *def = &io_op_defs[req->opcode]; struct io_ring_ctx *ctx = req->ctx; struct async_poll *apoll; struct io_poll_table ipt; __poll_t mask = EPOLLONESHOT | POLLERR | POLLPRI; int ret; if (!def->pollin && !def->pollo...
0
427,199
static int createlabel (LexState *ls, TString *name, int line, int last) { FuncState *fs = ls->fs; Labellist *ll = &ls->dyd->label; int l = newlabelentry(ls, ll, name, line, luaK_getlabel(fs)); if (last) { /* label is last no-op statement in the block? */ /* assume that locals are a...
0
313,834
nv_page(cmdarg_T *cap) { if (!checkclearop(cap->oap)) { if (mod_mask & MOD_MASK_CTRL) { // <C-PageUp>: tab page back; <C-PageDown>: tab page forward if (cap->arg == BACKWARD) goto_tabpage(-(int)cap->count1); else goto_tabpage((int)cap->count0); } else (void)onepage(cap->arg, cap->cou...
0
391,662
static void validate_my_share_entries(struct smbd_server_connection *sconn, int num, struct share_mode_entry *share_entry) { struct server_id self = messaging_server_id(sconn->msg_ctx); files_struct *fsp; if (!serverid_equal(&self, &share_entry->pid)) { return; } if (!is_valid_share_mode_en...
0
369,188
void __io_uring_free(struct task_struct *tsk) { struct io_uring_task *tctx = tsk->io_uring; WARN_ON_ONCE(!xa_empty(&tctx->xa)); WARN_ON_ONCE(tctx->io_wq); WARN_ON_ONCE(tctx->cached_refs); kfree(tctx->registered_rings); percpu_counter_destroy(&tctx->inflight); kfree(tctx); tsk->io_uring = NULL;
0