idx
int64
func
string
target
int64
427,807
static void dump_ghcb(struct vcpu_svm *svm) { struct ghcb *ghcb = svm->ghcb; unsigned int nbits; /* Re-use the dump_invalid_vmcb module parameter */ if (!dump_invalid_vmcb) { pr_warn_ratelimited("set kvm_amd.dump_invalid_vmcb=1 to dump internal KVM state.\n"); return; } nbits = sizeof(ghcb->save.valid_bitma...
0
389,760
cmdopts_t *cmdopts_parse(int argc, char **argv) { enum { CMDOPT_HELP = 0, CMDOPT_VERBOSE, CMDOPT_QUIET, CMDOPT_INFILE, CMDOPT_INFMT, CMDOPT_INOPT, CMDOPT_OUTFILE, CMDOPT_OUTFMT, CMDOPT_OUTOPT, CMDOPT_VERSION, CMDOPT_DEBUG, CMDOPT_CMPTNO, CMDOPT_SRGB, CMDOPT_MAXMEM, CMDOPT_LIST_ENABLED_COD...
0
274,841
TEST(ComparisonsTest, QuantizedInt8GreaterEqualWithBroadcast) { const float kMin = -127.f; const float kMax = 127.f; std::vector<std::vector<int>> test_shapes = { {6}, {2, 3}, {2, 1, 3}, {1, 3, 1, 2}}; for (int i = 0; i < test_shapes.size(); ++i) { ComparisonOpModel model({TensorType_INT8, test_shapes...
0
247,655
TestUtilOptions& setExpectedExpirationTimePeerCert(const std::string& expected_expiration) { expected_expiration_peer_cert_ = expected_expiration; return *this; }
0
247,572
TEST_P(SslSocketTest, FailedClientCertificateSpkiVerificationNoCAWrongClientCertificate) { 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...
0
221,470
flatpak_run_get_pulse_machine_id (void) { static const char * const machine_ids[] = { "/etc/machine-id", "/var/lib/dbus/machine-id", }; gsize i; for (i = 0; i < G_N_ELEMENTS (machine_ids); i++) { g_autofree char *ret = NULL; if (g_file_get_contents (machine_ids[i], &ret, NULL, NULL))...
0
247,161
void gf_fs_post_task_ex(GF_FilterSession *fsess, gf_fs_task_callback task_fun, GF_Filter *filter, GF_FilterPid *pid, const char *log_name, void *udta, Bool is_configure, Bool force_direct_call) { GF_FSTask *task; Bool force_main_thread = GF_FALSE; Bool notified = GF_FALSE; assert(fsess); assert(task_fun); //onl...
0
244,214
void pdin_box_del(GF_Box *s) { GF_ProgressiveDownloadBox *ptr = (GF_ProgressiveDownloadBox*)s; if (ptr == NULL) return; if (ptr->rates) gf_free(ptr->rates); if (ptr->times) gf_free(ptr->times); gf_free(ptr); }
0
246,479
static size_t consume_limits_r(RBuffer *b, ut64 bound, struct r_bin_wasm_resizable_limits_t *out) { r_return_val_if_fail (b && out, 0); if (bound >= r_buf_size (b) || r_buf_tell (b) > bound || !out) { return 0; } ut32 i = r_buf_tell (b); if (!consume_u7_r (b, bound, &out->flags)) { return 0; } if (!consume_u...
0
218,808
MagickExport void XNoticeWidget(Display *display,XWindows *windows, const char *reason,const char *description) { #define DismissButtonText "Dismiss" #define Timeout 8 const char *text; int x, y; Status status; time_t timer; unsigned int height, width; size_t state;...
0
225,048
PQconnectdbParams(const char *const *keywords, const char *const *values, int expand_dbname) { PGconn *conn = PQconnectStartParams(keywords, values, expand_dbname); if (conn && conn->status != CONNECTION_BAD) (void) connectDBComplete(conn); return conn; }
0
218,740
static inline ssize_t ReadPSDString(Image *image,char *p,const size_t length) { ssize_t count; count=ReadBlob(image,length,(unsigned char *) p); if ((count == (ssize_t) length) && (image->endian != MSBEndian)) { char *q; q=p+length; for(--q; p < q; ++p, --q) { *p ...
0
244,138
GF_Err trgr_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem) { GF_TrackGroupBox *ptr = (GF_TrackGroupBox *)s; BOX_FIELD_LIST_ASSIGN(groups) return gf_list_add(ptr->groups, a); }
0
452,987
static int nft_dup_netdev_dump(struct sk_buff *skb, const struct nft_expr *expr) { struct nft_dup_netdev *priv = nft_expr_priv(expr); if (nft_dump_register(skb, NFTA_DUP_SREG_DEV, priv->sreg_dev)) goto nla_put_failure; return 0; nla_put_failure: return -1; }
0
223,442
static SLJIT_INLINE void compile_control_verb_backtrackingpath(compiler_common *common, struct backtrack_common *current) { DEFINE_COMPILER; PCRE2_UCHAR opcode = *current->cc; struct sljit_label *loop; struct sljit_jump *jump; if (opcode == OP_THEN || opcode == OP_THEN_ARG) { if (common->then_trap != NULL) { ...
0
513,182
static char *mysql_sys_var_char(THD* thd, int offset) { return (char *) intern_sys_var_ptr(thd, offset, true); }
0
427,177
static void fornum (LexState *ls, TString *varname, int line) { /* fornum -> NAME = exp,exp[,exp] forbody */ FuncState *fs = ls->fs; int base = fs->freereg; new_localvarliteral(ls, "(for state)"); new_localvarliteral(ls, "(for state)"); new_localvarliteral(ls, "(for state)"); new_localvar(ls, varname); ...
0
225,034
PQconnectdb(const char *conninfo) { PGconn *conn = PQconnectStart(conninfo); if (conn && conn->status != CONNECTION_BAD) (void) connectDBComplete(conn); return conn; }
0
484,714
MOBIBuffer * mobi_buffer_init_null(unsigned char *data, const size_t len) { MOBIBuffer *buf = malloc(sizeof(MOBIBuffer)); if (buf == NULL) { debug_print("%s", "Buffer allocation failed\n"); return NULL; } buf->data = data; buf->offset = 0; buf->maxlen = len; buf->error = MOBI_SUCCESS;...
0
482,495
getAChar(FileInfo *file) { /* Read a big endian, little endian or ASCII 8 file and convert it to * 16- or 32-bit unsigned integers */ int ch1 = 0, ch2 = 0; widechar character; if (file->encoding == ascii8) if (file->status == 2) { file->status++; return file->checkencoding[1]; } while ((ch1 = fgetc(fil...
0
294,483
d_lite_gc_mark(void *ptr) { union DateData *dat = ptr; if (simple_dat_p(dat)) rb_gc_mark(dat->s.nth); else { rb_gc_mark(dat->c.nth); rb_gc_mark(dat->c.sf); } }
0
336,150
static void ip6gre_tnl_link_config(struct ip6_tnl *t, int set_mtu) { struct net_device *dev = t->dev; struct __ip6_tnl_parm *p = &t->parms; struct flowi6 *fl6 = &t->fl.u.ip6; int t_hlen; if (dev->type != ARPHRD_ETHER) { memcpy(dev->dev_addr, &p->laddr, sizeof(struct in6_addr)); memcpy(dev->broadcast, &p->radd...
0
345,136
pxa3xx_gcu_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { unsigned long flags; struct pxa3xx_gcu_priv *priv = to_pxa3xx_gcu_priv(file); switch (cmd) { case PXA3XX_GCU_IOCTL_RESET: spin_lock_irqsave(&priv->spinlock, flags); pxa3xx_gcu_reset(priv); spin_unlock_irqrestore(&priv->spinlock, flags...
0
436,154
static bool io_poll_rewait(struct io_kiocb *req, struct io_poll_iocb *poll) __acquires(&req->ctx->completion_lock) { struct io_ring_ctx *ctx = req->ctx; if (unlikely(req->task->flags & PF_EXITING)) WRITE_ONCE(poll->canceled, true); if (!req->result && !READ_ONCE(poll->canceled)) { struct poll_table_struct pt ...
0
262,079
InstanceFeatureDimKey() : instance(-1), feature_dim(-1) {}
0
221,674
Socket::Socket() { sck = socket(AF_INET, SOCK_STREAM, 0); if (sck < 0) { s_errno = errno; } else { memset(&my_adr, 0, sizeof my_adr); memset(&peer_adr, 0, sizeof peer_adr); my_adr.sin_family = AF_INET; peer_adr.sin_family = AF_INET; peer_adr_length = sizeof(st...
0
231,054
void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely ) { Queue_t * const pxQueue = xQueue; /* This function should not be called by applicati...
0
482,558
passGetName(CharsString *passLine, int *passLinepos, CharsString *name) { name->length = 0; // a name is a sequence of characters in the ranges 'a'..'z' and 'A'..'Z' do { widechar c = passLine->chars[*passLinepos]; if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) { name->chars[name->length++] = c; (*p...
0
200,781
cvtchar(register const char *sp) /* convert a character to a terminfo push */ { unsigned char c = 0; int len; switch (*sp) { case '\\': switch (*++sp) { case '\'': case '$': case '\\': case '%': c = UChar(*sp); len = 2; break; case '\0': c = '\\'; len = 1; break; ca...
1
225,863
GF_Box *sdp_box_new() { ISOM_DECL_BOX_ALLOC(GF_SDPBox, GF_ISOM_BOX_TYPE_SDP); return (GF_Box *)tmp; }
0
294,441
d_lite_hour(VALUE self) { get_d1(self); return INT2FIX(m_hour(dat)); }
0
261,448
LIBDE265_INLINE static int luma_pos_to_ctbAddrRS(const seq_parameter_set* sps, int x,int y) { int ctbX = x >> sps->Log2CtbSizeY; int ctbY = y >> sps->Log2CtbSizeY; return ctbY * sps->PicWidthInCtbsY + ctbX; }
0
450,380
static void zrle_write_u8(VncState *vs, uint8_t value) { vnc_write_u8(vs, value); }
0
473,966
utf16le_is_mbc_newline(const UChar* p, const UChar* end, OnigEncoding enc ARG_UNUSED) { if (p + 1 < end) { if (*p == 0x0a && *(p+1) == 0x00) return 1; #ifdef USE_UNICODE_ALL_LINE_TERMINATORS if (( #ifndef USE_CRNL_AS_LINE_TERMINATOR *p == 0x0d || #endif *p == 0x85) && *(p+1) == 0x00) ...
0
234,249
print_dwarf_vma (dwarf_vma value, unsigned num_bytes) { printf ("%s ", dwarf_vmatoa_1 (NULL, value, num_bytes)); }
0
512,362
longlong val_time_packed(THD *thd) { DBUG_ASSERT(0); return 0; }
0
384,813
do_browse( int flags, // BROWSE_SAVE and BROWSE_DIR char_u *title, // title for the window char_u *dflt, // default file name (may include directory) char_u *ext, // extension added char_u *initdir, // initial directory, NULL for current dir or // when using path from "dflt" char_u *fil...
0
238,411
static int check_ptr_alignment(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int off, int size, bool strict_alignment_once) { bool strict = env->strict_alignment || strict_alignment_once; const char *pointer_desc = ""; switch (reg->type) { case PTR_TO_PACKET: case PTR_TO_PACKE...
0
512,276
bool check_cols(uint c) { if (cols() != c) { my_error(ER_OPERAND_COLUMNS, MYF(0), c); return true; } return false; }
0
242,969
static int ssl_get_remaining_space_in_datagram( mbedtls_ssl_context const *ssl ) { size_t const bytes_written = ssl->out_left; size_t const mtu = ssl_get_maximum_datagram_size( ssl ); /* Double-check that the write-index hasn't gone * past what we can transmit in a single datagram. */ if...
0
291,826
static inline void path_it_init(struct path_it *it, struct rtrs_clt_sess *clt) { INIT_LIST_HEAD(&it->skip_list); it->clt = clt; it->i = 0; if (clt->mp_policy == MP_POLICY_RR) it->next_path = get_next_path_rr; else if (clt->mp_policy == MP_POLICY_MIN_INFLIGHT) it->next_path = get_next_path_min_inflight; else ...
0
244,094
void paen_box_del(GF_Box *s) { gf_free(s); }
0
265,424
static GroupInfo createGroup(std::string comment,int lineNo) { //store info related to group GroupInfo groupInfo; std::string finalGroupName; boost::regex regex("\\[(.*?)\\]"); boost::match_results<std::string::const_iterator> match; while(boost::regex_search(comment, match, regex)) { std::string groupName = ...
0
226,338
GF_Err udta_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 i; GF_UserDataMap *map; GF_UserDataBox *ptr = (GF_UserDataBox *)s; e = gf_isom_box_write_header(s, bs); if (e) return e; i=0; while ((map = (GF_UserDataMap *)gf_list_enum(ptr->recordList, &i))) { //warning: here we are not passing the actual...
0
310,092
usage(void) { #define DATA(s) s "\n" static const char options_string[] = { DATA("Options:") DATA(" -0 format translation output all capabilities on one line") DATA(" -1 format translation output one capability per line") #if NCURSES_XNAMES DATA(" -a retain commented-out capabilit...
0
261,937
njs_encode_base64(njs_str_t *dst, const njs_str_t *src) { static u_char basis64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; njs_encode_base64_core(dst, src, basis64, 1); }
0
231,025
BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t * const pxHigherPriorityTaskWoken ) { BaseType_t xReturn; UBaseType_t uxSavedInterruptStatus; Queue_t * const pxQueue = xQueue; /* Similar to xQueueGenericSendFromISR() but used with semaphores where the...
0
223,406
static BOOL optimize_class(compiler_common *common, const sljit_u8 *bits, BOOL nclass, BOOL invert, jump_list **backtracks) { /* May destroy TMP1. */ if (optimize_class_ranges(common, bits, nclass, invert, backtracks)) return TRUE; return optimize_class_chars(common, bits, nclass, invert, backtracks); }
0
234,729
static int relocating_repair_kthread(void *data) { struct btrfs_block_group *cache = (struct btrfs_block_group *)data; struct btrfs_fs_info *fs_info = cache->fs_info; u64 target; int ret = 0; target = cache->start; btrfs_put_block_group(cache); if (!btrfs_exclop_start(fs_info, BTRFS_EXCLOP_BALANCE)) { btrfs_...
0
220,423
mrb_ary_size(mrb_state *mrb, mrb_value self) { struct RArray *a = mrb_ary_ptr(self); return mrb_int_value(mrb, ARY_LEN(a)); }
0
512,593
virtual bool is_evaluable_expression() const { return true; }
0
224,201
void unsubscribeAll(Subscriber *subscriber, bool mayFlush = true) { if (subscriber) { for (Topic *topic : subscriber->subscriptions) { /* We do not want to flush when closing a socket, it makes no sense to do so */ /* If this topic is triggered, drain the tree b...
0
512,347
const Type_handler *type_handler() const { return Type_handler::get_handler_by_field_type(date_time_field_type); }
0
338,095
void WasmBinaryBuilder::getResizableLimits(Address& initial, Address& max, bool& shared, Type& indexType, Address defaultIfNoMax) { auto flags = g...
0
240,268
set_y_previous(yankreg_T *yreg) { y_previous = yreg; }
0
206,625
raptor_xml_writer_start_element_common(raptor_xml_writer* xml_writer, raptor_xml_element* element, int auto_empty) { raptor_iostream* iostr = xml_writer->iostr; raptor_namespace_stack *nstack = xml_writer->nstack; int depth = xml_writer...
1
369,334
static int io_madvise(struct io_kiocb *req, unsigned int issue_flags) { #if defined(CONFIG_ADVISE_SYSCALLS) && defined(CONFIG_MMU) struct io_madvise *ma = &req->madvise; int ret; if (issue_flags & IO_URING_F_NONBLOCK) return -EAGAIN; ret = do_madvise(current->mm, ma->addr, ma->len, ma->advice); if (ret < 0) ...
0
224,165
void Compute(OpKernelContext* ctx) override { StagingMap<Ordered>* map = nullptr; OP_REQUIRES_OK(ctx, GetStagingMap(ctx, def(), &map)); core::ScopedUnref scope(map); typename StagingMap<Ordered>::Tuple tuple; const Tensor* key_tensor; const Tensor* indices_tensor; OP_REQUIRES_OK(ctx, ctx...
0
238,465
static bool register_is_bounded(struct bpf_reg_state *reg) { return reg->type == SCALAR_VALUE && !__is_scalar_unbounded(reg); }
0
508,388
bool setup_tables(THD *thd, Name_resolution_context *context, List<TABLE_LIST> *from_clause, TABLE_LIST *tables, List<TABLE_LIST> &leaves, bool select_insert, bool full_table_list) { uint tablenr= 0; List_iterator<TABLE_LIST> ti(leaves); TABLE_LIST *table_list...
0
230,301
njs_array_prototype_sort(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { int64_t i, und, len, nlen, length; njs_int_t ret, fast_path; njs_array_t *array; njs_value_t *this, *comparefn, *start, *strings; njs_array_sort_ctx...
0
427,727
cdf_read_sector(const cdf_info_t *info, void *buf, size_t offs, size_t len, const cdf_header_t *h, cdf_secid_t id) { size_t ss = CDF_SEC_SIZE(h); size_t pos; if (SIZE_T_MAX / ss < CAST(size_t, id)) return -1; pos = CDF_SEC_POS(h, id); assert(ss == len); return cdf_read(info, CAST(off_t, pos), RCAST(char *...
0
310,012
TPUTS_PROTO(outc, c) { int rc = c; if (interrupted) { char tmp = (char) c; if (write(STDOUT_FILENO, &tmp, (size_t) 1) == -1) rc = EOF; } else { rc = putc(c, stdout); } TPUTS_RETURN(rc); }
0
267,920
void ogs_nas_5gs_mobile_identity_guti_to_nas_guti( ogs_nas_5gs_mobile_identity_guti_t *mobile_identity_guti, ogs_nas_5gs_guti_t *nas_guti) { ogs_assert(mobile_identity_guti); ogs_assert(nas_guti); memset(nas_guti, 0, sizeof(*nas_guti)); memcpy(&nas_guti->nas_plmn_id, &mobil...
0
219,955
int callback_glewlwyd_get_client_module (const struct _u_request * request, struct _u_response * response, void * client_data) { struct config_elements * config = (struct config_elements *)client_data; json_t * j_module; j_module = get_client_module(config, u_map_get(request->map_url, "name")); if (check_res...
0
359,638
DEFUN (bgp_deterministic_med, bgp_deterministic_med_cmd, "bgp deterministic-med", "BGP specific commands\n" "Pick the best-MED path among paths advertised from the neighboring AS\n") { struct bgp *bgp; bgp = vty->index; bgp_flag_set (bgp, BGP_FLAG_DETERMINISTIC_MED); return CMD_SUCC...
0
238,435
static void find_good_pkt_pointers(struct bpf_verifier_state *vstate, struct bpf_reg_state *dst_reg, enum bpf_reg_type type, bool range_right_open) { int new_range, i; if (dst_reg->off < 0 || (dst_reg->off == 0 && range_right_open)) /* This doesn't give us any range */ return; if (dst...
0
412,106
new_rrset(struct regional* region, uint16_t rrtype, uint16_t rrclass) { struct packed_rrset_data* pd; struct ub_packed_rrset_key* rrset = regional_alloc_zero( region, sizeof(*rrset)); if(!rrset) { log_err("out of memory"); return NULL; } rrset->entry.key = rrset; pd = regional_alloc_zero(region, sizeof(*pd)...
0
366,170
struct vfsmount *fc_mount(struct fs_context *fc) { int err = vfs_get_tree(fc); if (!err) { up_write(&fc->root->d_sb->s_umount); return vfs_create_mount(fc); } return ERR_PTR(err); }
0
229,163
int virtio_serial_open(VirtIOSerialPort *port) { /* Don't allow opening an already-open port */ if (port->host_connected) { return 0; } /* Send port open notification to the guest */ port->host_connected = true; send_control_event(port->vser, port->id, VIRTIO_CONSOLE_PORT_OPEN, 1); ...
0
289,304
static __poll_t snd_pcm_oss_poll(struct file *file, poll_table * wait) { struct snd_pcm_oss_file *pcm_oss_file; __poll_t mask; struct snd_pcm_substream *psubstream = NULL, *csubstream = NULL; pcm_oss_file = file->private_data; psubstream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK]; csubstream = pcm_oss_...
0
384,786
f_exepath(typval_T *argvars, typval_T *rettv) { char_u *p = NULL; if (in_vim9script() && check_for_nonempty_string_arg(argvars, 0) == FAIL) return; (void)mch_can_exe(tv_get_string(&argvars[0]), &p, TRUE); rettv->v_type = VAR_STRING; rettv->vval.v_string = p; }
0
473,951
code_to_mbclen(OnigCodePoint code, OnigEncoding enc ARG_UNUSED) { if (ONIGENC_IS_CODE_ASCII(code)) return 1; else if (code > 0xffffffff) return 0; else if ((code & 0xff000000) >= 0x80000000) return 4; else if ((code & 0xff0000) >= 0x800000) return 3; else if ((code & 0xff00) >= 0x8000) return 2; else ...
0
251,946
inline void BinaryBroadcastFiveFold(const ArithmeticParams& unswitched_params, const RuntimeShape& unswitched_input1_shape, const T* unswitched_input1_data, const RuntimeShape& unswitched_input2_shape, ...
0
317,000
static int selinux_fs_context_parse_param(struct fs_context *fc, struct fs_parameter *param) { struct fs_parse_result result; int opt, rc; opt = fs_parse(fc, selinux_fs_parameters, param, &result); if (opt < 0) return opt; rc = selinux_add_opt(opt, param->string, &fc->security); if (!rc) { param->str...
0
225,508
void SwapFanoutsMapValues(FanoutsMap* fanouts, const MutableGraphView::OutputPort& from_port, const FanoutsMap::iterator& from_fanouts, const MutableGraphView::OutputPort& to_port, const FanoutsMap::iterator& to_fano...
0
234,185
display_loclists_list (struct dwarf_section * section, unsigned char ** start_ptr, unsigned int debug_info_entry, dwarf_vma offset, dwarf_vma base_address, unsigned char ** vstart_ptr, int has...
0
291,796
static struct rtrs_clt_path *alloc_path(struct rtrs_clt_sess *clt, const struct rtrs_addr *path, size_t con_num, u32 nr_poll_queues) { struct rtrs_clt_path *clt_path; int err = -ENOMEM; int cpu; size_t total_con; clt_path = kzalloc(sizeof(*clt_path), GFP_KERNEL); if (!clt_path) goto err; /* * irq...
0
405,332
__xfrm_policy_eval_candidates(struct hlist_head *chain, struct xfrm_policy *prefer, const struct flowi *fl, u8 type, u16 family, int dir, u32 if_id) { u32 priority = prefer ? prefer->priority : ~0u; struct xfrm_policy *pol; if (!chain) return NULL; hlist_for_each_entry_rcu(pol, chain,...
0
310,075
can_clear_with(NCURSES_SP_DCLx ARG_CH_T ch) { if (!back_color_erase && SP_PARM->_coloron) { #if NCURSES_EXT_FUNCS int pair; if (!SP_PARM->_default_color) return FALSE; if (!(isDefaultColor(SP_PARM->_default_fg) && isDefaultColor(SP_PARM->_default_bg))) return FALSE; if ((pair = GetPair(CHDEREF...
0
474,440
ObjectIsSequence( OBJECT *object // IN: handle to be checked ) { pAssert(object != NULL); return (object->attributes.hmacSeq == SET || object->attributes.hashSeq == SET || object->attributes.eventSeq == SET); }
0
211,832
doit (struct query *z, int state) { char key[257]; char misc[20], header[12]; char *buf = 0, *cached = 0; const char *whichserver = 0; unsigned int rcode = 0; unsigned int posanswers = 0; unsigned int len = 0, cachedlen = 0; uint16 numanswers = 0; uint16 numauthority = 0; unsig...
1
333,051
pim_equal(nfa_pim_T *one, nfa_pim_T *two) { int one_unused = (one == NULL || one->result == NFA_PIM_UNUSED); int two_unused = (two == NULL || two->result == NFA_PIM_UNUSED); if (one_unused) // one is unused: equal when two is also unused return two_unused; if (two_unused) // one is used and two is n...
0
387,623
static int snd_ctl_elem_init_enum_names(struct user_element *ue) { char *names, *p; size_t buf_len, name_len; unsigned int i; const uintptr_t user_ptrval = ue->info.value.enumerated.names_ptr; buf_len = ue->info.value.enumerated.names_length; if (buf_len > 64 * 1024) return -EINVAL; if (check_user_elem_overf...
0
331,780
void QPaintEngineEx::setState(QPainterState *s) { QPaintEngine::state = s; }
0
462,528
std::string quote_empty(const std::string& input) { if (input.empty()) { return "''"; } else { return input; } }
0
225,081
PQuser(const PGconn *conn) { if (!conn) return NULL; return conn->pguser; }
0
412,128
dnsc_shared_secrets_delkeyfunc(void *k, void* ATTR_UNUSED(arg)) { struct shared_secret_cache_key* ssk = (struct shared_secret_cache_key*)k; lock_rw_destroy(&ssk->entry.lock); free(ssk); }
0
208,535
static RzList *relocs(RzBinFile *bf) { rz_return_val_if_fail(bf && bf->o, NULL); QnxObj *qo = bf->o->bin_obj; return rz_list_clone(qo->fixups); }
1
387,572
static ssize_t snd_ctl_read(struct file *file, char __user *buffer, size_t count, loff_t * offset) { struct snd_ctl_file *ctl; int err = 0; ssize_t result = 0; ctl = file->private_data; if (snd_BUG_ON(!ctl || !ctl->card)) return -ENXIO; if (!ctl->subscribed) return -EBADFD; if (count < sizeof(struct ...
0
241,313
mrb_init_class(mrb_state *mrb) { struct RClass *bob; /* BasicObject */ struct RClass *obj; /* Object */ struct RClass *mod; /* Module */ struct RClass *cls; /* Class */ /* boot class hierarchy */ bob = boot_defclass(mrb, 0); obj = boot_defclass(mrb, bob); mrb->obje...
0
506,437
static void rpa_user_response(struct rpa_auth_request *request, unsigned char digest[STATIC_ARRAY MD5_RESULTLEN]) { struct md5_context ctx; unsigned char z[48]; memset(z, 0, sizeof(z)); md5_init(&ctx); md5_update(&ctx, request->pwd_md5, sizeof(request->pwd_md5)); md5_update(&ctx, z, sizeof(z)); md5_up...
0
512,847
const Type_handler *real_type_handler() const { // Should not be called, Item_blob is used for SHOW purposes only. DBUG_ASSERT(0); return &type_handler_varchar; }
0
489,220
int hfsplus_block_free(struct super_block *sb, u32 offset, u32 count) { struct page *page; struct address_space *mapping; __be32 *pptr, *curr, *end; u32 mask, len, pnr; int i; /* is there any actual work to be done? */ if (!count) return 0; dprint(DBG_BITMAP, "block_free: %u,%u\n", offset, count); /* are a...
0
482,493
lou_readCharFromFile(const char *fileName, int *mode) { /* Read a character from a file, whether big-endian, little-endian or * ASCII8 */ int ch; static FileInfo file; if (fileName == NULL) return 0; if (*mode == 1) { *mode = 0; file.fileName = fileName; file.encoding = noEncoding; file.status = 0; fil...
0
447,051
std::string XPathIo::writeDataToFile(const std::string& orgPath) { Protocol prot = fileProtocol(orgPath); // generating the name for temp file. std::time_t timestamp = std::time(NULL); std::stringstream ss; ss << timestamp << XPathIo::TEMP_FILE_EXT; std::string path ...
0
500,045
static void* kssl_calloc(size_t nmemb, size_t size) { void* p; p=OPENSSL_malloc(nmemb*size); if (p){ memset(p, 0, nmemb*size); } return p; }
0
223,426
static void do_utfpeakcharback_invalid(compiler_common *common) { /* Peak a character back. Does not modify STR_PTR. */ DEFINE_COMPILER; struct sljit_jump *jump; struct sljit_jump *exit_invalid[3]; sljit_emit_fast_enter(compiler, RETURN_ADDR, 0); jump = CMP(SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, 0xe000); OP2(SLJIT_...
0
366,318
long do_mount(const char *dev_name, const char __user *dir_name, const char *type_page, unsigned long flags, void *data_page) { struct path path; int ret; ret = user_path_at(AT_FDCWD, dir_name, LOOKUP_FOLLOW, &path); if (ret) return ret; ret = path_mount(dev_name, &path, type_page, flags, data_page); path_pu...
0
195,073
void DecodePngV2(OpKernelContext* context, StringPiece input) { int channel_bits = (data_type_ == DataType::DT_UINT8) ? 8 : 16; png::DecodeContext decode; OP_REQUIRES( context, png::CommonInitDecode(input, channels_, channel_bits, &decode), errors::InvalidArgument("Invalid PNG. Failed to i...
1