idx
int64
func
string
target
int64
409,485
out_trash(void) { out_pos = 0; }
0
221,144
GF_Err gf_odf_hevc_cfg_write(GF_HEVCConfig *cfg, u8 **outData, u32 *outSize) { GF_Err e; GF_BitStream *bs = gf_bs_new(NULL, 0, GF_BITSTREAM_WRITE); *outSize = 0; *outData = NULL; e = gf_odf_hevc_cfg_write_bs(cfg, bs); if (e==GF_OK) gf_bs_get_content(bs, outData, outSize); gf_bs_del(bs); return e; }
0
450,347
static bool check_solid_tile(VncState *vs, int x, int y, int w, int h, uint32_t* color, bool samecolor) { QEMU_BUILD_BUG_ON(VNC_SERVER_FB_BYTES != 4); return check_solid_tile32(vs, x, y, w, h, color, samecolor); }
0
512,585
Item_bool_rowready_func2* Gt_creator::create_swap(THD *thd, Item *a, Item *b) const { return new(thd->mem_root) Item_func_lt(thd, b, a); }
0
455,348
dequote_pathname (pathname) char *pathname; { if (MB_CUR_MAX > 1) wdequote_pathname (pathname); else udequote_pathname (pathname); }
0
238,570
static int resize_reference_state(struct bpf_func_state *state, size_t n) { state->refs = realloc_array(state->refs, state->acquired_refs, n, sizeof(struct bpf_reference_state)); if (!state->refs) return -ENOMEM; state->acquired_refs = n; return 0; }
0
513,277
int rr_sequential_and_unpack(READ_RECORD *info) { int error; if ((error= rr_sequential(info))) return error; for (Copy_field *cp= info->copy_field; cp != info->copy_field_end; cp++) (*cp->do_copy)(cp); return error; }
0
270,402
static bool ok_inflater_literal_tree(ok_inflater *inflater) { bool done = ok_inflater_inflate_huffman_tree(inflater, inflater->literal_huffman, inflater->code_length_huffman, inflater->num_literal_codes); if (done)...
0
273,898
static void handle_LIST(ctrl_t *ctrl, char *arg) { list(ctrl, arg, 0); }
0
442,800
static char *my_get_line(FILE *fp) { char buf[4096]; char *nl = NULL; char *retval = NULL; do { if (NULL == fgets(buf, sizeof(buf), fp)) break; if (NULL == retval) retval = strdup(buf); else { if (NULL == (retval = realloc(retval, str...
0
212,339
static size_t handle_returned_header (void *ptr, size_t size, size_t nmemb, void *stream) { auth_client *auth_user = stream; size_t bytes = size * nmemb; client_t *client = auth_user->client; if (client) { auth_t *auth = client->auth; auth_url *url = auth->state; if (strncas...
1
261,901
njs_decode_base64(njs_str_t *dst, const njs_str_t *src) { njs_decode_base64_core(dst, src, njs_basis64); }
0
317,353
static int smack_msg_queue_associate(struct kern_ipc_perm *isp, int msqflg) { int may; may = smack_flags_to_may(msqflg); return smk_curacc_msq(isp, may); }
0
253,566
static long smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode, loff_t off, loff_t len) { /* KEEP_SIZE already checked for by do_fallocate */ if (mode & FALLOC_FL_PUNCH_HOLE) return smb3_punch_hole(file, tcon, off, len); else if (mode & FALLOC_FL_ZERO_RANGE) { if (mode & FALLOC_FL_KEEP_SIZE...
0
463,128
EXPORTED int annotate_state_set_mailbox(annotate_state_t *state, struct mailbox *mailbox) { return annotate_state_set_scope(state, NULL, mailbox, 0); }
0
317,113
static int selinux_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid) { u32 peer_secid = SECSID_NULL; u16 family; struct inode_security_struct *isec; if (skb && skb->protocol == htons(ETH_P_IP)) family = PF_INET; else if (skb && skb->protocol == htons(ETH_P_IPV6)) family = PF_INET6;...
0
309,854
expected_params(const char *name) { #define DATA(name,count) { { name }, count } /* *INDENT-OFF* */ static const struct { const char name[9]; int count; } table[] = { DATA( "S0", 1 ), /* 'screen' extension */ DATA( "birep", 2 ), DATA( "chr", 1 ), DATA( "colornm", 1 ), DATA( "cpi", 1 ), DATA( "cs...
0
204,412
static void *__bpf_ringbuf_reserve(struct bpf_ringbuf *rb, u64 size) { unsigned long cons_pos, prod_pos, new_prod_pos, flags; u32 len, pg_off; struct bpf_ringbuf_hdr *hdr; if (unlikely(size > RINGBUF_MAX_RECORD_SZ)) return NULL; len = round_up(size + BPF_RINGBUF_HDR_SZ, 8); cons_pos = smp_load_acquire(&rb->co...
1
218,802
static MagickBooleanType ApplyPSDOpacityMask(Image *image,const Image *mask, Quantum background,MagickBooleanType revert,ExceptionInfo *exception) { Image *complete_mask; MagickBooleanType status; MagickPixelPacket color; ssize_t y; if (image->matte == MagickFalse) return(MagickTrue)...
0
256,460
void janet_array_setcount(JanetArray *array, int32_t count) { if (count < 0) return; if (count > array->count) { int32_t i; janet_array_ensure(array, count, 1); for (i = array->count; i < count; i++) { array->data[i] = janet_wrap_nil(); } } array->coun...
0
248,764
void Curl_cookie_loadfiles(struct Curl_easy *data) { struct curl_slist *list = data->state.cookielist; if(list) { Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE); while(list) { struct CookieInfo *newcookies = Curl_cookie_init(data, list->da...
0
445,932
fr_window_update_current_location (FrWindow *window) { const char *current_dir = fr_window_get_current_location (window); char *path; GtkTreeIter iter; if (window->priv->list_mode == FR_WINDOW_LIST_MODE_FLAT) { gtk_widget_hide (window->priv->location_bar); return; } gtk_widget_show (window->priv->loca...
0
256,140
explicit SparseMatMulOp(OpKernelConstruction* ctx) : OpKernel(ctx) { OP_REQUIRES_OK(ctx, ctx->GetAttr("transpose_a", &transpose_a_)); OP_REQUIRES_OK(ctx, ctx->GetAttr("transpose_b", &transpose_b_)); OP_REQUIRES_OK(ctx, ctx->GetAttr("a_is_sparse", &a_is_sparse_)); OP_REQUIRES_OK(ctx, ctx->GetAttr("b_is...
0
512,880
String *val_str(String *to) { return cached_time.to_string(to, decimals); }
0
242,898
Status operator()(OpKernelContext* context, typename TTypes<Tindex>::ConstVec reverse_index_map, typename TTypes<T>::ConstVec grad_values, typename TTypes<T>::Vec d_values, typename TTypes<T>::Scalar d_default_value) { const CPUDevice...
0
289,278
static snd_pcm_format_t snd_pcm_oss_format_from(int format) { switch (format) { case AFMT_MU_LAW: return SNDRV_PCM_FORMAT_MU_LAW; case AFMT_A_LAW: return SNDRV_PCM_FORMAT_A_LAW; case AFMT_IMA_ADPCM: return SNDRV_PCM_FORMAT_IMA_ADPCM; case AFMT_U8: return SNDRV_PCM_FORMAT_U8; case AFMT_S16_LE: return SNDRV_PCM_FO...
0
476,111
function_descriptors(struct usb_function *f, enum usb_device_speed speed) { struct usb_descriptor_header **descriptors; /* * NOTE: we try to help gadget drivers which might not be setting * max_speed appropriately. */ switch (speed) { case USB_SPEED_SUPER_PLUS: descriptors = f->ssp_descriptors; i...
0
430,459
int ovs_nla_get_identifier(struct sw_flow_id *sfid, const struct nlattr *ufid, const struct sw_flow_key *key, bool log) { struct sw_flow_key *new_key; if (ovs_nla_get_ufid(sfid, ufid, log)) return 0; /* If UFID was not provided, use unmasked key. */ new_key = kmalloc(sizeof(*new_key), GFP_KERNEL); if (!n...
0
223,411
static void compile_matchingpath(compiler_common *common, PCRE2_SPTR cc, PCRE2_SPTR ccend, backtrack_common *parent) { DEFINE_COMPILER; backtrack_common *backtrack; BOOL has_then_trap = FALSE; then_trap_backtrack *save_then_trap = NULL; SLJIT_ASSERT(*ccend == OP_END || (*ccend >= OP_ALT && *ccend <= OP_KETRPOS)); if ...
0
398,518
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; if (abbrev...
0
317,004
static struct smack_known *smk_fetch(const char *name, struct inode *ip, struct dentry *dp) { int rc; char *buffer; struct smack_known *skp = NULL; if (!(ip->i_opflags & IOP_XATTR)) return ERR_PTR(-EOPNOTSUPP); buffer = kzalloc(SMK_LONGLABEL, GFP_NOFS); if (buffer == NULL) return ERR_PTR(-ENOMEM); rc...
0
219,910
GF_Err gf_isom_sdp_get(GF_ISOFile *movie, const char **sdp, u32 *length) { GF_UserDataMap *map; GF_HintTrackInfoBox *hnti; GF_RTPBox *rtp; *length = 0; *sdp = NULL; if (!movie || !movie->moov) return GF_BAD_PARAM; //check if we have a udta ... if (!movie->moov->udta) return GF_OK; //find a hnti in the udta m...
0
387,793
Klass* InstanceKlass::array_klass_impl(bool or_null, int n, TRAPS) { // Need load-acquire for lock-free read if (array_klasses_acquire() == NULL) { if (or_null) return NULL; ResourceMark rm; JavaThread *jt = (JavaThread *)THREAD; { // Atomic creation of array_klasses MutexLocker mc(Comp...
0
335,411
ex_setfiletype(exarg_T *eap) { if (!did_filetype) { char_u *arg = eap->arg; if (STRNCMP(arg, "FALLBACK ", 9) == 0) arg += 9; set_option_value_give_err((char_u *)"filetype", 0L, arg, OPT_LOCAL); if (arg != eap->arg) did_filetype = FALSE; } }
0
447,055
FileIo::~FileIo() { close(); delete p_; }
0
381,866
static void udf_readahead(struct readahead_control *rac) { mpage_readahead(rac, udf_get_block); }
0
338,123
void WasmBinaryWriter::writeFeaturesSection() { if (!wasm->hasFeaturesSection || wasm->features.isMVP()) { return; } // TODO(tlively): unify feature names with rest of toolchain and use // FeatureSet::toString() auto toString = [](FeatureSet::Feature f) { switch (f) { case FeatureSet::Atomics: ...
0
314,483
static int FNAME(walk_addr)(struct guest_walker *walker, struct kvm_vcpu *vcpu, gpa_t addr, u64 access) { return FNAME(walk_addr_generic)(walker, vcpu, vcpu->arch.mmu, addr, access); }
0
512,274
Longlong_null to_longlong_null() { longlong nr= val_int(); /* C++ does not guarantee the order of parameter evaluation, so to make sure "null_value" is passed to the constructor after the val_int() call, val_int() is caled on a separate line. */ return Longlong_null(nr, null_value)...
0
508,380
void promote_select_describe_flag_if_needed(LEX *lex) { if (lex->describe) { lex->select_lex.options |= SELECT_DESCRIBE; } }
0
220,245
bool OutputTensor::operator==(const OutputTensor& other) const { return node == other.node && index == other.index; }
0
458,982
http_GetContentLength(const struct http *hp) { ssize_t cl; const char *b; CHECK_OBJ_NOTNULL(hp, HTTP_MAGIC); if (!http_GetHdr(hp, H_Content_Length, &b)) return (-1); cl = VNUM_uint(b, NULL, &b); if (cl < 0) return (-2); while (vct_islws(*b)) b++; if (*b != '\0') return (-2); return (cl); }
0
219,909
GF_Err AdjustHintInfo(GF_HintSampleEntryBox *entry, u32 HintSampleNumber) { u32 offset, count, i, size; GF_Err e; offset = gf_isom_hint_sample_size(entry->hint_sample) - entry->hint_sample->dataLength; count = gf_list_count(entry->hint_sample->packetTable); for (i=0; i<count; i++) { GF_HintPacket *pck = (GF_Hi...
0
512,575
bool Item_cond::walk(Item_processor processor, bool walk_subquery, void *arg) { List_iterator_fast<Item> li(list); Item *item; while ((item= li++)) if (item->walk(processor, walk_subquery, arg)) return 1; return Item_func::walk(processor, walk_subquery, arg); }
0
352,932
numericStringNormalize( slap_mask_t usage, Syntax *syntax, MatchingRule *mr, struct berval *val, struct berval *normalized, void *ctx ) { /* removal all spaces */ char *p, *q; assert( !BER_BVISEMPTY( val ) ); normalized->bv_val = slap_sl_malloc( val->bv_len + 1, ctx ); p = val->bv_val; q = normalized->bv...
0
282,982
LJ_NOINLINE void lj_err_argv(lua_State *L, int narg, ErrMsg em, ...) { const char *msg; va_list argp; va_start(argp, em); msg = lj_str_pushvf(L, err2msg(em), argp); va_end(argp); err_argmsg(L, narg, msg); }
0
245,162
lock_binlog_maybe(MYSQL *connection, int timeout, int retry_count) { if (have_backup_locks && !opt_no_lock && !binlog_locked) { if (have_lock_wait_timeout) { char query[200]; ut_snprintf(query, sizeof(query), "SET SESSION lock_wait_timeout=%d", timeout); } for (int i = 0; i <= retry_count...
0
512,635
int Arg_comparator::compare_e_decimal() { VDec val1(*a), val2(*b); if (val1.is_null() || val2.is_null()) return MY_TEST(val1.is_null() && val2.is_null()); val1.round_self_if_needed((*a)->decimals, HALF_UP); val2.round_self_if_needed((*b)->decimals, HALF_UP); return MY_TEST(val1.cmp(val2) == 0); }
0
448,533
void bgp_update_implicit_eors(struct peer *peer) { if (!bgp_update_delay_active(peer->bgp)) return; /* BGP update delay has ended */ if (peer->update_delay_over) return; /* This peer has already been considered */ if (bgp_debug_neighbor_events(peer)) zlog_debug("Peer %s: Checking implicit EORs", peer->host); ...
0
261,402
static int decode_rqt_root_cbf(thread_context* tctx) { logtrace(LogSlice,"# rqt_root_cbf\n"); int bit = decode_CABAC_bit(&tctx->cabac_decoder, &tctx->ctx_model[CONTEXT_MODEL_RQT_ROOT_CBF]); logtrace(LogSymbols,"$1 rqt_root_cbf=%d\n",bit); return bit; }
0
500,668
static sftp_attributes sftp_parse_attr_4(sftp_session sftp, ssh_buffer buf, int expectnames) { sftp_attributes attr; ssh_string owner = NULL; ssh_string group = NULL; uint32_t flags = 0; int ok = 0; /* unused member variable */ (void) expectnames; attr = malloc(sizeof(struct sftp_attributes_struct...
0
270,768
static int login_global_init(void) { login_fail_command = xstrdup("boot"); globalvar_add_simple_int("login.timeout", &login_timeout, "%d"); globalvar_add_simple_string("login.fail_command", &login_fail_command); return 0; }
0
444,892
assemble_mountinfo(struct parsed_mount_info *parsed_info, const char *thisprogram, const char *mountpoint, const char *orig_dev, char *orgoptions) { int rc; rc = drop_capabilities(0); if (rc) goto assemble_exit; rc = drop_child_privs(); if (rc) goto assemble_exit; if (getuid()) { rc = check_fst...
0
352,978
serialNumberAndIssuerSerialPretty( Syntax *syntax, struct berval *in, struct berval *out, void *ctx ) { struct berval sn, i, i_sn, ni = BER_BVNULL; char *p; int rc; assert( in != NULL ); assert( out != NULL ); Debug( LDAP_DEBUG_TRACE, ">>> serialNumberAndIssuerSerialPretty: <%s>\n", in->bv_val ); rc = s...
0
225,710
GF_Err dac3_box_read(GF_Box *s, GF_BitStream *bs) { GF_AC3ConfigBox *ptr = (GF_AC3ConfigBox *)s; if (ptr == NULL) return GF_BAD_PARAM; return gf_odf_ac3_config_parse_bs(bs, ptr->cfg.is_ec3, &ptr->cfg);
0
343,122
static void esp6_destroy(struct xfrm_state *x) { struct crypto_aead *aead = x->data; if (!aead) return; crypto_free_aead(aead); }
0
259,292
static int mov_read_kind(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVFormatContext *ctx = c->fc; AVStream *st = NULL; AVBPrint scheme_buf, value_buf; int64_t scheme_str_len = 0, value_str_len = 0; int version, flags, ret = AVERROR_BUG; int64_t size = atom.size; if (atom.size < 6) ...
0
291,820
int rtrs_clt_request(int dir, struct rtrs_clt_req_ops *ops, struct rtrs_clt_sess *clt, struct rtrs_permit *permit, const struct kvec *vec, size_t nr, size_t data_len, struct scatterlist *sg, unsigned int sg_cnt) { struct rtrs_clt_io_req *req; struct rtrs_clt_path *clt_path; enum dma_data_direct...
0
477,813
int kvm_vm_ioctl_rtas_define_token(struct kvm *kvm, void __user *argp) { struct kvm_rtas_token_args args; int rc; if (copy_from_user(&args, argp, sizeof(args))) return -EFAULT; mutex_lock(&kvm->arch.rtas_token_lock); if (args.token) rc = rtas_token_define(kvm, args.name, args.token); else rc = rtas_token...
0
256,165
inline void SparseMatMul<TL, TR>::Compute( typename SparseMatMul<TL, TR>::TensorInfoCache* /*cache*/, const typename SparseMatMul<TL, TR>::ConstMatrixMapL& left, const typename SparseMatMul<TL, TR>::ConstMatrixMapR& right, bool transpose_left, const DeviceBase::CpuWorkerThreads* thread_pool, bool tr...
0
263,495
static int sco_sock_accept(struct socket *sock, struct socket *newsock, int flags, bool kern) { DEFINE_WAIT_FUNC(wait, woken_wake_function); struct sock *sk = sock->sk, *ch; long timeo; int err = 0; lock_sock(sk); timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK); BT_DBG("sk %p timeo %ld", sk, timeo); /* ...
0
386,573
DL_Dxf::DL_Dxf() { version = DL_VERSION_2000; vertices = NULL; maxVertices = 0; vertexIndex = 0; knots = NULL; maxKnots = 0; knotIndex = 0; weights = NULL; weightIndex = 0; controlPoints = NULL; maxControlPoints = 0; controlPointIndex = 0; fitPoints = NULL; m...
0
437,299
concat_opt_exact(OptExact* to, OptExact* add, OnigEncoding enc) { int i, j, len, r; UChar *p, *end; OptAnc tanc; if (! to->ignore_case && add->ignore_case) { if (to->len >= add->len) return 0; /* avoid */ to->ignore_case = 1; } r = 0; p = add->s; end = p + add->len; for (i = to->len; p < e...
0
498,141
void html_header_arg_in_quotes(const char *txt) { const char *t = txt; while (t && *t) { unsigned char c = *t; const char *e = NULL; if (c == '\\') e = "\\\\"; else if (c == '\r') e = "\\r"; else if (c == '\n') e = "\\n"; else if (c == '"') e = "\\\""; if (e) { html_raw(txt, t - txt); ...
0
292,236
inbound_privmsg (server *serv, char *from, char *ip, char *text, int id, const message_tags_data *tags_data) { session *sess; struct User *user; char idtext[64]; gboolean nodiag = FALSE; sess = find_dialog (serv, from); if (sess || prefs.hex_gui_autoopen_dialog) { /*0=ctcp 1=priv will set hex_gui_aut...
0
329,892
_cairo_image_bounded_spans (void *abstract_renderer, int y, int height, 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_com...
0
226,188
GF_Err rtp_hnti_box_size(GF_Box *s) { GF_RTPBox *ptr = (GF_RTPBox *)s; ptr->size += 4 + strlen(ptr->sdpText); return GF_OK; }
0
242,936
static int ssl_handle_possible_reconnect( mbedtls_ssl_context *ssl ) { int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; size_t len; if( ssl->conf->f_cookie_write == NULL || ssl->conf->f_cookie_check == NULL ) { /* If we can't use cookies to verify reachability of the peer, * dr...
0
310,330
dirserv_get_directory(void) { return dirserv_pick_cached_dir_obj(cached_directory, the_directory, the_directory_is_dirty, dirserv_regenerate_directory, "v1 server directory", V1_AUTHORITY); }
0
254,006
static unsigned int v4l2_loopback_poll(struct file *file, struct poll_table_struct *pts) { struct v4l2_loopback_opener *opener; struct v4l2_loopback_device *dev; int ret_mask = 0; MARK(); opener = file->private_data; dev = v4l2loopback_getdevice(file); switch (opener->type) { case WRITER: ret_mask = POLL...
0
424,533
static UINT video_VideoData(VideoClientContext* context, TSMM_VIDEO_DATA* data) { VideoClientContextPriv* priv = context->priv; PresentationContext* presentation; int status; presentation = priv->currentPresentation; if (!presentation) { WLog_ERR(TAG, "no current presentation"); return CHANNEL_RC_OK; } if...
0
301,363
static int vfswrap_mkdir(vfs_handle_struct *handle, const char *path, mode_t mode) { int result; bool has_dacl = False; char *parent = NULL; START_PROFILE(syscall_mkdir); if (lp_inherit_acls(SNUM(handle->conn)) && parent_dirname(talloc_tos(), path, &parent, NULL) && (has_dacl = directory_has_default_ac...
0
333,040
re2post(void) { if (nfa_reg(REG_NOPAREN) == FAIL) return NULL; EMIT(NFA_MOPEN); return post_start; }
0
252,416
mz_bool mz_zip_reader_init_mem(mz_zip_archive *pZip, const void *pMem, size_t size, mz_uint32 flags) { if (!mz_zip_reader_init_internal(pZip, flags)) return MZ_FALSE; pZip->m_archive_size = size; pZip->m_pRead = mz_zip_mem_read_func; pZip->m_pIO_opaque = pZip; #ifdef __cplusplus ...
0
386,512
void DL_Dxf::writeBlockRecord(DL_WriterA& dw, const std::string& name) { dw.dxfString( 0, "BLOCK_RECORD"); if (version==DL_VERSION_2000) { dw.handle(); } //dw->dxfHex(330, 1); if (version==DL_VERSION_2000) { dw.dxfString(100, "AcDbSymbolTableRecord"); dw.dxfString(100, "AcDb...
0
274,861
TEST(ComparisonsTest, LessEqualFloat) { ComparisonOpModel model({1, 1, 1, 4}, {1, 1, 1, 4}, TensorType_FLOAT32, BuiltinOperator_LESS_EQUAL); model.PopulateTensor<float>(model.input1(), {0.1, 0.9, 0.7, 0.3}); model.PopulateTensor<float>(model.input2(), {0.1, 0.2, 0.6, 0.5}); model.Invok...
0
484,772
static int xennet_connect(struct net_device *dev) { struct netfront_info *np = netdev_priv(dev); unsigned int num_queues = 0; int err; unsigned int j = 0; struct netfront_queue *queue = NULL; if (!xenbus_read_unsigned(np->xbdev->otherend, "feature-rx-copy", 0)) { dev_info(&dev->dev, "backend does not suppo...
0
294,431
m_amjd(union DateData *x) { VALUE r, sf; int df; r = m_real_jd(x); if (FIXNUM_P(r) && FIX2LONG(r) >= (FIXNUM_MIN + 2400001)) { long ir = FIX2LONG(r); ir -= 2400001; r = rb_rational_new1(LONG2FIX(ir)); } else r = rb_rational_new1(f_sub(m_real_jd(x), INT2FIX(2400001))); if (simple...
0
352,954
serialNumberAndIssuerValidate( Syntax *syntax, struct berval *in ) { int rc; struct berval sn, i; Debug( LDAP_DEBUG_TRACE, ">>> serialNumberAndIssuerValidate: <%s>\n", in->bv_val ); rc = serialNumberAndIssuerCheck( in, &sn, &i, NULL ); if ( rc ) { goto done; } /* validate DN -- doesn't handle double dqu...
0
437,674
static inline void control_tx_modulation_enable(struct cx23885_dev *dev, bool enable) { cx23888_ir_and_or4(dev, CX23888_IR_CNTRL_REG, ~CNTRL_MOD, enable ? CNTRL_MOD : 0); }
0
215,992
load_image (const gchar *filename, GError **error) { FILE *fp; tga_info info; guchar header[18]; guchar footer[26]; guchar extension[495]; long offset; gint32 image_ID = -1; gimp_progress_init_printf (_("Opening '%s'"), gimp_filename_...
1
216,027
pax_decode_header (struct tar_sparse_file *file) { if (file->stat_info->sparse_major > 0) { uintmax_t u; char nbuf[UINTMAX_STRSIZE_BOUND]; union block *blk; char *p; size_t i; off_t start; #define COPY_BUF(b,buf,src) do \ { ...
1
455,390
__xfs_inode_free( struct xfs_inode *ip) { /* asserts to verify all state is correct here */ ASSERT(atomic_read(&ip->i_pincount) == 0); XFS_STATS_DEC(ip->i_mount, vn_active); call_rcu(&VFS_I(ip)->i_rcu, xfs_inode_free_callback); }
0
238,323
struct digest *digest_alloc(const char *name) { struct digest *d; struct digest_algo *algo; algo = digest_algo_get_by_name(name); if (!algo) return NULL; d = xzalloc(sizeof(*d)); d->algo = algo; d->ctx = xzalloc(algo->ctx_length); if (d->algo->alloc(d)) { digest_free(d); return NULL; } return d; }
0
294,648
offset_to_sec(VALUE vof, int *rof) { int try_rational = 1; again: switch (TYPE(vof)) { case T_FIXNUM: { long n; n = FIX2LONG(vof); if (n != -1 && n != 0 && n != 1) return 0; *rof = (int)n * DAY_IN_SECONDS; return 1; } case T_FLOAT: { double n; n = RFLOAT_...
0
313,758
find_is_eval_item( char_u *ptr, int *colp, int *bnp, int dir) { // Accept everything inside []. if ((*ptr == ']' && dir == BACKWARD) || (*ptr == '[' && dir == FORWARD)) ++*bnp; if (*bnp > 0) { if ((*ptr == '[' && dir == BACKWARD) || (*ptr == ']' && dir == FORWARD)) --*bnp; ret...
0
270,765
int passwd_env_disable(void) { return unlink(PASSWD_FILE); }
0
253,552
smb2_compare_fids(struct cifsFileInfo *ob1, struct cifsFileInfo *ob2) { return ob1->fid.persistent_fid == ob2->fid.persistent_fid && ob1->fid.volatile_fid == ob2->fid.volatile_fid; }
0
308,160
static void fastrpc_map_get(struct fastrpc_map *map) { if (map) kref_get(&map->refcount); }
0
267,956
static RBinPlugin *get_plugin_from_buffer(RBin *bin, RBinFile *bf, const char *pluginname, RBuffer *buf) { RBinPlugin *plugin = bin->force? r_bin_get_binplugin_by_name (bin, bin->force): NULL; if (plugin) { return plugin; } plugin = pluginname? r_bin_get_binplugin_by_name (bin, pluginname): NULL; if (plugin) { ...
0
383,322
gdImageCopyResized (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH) { int c; int x, y; int tox, toy; int ydest; int i; int colorMap[gdMaxColors]; /* Stretch vectors */ int *stx, *sty; /* We only need to use floating point to determine the correct ...
0
247,722
const std::string& expectedCiphersuite() const { return expected_cipher_suite_; }
0
459,515
static inline int stack_map_data_size(struct bpf_map *map) { return stack_map_use_build_id(map) ? sizeof(struct bpf_stack_build_id) : sizeof(u64); }
0
244,127
GF_Box *mvcg_box_new() { ISOM_DECL_BOX_ALLOC(GF_MultiviewGroupBox, GF_ISOM_BOX_TYPE_MVCG); return (GF_Box *)tmp; }
0
487,633
asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5) { long error; error = security_task_prctl(option, arg2, arg3, arg4, arg5); if (error) return error; switch (option) { case PR_SET_PDEATHSIG: if (!valid_signal(arg2)) { error = -EIN...
0
329,889
fill_boxes (void *_dst, cairo_operator_t op, const cairo_color_t *color, cairo_boxes_t *boxes) { cairo_image_surface_t *dst = _dst; struct _cairo_boxes_chunk *chunk; uint32_t pixel; int i; TRACE ((stderr, "%s x %d\n", __FUNCTION__, boxes->num_boxes)); if (fill_reduces_to_sourc...
0
369,197
static __cold void io_uring_show_fdinfo(struct seq_file *m, struct file *f) { struct io_ring_ctx *ctx = f->private_data; if (percpu_ref_tryget(&ctx->refs)) { __io_uring_show_fdinfo(ctx, m); percpu_ref_put(&ctx->refs); }
0
223,372
static SLJIT_INLINE void add_jump(struct sljit_compiler *compiler, jump_list **list, struct sljit_jump *jump) { jump_list *list_item = sljit_alloc_memory(compiler, sizeof(jump_list)); if (list_item) { list_item->next = *list; list_item->jump = jump; *list = list_item; } }
0
310,118
init_xterm_mouse(SCREEN *sp) { sp->_mouse_type = M_XTERM; sp->_mouse_format = MF_X10; sp->_mouse_xtermcap = tigetstr("XM"); if (VALID_STRING(sp->_mouse_xtermcap)) { char *code = strstr(sp->_mouse_xtermcap, "[?"); if (code != 0) { code += 2; while ((*code >= '0') && (*code <= '9')) { char *...
0
209,049
xmlParseStartTag2(xmlParserCtxtPtr ctxt, const xmlChar **pref, const xmlChar **URI, int *tlen) { const xmlChar *localname; const xmlChar *prefix; const xmlChar *attname; const xmlChar *aprefix; const xmlChar *nsname; xmlChar *attvalue; const xmlChar **atts = ctxt->atts; ...
1