idx
int64
func
string
target
int64
487,624
asmlinkage long sys_sethostname(char __user *name, int len) { int errno; char tmp[__NEW_UTS_LEN]; if (!capable(CAP_SYS_ADMIN)) return -EPERM; if (len < 0 || len > __NEW_UTS_LEN) return -EINVAL; down_write(&uts_sem); errno = -EFAULT; if (!copy_from_user(tmp, name, len)) { memcpy(utsname()->nodename, tmp, l...
0
204,711
static int ldb_wildcard_compare(struct ldb_context *ldb, const struct ldb_parse_tree *tree, const struct ldb_val value, bool *matched) { const struct ldb_schema_attribute *a; struct ldb_val val; struct ldb_val cnk; struct ldb_val *chunk; uint8_t *save_p = NULL; unsigned int c = 0; a = ldb_schema_attribu...
1
162,556
void WebProcessProxy::addExistingWebPage(WebPageProxy* webPage, uint64_t pageID) { m_pageMap.set(pageID, webPage); globalPageMap().set(pageID, webPage); #if PLATFORM(MAC) if (pageIsProcessSuppressible(webPage)) m_processSuppressiblePages.add(pageID); updateProcessSuppressionState(); #endif...
0
359,338
DEFUN (clear_ip_bgp_as_soft_in, clear_ip_bgp_as_soft_in_cmd, "clear ip bgp <1-65535> soft in", CLEAR_STR IP_STR BGP_STR "Clear peers with the AS number\n" "Soft reconfig\n" "Soft reconfig inbound update\n") { return bgp_clear_vty (vty, NULL, AFI_IP, SAFI_UNICAST...
0
276,966
PreventStartCodeEmulation(const AP4_UI08* payload, AP4_Size payload_size, AP4_DataBuffer& output) { output.Reserve(payload_size*2); // more than enough AP4_Size output_size = 0; AP4_UI08* buffer = output.UseData(); unsigned int zero_counter = 0; for (unsigned int i = 0; i < payload_size; i++) { if...
0
261,415
void read_sao(thread_context* tctx, int xCtb,int yCtb, int CtbAddrInSliceSeg) { slice_segment_header* shdr = tctx->shdr; de265_image* img = tctx->img; const seq_parameter_set& sps = img->get_sps(); const pic_parameter_set& pps = img->get_pps(); logtrace(LogSlice,"# read_sao(%d,%d)\n",xCtb,yCtb)...
0
175,776
bool QuotaManager::ResetUsageTracker(StorageType type) { switch (type) { case kStorageTypeTemporary: if (temporary_usage_tracker_->IsWorking()) return false; temporary_usage_tracker_.reset( new UsageTracker(clients_, kStorageTypeTemporary, special_storage_p...
0
508,769
static int rr_unpack_from_buffer(READ_RECORD *info) { if (info->cache_pos == info->cache_end) return -1; /* End of buffer */ (*info->unpack)(info->addon_field, info->cache_pos, info->cache_end); info->cache_pos+= info->ref_length; return 0; }
0
261,759
void RtmpProtocol::reset() { ////////////ChunkSize//////////// _chunk_size_in = DEFAULT_CHUNK_LEN; _chunk_size_out = DEFAULT_CHUNK_LEN; ////////////Acknowledgement//////////// _bytes_sent = 0; _bytes_sent_last = 0; _windows_size = 0; ///////////PeerBandwidth/////////// _bandwidth = 2...
0
247,291
explicit MklRequantizationRangePerChannelOp(OpKernelConstruction* ctx) : OpKernel(ctx) { OP_REQUIRES_OK(ctx, ctx->GetAttr("clip_value_max", &clip_value_max_)); }
0
335,433
do_one_cmd( char_u **cmdlinep, int flags, #ifdef FEAT_EVAL cstack_T *cstack, #endif char_u *(*fgetline)(int, void *, int, getline_opt_T), void *cookie) // argument for fgetline() { char_u *p; linenr_T lnum; long n; char *errormsg = NULL; // error message char_u *after_modifier ...
0
230,312
njs_array_alloc(njs_vm_t *vm, njs_bool_t flat, uint64_t length, uint32_t spare) { uint64_t size; njs_int_t ret; njs_array_t *array; njs_value_t value; if (njs_slow_path(length > UINT32_MAX)) { goto overflow; } array = njs_mp_alloc(vm->mem_pool, sizeof(njs_array_t)); if...
0
343,145
static struct ip_esp_hdr *esp6_output_udp_encap(struct sk_buff *skb, int encap_type, struct esp_info *esp, __be16 sport, __be16 dport) { struct udphdr *uh; __be32 *udpdata32; unsigned int len; len = skb->len + esp->tailen - skb_transport_offset(skb); if (len > U16_M...
0
204,032
static void virtbt_rx_handle(struct virtio_bluetooth *vbt, struct sk_buff *skb) { __u8 pkt_type; pkt_type = *((__u8 *) skb->data); skb_pull(skb, 1); switch (pkt_type) { case HCI_EVENT_PKT: case HCI_ACLDATA_PKT: case HCI_SCODATA_PKT: case HCI_ISODATA_PKT: hci_skb_pkt_type(skb) = pkt_type; hci_recv_frame(vb...
1
409,411
term_append_lines(int line_count) { OUT_STR(tgoto((char *)T_CAL, 0, line_count)); }
0
312,406
qf_find_first_entry_in_buf(qf_list_T *qfl, int bnr, int *errornr) { qfline_T *qfp = NULL; int idx = 0; // Find the first entry in this file FOR_ALL_QFL_ITEMS(qfl, qfp, idx) if (qfp->qf_fnum == bnr) break; *errornr = idx; return qfp; }
0
225,861
GF_Box *trak_box_new() { ISOM_DECL_BOX_ALLOC(GF_TrackBox, GF_ISOM_BOX_TYPE_TRAK); return (GF_Box *)tmp;
0
513,255
add_key_field(JOIN *join, KEY_FIELD **key_fields,uint and_level, Item_bool_func *cond, Field *field, bool eq_func, Item **value, uint num_values, table_map usable_tables, SARGABLE_PARAM **sargables, uint row_col_no= 0) { uint optimize= 0; if (eq_func && ...
0
310,088
NCURSES_SP_NAME(reset_color_pairs) (NCURSES_SP_DCL0) { if (SP_PARM != 0) { if (SP_PARM->_color_pairs) { _nc_free_ordered_pairs(SP_PARM); free(SP_PARM->_color_pairs); SP_PARM->_color_pairs = 0; SP_PARM->_pair_alloc = 0; ReservePairs(SP_PARM, 16); clearok(CurScreen(SP_PARM), TRUE); ...
0
359,541
DEFUN (neighbor_remove_private_as, neighbor_remove_private_as_cmd, NEIGHBOR_CMD2 "remove-private-AS", NEIGHBOR_STR NEIGHBOR_ADDR_STR2 "Remove private AS number from outbound updates\n") { return peer_af_flag_set_vty (vty, argv[0], bgp_node_afi (vty), bgp_node_safi (vty), ...
0
349,523
static void virtbt_rx_done(struct virtqueue *vq) { struct virtio_bluetooth *vbt = vq->vdev->priv; schedule_work(&vbt->rx); }
0
236,154
GF_Err tsel_box_size(GF_Box *s) { GF_TrackSelectionBox *ptr = (GF_TrackSelectionBox *) s; ptr->size += 4 + (4*ptr->attributeListCount); return GF_OK; }
0
316,943
static inline u32 task_sid_subj(const struct task_struct *task) { u32 sid; rcu_read_lock(); sid = cred_sid(rcu_dereference(task->cred)); rcu_read_unlock(); return sid; }
0
234,746
void __cold btrfs_assign_next_active_device(struct btrfs_device *device, struct btrfs_device *next_device) { struct btrfs_fs_info *fs_info = device->fs_info; if (!next_device) next_device = btrfs_find_next_active_device(fs_info->fs_devices, device); ASSERT(next_device); if (fs_info->sb->s_bd...
0
226,136
GF_Err esds_box_size(GF_Box *s) { u32 descSize = 0; GF_ESDBox *ptr = (GF_ESDBox *)s; //make sure we write with no ESID and no OCRESID if (ptr->desc) { ptr->desc->ESID = 0; ptr->desc->OCRESID = 0; } descSize = gf_odf_desc_size((GF_Descriptor *)ptr->desc); ptr->size += descSize; return GF_OK...
0
336,609
SPICE_GNUC_VISIBLE int spice_server_migrate_info(SpiceServer *reds, const char* dest, int port, int secure_port, const char* cert_subject) { spice_debug("trace"); spice_assert(!reds->migration_interface); if (!reds_set_migr...
0
369,871
static ssize_t oom_score_adj_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) { struct task_struct *task; char buffer[PROC_NUMBUF]; unsigned long flags; int oom_score_adj; int err; memset(buffer, 0, sizeof(buffer)); if (count > sizeof(buffer) - 1) count = sizeof(buffer) - 1; ...
0
428,229
static CURLcode parseurlandfillconn(struct SessionHandle *data, struct connectdata *conn, bool *prot_missing, char **userp, char **passwdp, char **optionsp) { char *at; cha...
0
254,007
static int vidioc_try_fmt_out(struct file *file, void *priv, struct v4l2_format *fmt) { struct v4l2_loopback_device *dev; MARK(); dev = v4l2loopback_getdevice(file); /* TODO(vasaka) loopback does not care about formats writer want to set, * maybe it is a good idea to restrict format somehow */ if (dev->ready_f...
0
195,740
bool SampleInterleavedLSScan::ParseMCU(void) { #if ACCUSOFT_CODE int lines = m_ulRemaining[0]; // total number of MCU lines processed. UBYTE preshift = m_ucLowBit + FractionalColorBitsOf(); struct Line *line[4]; UBYTE cx; // // If a DNL marker is present, the number of remaining lines is...
1
254,710
njs_typed_array_get_i8(const void *a) { return *(const int8_t *) a; }
0
314,754
cdf_unpack_header(cdf_header_t *h, char *buf) { size_t i; size_t len = 0; CDF_UNPACK(h->h_magic); CDF_UNPACKA(h->h_uuid); CDF_UNPACK(h->h_revision); CDF_UNPACK(h->h_version); CDF_UNPACK(h->h_byte_order); CDF_UNPACK(h->h_sec_size_p2); CDF_UNPACK(h->h_short_sec_size_p2); CDF_UNPACKA(h->h_unused0); CDF_UNPACK(...
0
401,562
static void entropy_timer(struct timer_list *t) { credit_entropy_bits(&input_pool, 1); }
0
221,467
add_document_portal_args (FlatpakBwrap *bwrap, const char *app_id, char **out_mount_path) { g_autoptr(GDBusConnection) session_bus = NULL; g_autofree char *doc_mount_path = NULL; session_bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL); if (sess...
0
294,566
of2str(int of) { int s, h, m; decode_offset(of, s, h, m); return rb_enc_sprintf(rb_usascii_encoding(), "%c%02d:%02d", s, h, m); }
0
387,736
void FieldPrinter::do_field(fieldDescriptor* fd) { _st->print(BULLET); if (_obj == NULL) { fd->print_on(_st); _st->cr(); } else { fd->print_on_for(_st, _obj); _st->cr(); } }
0
369,973
static int map_files_d_revalidate(struct dentry *dentry, struct nameidata *nd) { unsigned long vm_start, vm_end; bool exact_vma_exists = false; struct mm_struct *mm = NULL; struct task_struct *task; const struct cred *cred; struct inode *inode; int status = 0; if (nd && nd->flags & LOOKUP_RCU) return -ECHILD...
0
262,030
ServiceProtoQueryAliases(ServiceConnection *conn, ProtoRequest *req) { VGAuthError err; gchar *packet; int num; ServiceAlias *aList; /* * The alias code will do argument validation. */ err = ServiceAliasQueryAliases(req->reqData.queryAliases.userName, ...
0
371,185
static pyc_object *get_complex_object(RzBinPycObj *pyc, RzBuffer *buffer) { pyc_object *ret = NULL; bool error = false; ut32 n1 = 0; ut32 n2 = 0; ret = RZ_NEW0(pyc_object); if (!ret) { return NULL; } if ((pyc->magic_int & 0xffff) <= 62061) { n1 = get_ut8(buffer, &error); } else { n1 = get_st32(buffer, ...
0
221,652
bool disjointComparisonTypes(Type A, Type B) { if (!A.isPrimitive() || !B.isPrimitive()) return false; // Check if types are disjoint. return Type::intersectTy(A, B).isNoType(); }
0
405,346
struct dst_entry *__xfrm_dst_lookup(struct net *net, int tos, int oif, const xfrm_address_t *saddr, const xfrm_address_t *daddr, int family, u32 mark) { const struct xfrm_policy_afinfo *afinfo; struct dst_entry *dst; afinfo = xfrm_policy_get_afinfo(family); if (unlikely(afinfo == NULL)) r...
0
231,040
void vQueueDelete( QueueHandle_t xQueue ) { Queue_t * const pxQueue = xQueue; configASSERT( pxQueue ); traceQUEUE_DELETE( pxQueue ); #if ( configQUEUE_REGISTRY_SIZE > 0 ) { vQueueUnregisterQueue( pxQueue ); } #endif #if ( ( configSUPPORT_DYNAMIC_ALLOCA...
0
234,195
display_debug_loc (struct dwarf_section *section, void *file) { unsigned char *start = section->start, *vstart = NULL; dwarf_vma bytes; unsigned char *section_begin = start; unsigned int num_loc_list = 0; dwarf_vma last_offset = 0; dwarf_vma last_view = 0; unsigned int first = 0; unsigned int i; unsig...
0
437,686
static inline unsigned int clock_divider_to_ns(unsigned int divider) { /* Period of the Rx or Tx clock in ns */ return DIV_ROUND_CLOSEST((divider + 1) * 1000, CX23888_IR_REFCLK_FREQ / 1000000); }
0
387,563
static int snd_ctl_find_hole(struct snd_card *card, unsigned int count) { unsigned int iter = 100000; while (snd_ctl_remove_numid_conflict(card, count)) { if (--iter == 0) { /* this situation is very unlikely */ dev_err(card->dev, "unable to allocate new control numid\n"); return -ENOMEM; } } return 0...
0
459,144
static struct tcf_proto *tcf_proto_create(const char *kind, u32 protocol, u32 prio, struct tcf_chain *chain, bool rtnl_held, struct netlink_ext_ack *extack) { struct tcf_proto *tp; int err; tp = kzalloc(sizeof(*tp), GFP_KERNEL); if (!tp) return ERR_PTR(-ENOBUFS); tp->ops = tcf_proto_lookup...
0
309,936
main(int argc, char *argv[]) { int c, tc = FALSE; while ((c = getopt(argc, argv, "c")) != EOF) switch (c) { case 'c': tc = TRUE; break; } curr_line = 0; for (;;) { char buf[BUFSIZ]; ++curr_line; if (fgets(buf, sizeof(buf), stdin) == 0) break; buf[strlen(buf) - 1] = '\0'; _nc_se...
0
476,104
static struct usb_gadget_strings **get_containers_gs( struct usb_gadget_string_container *uc) { return (struct usb_gadget_strings **)uc->stash; }
0
222,489
bool FunctionDefsEqual(const FunctionDef& f1, const FunctionDef& f2) { if (!OpDefEqual(f1.signature(), f2.signature())) return false; std::map<string, AttrValue> f1_attrs = GetSetAttrs(f1); std::map<string, AttrValue> f2_attrs = GetSetAttrs(f2); if (f1_attrs.size() != f2_attrs.size()) return false; for (cons...
0
238,783
get_line_and_copy(linenr_T lnum, char_u *buf) { char_u *line = ml_get(lnum); vim_strncpy(buf, line, LSIZE - 1); return buf; }
0
238,493
static int do_check_common(struct bpf_verifier_env *env, int subprog) { bool pop_log = !(env->log.level & BPF_LOG_LEVEL2); struct bpf_verifier_state *state; struct bpf_reg_state *regs; int ret, i; env->prev_linfo = NULL; env->pass_cnt++; state = kzalloc(sizeof(struct bpf_verifier_state), GFP_KERNEL); if (!sta...
0
294,388
canon(VALUE x) { if (RB_TYPE_P(x, T_RATIONAL)) { VALUE den = rb_rational_den(x); if (FIXNUM_P(den) && FIX2LONG(den) == 1) return rb_rational_num(x); } return x; }
0
442,568
from_physical(QXLPHYSICAL physical) { return (void *)(uintptr_t) physical; }
0
281,627
void CLASS phase_one_flat_field (int is_float, int nc) { ushort head[8]; unsigned wide, y, x, c, rend, cend, row, col; float *mrow, num, mult[4]; read_shorts (head, 8); wide = head[2] / head[4]; mrow = (float *) calloc (nc*wide, sizeof *mrow); merror (mrow, "phase_one_flat_field()"); for (y=0; y < head...
0
264,719
bool MaybeReplaceRankOp(const Node* n, const std::vector<PartialTensorShape>& input_shapes, std::unordered_map<const Node*, std::vector<Tensor>>* shape_replacement_map) { CHECK_EQ(input_shapes.size(), 1); if (input_shapes[0].unknown_rank())...
0
417,125
bool PlayerGeneric::isInitialized() const { if (mixer) return mixer->isInitialized(); return false; }
0
343,163
static int esp4_err(struct sk_buff *skb, u32 info) { struct net *net = dev_net(skb->dev); const struct iphdr *iph = (const struct iphdr *)skb->data; struct ip_esp_hdr *esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); struct xfrm_state *x; switch (icmp_hdr(skb)->type) { case ICMP_DEST_UNREACH: if (icmp_hd...
0
223,465
static SLJIT_INLINE PCRE2_SPTR compile_control_verb_matchingpath(compiler_common *common, PCRE2_SPTR cc, backtrack_common *parent) { DEFINE_COMPILER; backtrack_common *backtrack; PCRE2_UCHAR opcode = *cc; PCRE2_SPTR ccend = cc + 1; if (opcode == OP_COMMIT_ARG || opcode == OP_PRUNE_ARG || opcode == OP_SKIP_ARG || o...
0
289,312
static void snd_pcm_oss_look_for_setup(struct snd_pcm *pcm, int stream, const char *task_name, struct snd_pcm_oss_setup *rsetup) { struct snd_pcm_oss_setup *setup; mutex_lock(&pcm->streams[stream].oss.setup_mutex); do { for (setup = pcm->streams[stream].oss.setup_list; setup; setup = se...
0
223,416
static PCRE2_SPTR compile_iterator_matchingpath(compiler_common *common, PCRE2_SPTR cc, backtrack_common *parent) { DEFINE_COMPILER; backtrack_common *backtrack; PCRE2_UCHAR opcode; PCRE2_UCHAR type; sljit_u32 max = 0, exact; sljit_s32 early_fail_ptr = PRIVATE_DATA(cc + 1); sljit_s32 early_fail_type; BOOL charpos_enabl...
0
512,631
Item* get_copy(THD *thd) { return 0; }
0
508,381
bool setup_on_expr(THD *thd, TABLE_LIST *table, bool is_update) { uchar buff[STACK_BUFF_ALLOC]; // Max argument in function if (check_stack_overrun(thd, STACK_MIN_SIZE, buff)) return TRUE; // Fatal error flag is set! for(; table; table= table->next_local) { TABLE_LIST *embedded; /* The table at the...
0
357,676
SQInstance *SQClass::CreateInstance() { if(!_locked) Lock(); return SQInstance::Create(_opt_ss(this),this); }
0
463,030
extract_argv (EvDocument *document, gint page) { ComicsDocument *comics_document = COMICS_DOCUMENT (document); char **argv; char *command_line, *quoted_archive, *quoted_filename; GError *err = NULL; if (g_strrstr (comics_document->page_names->pdata[page], "--checkpoint-action=")) { g_warning ("File unsupported...
0
236,152
GF_Err blnk_box_read(GF_Box *s, GF_BitStream *bs) { GF_TextBlinkBox*ptr = (GF_TextBlinkBox*)s; ISOM_DECREASE_SIZE(ptr, 4) ptr->startcharoffset = gf_bs_read_u16(bs); ptr->endcharoffset = gf_bs_read_u16(bs); return GF_OK; }
0
248,295
DLLIMPORT int cfg_setfloat(cfg_t *cfg, const char *name, double value) { return cfg_setnfloat(cfg, name, value, 0); }
0
272,366
digest_get_signature_oid(cms_context *cms) { int i = cms->selected_digest; return digest_params[i].signature_tag; }
0
329,881
_mono_spans (void *abstract_renderer, int y, int h, 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_image_composite32 (r->op, r->src, ...
0
500,662
static void sftp_set_error(sftp_session sftp, int errnum) { if (sftp != NULL) { sftp->errnum = errnum; } }
0
410,080
static int hid_debug_rdesc_open(struct inode *inode, struct file *file) { return single_open(file, hid_debug_rdesc_show, inode->i_private); }
0
344,735
opt_array_append2(const char *file, const int line, const char *directive, char ***array, int **iarray, u_int *lp, const char *s, int i) { if (*lp >= INT_MAX) fatal("%s line %d: Too many %s entries", file, line, directive); if (iarray != NULL) { *iarray = xrecallocarray(*iarray, *lp, *lp + 1, sizeof(*...
0
359,473
bgp_default_update_send (struct peer *peer, struct attr *attr, afi_t afi, safi_t safi, struct peer *from) { struct stream *s; struct stream *packet; struct prefix p; unsigned long pos; bgp_size_t total_attr_len; char attrstr[BUFSIZ]; char buf[BUFSIZ]; #ifdef DISABLE_BGP_ANNOUNCE return; #endif /* D...
0
234,150
get_type_abbrev_from_form (unsigned long form, unsigned long uvalue, dwarf_vma cu_offset, unsigned char *cu_end, const struct dwarf_section *section, unsigned long *abbrev_num_return, unsigned char **data_return, abbrev_map **map_return) { unsigned long abbrev_number; abb...
0
243,982
GF_Err stsz_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 i; GF_SampleSizeBox *ptr = (GF_SampleSizeBox *)s; e = gf_isom_full_box_write(s, bs); if (e) return e; //in both versions this is still valid if (ptr->type == GF_ISOM_BOX_TYPE_STSZ) { gf_bs_write_u32(bs, ptr->sampleSize); } else { gf_bs_writ...
0
234,863
void btrfs_commit_device_sizes(struct btrfs_transaction *trans) { struct btrfs_device *curr, *next; ASSERT(trans->state == TRANS_STATE_COMMIT_DOING); if (list_empty(&trans->dev_update_list)) return; /* * We don't need the device_list_mutex here. This list is owned by the * transaction and the transaction ...
0
223,388
static SLJIT_INLINE BOOL fast_forward_first_n_chars(compiler_common *common) { DEFINE_COMPILER; struct sljit_label *start; struct sljit_jump *match; fast_forward_char_data chars[MAX_N_CHARS]; sljit_s32 offset; PCRE2_UCHAR mask; PCRE2_UCHAR *char_set, *char_set_end; int i, max, from; int range_right = -1, range_len; slj...
0
261,933
njs_encode_base64url(njs_str_t *dst, const njs_str_t *src) { static u_char basis64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; njs_encode_base64_core(dst, src, basis64, 0); }
0
442,819
static char *file2string(FILE *file) { char buffer[256]; char *ptr; char *string=NULL; size_t len=0; size_t stringlen; if(file) { while(fgets(buffer, sizeof(buffer), file)) { ptr= strchr(buffer, '\r'); if(ptr) *ptr=0; ptr= strchr(buffer, '\n'); if(ptr) *ptr=0; ...
0
387,746
Method* InstanceKlass::lookup_method_in_ordered_interfaces(Symbol* name, Symbol* signature) const { Method* m = NULL; if (default_methods() != NULL) { m = find_method(default_methods(), name, signature); } // Look up interfaces if (m == NULL) { ...
0
437,675
static int cx23888_ir_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg) { struct cx23888_ir_state *state = to_state(sd); u32 addr = CX23888_IR_REG_BASE + (u32) reg->reg; if ((addr & 0x3) != 0) return -EINVAL; if (addr < CX23888_IR_CNTRL_REG || addr > CX23888_IR_LEARN_REG) return -EINVAL; ...
0
248,301
DLLIMPORT cfg_bool_t cfg_getnbool(cfg_t *cfg, const char *name, unsigned int index) { return cfg_opt_getnbool(cfg_getopt(cfg, name), index); }
0
262,089
StatsPartitionKey(const int32_t node_id, const int32_t feature_dim, const int32_t bucket_id) : node_id(node_id), feature_dim(feature_dim), bucket_id(bucket_id) {}
0
458,991
HTTP_GetHdrPack(struct worker *wrk, struct objcore *oc, hdr_t hdr) { const char *ptr; unsigned l; CHECK_OBJ_NOTNULL(wrk, WORKER_MAGIC); CHECK_OBJ_NOTNULL(oc, OBJCORE_MAGIC); AN(hdr); l = hdr[0]; assert(l > 0); assert(l == strlen(hdr + 1)); assert(hdr[l] == ':'); hdr++; if (hdr[0] == ':') { /* Special ca...
0
513,142
static void restore_ptr_backup(uint n, st_ptr_backup *backup) { while (n--) (backup++)->restore(); }
0
234,128
range_entry_compar (const void *ap, const void *bp) { const struct range_entry *a_re = (const struct range_entry *) ap; const struct range_entry *b_re = (const struct range_entry *) bp; const dwarf_vma a = a_re->ranges_offset; const dwarf_vma b = b_re->ranges_offset; return (a > b) - (b > a); }
0
221,685
bool Socket::writeChunkTrailer( String &trailer) { std::string hexs ("0\r\n"); #ifdef CHUNKDEBUG std::cerr << thread_id << "writeChunk size=" << hexs << std::endl; #endif if(writeString(hexs.c_str()) && writeToSocket(trailer.c_str(),trailer.length(),0,timeout) && writeString("\r\n")) return true; ...
0
244,336
GF_Box *vwid_box_new() { ISOM_DECL_BOX_ALLOC(GF_ViewIdentifierBox, GF_ISOM_BOX_TYPE_VWID); return (GF_Box *)tmp; }
0
90,885
void ClientUsageTracker::AddCachedOrigin( const GURL& origin, int64 usage) { std::string host = net::GetHostOrSpecFromURL(origin); UsageMap::iterator iter = cached_usage_[host]. insert(UsageMap::value_type(origin, 0)).first; int64 old_usage = iter->second; iter->second = usage; int64 delta = usage -...
0
247,579
TEST_P(SslSocketTest, CertificatesWithPassword) { envoy::config::listener::v3::Listener listener; envoy::config::listener::v3::FilterChain* filter_chain = listener.add_filter_chains(); envoy::extensions::transport_sockets::tls::v3::DownstreamTlsContext tls_context; envoy::extensions::transport_sockets::tls::v3:...
0
484,784
static void xennet_maybe_wake_tx(struct netfront_queue *queue) { struct net_device *dev = queue->info->netdev; struct netdev_queue *dev_queue = netdev_get_tx_queue(dev, queue->id); if (unlikely(netif_tx_queue_stopped(dev_queue)) && netfront_tx_slot_available(queue) && likely(netif_running(dev))) netif_t...
0
338,170
void WasmBinaryBuilder::visitUnreachable(Unreachable* curr) { BYN_TRACE("zz node: Unreachable\n"); }
0
231,726
virtual bool getDisableMigration() { return true; }
0
223,413
static void do_getucdtype(compiler_common *common) { /* Search the UCD record for the character comes in TMP1. Returns chartype in TMP1 and UCD offset in TMP2. */ DEFINE_COMPILER; #if PCRE2_CODE_UNIT_WIDTH == 32 struct sljit_jump *jump; #endif #if defined SLJIT_DEBUG && SLJIT_DEBUG /* dummy_ucd_record */ const ucd_rec...
0
430,442
static bool validate_masked(u8 *data, int len) { u8 *mask = data + len; while (len--) if (*data++ & ~*mask++) return false; return true; }
0
247,763
void RWFunction::AssignFrom(const NameValuePairs &source) { AssignFromHelper(this, source) CRYPTOPP_SET_FUNCTION_ENTRY(Modulus) ; }
0
502,697
long SSL_SESSION_get_time(const SSL_SESSION *s) { if (s == NULL) return (0); return (s->time); }
0
222,529
string FunctionLibraryDefinition::UniqueFunctionName(StringPiece prefix) const { tf_shared_lock l(mu_); int index = 0; string name = strings::StrCat(prefix, index); while (function_defs_.find(name) != function_defs_.end()) { ++index; name = strings::StrCat(prefix, index); } return name; }
0
369,271
static int io_buffer_account_pin(struct io_ring_ctx *ctx, struct page **pages, int nr_pages, struct io_mapped_ubuf *imu, struct page **last_hpage) { int i, ret; imu->acct_pages = 0; for (i = 0; i < nr_pages; i++) { if (!PageCompound(pages[i])) { imu->acct_pages++; } else { struct page *hpage; ...
0
244,206
void sgpd_del_entry(u32 grouping_type, void *entry) { switch (grouping_type) { case GF_ISOM_SAMPLE_GROUP_SYNC: case GF_ISOM_SAMPLE_GROUP_ROLL: case GF_ISOM_SAMPLE_GROUP_PROL: case GF_ISOM_SAMPLE_GROUP_RAP: case GF_ISOM_SAMPLE_GROUP_TELE: case GF_ISOM_SAMPLE_GROUP_SAP: gf_free(entry); return; case GF_ISOM_SA...
0
318,093
static int rsi_usb_load_data_master_write(struct rsi_hw *adapter, u32 base_address, u32 instructions_sz, u16 block_size, u8 *ta_firmware) { u16 num_blocks; u32 cur_indx, i; u8 temp_buf[256]; int status; num_blocks = instructions_sz / block_size; rsi_dbg(INFO_ZONE, "num_blocks: %d\n", num_blo...
0