idx
int64
func
string
target
int64
263,296
bool _q_countsave(const char *filepath, int number) { int fd = open(filepath, O_CREAT|O_WRONLY|O_TRUNC, DEF_FILE_MODE); if (fd < 0) return false; char buf[10+1]; snprintf(buf, sizeof(buf), "%d", number); ssize_t updated = write(fd, buf, strlen(buf)); close(fd); if (updated > 0) return true...
0
352,943
csnSidNormalize( slap_mask_t usage, Syntax *syntax, MatchingRule *mr, struct berval *val, struct berval *normalized, void *ctx ) { struct berval bv; char *ptr, buf[ 4 ]; if ( BER_BVISEMPTY( val ) ) { return LDAP_INVALID_SYNTAX; } if ( SLAP_MR_IS_VALUE_OF_ASSERTION_SYNTAX(usage) ) { return sidNorma...
0
477,300
static int tipc_aead_clone(struct tipc_aead **dst, struct tipc_aead *src) { struct tipc_aead *aead; int cpu; if (!src) return -ENOKEY; if (src->mode != CLUSTER_KEY) return -EINVAL; if (unlikely(*dst)) return -EEXIST; aead = kzalloc(sizeof(*aead), GFP_ATOMIC); if (unlikely(!aead)) return -ENOMEM; ae...
0
337,811
int sctp_chunk_iif(const struct sctp_chunk *chunk) { struct sk_buff *skb = chunk->skb; return SCTP_INPUT_CB(skb)->af->skb_iif(skb); }
0
482,687
gst_flxdec_dispose (GstFlxDec * flxdec) { if (flxdec->adapter) { g_object_unref (flxdec->adapter); flxdec->adapter = NULL; } G_OBJECT_CLASS (parent_class)->dispose ((GObject *) flxdec); }
0
317,177
static int smack_netlbl_add(struct sock *sk) { struct socket_smack *ssp = sk->sk_security; struct smack_known *skp = ssp->smk_out; int rc; local_bh_disable(); bh_lock_sock_nested(sk); rc = netlbl_sock_setattr(sk, sk->sk_family, &skp->smk_netlabel); switch (rc) { case 0: ssp->smk_state = SMK_NETLBL_LABELED; ...
0
213,515
spell_suggest(int count) { char_u *line; pos_T prev_cursor = curwin->w_cursor; char_u wcopy[MAXWLEN + 2]; char_u *p; int i; int c; suginfo_T sug; suggest_T *stp; int mouse_used; int need_cap; int limit; int selected = count; int badlen = 0; int msg_scroll_...
1
273,074
keyval_sort(struct keyval *kv) { struct onekeyval *head; struct onekeyval *okv; struct onekeyval *sokv; if (!kv || !kv->head) return; head = kv->head; for (okv = kv->head; okv; okv = okv->next) { okv->sort = NULL; for (sokv = kv->head; sokv; sokv = sokv->next) { // We try to find a...
0
220,858
inline int16_t lut_lookup(int8_t value, const int16_t* lut) { return lut[128 + value]; }
0
252,464
static bool DecompressZfp(float *dst, int dst_width, int dst_num_lines, int num_channels, const unsigned char *src, unsigned long src_size, const ZFPCompressionParam &param) { size_t uncompressed_size = dst_width * dst_num_lines * num_chann...
0
294,455
d_lite_day_fraction(VALUE self) { get_d1(self); if (simple_dat_p(dat)) return INT2FIX(0); return m_fr(dat); }
0
195,022
int callback_glewlwyd_user_auth (const struct _u_request * request, struct _u_response * response, void * user_data) { struct config_elements * config = (struct config_elements *)user_data; json_t * j_param = ulfius_get_json_body_request(request, NULL), * j_result = NULL; const char * ip_source = get_ip_source(re...
1
314,753
_cdf_tole8(uint64_t sv) { uint64_t rv; uint8_t *s = (uint8_t *)(void *)&sv; uint8_t *d = (uint8_t *)(void *)&rv; d[0] = s[7]; d[1] = s[6]; d[2] = s[5]; d[3] = s[4]; d[4] = s[3]; d[5] = s[2]; d[6] = s[1]; d[7] = s[0]; return rv; }
0
222,867
void GraphProperties::ClearOutputProperties(const string& node_name) { output_properties_.erase(node_name); }
0
503,887
SCM_DEFINE (scm_stat, "stat", 1, 1, 0, (SCM object, SCM exception_on_error), "Return an object containing various information about the file\n" "determined by @var{object}. @var{object} can be a string containing\n" "a file name or a port or integer file descriptor which is open\n" "on...
0
238,658
static int resolve_map_arg_type(struct bpf_verifier_env *env, const struct bpf_call_arg_meta *meta, enum bpf_arg_type *arg_type) { if (!meta->map_ptr) { /* kernel subsystem misconfigured verifier */ verbose(env, "invalid map_ptr to access map->type\n"); return -EACCES; } switch (meta->map_ptr->map_t...
0
369,107
/* Returns true if we found and killed one or more timeouts */ static __cold bool io_kill_timeouts(struct io_ring_ctx *ctx, struct task_struct *tsk, bool cancel_all) { struct io_kiocb *req, *tmp; int canceled = 0; spin_lock(&ctx->completion_lock); spin_lock_irq(&ctx->timeout_lock); list_for_each_entry_saf...
0
369,396
static __cold int io_uring_create(unsigned entries, struct io_uring_params *p, struct io_uring_params __user *params) { struct io_ring_ctx *ctx; struct file *file; int ret; if (!entries) return -EINVAL; if (entries > IORING_MAX_ENTRIES) { if (!(p->flags & IORING_SETUP_CLAMP)) return -EINVAL; entri...
0
244,337
GF_Box *proj_type_box_new() { ISOM_DECL_BOX_ALLOC(GF_ProjectionTypeBox, GF_ISOM_BOX_TYPE_EQUI); //will be overwritten return (GF_Box *)tmp; }
0
231,532
__getcwd_generic (char *buf, size_t size) { /* Lengths of big file name components and entire file names, and a deep level of file name nesting. These numbers are not upper bounds; they are merely large values suitable for initial allocations, designed to be large enough for most real-world uses....
0
359,637
DEFUN (neighbor_attr_unchanged, neighbor_attr_unchanged_cmd, NEIGHBOR_CMD2 "attribute-unchanged", NEIGHBOR_STR NEIGHBOR_ADDR_STR2 "BGP attribute is propagated unchanged to this neighbor\n") { return peer_af_flag_set_vty (vty, argv[0], bgp_node_afi (vty), bgp_node_safi (vty...
0
389,712
check_for_string_or_func_arg(typval_T *args, int idx) { if (args[idx].v_type != VAR_PARTIAL && args[idx].v_type != VAR_FUNC && args[idx].v_type != VAR_STRING) { semsg(_(e_string_or_function_required_for_argument_nr), idx + 1); return FAIL; } return OK; }
0
271,526
void ReshapeSparseTensor(OpKernelContext *context, const Tensor &input_indices_in, const Tensor &input_shape_in, const Tensor &target_shape_in, int output_indices_idx, int output_shape_idx) { OP_REQUIRES(context, Tenso...
0
175,691
virtual void ForgetWifiNetwork(const std::string& service_path) {}
0
264,682
lexer_hex_to_code_point (const uint8_t *source_p, /**< current source position */ parser_line_counter_t length) /**< source length */ { lit_code_point_t result = 0; do { uint32_t byte = *source_p++; result <<= 4; if (byte >= LIT_CHAR_0 && byte <= LIT_CHAR_9) { res...
0
317,313
static int selinux_inode_readlink(struct dentry *dentry) { const struct cred *cred = current_cred(); return dentry_has_perm(cred, dentry, FILE__READ); }
0
458,987
http_DoConnection(struct http *hp, stream_close_t sc_close) { const char *h, *b, *e; stream_close_t retval; unsigned u, v; struct http_hdrflg *f; CHECK_OBJ_NOTNULL(hp, HTTP_MAGIC); assert(sc_close == SC_REQ_CLOSE || sc_close == SC_RESP_CLOSE); if (hp->protover == 10) retval = SC_REQ_HTTP10; else retval = ...
0
437,304
print_optimize_info(FILE* f, regex_t* reg) { static const char* on[] = { "NONE", "EXACT", "EXACT_FAST", "EXACT_FAST_STEP_FORWARD", "EXACT_IC", "MAP" }; fprintf(f, "optimize: %s\n", on[reg->optimize]); fprintf(f, " anchor: "); print_anchor(f, reg->ancho...
0
333,508
int gdTransformAffineGetImage(gdImagePtr *dst, const gdImagePtr src, gdRectPtr src_area, const double affine[6]) { int res; double m[6]; gdRect bbox; gdRect area_full; if (src_area == NULL) { area_full.x = 0; area_full.y = 0; area_full.width = gdImageSX(src); area_full.height = gdImageSY(src)...
0
224,758
GF_Err iref_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem) { GF_ItemReferenceBox *ptr = (GF_ItemReferenceBox *)s; BOX_FIELD_LIST_ASSIGN(references) return GF_OK; }
0
336,687
GArray* reds_get_renderers(RedsState *reds) { return reds->config->renderers; }
0
432,723
static void ipa_device_close(wmfAPI * API) { wmf_magick_t *ddata = WMF_MAGICK_GetData(API); if (ddata->draw_wand != (DrawingWand *) NULL) { DestroyDrawingWand(ddata->draw_wand); ddata->draw_wand=(DrawingWand *) NULL; } if (ddata->draw_info != (DrawInfo *) NULL) { DestroyDrawInfo...
0
292,153
void LinkResolver::check_klass_accessability(Klass* ref_klass, Klass* sel_klass, bool fold_type_to_class, TRAPS) { Klass* base_klass = sel_klass; if (fold_type_to_class) { if (sel_klass->is_objArray_klass()) { base_klass = ObjArrayKlass::cast(sel_klass)->bottom...
0
240,589
void Compute(OpKernelContext* context) override { const Tensor& value = context->input(1); core::RefCountPtr<Var> variable; OP_REQUIRES_OK(context, LookupOrCreateResource<Var>( context, HandleFromInput(context, 0), &variable, [](Var** ptr) { ...
0
255,783
svn_repos_authz_check_access(svn_authz_t *authz, const char *repos_name, const char *path, const char *user, svn_repos_authz_access_t required_access, svn_boolean_t *access_granted, apr_pool_t *pool) { ...
0
462,572
bool controller::trylock_reload_mutex() { if (reload_mutex.try_lock()) { LOG(level::DEBUG, "controller::trylock_reload_mutex succeeded"); return true; } LOG(level::DEBUG, "controller::trylock_reload_mutex failed"); return false; }
0
447,054
void HttpIo::HttpImpl::writeRemote(const byte* data, size_t size, long from, long to) { std::string scriptPath(getEnv(envHTTPPOST)); if (scriptPath == "") { throw Error(1, "Please set the path of the server script to handle http post data to EXIV2_HTTP_POST environmental variable.");...
0
220,810
inline int32_t MultiplyByQuantizedMultiplier(int32_t x, int32_t quantized_multiplier, int shift) { using gemmlowp::RoundingDivideByPOT; using gemmlowp::SaturatingRoundingDoublingHighMul; int left_shift = shift > 0 ? shift : ...
0
317,368
static int selinux_inode_setattr(struct dentry *dentry, struct iattr *iattr) { const struct cred *cred = current_cred(); struct inode *inode = d_backing_inode(dentry); unsigned int ia_valid = iattr->ia_valid; __u32 av = FILE__WRITE; /* ATTR_FORCE is just used for ATTR_KILL_S[UG]ID. */ if (ia_valid & ATTR_FORCE) ...
0
261,232
int wm_SemUnlock(wm_Sem *s){ pthread_mutex_lock(&s->mutex); s->lockCount--; pthread_cond_signal(&s->cond); pthread_mutex_unlock(&s->mutex); return 0; }
0
513,188
void plugin_thdvar_init(THD *thd) { plugin_ref old_table_plugin= thd->variables.table_plugin; plugin_ref old_tmp_table_plugin= thd->variables.tmp_table_plugin; plugin_ref old_enforced_table_plugin= thd->variables.enforced_table_plugin; DBUG_ENTER("plugin_thdvar_init"); // This function may be called many tim...
0
336,535
MainDispatcher* reds_get_main_dispatcher(RedsState *reds) { return reds->main_dispatcher.get(); }
0
416,358
cmdline_wildchar_complete( int c, int escape, int *did_wild_list, int *wim_index_p, expand_T *xp, int *gotesc) { int wim_index = *wim_index_p; int res; int j; int options = WILD_NO_BEEP; if (wim_flags[wim_index] & WIM_BUFLASTUSED) options |= WILD_BUFLASTUSED; if (xp->xp_numfiles...
0
336,006
static int sr_read(struct usbnet *dev, u8 reg, u16 length, void *data) { int err; err = usbnet_read_cmd(dev, SR_RD_REGS, SR_REQ_RD_REG, 0, reg, data, length); if ((err != length) && (err >= 0)) err = -EINVAL; return err; }
0
328,937
R_API char *r_bin_java_print_methodref_cp_stringify(RBinJavaCPTypeObj *obj) { return r_str_newf ("%d.0x%04"PFMT64x ".%s.%d.%d", obj->metas->ord, obj->file_offset + obj->loadaddr, ((RBinJavaCPTypeMetas *) obj->metas->type_info)->name, obj->info.cp_method.class_idx, obj->info.cp_method.name_and_type_idx); }
0
509,480
int ha_maria::create(const char *name, TABLE *table_arg, HA_CREATE_INFO *ha_create_info) { int error; uint create_flags= 0, record_count= 0, i; char buff[FN_REFLEN]; MARIA_KEYDEF *keydef; MARIA_COLUMNDEF *recinfo; MARIA_CREATE_INFO create_info; TABLE_SHARE *share= table_arg->s; uint...
0
404,752
struct file *fget_raw(unsigned int fd) { return __fget(fd, 0, 1); }
0
387,594
static int snd_ctl_card_info(struct snd_card *card, struct snd_ctl_file * ctl, unsigned int cmd, void __user *arg) { struct snd_ctl_card_info *info; info = kzalloc(sizeof(*info), GFP_KERNEL); if (! info) return -ENOMEM; down_read(&snd_ioctl_rwsem); info->card = card->number; strscpy(info->id, card->id,...
0
310,125
get_baudrate(TERMINAL *termp) { int my_ospeed; int result; if (GET_TTY(termp->Filedes, &termp->Nttyb) == OK) { #ifdef TERMIOS termp->Nttyb.c_oflag &= (unsigned) (~OFLAGS_TABS); #else termp->Nttyb.sg_flags &= (unsigned) (~XTABS); #endif } #ifdef USE_OLD_TTY result = (int) cfgetospeed(&(termp->Nttyb...
0
314,517
PJ_DEF(pjmedia_sdp_media*) pjmedia_sdp_media_clone_deactivate( pj_pool_t *pool, const pjmedia_sdp_media *rhs) { unsigned int i; pjmedia_sdp_media *m; PJ_ASSERT_RETURN(pool && rhs, NULL); m = PJ_POOL_ZALLOC_T(pool, pjmedia_sdp_media); pj_memcpy(m, rhs, sizeof(*m)); /* Clone the med...
0
387,770
void InstanceKlass::set_implementor(Klass* k) { assert_lock_strong(Compile_lock); assert(is_interface(), "not interface"); Klass** addr = adr_implementor(); assert(addr != NULL, "null addr"); if (addr != NULL) { *addr = k; } }
0
436,156
static int io_epoll_ctl_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) { #if defined(CONFIG_EPOLL) if (sqe->ioprio || sqe->buf_index) return -EINVAL; if (unlikely(req->ctx->flags & IORING_SETUP_IOPOLL)) return -EINVAL; req->epoll.epfd = READ_ONCE(sqe->fd); req->epoll.op = READ_ONCE(sqe->len...
0
331,786
void QPaintEngineEx::drawPath(const QPainterPath &path) { if (!path.isEmpty()) draw(qtVectorPathForPath(path)); }
0
439,169
static MagickBooleanType WriteTXTImage(const ImageInfo *image_info,Image *image) { char buffer[MaxTextExtent], colorspace[MaxTextExtent], tuple[MaxTextExtent]; MagickBooleanType status; MagickOffsetType scene; MagickPixelPacket pixel; register const IndexPacket *indexes; reg...
0
379,668
static void var_free(RAnalVar *var) { if (var) { r_anal_var_clear_accesses (var); r_vector_fini (&var->constraints); free (var->name); free (var->regname); free (var->type); free (var->comment); free (var); } }
0
463,106
static int _annotate_getdb(const char *mboxname, unsigned int uid, int dbflags, annotate_db_t **dbp) { annotate_db_t *d, *prev = NULL; char *fname = NULL; struct db *db; int r; *dbp = NULL; /* * The incoming ...
0
366,229
static void unlock_mount(struct mountpoint *where) { struct dentry *dentry = where->m_dentry; read_seqlock_excl(&mount_lock); put_mountpoint(where); read_sequnlock_excl(&mount_lock); namespace_unlock(); inode_unlock(dentry->d_inode); }
0
512,759
int Arg_comparator::compare_row() { int res= 0; bool was_null= 0; (*a)->bring_value(); (*b)->bring_value(); if ((*a)->null_value || (*b)->null_value) { owner->null_value= 1; return -1; } uint n= (*a)->cols(); for (uint i= 0; i<n; i++) { res= comparators[i].compare(); /* Aggregate f...
0
328,924
R_API void r_bin_java_annotation_array_free(void /*RBinJavaAnnotationsArray*/ *a) { RBinJavaAnnotationsArray *annotation_array = a; RListIter *iter = NULL, *iter_tmp = NULL; RBinJavaAnnotation *annotation; if (!annotation_array->annotations) { // TODO eprintf return; } r_list_foreach_safe (annotation_array->a...
0
261,381
static int decode_explicit_rdpcm_flag(thread_context* tctx,int cIdx) { context_model* model = &tctx->ctx_model[CONTEXT_MODEL_RDPCM_FLAG]; int value = decode_CABAC_bit(&tctx->cabac_decoder, &model[cIdx ? 1 : 0]); return value; }
0
232,947
exit_zlib(struct Curl_easy *data, z_stream *z, zlibInitState *zlib_init, CURLcode result) { if(*zlib_init == ZLIB_GZIP_HEADER) Curl_safefree(z->next_in); if(*zlib_init != ZLIB_UNINIT) { if(inflateEnd(z) != Z_OK && result == CURLE_OK) result = process_zlib_error(data, z); *zlib_init = ZL...
0
359,198
static unsigned long ringbuf_avail_data_sz(struct bpf_ringbuf *rb) { unsigned long cons_pos, prod_pos; cons_pos = smp_load_acquire(&rb->consumer_pos); prod_pos = smp_load_acquire(&rb->producer_pos); return prod_pos - cons_pos; }
0
484,052
main(void) { Suite *s = testSuite_SecureChannel(); SRunner *sr = srunner_create(s); srunner_set_fork_status(sr, CK_NOFORK); srunner_run_all(sr, CK_NORMAL); int number_failed = srunner_ntests_failed(sr); srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }
0
462,324
pcstatus_do_reset(pcl_state_t * pcs, pcl_reset_type_t type) { if (type & (pcl_reset_initial | pcl_reset_printer)) { if (type & pcl_reset_initial) { pcs->status.buffer = 0; pcs->status.write_pos = 0; pcs->status.read_pos = 0; } pcs->location_type = 0; ...
0
512,534
cmp_item* cmp_item_sort_string::make_same() { return new cmp_item_sort_string_in_static(cmp_charset); }
0
364,743
findtags_in_help_init(findtags_state_T *st) { int i; char_u *s; // Keep 'en' as the language if the file extension is '.txt' if (st->is_txt) STRCPY(st->help_lang, "en"); else { // Prefer help tags according to 'helplang'. Put the two-letter // language name in help_lang[]. i = (int)STRLEN...
0
459,150
static void tcf_block_remove(struct tcf_block *block, struct net *net) { struct tcf_net *tn = net_generic(net, tcf_net_id); spin_lock(&tn->idr_lock); idr_remove(&tn->idr, block->index); spin_unlock(&tn->idr_lock); }
0
482,519
includeFile(const FileInfo *file, CharsString *includedFile, TranslationTableHeader **table, DisplayTableHeader **displayTable) { int k; char includeThis[MAXSTRING]; char **tableFiles; int rv; for (k = 0; k < includedFile->length; k++) includeThis[k] = (char)includedFile->chars[k]; if (k >= MAXSTRING) { com...
0
487,662
static int __kprobes notifier_call_chain(struct notifier_block **nl, unsigned long val, void *v) { int ret = NOTIFY_DONE; struct notifier_block *nb, *next_nb; nb = rcu_dereference(*nl); while (nb) { next_nb = rcu_dereference(nb->next); ret = nb->notifier_call(nb, val, v); if ((ret & NOTIFY_STOP_MASK) == NO...
0
317,077
static int smack_syslog(int typefrom_file) { int rc = 0; struct smack_known *skp = smk_of_current(); if (smack_privileged(CAP_MAC_OVERRIDE)) return 0; if (smack_syslog_label != NULL && smack_syslog_label != skp) rc = -EACCES; return rc; }
0
207,803
void add_interrupt_randomness(int irq, int irq_flags) { struct entropy_store *r; struct fast_pool *fast_pool = this_cpu_ptr(&irq_randomness); struct pt_regs *regs = get_irq_regs(); unsigned long now = jiffies; cycles_t cycles = random_get_entropy(); __u32 c_high, j_high; __u64 ip; unsigned long seed; i...
1
309,830
NCURSES_SP_NAME(mouseinterval) (NCURSES_SP_DCLx int maxclick) /* set the maximum mouse interval within which to recognize a click */ { int oldval; T((T_CALLED("mouseinterval(%p,%d)"), (void *) SP_PARM, maxclick)); if (SP_PARM != 0) { oldval = SP_PARM->_maxclick; if (maxclick >= 0) SP_PARM->_maxclic...
0
313,563
__acquires(rose_node_list_lock) { struct rose_node *rose_node; int i = 1; spin_lock_bh(&rose_node_list_lock); if (*pos == 0) return SEQ_START_TOKEN; for (rose_node = rose_node_list; rose_node && i < *pos; rose_node = rose_node->next, ++i); return (i == *pos) ? rose_node : NULL; }
0
337,843
struct sctp_chunk *sctp_make_ifwdtsn(const struct sctp_association *asoc, __u32 new_cum_tsn, size_t nstreams, struct sctp_ifwdtsn_skip *skiplist) { struct sctp_chunk *retval = NULL; struct sctp_ifwdtsn_hdr ftsn_hdr; size_t hint; hint = (nstreams + 1) * sizeof(__u32); retval = sctp_make_control(...
0
236,177
GF_Err tx3g_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem) { GF_Tx3gSampleEntryBox *ptr = (GF_Tx3gSampleEntryBox*)s; switch (a->type) { case GF_ISOM_BOX_TYPE_FTAB: BOX_FIELD_ASSIGN(font_table, GF_FontTableBox) break; default: return GF_OK; } return GF_OK; }
0
369,196
static int __io_sqe_buffers_update(struct io_ring_ctx *ctx, struct io_uring_rsrc_update2 *up, unsigned int nr_args) { u64 __user *tags = u64_to_user_ptr(up->tags); struct iovec iov, __user *iovs = u64_to_user_ptr(up->data); struct page *last_hpage = NULL; bool needs_switch = false; __u32 done; int ...
0
386,542
void DL_Dxf::writeUcs(DL_WriterA& dw) { dw.dxfString( 0, "TABLE"); dw.dxfString( 2, "UCS"); if (version==DL_VERSION_2000) { dw.dxfHex(5, 7); } //dw.dxfHex(330, 0); if (version==DL_VERSION_2000) { dw.dxfString(100, "AcDbSymbolTable"); } dw.dxfInt( 70, 0); dw.dxfStrin...
0
457,872
gegl_op_class_init (GeglOpClass *klass) { GeglOperationClass *operation_class; GObjectClass *object_class; operation_class = GEGL_OPERATION_CLASS (klass); object_class = G_OBJECT_CLASS (klass); object_class->finalize = finalize; operation_class->process = process; operation_class->...
0
196,328
find_pattern_in_path( char_u *ptr, // pointer to search pattern int dir UNUSED, // direction of expansion int len, // length of search pattern int whole, // match whole words only int skip_comments, // don't match inside comments int type, // Type of search; are we looking for a type? ...
1
415,205
cmd_setattr (assuan_context_t ctx, char *orig_line) { ctrl_t ctrl = assuan_get_pointer (ctx); int rc; char *keyword; int keywordlen; size_t nbytes; char *line, *linebuf; if ( IS_LOCKED (ctrl) ) return gpg_error (GPG_ERR_LOCKED); if ((rc = open_card (ctrl, NULL))) return rc; /* We need to us...
0
236,186
void text_box_del(GF_Box *s) { GF_TextSampleEntryBox *ptr = (GF_TextSampleEntryBox*)s; gf_isom_sample_entry_predestroy((GF_SampleEntryBox *)s); if (ptr->textName) gf_free(ptr->textName); gf_free(ptr); }
0
366,319
int path_mount(const char *dev_name, struct path *path, const char *type_page, unsigned long flags, void *data_page) { unsigned int mnt_flags = 0, sb_flags; int ret; /* Discard magic */ if ((flags & MS_MGC_MSK) == MS_MGC_VAL) flags &= ~MS_MGC_MSK; /* Basic sanity checks */ if (data_page) ((char *)data_pag...
0
261,428
static int decode_cbf_chroma(thread_context* tctx, int trafoDepth) { logtrace(LogSlice,"# cbf_chroma\n"); int bit = decode_CABAC_bit(&tctx->cabac_decoder, &tctx->ctx_model[CONTEXT_MODEL_CBF_CHROMA + trafoDepth]); logtrace(LogSymbols,"$1 cbf_chroma=%d\n",bit); return bit; }
0
463,192
static void init_internal() { if (!annotate_initialized) { annotate_init(NULL, NULL); cyrus_modules_add(done_cb, NULL); } if (!annotatemore_dbopen) { annotatemore_open(); } }
0
404,701
int receive_fd_replace(int new_fd, struct file *file, unsigned int o_flags) { int error; error = security_file_receive(file); if (error) return error; error = replace_fd(new_fd, file, o_flags); if (error) return error; __receive_sock(file); return new_fd; }
0
274,667
callbacks_switch_to_correct_cursor (void) { GdkWindow *drawing_area_window = screen.drawing_area->window; GdkCursor *cursor; if (screen.state == IN_MOVE) { cursor = gdk_cursor_new(GDK_FLEUR); gdk_window_set_cursor(drawing_area_window, cursor); gdk_cursor_destroy(cursor); return; } else if (screen.state ==...
0
400,119
set<int> PipeSocketHandler::getEndpointFds(const SocketEndpoint& endpoint) { lock_guard<std::recursive_mutex> guard(globalMutex); string pipePath = endpoint.name(); if (pipeServerSockets.find(pipePath) == pipeServerSockets.end()) { STFATAL << "Tried to getPipeFd on a pipe without calling listen() first: " ...
0
226,066
GF_Err dref_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 count; GF_DataReferenceBox *ptr = (GF_DataReferenceBox *)s; if (!s) return GF_BAD_PARAM; e = gf_isom_full_box_write(s, bs); if (e) return e; count = ptr->child_boxes ? gf_list_count(ptr->child_boxes) : 0; gf_bs_write_u32(bs, count); return GF_...
0
502,691
void SSL_CTX_sess_set_remove_cb(SSL_CTX *ctx, void (*cb) (SSL_CTX *ctx, SSL_SESSION *sess)) { ctx->remove_session_cb = cb; }
0
95,906
void AddUsageStatsWorkItems(const InstallationState& original_state, const InstallerState& installer_state, WorkItemList* install_list) { DCHECK(installer_state.operation() == InstallerState::MULTI_INSTALL || installer_state.operation() == InstallerStat...
0
234,145
cmalloc (size_t nmemb, size_t size) { /* Check for overflow. */ if (nmemb >= ~(size_t) 0 / size) return NULL; return xmalloc (nmemb * size); }
0
236,146
GF_Err dims_box_size(GF_Box *s) { u32 pos = 0; GF_DIMSSampleEntryBox *p = (GF_DIMSSampleEntryBox *)s; s->size += 8; gf_isom_check_position(s, (GF_Box *) p->config, &pos); gf_isom_check_position(s, (GF_Box *) p->scripts, &pos); return GF_OK; }
0
424,909
static void iwl_trans_pcie_write_prph(struct iwl_trans *trans, u32 addr, u32 val) { u32 mask = iwl_trans_pcie_prph_msk(trans); iwl_trans_pcie_write32(trans, HBUS_TARG_PRPH_WADDR, ((addr & mask) | (3 << 24))); iwl_trans_pcie_write32(trans, HBUS_TARG_PRPH_WDAT, val); }
0
359,474
quagga_timestamp(int timestamp_precision, char *buf, size_t buflen) { static struct { time_t last; size_t len; char buf[28]; } cache; struct timeval clock; /* would it be sufficient to use global 'recent_time' here? I fear not... */ gettimeofday(&clock, NULL); /* first, we update the cache if...
0
462,325
pcl_set_readback_loc_unit(pcl_args_t * pargs, pcl_state_t * pcs) { pcs->location_unit = uint_arg(pargs); return 0; }
0
450,413
static int protocol_client_msg(VncState *vs, uint8_t *data, size_t len) { int i; uint16_t limit; uint32_t freq; VncDisplay *vd = vs->vd; if (data[0] > 3) { update_displaychangelistener(&vd->dcl, VNC_REFRESH_INTERVAL_BASE); } switch (data[0]) { case VNC_MSG_CLIENT_SET_PIXEL_FORM...
0
293,533
PJ_DEF(void) pj_scan_get_newline( pj_scanner *scanner ) { if (!PJ_SCAN_IS_NEWLINE(*scanner->curptr)) { pj_scan_syntax_err(scanner); return; } if (*scanner->curptr == '\r') { ++scanner->curptr; } if (*scanner->curptr == '\n') { ++scanner->curptr; } ++scanner->line; scanner->start_li...
0
481,281
static void mlx5_fpga_conn_unmap_buf(struct mlx5_fpga_conn *conn, struct mlx5_fpga_dma_buf *buf) { struct device *dma_device; dma_device = &conn->fdev->mdev->pdev->dev; if (buf->sg[1].data) dma_unmap_single(dma_device, buf->sg[1].dma_addr, buf->sg[1].size, buf->dma_dir); if (likely(buf->sg[0].data...
0
424,918
static int iwl_pcie_init_msix_handler(struct pci_dev *pdev, struct iwl_trans_pcie *trans_pcie) { int i; for (i = 0; i < trans_pcie->alloc_vecs; i++) { int ret; struct msix_entry *msix_entry; const char *qname = queue_name(&pdev->dev, trans_pcie, i); if (!qname) return -ENOMEM; msix_entry = &...
0
459,184
void tc_cleanup_offload_action(struct flow_action *flow_action) { struct flow_action_entry *entry; int i; flow_action_for_each(i, entry, flow_action) { tcf_act_put_cookie(entry); if (entry->destructor) entry->destructor(entry->destructor_priv); } }
0