idx
int64
func
string
target
int64
512,308
void Item_func_like::cleanup() { canDoTurboBM= FALSE; Item_bool_func2::cleanup(); }
0
398,488
static inline ut64 dwarf_read_offset(bool is_64bit, bool big_endian, const ut8 **buf, const ut8 *buf_end) { ut64 result; if (is_64bit) { result = READ64(*buf); } else { result = READ32(*buf); } return result; }
0
267,978
static bool __isDataSection(RBinFile *a, RBinSection *s) { if (s->has_strings || s->is_data) { return true; } // Rust return strstr (s->name, "_const"); }
0
344,254
static const char *getfuncname (lua_State *L, CallInfo *ci, const char **name) { /* calling function is a known function? */ if (ci != NULL && !(ci->callstatus & CIST_TAIL)) return funcnamefromcall(L, ci->previous, name); else return NULL; /* no way to find a name */ }
0
430,351
int seq_release_private(struct inode *inode, struct file *file) { struct seq_file *seq = file->private_data; kfree(seq->private); seq->private = NULL; return seq_release(inode, file); }
0
223,460
static void detect_partial_match_to(compiler_common *common, struct sljit_label *label) { DEFINE_COMPILER; CMPTO(SLJIT_LESS, STR_PTR, 0, STR_END, 0, label); process_partial_match(common); }
0
445,921
save_archive_thread (GSimpleAsyncResult *result, GObject *object, GCancellable *cancellable) { SaveData *save_data; LoadData *load_data; struct archive *a, *b; struct archive_entry *r_entry; int ra, rb; save_data = g_simple_async_resu...
0
208,076
RList *r_bin_ne_get_entrypoints(r_bin_ne_obj_t *bin) { RList *entries = r_list_newf (free); if (!entries) { return NULL; } RList *segments = r_bin_ne_get_segments (bin); if (!segments) { r_list_free (entries); return NULL; } if (bin->ne_header->csEntryPoint) { RBinAddr *entry = R_NEW0 (RBinAddr); if (!...
1
343,234
void usleep2(const unsigned long microsec) { disablesignals(); usleep(microsec); enablesignals(); }
0
502,732
void SSL_SESSION_free(SSL_SESSION *ss) { int i; if (ss == NULL) return; i = CRYPTO_add(&ss->references, -1, CRYPTO_LOCK_SSL_SESSION); #ifdef REF_PRINT REF_PRINT("SSL_SESSION", ss); #endif if (i > 0) return; #ifdef REF_CHECK if (i < 0) { fprintf(stderr, "SSL_SESSION_free...
0
276,962
OpenOutput(const char* filename_pattern, unsigned int segment_number) { AP4_ByteStream* output = NULL; char filename[4096]; sprintf(filename, filename_pattern, segment_number); AP4_Result result = AP4_FileByteStream::Create(filename, AP4_FileByteStream::STREAM_MODE_WRITE, output); if (AP4_FAILED(res...
0
225,451
string GeneratedNameForIdentityConsumingSwitch( const MutableGraphView::OutputPort& fanin) { return AddPrefixToNodeName( absl::StrCat(fanin.node->name(), "_", fanin.port_id), kMutableGraphViewCtrl); }
0
241,365
int64 GetCostPerUnit(const TensorShapes& input_matrix_shapes) const final { double rows = static_cast<double>(input_matrix_shapes[0].dim_size(0)); double num_rhss = static_cast<double>(input_matrix_shapes[1].dim_size(1)); double cost = rows * rows * (rows + num_rhss); return cost >= static_cast<double...
0
455,335
setup_ignore_patterns (ivp) struct ignorevar *ivp; { int numitems, maxitems, ptr; char *colon_bit, *this_ignoreval; struct ign *p; this_ignoreval = get_string_value (ivp->varname); /* If nothing has changed then just exit now. */ if ((this_ignoreval && ivp->last_ignoreval && STREQ (this_ignoreval, iv...
0
223,450
static BOOL optimize_class_ranges(compiler_common *common, const sljit_u8 *bits, BOOL nclass, BOOL invert, jump_list **backtracks) { /* May destroy TMP1. */ DEFINE_COMPILER; int ranges[MAX_CLASS_RANGE_SIZE]; sljit_u8 bit, cbit, all; int i, byte, length = 0; bit = bits[0] & 0x1; /* All bits will be zero or one (since b...
0
238,806
pat_has_uppercase(char_u *pat) { char_u *p = pat; magic_T magic_val = MAGIC_ON; // get the magicness of the pattern (void)skip_regexp_ex(pat, NUL, magic_isset(), NULL, NULL, &magic_val); while (*p != NUL) { int l; if (has_mbyte && (l = (*mb_ptr2len)(p)) > 1) { if (enc_utf8 && utf_isu...
0
517,444
static void do_home_filesystem(HttpResponse res) { char buf[STRLEN]; boolean_t on = true; boolean_t header = true; for (Service_T s = servicelist_conf; s; s = s->next_conf) { if (s->type != Service_Filesystem) continue; if (header)...
0
226,440
std::unique_ptr<IteratorBase> MakeIteratorInternal( const string& prefix) const override { return absl::make_unique<Iterator>(typename Iterator::Params{ this, strings::StrCat(prefix, "::SparseTensorSlice")}); }
0
343,125
static void esp_output_done_esn(struct crypto_async_request *base, int err) { struct sk_buff *skb = base->data; esp_output_restore_header(skb); esp_output_done(base, err); }
0
263,514
static int sco_sock_shutdown(struct socket *sock, int how) { struct sock *sk = sock->sk; int err = 0; BT_DBG("sock %p, sk %p", sock, sk); if (!sk) return 0; sock_hold(sk); lock_sock(sk); if (!sk->sk_shutdown) { sk->sk_shutdown = SHUTDOWN_MASK; sco_sock_clear_timer(sk); __sco_sock_close(sk); if (so...
0
307,865
ciEnv::ciEnv(CompileTask* task, int system_dictionary_modification_counter) : _ciEnv_arena(mtCompiler) { VM_ENTRY_MARK; // Set up ciEnv::current immediately, for the sake of ciObjectFactory, etc. thread->set_env(this); assert(ciEnv::current() == this, "sanity"); _oop_recorder = NULL; _debug_info = NULL;...
0
295,887
mp_sint32 LoaderXM::load(XMFileBase& f, XModule* module) { mp_ubyte insData[230]; mp_sint32 smpReloc[MP_MAXINSSAMPS]; mp_ubyte nbu[MP_MAXINSSAMPS]; mp_uint32 fileSize = 0; module->cleanUp(); // this will make code much easier to read TXMHeader* header = &module->header; TXMInstrument* instr = module->i...
0
352,951
csnNormalize( slap_mask_t usage, Syntax *syntax, MatchingRule *mr, struct berval *val, struct berval *normalized, void *ctx ) { struct berval cnt, sid, mod; char *ptr; ber_len_t i; assert( val != NULL ); assert( normalized != NULL ); assert( SLAP_MR_IS_VALUE_OF_SYNTAX( usage ) != 0 ); if ( BER_BVISEMPT...
0
309,987
main(int argc, char **argv) { char *term; int errret; bool cmdline = TRUE; int c; char buf[BUFSIZ]; int result = 0; int fd; TTY tty_settings; bool opt_x = FALSE; /* clear scrollback if possible */ bool is_alias; bool need_tty; prg_name = check_aliases(_nc_rootname(argv[...
0
234,169
display_block (unsigned char *data, dwarf_vma length, const unsigned char * const end, char delimiter) { dwarf_vma maxlen; printf (_("%c%s byte block: "), delimiter, dwarf_vmatoa ("u", length)); if (data > end) return (unsigned char *) end; maxlen = (dwarf_vma) (end - data); length = len...
0
256,158
ALWAYS_INLINE void LoadSingleScalar(const bfloat16** data, Packet* l) { auto tmp = ConvertBfloat16ToFloat(*data); *l = Eigen::internal::pset1<Packet>(tmp); ++*data; }
0
432,289
static bool memory_region_big_endian(MemoryRegion *mr) { #ifdef TARGET_WORDS_BIGENDIAN return mr->ops->endianness != DEVICE_LITTLE_ENDIAN; #else return mr->ops->endianness == DEVICE_BIG_ENDIAN; #endif }
0
463,162
EXPORTED void appendattvalue(struct attvaluelist **l, const char *attrib, const struct buf *value) { struct attvaluelist **tail = l; while (*tail) tail = &(*tail)->next; *tail = xzmalloc(sizeof(struct attvaluelist)); (*tail)->attrib = xstrdup(attrib); buf_co...
0
359,611
DEFUN (no_neighbor_interface, no_neighbor_interface_cmd, NO_NEIGHBOR_CMD "interface WORD", NO_STR NEIGHBOR_STR NEIGHBOR_ADDR_STR "Interface\n" "Interface name\n") { return peer_interface_vty (vty, argv[0], NULL); }
0
384,118
raptor_xml_writer_nsd_compare(const void *a, const void *b) { struct nsd* nsd_a = (struct nsd*)a; struct nsd* nsd_b = (struct nsd*)b; return strcmp((const char*)nsd_a->declaration, (const char*)nsd_b->declaration); }
0
450,370
int vnc_tight_send_framebuffer_update(VncState *vs, int x, int y, int w, int h) { vs->tight->type = VNC_ENCODING_TIGHT; return tight_send_framebuffer_update(vs, x, y, w, h); }
0
226,063
void stsd_box_del(GF_Box *s) { GF_SampleDescriptionBox *ptr = (GF_SampleDescriptionBox *)s; if (ptr == NULL) return; gf_free(ptr); }
0
402,621
daemon_logger(cms_context *cms, int priority, char *fmt, ...) { context *ctx = (context *)cms->log_priv; va_list ap; int rc = 0; if (ctx->errstr) xfree(ctx->errstr); va_start(ap, fmt); if (priority & LOG_ERR) { va_list aq; va_copy(aq, ap); rc = vasprintf(&ctx->errstr, fmt, aq); va_end(aq); } vsysl...
0
384,208
static struct nft_trans *nft_trans_alloc_gfp(const struct nft_ctx *ctx, int msg_type, u32 size, gfp_t gfp) { struct nft_trans *trans; trans = kzalloc(sizeof(struct nft_trans) + size, gfp); if (trans == NULL) return NULL; INIT_LIST_HEAD(&trans->list); trans->msg_type = msg_type; trans->ctx = *ctx; ...
0
215,216
__zzip_fetch_disk_trailer(int fd, zzip_off_t filesize, struct _disk_trailer *_zzip_restrict trailer, zzip_plugin_io_t io) { #ifdef DEBUG #define return(val) { e=val; HINT2("%s", zzip_strerror(e)); goto cleanup; } #else #define return(val) { e=val; goto cleanup; } #end...
1
338,152
bool WasmBinaryBuilder::maybeVisitArrayCopy(Expression*& out, uint32_t code) { if (code != BinaryConsts::ArrayCopy) { return false; } auto destHeapType = getIndexedHeapType(); auto srcHeapType = getIndexedHeapType(); auto* length = popNonVoidExpression(); auto* srcIndex = popNonVoidExpression(); auto*...
0
226,389
GF_Err dvvC_box_size(GF_Box *s) { return dvcC_box_size(s);
0
312,382
ex_cc(exarg_T *eap) { qf_info_T *qi; int errornr; if ((qi = qf_cmd_get_stack(eap, TRUE)) == NULL) return; if (eap->addr_count > 0) errornr = (int)eap->line2; else { switch (eap->cmdidx) { case CMD_cc: case CMD_ll: errornr = 0; break; case CMD_crewind: case CMD_lrewind: case ...
0
245,203
bool format_time(time_t time, char *dest, size_t max_size) { tm tm; localtime_r(&time, &tm); return strftime(dest, max_size, "%Y-%m-%d %H:%M:%S", &tm) != 0; }
0
462,437
destroyIoQ(void) { io_req_t *n; if (io_q.stats != NULL) { statsobj.Destruct(&io_q.stats); } pthread_mutex_lock(&io_q.mut); while (!STAILQ_EMPTY(&io_q.q)) { n = STAILQ_FIRST(&io_q.q); STAILQ_REMOVE_HEAD(&io_q.q, link); errmsg.LogError(0, RS_RET_INTERNAL_ERROR, "imptcp: discarded enqueued io-work to allow sh...
0
361,757
static int em28xx_usb_suspend(struct usb_interface *intf, pm_message_t message) { struct em28xx *dev; dev = usb_get_intfdata(intf); if (!dev) return 0; em28xx_suspend_extension(dev); return 0; }
0
400,746
const void *dup_iter(struct iov_iter *new, struct iov_iter *old, gfp_t flags) { *new = *old; if (unlikely(iov_iter_is_pipe(new))) { WARN_ON(1); return NULL; } if (unlikely(iov_iter_is_discard(new) || iov_iter_is_xarray(new))) return NULL; if (iov_iter_is_bvec(new)) return new->bvec = kmemdup(new->bvec, ...
0
503,988
t_auth_request_var_expand(const char *str, const struct auth_request *auth_request, auth_request_escape_func_t *escape_func) { string_t *dest = t_str_new(128); auth_request_var_expand(dest, str, auth_request, escape_func); return str_c(dest); }
0
476,144
int usb_composite_probe(struct usb_composite_driver *driver) { struct usb_gadget_driver *gadget_driver; if (!driver || !driver->dev || !driver->bind) return -EINVAL; if (!driver->name) driver->name = "composite"; driver->gadget_driver = composite_driver_template; gadget_driver = &driver->gadget_driver; ga...
0
413,640
static bool esilbreak_mem_read(RAnalEsil *esil, ut64 addr, ut8 *buf, int len) { ut8 str[128]; if (addr != UT64_MAX) { esilbreak_last_read = addr; } handle_var_stack_access (esil, addr, R_ANAL_VAR_ACCESS_TYPE_READ, len); if (myvalid (mycore->io, addr) && r_io_read_at (mycore->io, addr, (ut8*)buf, len)) { ut64 r...
0
240,303
dnd_yank_drag_data(char_u *str, long len) { yankreg_T *curr; curr = y_current; y_current = &y_regs[TILDE_REGISTER]; free_yank_all(); str_to_reg(y_current, MCHAR, str, len, 0L, FALSE); y_current = curr; }
0
220,434
ary_fill_with_nil(mrb_value *ptr, mrb_int size) { mrb_value nil = mrb_nil_value(); while (size--) { *ptr++ = nil; } }
0
291,818
static int rtrs_rdma_conn_established(struct rtrs_clt_con *con, struct rdma_cm_event *ev) { struct rtrs_clt_path *clt_path = to_clt_path(con->c.path); struct rtrs_clt_sess *clt = clt_path->clt; const struct rtrs_msg_conn_rsp *msg; u16 version, queue_depth; int errno; u8 len; msg = ev->param.conn.priv...
0
273,896
static int open_data_connection(ctrl_t *ctrl) { socklen_t len = sizeof(struct sockaddr); struct sockaddr_in sin; /* Previous PORT command from client */ if (ctrl->data_address[0]) { int rc; ctrl->data_sd = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0); if (-1 == ctrl->data_sd) { ERR(errno, "Failed crea...
0
328,878
R_API void r_bin_java_get_fm_type_definition_json(RBinJavaObj *bin, RBinJavaField *fm_type, PJ *pj, int is_method) { r_return_if_fail (bin && fm_type && pj); ut64 addr = UT64_MAX; char *prototype = NULL, *fq_name = NULL; bool is_native = ((fm_type->flags & R_BIN_JAVA_METHOD_ACC_NATIVE) != 0); bool is_static = ((f...
0
486,825
static inline void rx_desc_set_ownership(uint32_t *desc) { desc[0] |= DESC_0_RX_OWNERSHIP; }
0
274,722
callbacks_begin_print (GtkPrintOperation *operation, GtkPrintContext *context, gpointer user_data) { gtk_print_operation_set_n_pages (operation, 1); }
0
432,714
static void lite_font_map( wmfAPI* API, wmfFont* font) { wmfFontData *font_data; wmf_magick_font_t *magick_font; wmf_magick_t *ddata = WMF_MAGICK_GetData(API); ExceptionInfo *exception; const TypeInfo *type_info, *type_info_base; const char *wmf_font_name; if (font == 0) ...
0
238,557
static int __check_mem_access(struct bpf_verifier_env *env, int regno, int off, int size, u32 mem_size, bool zero_size_allowed) { bool size_ok = size > 0 || (size == 0 && zero_size_allowed); struct bpf_reg_state *reg; if (off >= 0 && size_ok && (u64)off + size <= mem_size) return 0; reg = &cur...
0
437,702
inline int cx23888_ir_write4(struct cx23885_dev *dev, u32 addr, u32 value) { cx_write(addr, value); return 0; }
0
439,168
static Image *ReadRAWImage(const ImageInfo *image_info,ExceptionInfo *exception) { const unsigned char *pixels; Image *canvas_image, *image; MagickBooleanType status; MagickOffsetType scene; QuantumInfo *quantum_info; QuantumType quantum_type; size_t length; ssize_...
0
487,638
int blocking_notifier_call_chain(struct blocking_notifier_head *nh, unsigned long val, void *v) { int ret = NOTIFY_DONE; /* * We check the head outside the lock, but if this access is * racy then it does not matter what the result of the test * is, we re-check the list after having taken the lock anyway: *...
0
508,846
st_select_lex_node *st_select_lex_node:: insert_chain_before( st_select_lex_node **ptr_pos_to_insert, st_select_lex_node *end_chain_node) { end_chain_node->link_next= *ptr_pos_to_insert; (*ptr_pos_to_insert)->link_prev= &end_chain_node->link_next; this->link_p...
0
244,339
void trgt_box_del(GF_Box *s) { GF_TrackGroupTypeBox *ptr = (GF_TrackGroupTypeBox *)s; if (ptr == NULL) return; gf_free(ptr); }
0
233,831
void fmtutil_generate_bmpfileheader(deark *c, dbuf *outf, const struct de_bmpinfo *bi, i64 file_size_override) { i64 file_size_to_write; dbuf_write(outf, (const u8*)"BM", 2); if(file_size_override) file_size_to_write = file_size_override; else file_size_to_write = 14 + bi->total_size; dbuf_writeu32le(outf, ...
0
348,438
static int ax_open_dev(struct net_device *dev) { struct mkiss *ax = netdev_priv(dev); if (ax->tty == NULL) return -ENODEV; return 0; }
0
337,807
struct sctp_chunk *sctp_make_shutdown(const struct sctp_association *asoc, const struct sctp_chunk *chunk) { struct sctp_shutdownhdr shut; struct sctp_chunk *retval; __u32 ctsn; ctsn = sctp_tsnmap_get_ctsn(&asoc->peer.tsn_map); shut.cum_tsn_ack = htonl(ctsn); retval = sctp_make_control(asoc, SCTP_CID_...
0
512,727
double val_real() { return cached_time.to_double(); }
0
264,707
void AddShapeNodeToConstantGraph( Node* n, const std::unordered_map<const Node*, std::vector<Tensor>>& shape_replacement_map, std::unordered_map<Node*, std::vector<Node*>>* node_map, const ConstantFoldNameGenerator& generate_new_name, Graph* constant_graph) { std::vector<Node*>& added = (*node...
0
317,026
static int selinux_shm_shmctl(struct kern_ipc_perm *shp, int cmd) { int perms; int err; switch (cmd) { case IPC_INFO: case SHM_INFO: /* No specific object, just general system-wide information. */ return avc_has_perm(&selinux_state, current_sid(), SECINITSID_KERNEL, SECCLASS_SYSTEM, SYSTEM__IP...
0
199,851
ex_retab(exarg_T *eap) { linenr_T lnum; int got_tab = FALSE; long num_spaces = 0; long num_tabs; long len; long col; long vcol; long start_col = 0; // For start of white-space string long start_vcol = 0; // For start of white-space string long old_len; char_u *ptr; cha...
1
293,757
static RList *filter_kexts(RKernelCacheObj *obj, RBinFile *bf) { RCFValueArray *kext_array = NULL; RListIter *iter; RCFKeyValue *item; r_list_foreach (obj->prelink_info->pairs, iter, item) { if (!strcmp (item->key, "_PrelinkInfoDictionary")) { kext_array = (RCFValueArray*) item->value; break; } } if (!...
0
226,268
GF_Err svhd_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_SphericalVideoInfoBox *ptr = (GF_SphericalVideoInfoBox *)s; e = gf_isom_full_box_write(s, bs); if (e) return e; if (ptr->string) gf_bs_write_data(bs, ptr->string, (u32) strlen(ptr->string)); gf_bs_write_u8(bs, 0); return GF_OK;
0
247,652
TestUtilOptions& enableOcspStapling() { ocsp_stapling_enabled_ = true; return *this; }
0
206,845
static unsigned long get_ctl_id_hash(const struct snd_ctl_elem_id *id) { int i; unsigned long h; h = id->iface; h = MULTIPLIER * h + id->device; h = MULTIPLIER * h + id->subdevice; for (i = 0; id->name[i] && i < SNDRV_CTL_ELEM_ID_NAME_MAXLEN; i++) h = MULTIPLIER * h + id->name[i]; h = MULTIPLIER * h + id->ind...
1
355,014
static void parse_rtcp_bye(pjmedia_rtcp_session *sess, const void *pkt, pj_size_t size) { pj_str_t reason = {"-", 1}; /* Check and get BYE reason */ if (size > 8) { /* Make sure the BYE reason does not exceed: * - the size of the available buffer * - the declared reason's lengt...
0
326,635
restore_entry(struct archive_write_disk *a) { int ret = ARCHIVE_OK, en; if (a->flags & ARCHIVE_EXTRACT_UNLINK && !S_ISDIR(a->mode)) { /* * TODO: Fix this. Apparently, there are platforms * that still allow root to hose the entire filesystem * by unlinking a dir. The S_ISDIR() test above * prevents us...
0
359,524
peer_remote_as_vty (struct vty *vty, const char *peer_str, const char *as_str, afi_t afi, safi_t safi) { int ret; struct bgp *bgp; as_t as; union sockunion su; bgp = vty->index; /* Get AS number. */ VTY_GET_INTEGER_RANGE ("AS", as, as_str, 1, 65535); /* If peer is peer group, ca...
0
207,520
static const ut8 *parse_die(const ut8 *buf, const ut8 *buf_end, RzBinDwarfDebugInfo *info, RzBinDwarfAbbrevDecl *abbrev, RzBinDwarfCompUnitHdr *hdr, RzBinDwarfDie *die, const ut8 *debug_str, size_t debug_str_len, bool big_endian) { size_t i; const char *comp_dir = NULL; ut64 line_info_offset = UT64_MAX; for (i = 0...
1
261,224
int MqttClient_Ping(MqttClient *client) { MqttPing ping; XMEMSET(&ping, 0, sizeof(ping)); return MqttClient_Ping_ex(client, &ping); }
0
338,203
Name WasmBinaryBuilder::getTableName(Index index) { if (index >= wasm.tables.size()) { throwError("invalid table index"); } return wasm.tables[index]->name; }
0
232,404
Status AsGraphDefInternal(SerializationContext* ctx, DatasetGraphDefBuilder* b, Node** output) const override { Node* indices_node; TF_RETURN_IF_ERROR(b->AddTensor(sparse_tensor_.indices(), &indices_node)); Node* value_node; TF_RETURN_IF_ERROR(b-...
0
238,602
static int check_ld_imm(struct bpf_verifier_env *env, struct bpf_insn *insn) { struct bpf_insn_aux_data *aux = cur_aux(env); struct bpf_reg_state *regs = cur_regs(env); struct bpf_reg_state *dst_reg; struct bpf_map *map; int err; if (BPF_SIZE(insn->code) != BPF_DW) { verbose(env, "invalid BPF_LD_IMM insn\n"); ...
0
201,343
static int selinux_ptrace_traceme(struct task_struct *parent) { return avc_has_perm(&selinux_state, task_sid_subj(parent), task_sid_obj(current), SECCLASS_PROCESS, PROCESS__PTRACE, NULL); }
1
314,746
cdf_dump_sat(const char *prefix, const cdf_sat_t *sat, size_t size) { size_t i, j, s = size / sizeof(cdf_secid_t); for (i = 0; i < sat->sat_len; i++) { (void)fprintf(stderr, "%s[%" SIZE_T_FORMAT "u]:\n%.6" SIZE_T_FORMAT "u: ", prefix, i, i * s); for (j = 0; j < s; j++) { (void)fprintf(stderr, "%5d, ", ...
0
390,531
ProcXkbGetControls(ClientPtr client) { xkbGetControlsReply rep; XkbControlsPtr xkb; DeviceIntPtr dev; register int n; REQUEST(xkbGetControlsReq); REQUEST_SIZE_MATCH(xkbGetControlsReq); if (!(client->xkbClientFlags&_XkbClientInitialized)) return BadAccess; CHK_KBD_DEVICE(dev, stuff-...
0
333,050
nfa_get_match_text(nfa_state_T *start) { nfa_state_T *p = start; int len = 0; char_u *ret; char_u *s; if (p->c != NFA_MOPEN) return NULL; // just in case p = p->out; while (p->c > 0) { len += MB_CHAR2LEN(p->c); p = p->out; } if (p->c != NFA_MCLOSE || p->out->c != NFA_MATCH) ...
0
96,950
bool decode(ArgumentDecoder* decoder, RetainPtr<SecKeychainItemRef>& result) { RetainPtr<CFDataRef> data; if (!CoreIPC::decode(decoder, data)) return false; SecKeychainItemRef item; if (SecKeychainItemCopyFromPersistentReference(data.get(), &item) != errSecSuccess || !item) return false...
0
359,502
hex_append(char *s, int len, u_long x) { char buf[30]; char *t; if (!x) return str_append(s,len,"0"); *(t = &buf[sizeof(buf)-1]) = '\0'; while (x && (t > buf)) { u_int cc = (x % 16); *--t = ((cc < 10) ? ('0'+cc) : ('a'+cc-10)); x /= 16; } return str_append(s,len,t); }
0
244,356
GF_Err tref_box_write(GF_Box *s, GF_BitStream *bs) { // GF_TrackReferenceBox *ptr = (GF_TrackReferenceBox *)s; return gf_isom_box_write_header(s, bs); }
0
261,916
njs_string_decode_utf8(njs_vm_t *vm, njs_value_t *value, const njs_str_t *src) { size_t length; njs_str_t dst; length = njs_decode_utf8_length(src, &dst.length); dst.start = njs_string_alloc(vm, value, dst.length, length); if (njs_fast_path(dst.start != NULL)) { njs_decode_utf8(&dst, ...
0
281,129
static void xfrm_byidx_resize(struct net *net, int total) { unsigned int hmask = net->xfrm.policy_idx_hmask; unsigned int nhashmask = xfrm_new_hash_mask(hmask); unsigned int nsize = (nhashmask + 1) * sizeof(struct hlist_head); struct hlist_head *oidx = net->xfrm.policy_byidx; struct hlist_head *nidx = xfrm_hash_al...
0
343,144
int esp_input_done2(struct sk_buff *skb, int err) { const struct iphdr *iph; struct xfrm_state *x = xfrm_input_state(skb); struct xfrm_offload *xo = xfrm_offload(skb); struct crypto_aead *aead = x->data; int hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead); int ihl; if (!xo || !(xo->flags & CRYPTO_DO...
0
404,741
struct file *fget_task(struct task_struct *task, unsigned int fd) { struct file *file = NULL; task_lock(task); if (task->files) file = __fget_files(task->files, fd, 0, 1); task_unlock(task); return file; }
0
277,488
bool mobi_indx_has_tag(const MOBIIndx *indx, const size_t tagid) { if (indx) { for (size_t i = 0; i < indx->entries_count; i++) { MOBIIndexEntry entry = indx->entries[i]; for(size_t j = 0; j < entry.tags_count; j++) { if (entry.tags[j].tagid == tagid) { ...
0
357,669
SQInstance::SQInstance(SQSharedState *ss, SQInstance *i, SQInteger memsize) { _memsize = memsize; _class = i->_class; SQUnsignedInteger nvalues = _class->_defaultvalues.size(); for(SQUnsignedInteger n = 0; n < nvalues; n++) { new (&_values[n]) SQObjectPtr(i->_values[n]); } Init(ss); }
0
243,988
GF_Err fecr_box_size(GF_Box *s) { FECReservoirBox *ptr = (FECReservoirBox *)s; ptr->size += (ptr->version ? 4 : 2) + ptr->nb_entries * (ptr->version ? 8 : 6); return GF_OK; }
0
513,047
Item_float(THD *thd, const char *str, double val_arg, uint decimal_par, uint length): Item_num(thd), value(val_arg) { presentation= name.str= str; name.length= safe_strlen(str); decimals=(uint8) decimal_par; max_length= length; }
0
336,004
static int sr_read_eeprom_word(struct usbnet *dev, u8 offset, void *value) { return sr_share_read_word(dev, 0, offset, value); }
0
387,853
void InstanceKlass::add_previous_version(InstanceKlass* scratch_class, int emcp_method_count) { assert(Thread::current()->is_VM_thread(), "only VMThread can add previous versions"); ResourceMark rm; log_trace(redefine, class, iklass, add) ("adding previous ve...
0
412,119
dnsc_nonces_compfunc(void *m1, void *m2) { struct nonce_cache_key *k1 = m1, *k2 = m2; return sodium_memcmp( k1->nonce, k2->nonce, crypto_box_HALF_NONCEBYTES) != 0 || sodium_memcmp( k1->magic_query, k2->magic_query, DNSCRYPT_...
0
226,037
GF_Err elst_box_size(GF_Box *s) { u32 durtimebytes; u32 i, nb_entries; GF_EditListBox *ptr = (GF_EditListBox *)s; //entry count ptr->size += 4; nb_entries = gf_list_count(ptr->entryList); ptr->version = 0; for (i=0; i<nb_entries; i++) { GF_EdtsEntry *p = (GF_EdtsEntry*)gf_list_get(ptr->entryList, i); if ((...
0
462,425
DataRcvdUncompressed(ptcpsess_t *pThis, char *pData, size_t iLen, struct syslogTime *stTime, time_t ttGenTime) { multi_submit_t multiSub; smsg_t *pMsgs[CONF_NUM_MULTISUB]; char *pEnd; unsigned nMsgs = 0; DEFiRet; assert(pData != NULL); assert(iLen > 0); if(ttGenTime == 0) datetime.getCurrTime(stTime, &ttGen...
0
336,560
static void reds_client_monitors_config(RedsState *reds, VDAgentMonitorsConfig *monitors_config) { FOREACH_QXL_INSTANCE(reds, qxl) { if (!red_qxl_client_monitors_config(qxl, monitors_config)) { /* this is a normal condition, some qemu devices might not implement it */ spice_debug("QX...
0
337,804
struct sctp_chunk *sctp_make_abort_no_data( const struct sctp_association *asoc, const struct sctp_chunk *chunk, __u32 tsn) { struct sctp_chunk *retval; __be32 payload; retval = sctp_make_abort(asoc, chunk, sizeof(struct sctp_errhdr) + sizeof(tsn)); if (!retval) goto no_mem; /* Put the tsn...
0