idx
int64
func
string
target
int64
258,230
static int tunnel_dns ( int tun_fd , int dns_fd , int bind_fd ) { struct query q ; int read ; int domain_len ; int inside_topdomain = 0 ; if ( ( read = read_dns ( dns_fd , tun_fd , & q ) ) <= 0 ) return 0 ; if ( debug >= 2 ) { fprintf ( stderr , "RX: client %s, type %d, name %s\n" , format_addr ( & q . from , q ...
0
405,136
EXPORTED int mboxlist_findsub(struct namespace *namespace, const char *pattern, int isadmin, const char *userid, const struct auth_state *auth_state, findall_cb *proc, void *rock, int force) { str...
0
367,572
static inline int security_inode_getattr(struct vfsmount *mnt, struct dentry *dentry) { return 0; }
0
281,316
spnego_gss_inquire_context( OM_uint32 *minor_status, const gss_ctx_id_t context_handle, gss_name_t *src_name, gss_name_t *targ_name, OM_uint32 *lifetime_rec, gss_OID *mech_type, OM_uint32 *ctx_flags, int *locally_initiated, int *opened) { OM_uint32 ret = GSS_S_COMPLETE; ret = gss_inquir...
0
495,744
void Curl_free_idnconverted_hostname(struct hostname *host) { #if defined(USE_LIBIDN2) if(host->encalloc) { idn2_free(host->encalloc); /* must be freed with idn2_free() since this was allocated by libidn */ host->encalloc = NULL; } #elif defined(USE_WIN32_IDN) free(host->e...
0
294,147
int gnutls_x509_ext_import_private_key_usage_period(const gnutls_datum_t * ext, time_t * activation, time_t * expiration) { int result, ret; ASN1_TYPE c2 = ASN1_TYPE_EMPTY; result = asn1_create_element (_gnutls_get_pkix(), "PKIX1.PrivateKeyUsagePeriod", &c2); if (result != ASN1_SUCCESS) { gnut...
0
140,875
int sc_mutex_create(const sc_context_t *ctx, void **mutex) { if (ctx == NULL) return SC_ERROR_INVALID_ARGUMENTS; if (ctx->thread_ctx != NULL && ctx->thread_ctx->create_mutex != NULL) return ctx->thread_ctx->create_mutex(mutex); else return SC_SUCCESS; }
0
436,152
big5_left_adjust_char_head(const UChar* start, const UChar* s) { const UChar *p; int len; if (s <= start) return (UChar* )s; p = s; if (BIG5_ISMB_TRAIL(*p)) { while (p > start) { if (! BIG5_ISMB_FIRST(*--p)) { p++; break; } } } len = enclen(ONIG_ENCODING_BIG5, p); if (p + len > ...
0
477,959
T& operator()(const unsigned int x, const unsigned int y, const unsigned int z) { return _data[x + y*(ulongT)_width + z*(ulongT)_width*_height]; }
0
56,306
std::chrono::milliseconds streamIdleTimeout() const override { return stream_idle_timeout_; }
0
14,624
SpeechRecognitionManagerImpl::SpeechRecognitionManagerImpl( media::AudioSystem* audio_system, MediaStreamManager* media_stream_manager) : audio_system_(audio_system), media_stream_manager_(media_stream_manager), primary_session_id_(kSessionIDInvalid), last_session_id_(kSessionIDInvalid), ...
1
345,857
do_restrict( sockaddr_u *srcadr, endpt *inter, struct req_pkt *inpkt, int op ) { char * datap; struct conf_restrict cr; u_short items; size_t item_sz; sockaddr_u matchaddr; sockaddr_u matchmask; int bad; /* * Do a check of the flags to make sure that only * the NTPPORT flag is set, if any. ...
1
462,934
TEST(EqOp, MatchesMinKey) { BSONObj operand = BSON("a" << MinKey); EqualityMatchExpression eq; eq.init("a", operand["a"]).transitional_ignore(); ASSERT(eq.matchesBSON(BSON("a" << MinKey), NULL)); ASSERT(!eq.matchesBSON(BSON("a" << MaxKey), NULL)); ASSERT(!eq.matchesBSON(BSON("a" << 4), NULL)); }
0
257,976
Datum eqsel ( PG_FUNCTION_ARGS ) { PlannerInfo * root = ( PlannerInfo * ) PG_GETARG_POINTER ( 0 ) ; Oid operator = PG_GETARG_OID ( 1 ) ; List * args = ( List * ) PG_GETARG_POINTER ( 2 ) ; int varRelid = PG_GETARG_INT32 ( 3 ) ; VariableStatData vardata ; Node * other ; bool varonleft ; double selec ; if ( ! get...
0
33,975
void dup_mm_exe_file(struct mm_struct *oldmm, struct mm_struct *newmm) { /* It's safe to write the exe_file pointer without exe_file_lock because * this is called during fork when the task is not yet in /proc */ newmm->exe_file = get_mm_exe_file(oldmm); }
0
94,731
int ext4_alloc_flex_bg_array(struct super_block *sb, ext4_group_t ngroup) { struct ext4_sb_info *sbi = EXT4_SB(sb); struct flex_groups *new_groups; int size; if (!sbi->s_log_groups_per_flex) return 0; size = ext4_flex_group(sbi, ngroup - 1) + 1; if (size <= sbi->s_flex_groups_allocated) return 0; size = r...
0
333,832
static void dmg_refresh_limits(BlockDriverState *bs, Error **errp) { bs->request_alignment = BDRV_SECTOR_SIZE; /* No sub-sector I/O supported */ }
0
148,187
PathMatcherImpl(const RequirementRule& rule) : BaseMatcherImpl(rule), path_(rule.match().path()), path_matcher_(Matchers::PathMatcher::createExact(path_, !case_sensitive_)) {}
0
83,744
void cil_destroy_category(struct cil_cat *cat) { if (cat == NULL) { return; } cil_symtab_datum_destroy(&cat->datum); free(cat); }
0
20,542
static int bind_socket_ai ( struct addrinfo * ai , int reuse ) { int fd , on = 1 , r ; int serrno ; fd = socket ( AF_INET , SOCK_STREAM , 0 ) ; if ( fd == - 1 ) { event_warn ( "socket" ) ; return ( - 1 ) ; } if ( evutil_make_socket_nonblocking ( fd ) < 0 ) goto out ; # ifndef WIN32 if ( fcntl ( fd , F_SETFD , ...
0
253,545
MultiBufferBlockId ResourceMultiBufferDataProvider::Tell() const { return pos_; }
0
31,193
gchar * proto_find_undecoded_data ( proto_tree * tree , guint length ) { gchar * decoded = ( gchar * ) wmem_alloc0 ( wmem_packet_scope ( ) , length / 8 + 1 ) ; proto_tree_traverse_pre_order ( tree , check_for_undecoded , decoded ) ; return decoded ; }
0
204,592
int venc_dev::venc_input_log_buffers(OMX_BUFFERHEADERTYPE *pbuffer, int fd, int plane_offset) { if (venc_handle->is_secure_session()) { DEBUG_PRINT_ERROR("logging secure input buffers is not allowed!"); return -1; } if (!m_debug.infile) { int size = snprintf(m_debug.infile_name, ...
0
326,724
static int decode_value(SCPRContext *s, unsigned *cnt, unsigned maxc, unsigned step, unsigned *rval) { GetByteContext *gb = &s->gb; RangeCoder *rc = &s->rc; unsigned totfr = cnt[maxc]; unsigned value; unsigned c = 0, cumfr = 0, cnt_c = 0; int i, ret; if ((ret = s->get_freq(rc, totf...
0
288,778
static GstFlowReturn gst_asf_demux_process_advanced_mutual_exclusion ( GstASFDemux * demux , guint8 * data , guint64 size ) { ASFGuid guid ; guint16 num , i ; if ( size < 16 + 2 + ( 2 * 2 ) ) goto not_enough_data ; gst_asf_demux_get_guid ( & guid , & data , & size ) ; num = gst_asf_demux_get_uint16 ( & data , & si...
0
393,533
xmlidDocTest(const char *filename, const char *result, const char *err, int options) { int res = 0; int ret = 0; char *temp; xpathDocument = xmlReadFile(filename, NULL, options | XML_PARSE_DTDATTR | XML_PARSE_NOENT); if (xpathD...
0
192,144
LayoutUnit RenderFlexibleBox::childIntrinsicWidth(RenderBox* child) const { if (!child->isHorizontalWritingMode() && needToStretchChildLogicalHeight(child)) return constrainedChildIntrinsicContentLogicalHeight(child); return child->width(); }
0
192,181
UserShare* SyncManager::GetUserShare() const { return data_->GetUserShare(); }
0
58,997
void abst_box_del(GF_Box *s) { GF_AdobeBootstrapInfoBox *ptr = (GF_AdobeBootstrapInfoBox *)s; if (ptr == NULL) return; if (ptr->movie_identifier) gf_free(ptr->movie_identifier); if (ptr->drm_data) gf_free(ptr->drm_data); if (ptr->meta_data) gf_free(ptr->meta_data); while (gf_list_count(ptr->server_entry_t...
0
118,096
lookup_installation_for_path (GFile *path, GError **error) { FlatpakInstallation *installation; if (installation_cache == NULL) installation_cache = g_hash_table_new_full (g_file_hash, (GEqualFunc)g_file_equal, g_object_unref, g_object_unref); installation = g_hash_table_lookup (installation_cache, path); ...
0
304,915
GF_Err pdin_Write(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 i; GF_ProgressiveDownloadBox *ptr = (GF_ProgressiveDownloadBox *)s; e = gf_isom_full_box_write(s, bs); if (e) return e; for (i=0; i<ptr->count; i++) { gf_bs_write_u32(bs, ptr->rates[i]); gf_bs_write_u32(bs, ptr->times[i]); } return GF_OK;
0
168,751
DrawingBuffer* WebGLRenderingContextBase::GetDrawingBuffer() const { return drawing_buffer_.get(); }
0
283,402
static void OverloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { scheduler::CooperativeSchedulingManager::Instance()->Safepoint(); bool is_arity_error = false; switch (std::min(2, info.Length())) { case 1: if (info[0]->IsNumber()) { OverloadedMethodL1Method(info); ...
0
33,575
mono_verifier_is_signature_compatible (MonoMethodSignature *target, MonoMethodSignature *candidate) { return mono_delegate_signature_equal (target, candidate, FALSE); }
0
357,904
static int ext4_journalled_writepage(struct page *page, struct writeback_control *wbc) { struct inode *inode = page->mapping->host; loff_t size = i_size_read(inode); loff_t len; trace_mark(ext4_journalled_writepage, "dev %s ino %lu page_index %lu", inode->i_sb->s_id, inode->i_ino, page->index); J_AS...
0
333,785
static void test_visitor_in_native_list_uint16(TestInputVisitorData *data, const void *unused) { test_native_list_integer_helper(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_U16); }
0
271,764
void MessageWrapper::Wrap(const std::string& message, std::string& out) { // If there is a fixed message, it is stored in prefix. Otherwise prefix contains // only the prefix, so append the message and the suffix out.assign(prefix); if (!fixed) out.append(message).append(suffix); }
0
32,465
static void build_mixer_unit_ctl(struct mixer_build *state, struct uac_mixer_unit_descriptor *desc, int in_pin, int in_ch, int unitid, struct usb_audio_term *iterm) { struct usb_mixer_elem_info *cval; unsigned int num_outs = uac_mixer_unit_bNrChannels(desc); unsigned int i, len; struct snd_kcontrol *...
0
49,253
TEST(FormatterTest, RuntimePrecision) { char format_str[BUFFER_SIZE]; safe_sprintf(format_str, "{0:.{%u", UINT_MAX); increment(format_str + 5); EXPECT_THROW_MSG(format(format_str, 0), FormatError, "number is too big"); std::size_t size = std::strlen(format_str); format_str[size] = '}'; format_str[size + 1...
0
289,069
static int dissect_h225_INTEGER_1_65535 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 65535U , NULL , FALSE ) ; return offset ; }
0
478,791
CImg<intT> get_select(CImgDisplay &disp, const unsigned int feature_type=2, unsigned int *const XYZ=0, const bool exit_on_anykey=false, const bool is_deep_selection_default=false) const { return _select(disp,0,feature_type,XYZ,0,0,0...
0
320,682
bool net_tx_pkt_add_raw_fragment(struct NetTxPkt *pkt, hwaddr pa, size_t len) { hwaddr mapped_len = 0; struct iovec *ventry; assert(pkt); assert(pkt->max_raw_frags > pkt->raw_frags); if (!len) { return true; } ventry = &pkt->raw[pkt->raw_frags]; mapped_len = l...
0
105,459
njs_vmcode_interpreter(njs_vm_t *vm, u_char *pc, void *promise_cap, void *async_ctx) { u_char *catch; double num, exponent; int32_t i32; uint32_t u32; njs_str_t string; njs_uint_t ...
0
374,693
AlterTableLookupRelation(AlterTableStmt *stmt, LOCKMODE lockmode) { return RangeVarGetRelidExtended(stmt->relation, lockmode, stmt->missing_ok, false, RangeVarCallbackForAlterRelation, (void *) stmt); }
0
413,541
static int _find_update_object_in_list(void *x, void *key) { slurmdb_update_object_t *object = (slurmdb_update_object_t *)x; slurmdb_update_type_t type = *(slurmdb_update_type_t *)key; if (object->type == type) return 1; return 0; }
0
461,229
autoar_extractor_check_file_conflict (GFile *file, mode_t extracted_filetype) { GFileType file_type; gboolean conflict = FALSE; file_type = g_file_query_file_type (file, G_FILE_QUERY_INFO_NONE, NUL...
0
244,144
static void aio_fput_routine(struct work_struct *data) { spin_lock_irq(&fput_lock); while (likely(!list_empty(&fput_head))) { struct kiocb *req = list_kiocb(fput_head.next); struct kioctx *ctx = req->ki_ctx; list_del(&req->ki_list); spin_unlock_irq(&fput_lock); /* Complete the fput(s) */ if (req->ki_fil...
0
419,675
static int determine_space(Server *s, uint64_t *available, uint64_t *limit) { JournalStorage *js; int r; assert(s); js = s->system_journal ? &s->system_storage : &s->runtime_storage; r = cache_space_refresh(s, js); if (r >= 0) { if (available) ...
0
251,787
GDataEntry* GDataEntry::FromDocumentEntry(GDataDirectory* parent, DocumentEntry* doc, GDataRootDirectory* root) { DCHECK(doc); if (doc->is_folder()) return GDataDirectory::FromDocumentEntry(parent, doc, root); else if (doc->is...
0
414,403
static void getRDB(void) { int s = context->fd; int fd; unsigned long long payload = sendSync(s); char buf[4096]; fprintf(stderr,"SYNC sent to master, writing %llu bytes to '%s'\n", payload, config.rdb_filename); /* Write to file. */ if (!strcmp(config.rdb_filename,"-")) { ...
0
356,193
static long do_rmdir(int dfd, const char __user *pathname) { int error = 0; char * name; struct dentry *dentry; struct nameidata nd; name = getname(pathname); if(IS_ERR(name)) return PTR_ERR(name); error = do_path_lookup(dfd, name, LOOKUP_PARENT, &nd); if (error) goto exit; switch(nd.last_type) { case...
0
109,531
static int loop(int fd) { void (*workfn) (int ci); void (*deadfn) (int ci); int rv, i; rv = setup_transport(); if (rv < 0) goto fail; rv = setup_ticket(); if (rv < 0) goto fail; rv = write_daemon_state(fd, BOOTHD_STARTED); if (rv != 0) { log_error("write daemon state %d to lockfile error %s: %s", ...
0
445,408
TEST_P(ConnectionLimitIntegrationTest, TestEmptyGlobalCxRuntimeLimit) { const std::string log_line = "no configured limit to the number of allowed active connections."; EXPECT_LOG_CONTAINS("warn", log_line, { initialize(); }); }
0
163,596
net::Error CallbackAndReturn( const DownloadResourceHandler::OnStartedCallback& started_cb, net::Error net_error) { if (started_cb.is_null()) return net_error; BrowserThread::PostTask( BrowserThread::UI, FROM_HERE, base::Bind(started_cb, static_cast<DownloadItem*>(NULL), net_error)); retu...
0
137,604
static int llc_ui_release(struct socket *sock) { struct sock *sk = sock->sk; struct llc_sock *llc; if (unlikely(sk == NULL)) goto out; sock_hold(sk); lock_sock(sk); llc = llc_sk(sk); dprintk("%s: closing local(%02X) remote(%02X)\n", __func__, llc->laddr.lsap, llc->daddr.lsap); if (!llc_send_disc(sk)) llc...
0
464,796
static void v4l_print_audioout(const void *arg, bool write_only) { const struct v4l2_audioout *p = arg; if (write_only) pr_cont("index=%u\n", p->index); else pr_cont("index=%u, name=%.*s, capability=0x%x, mode=0x%x\n", p->index, (int)sizeof(p->name), p->name, p->capability, p->mode); }
0
481,477
static void io_rsrc_file_put(struct io_ring_ctx *ctx, struct io_rsrc_put *prsrc) { struct file *file = prsrc->file; #if defined(CONFIG_UNIX) struct sock *sock = ctx->ring_sock->sk; struct sk_buff_head list, *head = &sock->sk_receive_queue; struct sk_buff *skb; int i; if (!io_file_need_scm(file)) { fput(file);...
0
53,934
void mg_set_protocol_mqtt(struct mg_connection *nc) { nc->proto_handler = mqtt_handler; nc->proto_data = MG_CALLOC(1, sizeof(struct mg_mqtt_proto_data)); nc->proto_data_destructor = mg_mqtt_proto_data_destructor; }
0
508,923
int tls1_ec_curve_id2nid(int curve_id) { /* ECC curves from RFC 4492 */ if ((curve_id < 1) || ((unsigned int)curve_id > sizeof(nid_list) / sizeof(nid_list[0]))) return 0; return nid_list[curve_id - 1]; }
0
387,982
png_handle_unknown(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length, int keep) { int handled = 0; /* the chunk was handled */ png_debug(1, "in png_handle_unknown"); #ifdef PNG_READ_UNKNOWN_CHUNKS_SUPPORTED /* NOTE: this code is based on the code in libpng-1.4.12 except for fixing * the bu...
0
367,316
static int smack_audit_rule_init(u32 field, u32 op, char *rulestr, void **vrule) { char **rule = (char **)vrule; *rule = NULL; if (field != AUDIT_SUBJ_USER && field != AUDIT_OBJ_USER) return -EINVAL; if (op != Audit_equal && op != Audit_not_equal) return -EINVAL; *rule = smk_import(rulestr, 0); return 0; ...
0
244,610
static int ssl_method_error(const SSL *s, const SSL_METHOD *method) { int version = method->version; if ((s->min_proto_version != 0 && version_cmp(s, version, s->min_proto_version) < 0) || ssl_security(s, SSL_SECOP_VERSION, 0, version, NULL) == 0) return SSL_R_VERSION_TOO_LOW; if ...
0
207,688
void ShellSurface::Close() { if (!close_callback_.is_null()) close_callback_.Run(); }
0
354,435
static int ltalk_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt) { /* Expand any short form frames */ if (skb->mac.raw[2] == 1) { struct ddpehdr *ddp; /* Find our address */ struct atalk_addr *ap = atalk_find_dev_addr(dev); if (!ap || skb->len < sizeof(struct ddpshdr)) goto fre...
0
292,425
static void client_init_reply_buf(void) { replybuf_pos = replybuf; replybuf_left = sizeof replybuf - 1U; }
0
396,699
GC_INNER void GC_remove_header(struct hblk *h) { hdr **ha; GET_HDR_ADDR(h, ha); free_hdr(*ha); *ha = 0; }
0
114,627
static void cobject(JF, js_Ast *list) { js_Ast *head = list; while (list) { js_Ast *kv = list->a; js_Ast *prop = kv->a; if (prop->type == AST_IDENTIFIER || prop->type == EXP_STRING) { emitline(J, F, prop); emitstring(J, F, OP_STRING, prop->string); } else if (prop->type == EXP_NUMBER) { emitline(J,...
0
323,648
QList *qdict_get_qlist(const QDict *qdict, const char *key) { return qobject_to_qlist(qdict_get_obj(qdict, key, QTYPE_QLIST)); }
1
203,343
jbig2_decode_generic_template1_TPGDON(Jbig2Ctx *ctx, Jbig2Segment *segment, const Jbig2GenericRegionParams *params, Jbig2ArithState *as, Jbig2Image *image, Jbig2ArithCx *GB_stats) { const int GBW = image->width; const int GBH = image->h...
0
255,538
_PyMemoTable_ResizeTable(PyMemoTable *self, Py_ssize_t min_size) { PyMemoEntry *oldtable = NULL; PyMemoEntry *oldentry, *newentry; Py_ssize_t new_size = MT_MINSIZE; Py_ssize_t to_process; assert(min_size > 0); /* Find the smallest valid table size >= min_size. */ while (new_size < min_size...
1
416,561
gx_default_1_add_decode_color( gx_device * dev, gx_color_index color, gx_color_value cv[1] ) { gx_color_value rgb[3]; int code = dev_proc(dev, map_color_rgb)(dev, color, rgb); cv[0] = rgb[0]; return code; }
0
28,039
static void process_gitlink ( struct rev_info * revs , const unsigned char * sha1 , show_object_fn show , struct strbuf * path , const char * name , void * cb_data ) { }
0
137,985
long compat_put_bitmap(compat_ulong_t __user *umask, unsigned long *mask, unsigned long bitmap_size) { unsigned long nr_compat_longs; /* align bitmap up to nearest compat_long_t boundary */ bitmap_size = ALIGN(bitmap_size, BITS_PER_COMPAT_LONG); nr_compat_longs = BITS_TO_COMPAT_LONGS(bitmap_size); if (!...
0
517,762
ha_rows ha_maria::multi_range_read_info_const(uint keyno, RANGE_SEQ_IF *seq, void *seq_init_param, uint n_ranges, uint *bufsz, uint *flags, Cost_estimate *cost) { /* This ca...
0
293,416
static int incclasscanon(Reclass *cc, Rune c) { Rune *p, r; for (p = cc->spans; p < cc->end; p += 2) for (r = p[0]; r <= p[1]; ++r) if (c == canon(r)) return 1; return 0; }
0
88,225
static void ath10k_usb_free_urb_to_pipe(struct ath10k_usb_pipe *pipe, struct ath10k_urb_context *urb_context) { unsigned long flags; spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags); pipe->urb_cnt++; list_add(&urb_context->link, &pipe->urb_list_head); spin_unlock_irqrestore(&pipe->ar_usb->cs_lock, flags); ...
0
46,545
void CLASS identify() { char head[32], *cp; int hlen, flen, fsize, zero_fsize=1, i, c, is_canon; struct jhead jh; short pana[][6] = { { 3130, 1743, 4, 0, -6, 0 }, { 3130, 2055, 4, 0, -6, 0 }, { 3130, 2319, 4, 0, -6, 0 }, { 3170, 2103, 18, 0,-42, 20 }, { 3170, 2367, 18, 13,-42,-21 }...
0
475,777
static int nft_chain_parse_netdev(struct net *net, struct nlattr *tb[], struct list_head *hook_list) { struct nft_hook *hook; int err; if (tb[NFTA_HOOK_DEV]) { hook = nft_netdev_hook_alloc(net, tb[NFTA_HOOK_DEV]); if (IS_ERR(hook)) return PTR_ERR(hook); list_add_tail(&hook->list, hook_list); ...
0
183,105
static void locationReplaceableAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); RefPtr<TestNode> imp = WTF::getPtr(proxyImp->locationReplaceable()); if (!imp) return; V8TRYC...
0
79,833
GF_Err mp4s_AddBox(GF_Box *s, GF_Box *a) { GF_MPEGSampleEntryBox *ptr = (GF_MPEGSampleEntryBox *)s; switch (a->type) { case GF_ISOM_BOX_TYPE_ESDS: if (ptr->esd) ERROR_ON_DUPLICATED_BOX(a, ptr) ptr->esd = (GF_ESDBox *)a; break; case GF_ISOM_BOX_TYPE_SINF: gf_list_add(ptr->protections, a); break; default:...
0
340,323
static uint64_t megasas_port_read(void *opaque, target_phys_addr_t addr, unsigned size) { return megasas_mmio_read(opaque, addr & 0xff, size); }
0
62,467
static void __sctp_write_space(struct sctp_association *asoc) { struct sock *sk = asoc->base.sk; if (sctp_wspace(asoc) <= 0) return; if (waitqueue_active(&asoc->wait)) wake_up_interruptible(&asoc->wait); if (sctp_writeable(sk)) { struct socket_wq *wq; rcu_read_lock(); wq = rcu_dereference(sk->sk_wq); ...
0
3,276
static ssize_t _epoll_readv( oe_fd_t* desc, const struct oe_iovec* iov, int iovcnt) { ssize_t ret = -1; epoll_t* file = _cast_epoll(desc); void* buf = NULL; size_t buf_size = 0; if (!file || (iovcnt && !iov) || iovcnt < 0 || iovcnt > OE_IOV_MAX) OE_RAISE_ERRNO(OE_EINVAL); /...
1
181,585
HTREEITEM TreeView::GetTreeItemForNode(TreeModelNode* node) { NodeDetails* details = GetNodeDetails(node); return details ? details->tree_item : NULL; }
0
189,023
ShelfBackgroundAnimator::~ShelfBackgroundAnimator() { if (wallpaper_controller_) wallpaper_controller_->RemoveObserver(this); if (shelf_) shelf_->RemoveObserver(this); }
0
427,251
thumbnail_failed_path (const char *uri) { char *path, *file; file = thumbnail_filename (uri); /* XXX: appname is only used for failed thumbnails. Is this a mistake? */ path = g_build_filename (g_get_user_cache_dir (), "thumbnails", "fail", ...
0
28,667
static struct passwd * current_getpwuid ( void ) { uid_t ruid ; errno = 0 ; ruid = getuid ( ) ; return errno == 0 ? getpwuid ( ruid ) : NULL ; }
0
418,070
bool RGWBulkDelete::Deleter::verify_permission(RGWBucketInfo& binfo, map<string, bufferlist>& battrs, ACLOwner& bucket_owner /* out */) { RGWAccessControlPolicy bacl(store->ctx()); int ret = read_bucket_policy(store, s, bi...
0
470,722
send_newstyle_option_reply (uint32_t option, uint32_t reply) { GET_CONN; struct nbd_fixed_new_option_reply fixed_new_option_reply; fixed_new_option_reply.magic = htobe64 (NBD_REP_MAGIC); fixed_new_option_reply.option = htobe32 (option); fixed_new_option_reply.reply = htobe32 (reply); fixed_new_option_reply...
0
14,509
int _dbus_printf_string_upper_bound (const char *format, va_list args) { /* MSVCRT's vsnprintf semantics are a bit different */ char buf[1024]; int bufsize; int len; bufsize = sizeof (buf); len = _vsnprintf (buf, bufsize - 1, format, args); while (len == -1) /...
1
337,677
static char *qemu_rbd_array_opts(QDict *options, const char *prefix, int type, Error **errp) { int num_entries; QemuOpts *opts = NULL; QDict *sub_options; const char *host; const char *port; char *str; char *rados_str = NULL; Error *local_err = ...
1
24,306
static gpgme_error_t gpgsm_export_ext ( void * engine , const char * pattern [ ] , gpgme_export_mode_t mode , gpgme_data_t keydata , int use_armor ) { engine_gpgsm_t gpgsm = engine ; gpgme_error_t err = 0 ; char * line ; int length = 7 + 1 ; char * linep ; if ( ! gpgsm ) return gpg_error ( GPG_ERR_INV_VALUE ) ; ...
0
16,293
static int parse_CAggregSpec ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) { proto_item * item ; proto_tree * tree ; va_list ap ; guint8 type ; guint32 ccAlias , idColumn ; const char * txt ; va_start ( ap , fmt ) ; txt = wmem_strdup_vprintf ( wmem_p...
0
58,057
format_NOTE(const struct ofpact_note *a, const struct ofpact_format_params *fp) { ds_put_format(fp->s, "%snote:%s", colors.param, colors.end); format_hex_arg(fp->s, a->data, a->length); }
0
492,709
create_user_authz(authz_full_t *authz, const char *repository, const char *user, apr_pool_t *result_pool, apr_pool_t *scratch_pool) { int i; node_t *root = create_node(NULL, result_pool); construction_context_t *ctx = create_construction_cont...
0
213,617
void RegistrationManager::TryRegisterId(const invalidation::ObjectId& id, bool is_retry) { DCHECK(CalledOnValidThread()); RegistrationStatusMap::const_iterator it = registration_statuses_.find(id); if (it == registration_statuses_.end()) { DLOG(FATAL) << "TryRegisterId ...
0
522,953
bool LEX::sp_declare_cursor(THD *thd, const LEX_CSTRING *name, sp_lex_cursor *cursor_stmt, sp_pcontext *param_ctx, bool add_cpush_instr) { uint offp; sp_instr_cpush *i; if (spcont->find_cursor(name, &offp, true)) { my_error(ER_SP_DUP_CURS, MYF(0), nam...
0
198,289
void CSoundFile::InvertLoop(ModChannel *pChn) { if(GetType() != MOD_TYPE_MOD || pChn->nEFxSpeed == 0) return; ModSample *pModSample = const_cast<ModSample *>(pChn->pModSample); if(pModSample == nullptr || !pModSample->HasSampleData() || !pModSample->uFlags[CHN_LOOP] || pModSample->uFlags[CHN_16BIT]) return; pChn-...
0
65,975
void mg_mqtt_publish(struct mg_connection *nc, const char *topic, uint16_t message_id, int flags, const void *data, size_t len) { uint16_t netbytes; uint16_t topic_len = strlen(topic); size_t total_len = 2 + topic_len + len; if (MG_MQTT_GET_QOS(flags) > 0) { total_...
0
142,228
current_func_returned(void) { return current_funccal->returned; }
0