idx
int64
func
string
target
int64
9,342
png_get_copyright(png_structp png_ptr) { PNG_UNUSED(png_ptr) /* Silence compiler warning about unused png_ptr */ #ifdef PNG_STRING_COPYRIGHT return PNG_STRING_COPYRIGHT #else #ifdef __STDC__ return ((png_charp) PNG_STRING_NEWLINE \ "libpng version 1.2.52 - November 20, 2014" PNG_STRING_NEWLINE \ ...
1
212,324
gx_dc_shading_path_add_box(gx_path *ppath, const gx_device_color * pdevc) { gs_pattern2_instance_t *pinst = (gs_pattern2_instance_t *)pdevc->ccolor.pattern; const gs_shading_t *psh = pinst->templat.Shading; if (!psh->params.have_BBox) return_error(gs_error_unregistered); /* Do not call in this case...
0
7,230
static void vgacon_scrolldelta(struct vc_data *c, int lines) { vc_scrolldelta_helper(c, lines, vga_rolled_over, (void *)vga_vram_base, vga_vram_size); vga_set_mem_top(c); }
1
104,577
int STDCALL mysql_send_query(MYSQL* mysql, const char* query, ulong length) { DBUG_ENTER("mysql_send_query"); DBUG_RETURN(simple_command(mysql, COM_QUERY, (uchar*) query, length, 1));
0
270,044
dir_is_locked (GFile *dir) { glnx_autofd int ref_fd = -1; struct flock lock = {0}; g_autoptr(GFile) reffile = NULL; reffile = g_file_resolve_relative_path (dir, "files/.ref"); ref_fd = open (flatpak_file_get_path_cached (reffile), O_RDWR | O_CLOEXEC); if (ref_fd != -1) { lock.l_type = F_WRLCK; ...
0
310,922
run_selftests (int algo, int extended, selftest_report_func_t report) { (void)extended; if (algo != GCRY_PK_ECC) return GPG_ERR_PUBKEY_ALGO; return selftests_ecdsa (report); }
0
439,167
static void inode_dnode_free(dnode_t *node, void *context EXT2FS_ATTR((unused))) { struct dup_inode *di; struct cluster_el *p, *next; di = (struct dup_inode *) dnode_get(node); for (p = di->cluster_list; p; p = next) { next = p->next; free(p); } free(di); free(node); }
0
67,905
static struct dm_table *dm_get_inactive_table(struct mapped_device *md, int *srcu_idx) { struct hash_cell *hc; struct dm_table *table = NULL; /* increment rcu count, we don't care about the table pointer */ dm_get_live_table(md, srcu_idx); down_read(&_hash_lock); hc = dm_get_mdptr(md); if (!hc || hc->md != md)...
0
415,319
disconnect_callback (GDBusProxy *proxy, GAsyncResult *res, GSimpleAsyncResult *simple) { gboolean retval; GError *error = NULL; retval = device1_call_disconnect_finish (DEVICE1(proxy), res, &error); if (retval == FALSE) { g_debug ("Disconnect failed for %s: %s", g_dbus_proxy_get_object_path (...
0
430,048
int htp_hdr_valcb(llhttp_t *htp, const char *data, size_t len) { auto upstream = static_cast<HttpsUpstream *>(htp->data); auto downstream = upstream->get_downstream(); auto &req = downstream->request(); if (req.fs.buffer_size() + len > get_config()->http.request_header_field_buffer) { if (LOG_ENABLED...
0
80,427
void rcuwait_wake_up(struct rcuwait *w) { struct task_struct *task; rcu_read_lock(); /* * Order condition vs @task, such that everything prior to the load * of @task is visible. This is the condition as to why the user called * rcuwait_trywake() in the first place. Pairs with set_current_state() * barrier ...
0
219,469
void CSoundFile::MidiPortamento(CHANNELINDEX nChn, int param, bool doFineSlides) { int actualParam = mpt::abs(param); int pitchBend = 0; if(doFineSlides && actualParam >= 0xE0 && !m_playBehaviour[kOldMIDIPitchBends]) { if(m_PlayState.Chn[nChn].isFirstTick) { pitchBend = (actualParam & 0x0F) * sgn(param); ...
0
467,640
static int _annotate_rewrite(struct mailbox *oldmailbox, uint32_t olduid, const char *olduserid, struct mailbox *newmailbox, uint32_t newuid, const char *newuserid, ...
0
306,253
irc_protocol_recv_command (struct t_irc_server *server, const char *irc_message, const char *msg_command, const char *msg_channel) { int i, cmd_found, return_code, argc, decode_color, keep_trailing_spaces; int message_ignored, flag...
0
340,513
CPUMIPSState *cpu_mips_init (const char *cpu_model) { CPUMIPSState *env; const mips_def_t *def; def = cpu_mips_find_by_name(cpu_model); if (!def) return NULL; env = qemu_mallocz(sizeof(CPUMIPSState)); env->cpu_model = def; cpu_exec_init(env); env->cpu_model_str = cp...
1
304,949
void flushRequestsAndLoopN(uint64_t n, bool eof=false, milliseconds eofDelay=milliseconds(0), milliseconds initialDelay=milliseconds(0), std::function<void()> extraEventsFn = std::function<void()>()) { flushRequests(eof, eofDelay, initialDelay, extraEventsFn); for (uint64_t i = 0; i < n; i++) { ...
0
162,903
std::unique_ptr<TracedValue> InspectorPaintImageEvent::Data( const LayoutImage& layout_image, const FloatRect& src_rect, const FloatRect& dest_rect) { std::unique_ptr<TracedValue> value = TracedValue::Create(); SetGeneratingNodeInfo(value.get(), &layout_image, "nodeId"); if (const ImageResourceContent...
0
238,738
void RenderFrameHostManager::SetRWHViewForInnerContents( RenderWidgetHostView* child_rwhv) { DCHECK(ForInnerDelegate() && frame_tree_node_->IsMainFrame()); GetProxyToOuterDelegate()->SetChildRWHView(child_rwhv, nullptr); }
0
80,771
void t2p_free(T2P* t2p) { int i = 0; if (t2p != NULL) { if(t2p->pdf_xrefoffsets != NULL){ _TIFFfree( (tdata_t) t2p->pdf_xrefoffsets); } if(t2p->tiff_pages != NULL){ _TIFFfree( (tdata_t) t2p->tiff_pages); } for(i=0;i<t2p->tiff_pagecount;i++){ if(t2p->tiff_tiles[i].tiles_tiles != NULL){ _TIFFfre...
0
139,286
int jffs2_init_acl_post(struct inode *inode) { int rc; if (inode->i_default_acl) { rc = __jffs2_set_acl(inode, JFFS2_XPREFIX_ACL_DEFAULT, inode->i_default_acl); if (rc) return rc; } if (inode->i_acl) { rc = __jffs2_set_acl(inode, JFFS2_XPREFIX_ACL_ACCESS, inode->i_acl); if (rc) return rc; } retur...
0
6,420
bool read_ujpg( void ) { using namespace IOUtil; using namespace Sirikata; // colldata.start_decoder_worker_thread(std::bind(&simple_decoder, &colldata, str_in)); unsigned char ujpg_mrk[ 64 ]; // this is where we will enable seccomp, before reading user data write_byte_bill(Billing::HEADER, true,...
1
260,326
void check_ndpi_udp_flow_func(struct ndpi_detection_module_struct *ndpi_str, struct ndpi_flow_struct *flow, NDPI_SELECTION_BITMASK_PROTOCOL_SIZE *ndpi_selection_packet) { void *func = NULL; u_int32_t a; u_int16_t proto_index = ndpi_str->proto_defaults[flow->guessed_protocol_id].proto...
0
498,501
TEST_F(RouterTest, RetryUpstreamReset) { NiceMock<Http::MockRequestEncoder> encoder1; Http::ResponseDecoder* response_decoder = nullptr; EXPECT_CALL(cm_.thread_local_cluster_.conn_pool_, newStream(_, _)) .WillOnce(Invoke( [&](Http::ResponseDecoder& decoder, Http::ConnectionPool::Call...
0
508,450
int SSL_state(const SSL *ssl) { return (ssl->state); }
0
257,258
static int calc_slice_sizes ( VC2EncContext * s ) { int i , j , slice_x , slice_y , bytes_left = 0 ; int bytes_top [ SLICE_REDIST_TOTAL ] = { 0 } ; int64_t total_bytes_needed = 0 ; int slice_redist_range = FFMIN ( SLICE_REDIST_TOTAL , s -> num_x * s -> num_y ) ; SliceArgs * enc_args = s -> slice_args ; SliceArg...
0
216,921
void RenderWidgetHostViewAura::CopyFromCompositingSurfaceHasResultForVideo( base::WeakPtr<RenderWidgetHostViewAura> rwhva, scoped_refptr<OwnedMailbox> subscriber_texture, scoped_refptr<media::VideoFrame> video_frame, const base::Callback<void(bool)>& callback, scoped_ptr<cc::CopyOutputResult> result...
0
359,398
check_mountpoint(const char *progname, char *mountpoint) { int err; struct stat statbuf; /* does mountpoint exist and is it a directory? */ err = stat(".", &statbuf); if (err) { fprintf(stderr, "%s: failed to stat %s: %s\n", progname, mountpoint, strerror(errno)); return EX_USAGE; } if (!S_ISDIR(statbu...
0
275,191
unsigned long SSL_CIPHER_get_id(const SSL_CIPHER* cipher) { return cipher->id; }
0
138,568
static int compat_getdrvstat(int drive, bool poll, struct compat_floppy_drive_struct __user *arg) { struct compat_floppy_drive_struct v; memset(&v, 0, sizeof(struct compat_floppy_drive_struct)); mutex_lock(&floppy_mutex); if (poll) { if (lock_fdc(drive)) goto Eintr; if (poll_drive(true, FD_RAW_NEED_...
0
155,186
static struct sched_domain *__build_book_sched_domain(struct s_data *d, const struct cpumask *cpu_map, struct sched_domain_attr *attr, struct sched_domain *parent, int i) { struct sched_domain *sd = parent; #ifdef CONFIG_SCHED_BOOK sd = &per_cpu(book_domains, i).sd; SD_INIT(sd, BOOK); set_domain_attribute(sd, att...
0
152,574
static void json_tokener_reset_level(struct json_tokener *tok, int depth) { tok->stack[depth].state = json_tokener_state_eatws; tok->stack[depth].saved_state = json_tokener_state_start; json_object_put(tok->stack[depth].current); tok->stack[depth].current = NULL; free(tok->stack[depth].obj_field_name); tok-...
0
119,893
static int try_open_file(Jsi_Interp *interp, FileObj *udf, Jsi_Value *args) { int ret = JSI_ERROR; fileObjErase(udf); // TODO: stdin, stdout, stderr, etc. Jsi_Value *fname = Jsi_ValueArrayIndex(interp, args, 0); if (fname && Jsi_ValueIsString(interp, fname)) { Jsi_Value *vmode = Jsi_ValueArr...
0
175,564
bool InputMethodIBus::DispatchKeyEvent(const base::NativeEvent& native_event) { DCHECK(native_event && (native_event->type == KeyPress || native_event->type == KeyRelease)); DCHECK(system_toplevel_window_focused()); uint32 ibus_keyval = 0; uint32 ibus_keycode = 0; uint32 ibus_state ...
0
225,125
gchar* webkit_web_view_get_selected_text(WebKitWebView* webView) { g_return_val_if_fail(WEBKIT_IS_WEB_VIEW(webView), 0); Frame* frame = core(webView)->focusController()->focusedOrMainFrame(); return g_strdup(frame->editor()->selectedText().utf8().data()); }
0
417,042
ofputil_encode_port_status(const struct ofputil_port_status *ps, enum ofputil_protocol protocol) { struct ofp_port_status *ops; struct ofpbuf *b; enum ofp_version version; enum ofpraw raw; version = ofputil_protocol_to_ofp_version(protocol); switch (version) { cas...
0
186,484
void InspectorResourceAgent::didReceiveData(LocalFrame*, unsigned long identifier, const char* data, int dataLength, int encodedDataLength) { String requestId = IdentifiersFactory::requestId(identifier); if (data) { NetworkResourcesData::ResourceData const* resourceData = m_resourcesData->data(requestI...
0
235,246
gfx::SelectionBound GetSelectionBoundFromRect(const gfx::Rect& rect) { gfx::SelectionBound bound; bound.SetEdge(gfx::PointF(rect.origin()), gfx::PointF(rect.bottom_left())); return bound; }
0
449,106
check_socket_flag(int sock_flag, int fd_flag, int fs_flag) { int sock_fd, fd_flags, fs_flags; sock_fd = socket(AF_INET, SOCK_DGRAM | sock_flag, 0); if (sock_fd < 0) return 0; fd_flags = fcntl(sock_fd, F_GETFD); fs_flags = fcntl(sock_fd, F_GETFL); close(sock_fd); if (fd_flags == -1 || (fd_flags & f...
0
293,226
static gboolean property_exists_modalias(const GDBusPropertyTable *property, void *user_data) { struct btd_adapter *adapter = user_data; return adapter->modalias ? TRUE : FALSE; }
0
485,840
sctp_disposition_t sctp_sf_operr_notify(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) { struct sctp_chunk *chunk = arg; struct sctp_ulpevent *ev; if (!sctp_vtag_verify(chunk, asoc)) return sctp_sf_pdiscard(e...
0
401,262
static void macsec_changelink_common(struct net_device *dev, struct nlattr *data[]) { struct macsec_secy *secy; struct macsec_tx_sc *tx_sc; secy = &macsec_priv(dev)->secy; tx_sc = &secy->tx_sc; if (data[IFLA_MACSEC_ENCODING_SA]) { struct macsec_tx_sa *tx_sa; tx_sc->encoding_sa = nla_get_u8(data[IFL...
0
462,019
void intel_uc_fw_dump(const struct intel_uc_fw *uc_fw, struct drm_printer *p) { drm_printf(p, "%s firmware: %s\n", intel_uc_fw_type_repr(uc_fw->type), uc_fw->path); drm_printf(p, "\tstatus: %s\n", intel_uc_fw_status_repr(uc_fw->status)); drm_printf(p, "\tversion: wanted %u.%u, found %u.%u\n", uc_fw->m...
0
2,827
static bool states_equal(struct bpf_verifier_env *env, struct bpf_verifier_state *old, struct bpf_verifier_state *cur) { int i; if (old->curframe != cur->curframe) return false; /* for states to be equal callsites have to be the same * and all frame states need to be equivalent */ for (i = 0; i <= o...
1
353,411
dtls1_process_out_of_seq_message(SSL *s, struct hm_header_st* msg_hdr, int *ok) { int i=-1; hm_fragment *frag = NULL; pitem *item = NULL; unsigned char seq64be[8]; unsigned long frag_len = msg_hdr->frag_len; if ((msg_hdr->frag_off+frag_len) > msg_hdr->msg_len) goto err; /* Try to find item in queue, to preve...
1
276,745
count_faces_sfnt( char* fond_data ) { /* The count is 1 greater than the value in the FOND. */ /* Isn't that cute? :-) */ return EndianS16_BtoN( *( (short*)( fond_data + sizeof ( FamRec ) ) ) ) + 1; }
0
332,020
static void gic_complete_irq(gic_state * s, int cpu, int irq) { int update = 0; int cm = 1 << cpu; DPRINTF("EOI %d\n", irq); if (s->running_irq[cpu] == 1023) return; /* No active IRQ. */ if (irq != 1023) { /* Mark level triggered interrupts as pending if they are still ...
1
418,939
ZEND_METHOD(Generator, next) { zend_generator *generator; if (zend_parse_parameters_none() == FAILURE) { return; } generator = (zend_generator *) Z_OBJ_P(getThis()); zend_generator_ensure_initialized(generator); zend_generator_resume(generator); }
0
503,238
TEST_F(OptimizePipeline, InternalizeProjectAndPushdownAddFields) { auto unpackSpecObj = fromjson( "{$_internalUnpackBucket: { exclude: [], timeField: 'time', metaField: 'myMeta', " "bucketMaxSpanSeconds: 3600}}"); auto projectSpecObj = fromjson("{$project: {x: true, y: true, myMeta: true}}"); ...
0
370,746
static void tripmate_event_hook(struct gps_device_t *session, event_t event) { if (session->context->readonly) return; /* TripMate requires this response to the ASTRAL it sends at boot time */ if (event == event_identified) (void)nmea_send(session, "$IIGPQ,ASTRAL"); /* stop it sending PRWIZCH */ i...
0
16,576
static ActivationAction get_executable_text_file_action ( GtkWindow * parent_window , NautilusFile * file ) { GtkDialog * dialog ; char * file_name ; char * prompt ; char * detail ; int preferences_value ; int response ; g_assert ( nautilus_file_contains_text ( file ) ) ; preferences_value = g_settings_get_enum...
0
440,044
MagickExport void XDestroyResourceInfo(XResourceInfo *resource_info) { if (resource_info->image_geometry != (char *) NULL) resource_info->image_geometry=(char *) RelinquishMagickMemory(resource_info->image_geometry); if (resource_info->quantize_info != (QuantizeInfo *) NULL) resource_info->quantize_in...
0
130,117
void accept(std::shared_ptr<ServerTransportParametersExtension>) override {}
0
414,231
GuestFsfreezeStatus qmp_guest_fsfreeze_status(Error **errp) { error_setg(errp, QERR_UNSUPPORTED); return 0; }
0
439,063
static void SFDDumpAnchorPoints(FILE *sfd,AnchorPoint *ap) { if (ap==NULL) { return; } for ( ; ap!=NULL; ap=ap->next ) { fprintf( sfd, "AnchorPoint: " ); SFDDumpUTF7Str(sfd,ap->anchor->name); putc(' ',sfd); fprintf( sfd, "%g %g %s %d", (double) ap->me.x, (double) ap->me.y, ap->type==at_centry ...
0
25,379
static int ilbc_encode_frame ( AVCodecContext * avctx , AVPacket * avpkt , const AVFrame * frame , int * got_packet_ptr ) { ILBCEncContext * s = avctx -> priv_data ; int ret ; if ( ( ret = ff_alloc_packet ( avpkt , 50 ) ) ) { av_log ( avctx , AV_LOG_ERROR , "Error getting output packet\n" ) ; return ret ; } WebR...
0
465,723
static void fuse_prepare_release(struct fuse_inode *fi, struct fuse_file *ff, int flags, int opcode) { struct fuse_conn *fc = ff->fm->fc; struct fuse_release_args *ra = ff->release_args; /* Inode is NULL on error path of fuse_create_open() */ if (likely(fi)) { spin_lock(&fi->lock); list_del(&ff->write_ent...
0
55,881
bool __fastcall TCommandSet::GetOneLineCommand(TFSCommand /*Cmd*/) { //CHECK_CMD; // #56: we send "echo last line" from all commands on same line // just as it was in 1.0 return True; //CommandSet[Cmd].OneLineCommand; }
0
6,377
void Compute(OpKernelContext* context) override { const Tensor& images = context->input(0); const Tensor& boxes = context->input(1); const int64 depth = images.dim_size(3); OP_REQUIRES(context, images.dims() == 4, errors::InvalidArgument("The rank of the images should be 4")); OP_...
1
338,012
static void gen_dccci(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } /* interpreted as no-op */ #endif }
1
41,674
NO_INLINE JsVar *__jspePostfixExpression(JsVar *a) { while (lex->tk==LEX_PLUSPLUS || lex->tk==LEX_MINUSMINUS) { int op = lex->tk; JSP_ASSERT_MATCH(op); if (JSP_SHOULD_EXECUTE) { JsVar *one = jsvNewFromInteger(1); JsVar *oldValue = jsvAsNumberAndUnLock(jsvSkipName(a)); // keep the old value (bu...
0
492,912
static void ssl_write_cid_ext( mbedtls_ssl_context *ssl, unsigned char *buf, size_t *olen ) { unsigned char *p = buf; size_t ext_len; const unsigned char *end = ssl->out_msg + MBEDTLS_SSL_OUT_CONTENT_LEN; *olen = 0; /* Skip writing the ...
0
499,177
static void gf_isom_write_tx3g(GF_Tx3gSampleEntryBox *_a, GF_BitStream *bs, u32 sidx, u32 sidx_offset) { u32 size, j, fount_count; const char *qt_fontname = NULL; void gpp_write_rgba(GF_BitStream *bs, u32 col); void gpp_write_box(GF_BitStream *bs, GF_BoxRecord *rec); void gpp_write_style(GF_BitStream *bs, GF_Style...
0
259,766
md_process_table_cell(MD_CTX* ctx, MD_BLOCKTYPE cell_type, MD_ALIGN align, OFF beg, OFF end) { MD_LINE line; MD_BLOCK_TD_DETAIL det; int ret = 0; while(beg < end && ISWHITESPACE(beg)) beg++; while(end > beg && ISWHITESPACE(end-1)) end--; det.align = align; line.beg = be...
0
420,641
modify_param_name(param_token *name) { const char *delim1 = memchr (name->b, '*', name->e - name->b); const char *delim2 = memrchr (name->b, '*', name->e - name->b); int result; if(delim1 == NULL) { result = NOT_RFC2231; } else if(delim1 == delim2) { if ((name->e - 1) == delim1) ...
0
345,512
static void fix_hostname(struct SessionHandle *data, struct connectdata *conn, struct hostname *host) { size_t len; #ifndef USE_LIBIDN (void)data; (void)conn; #elif defined(CURL_DISABLE_VERBOSE_STRINGS) (void)conn; #endif /* set the name we use to display the host name */ host->di...
1
69,361
static int do_stop_slave_sql(MYSQL *mysql_con) { MYSQL_RES *slave; /* We need to check if the slave sql is running in the first place */ if (mysql_query_with_error_report(mysql_con, &slave, "SHOW SLAVE STATUS")) return(1); else { MYSQL_ROW row= mysql_fetch_row(slave); if (row && row[11]) { ...
0
488,308
static s64 ntfs_attr_pread_i(ntfs_attr *na, const s64 pos, s64 count, void *b) { s64 br, to_read, ofs, total, total2, max_read, max_init; ntfs_volume *vol; runlist_element *rl; u16 efs_padding_length; /* Sanity checking arguments is done in ntfs_attr_pread(). */ if ((na->data_flags & ATTR_COMPRESSION_MASK) && ...
0
354,082
main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) { fprintf(stderr, "This program requires terminfo\n"); exit(EXIT_FAILURE); }
1
76,125
static ssize_t pstr_store(struct device *kdev, struct device_attribute *kattr, const char *buf, size_t count) { struct hid_device *hdev = to_hid_device(kdev); struct cp2112_pstring_attribute *attr = container_of(kattr, struct cp2112_pstring_attribute, attr); struct cp2112_string_report report; int ret; ...
0
293,488
hotremove_migrate_alloc(struct page *page, unsigned long private, int **x) { /* This should be improooooved!! */ return alloc_page(GFP_HIGHUSER_MOVABLE); }
0
288,372
v8::Handle<v8::Value> V8WebGLRenderingContext::getExtensionCallback(const v8::Arguments& args) { INC_STATS("DOM.WebGLRenderingContext.getExtensionCallback()"); WebGLRenderingContext* imp = V8WebGLRenderingContext::toNative(args.Holder()); if (args.Length() < 1) return V8Proxy::throwNotEnoughArgum...
1
243,130
static int __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) { struct fib_nh_exception *fnhe; struct rtable *rth; int err; struct in_device *out_dev; unsigned int flags = 0; bool do_cache; u32 itag = 0; /* get a w...
0
179,673
void Browser::Zoom(PageZoom::Function zoom_function) { static const UserMetricsAction kActions[] = { UserMetricsAction("ZoomMinus"), UserMetricsAction("ZoomNormal"), UserMetricsAction("ZoomPlus") }; UserMetrics::RecordAction(kA...
0
142,571
static int decode_level2_header(LHAFileHeader **header, LHAInputStream *stream) { unsigned int header_len; header_len = lha_decode_uint16(&RAW_DATA(header, 0)); if (header_len < LEVEL_2_HEADER_LEN) { return 0; } // Read the full header. if (!extend_raw_data(header, stream, header_len -...
0
32,862
OPJ_UINT32 opj_tcd_get_decoded_tile_size ( opj_tcd_t *p_tcd ) { OPJ_UINT32 i; OPJ_UINT32 l_data_size = 0; opj_image_comp_t * l_img_comp = 00; opj_tcd_tilecomp_t * l_tile_comp = 00; opj_tcd_resolution_t * l_res = 00; OPJ_UINT32 l_size_comp, l_remaining; l_tile_com...
0
102,226
int snd_interval_ratnum(struct snd_interval *i, unsigned int rats_count, const struct snd_ratnum *rats, unsigned int *nump, unsigned int *denp) { unsigned int best_num, best_den; int best_diff; unsigned int k; struct snd_interval t; int err; unsigned int result_num, result_den; int result_diff; best_num ...
0
211,976
ALuint S_AL_Format(int width, int channels) { ALuint format = AL_FORMAT_MONO16; if(width == 1) { if(channels == 1) format = AL_FORMAT_MONO8; else if(channels == 2) format = AL_FORMAT_STEREO8; } else if(width == 2) { if(channels == 1) format = AL_FORMAT_MONO16; else if(channels == 2) format = ...
0
443,808
static void move_ptes(struct vm_area_struct *vma, pmd_t *old_pmd, unsigned long old_addr, unsigned long old_end, struct vm_area_struct *new_vma, pmd_t *new_pmd, unsigned long new_addr, bool need_rmap_locks) { struct mm_struct *mm = vma->vm_mm; pte_t *old_pte, *new_pte, pte; spinlock_t *old_ptl, *new_ptl; bool...
0
23,340
static int dissect_h245_H2250MaximumSkewIndication ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_H2250MaximumSkewIndication , H2250MaximumSkewIndication_sequence ) ; return o...
0
147,657
sort_page_names (gconstpointer a, gconstpointer b) { gchar *temp1, *temp2; gint ret; temp1 = g_utf8_collate_key_for_filename (* (const char **) a, -1); temp2 = g_utf8_collate_key_for_filename (* (const char **) b, -1); ret = strcmp (temp1, temp2); g_free (temp1); g_free (temp2); ret...
0
405,485
static void setup_per_zone_lowmem_reserve(void) { struct pglist_data *pgdat; enum zone_type j, idx; for_each_online_pgdat(pgdat) { for (j = 0; j < MAX_NR_ZONES; j++) { struct zone *zone = pgdat->node_zones + j; unsigned long managed_pages = zone->managed_pages; zone->lowmem_reserve[j] = 0; idx = j; ...
0
484,440
int svm_set_efer(struct kvm_vcpu *vcpu, u64 efer) { struct vcpu_svm *svm = to_svm(vcpu); u64 old_efer = vcpu->arch.efer; vcpu->arch.efer = efer; if (!npt_enabled) { /* Shadow paging assumes NX to be available. */ efer |= EFER_NX; if (!(efer & EFER_LMA)) efer &= ~EFER_LME; } if ((old_efer & EFER_SVME)...
0
112,582
static int create_pin_file(const sc_path_t *inpath, int chv, const char *key_id) { char prompt[40], *pin, *puk; char buf[30], *p = buf; sc_path_t file_id, path; sc_file_t *file; size_t len; int r; file_id = *inpath; if (file_id.len < 2) return -1; if (chv == 1) sc_format_path("I0000", &file_id); else if ...
0
500,104
static void test05(char const* infile, char const* password, char const* outfile, char const* outfile2) { qpdf_read(qpdf, infile, password); qpdf_init_write(qpdf, outfile); qpdf_set_static_ID(qpdf, QPDF_TRUE); qpdf_set_linearization(qpdf, QPDF_TRUE); qpdf_write(qpdf); report_error...
0
232,808
void TreeView::StartEditing(TreeModelNode* node) { DCHECK(node && tree_view_); CancelEdit(); if (model_->GetParent(node)) Expand(model_->GetParent(node)); const NodeDetails* details = GetNodeDetails(node); SetFocus(tree_view_); SetSelectedNode(node); TreeView_EditLabel(tree_view_, details->tree_item);...
0
448,180
int netns_identify_pid(const char *pidstr, char *name, int len) { char net_path[PATH_MAX]; int netns; struct stat netst; DIR *dir; struct dirent *entry; name[0] = '\0'; snprintf(net_path, sizeof(net_path), "/proc/%s/ns/net", pidstr); netns = open(net_path, O_RDONLY); if (netns < 0) { fprintf(stderr, "Canno...
0
365,919
static inline struct sigqueue *get_task_cache(struct task_struct *t) { return NULL; }
0
360,992
gs_window_real_unrealize (GtkWidget *widget) { g_signal_handlers_disconnect_by_func (gtk_window_get_screen (GTK_WINDOW (widget)), screen_size_changed, widget); if (GTK_WIDGET_CLASS (gs_window_parent_class)->unre...
0
494,149
rapidjson::CrtAllocator &GetAllocator() { return s_CrtAllocator; }
0
96,546
TEST_P(SslSocketTest, GetNoUriWithDnsSan) { const std::string client_ctx_yaml = R"EOF( common_tls_context: tls_certificates: certificate_chain: filename: "{{ test_rundir }}/test/extensions/transport_sockets/tls/test_data/san_dns_cert.pem" private_key: filename: "{{ test_rundir }}/tes...
0
33,139
size_t coolkey_list_meter(const void *el) { return sizeof(sc_cardctl_coolkey_object_t); }
0
499,251
static av_cold void flush(AVCodecContext *avctx) { ALSDecContext *ctx = avctx->priv_data; ctx->frame_id = 0; }
0
245,221
ofputil_decode_ofp11_table_stats(struct ofpbuf *msg, struct ofputil_table_stats *stats, struct ofputil_table_features *features) { struct ofp11_table_stats *ots; ots = ofpbuf_try_pull(msg, sizeof *ots); if (!ots) { return OFPERR_OFPB...
0
262,130
njs_generate_cond_expression_true(njs_vm_t *vm, njs_generator_t *generator, njs_parser_node_t *node) { njs_int_t ret; njs_jump_off_t jump_offset; njs_parser_node_t *branch; njs_vmcode_move_t *move; njs_vmcode_jump_t *jump; branch = node->right; /* * Branches usuall...
0
328,546
static int xen_remove_from_physmap(XenIOState *state, hwaddr start_addr, ram_addr_t size) { unsigned long i = 0; int rc = 0; XenPhysmap *physmap = NULL; hwaddr phys_offset = 0; physmap = get_physmapping(state, start_addr...
0
126,215
void CoreUserInputHandler::handleVoice(const BufferInfo &bufferInfo, const QString &msg) { QStringList nicks = msg.split(' ', QString::SkipEmptyParts); QString m = "+"; for (int i = 0; i < nicks.count(); i++) m += 'v'; QStringList params; params << bufferInfo.bufferName() << m << nicks; emit putCmd(...
0
499,376
static void reset_session(sasl_session_t *p) { if (p->mechptr && p->mechptr->mech_finish) p->mechptr->mech_finish(p); p->mechptr = NULL; }
0
158,175
void CLASS ciff_block_1030() { static const ushort key[] = { 0x410, 0x45f3 }; int i, bpp, row, col, vbits=0; unsigned long bitbuf=0; if ((get2(),get4()) != 0x80008 || !get4()) return; bpp = get2(); if (bpp != 10 && bpp != 12) return; for (i=row=0; row < 8; row++) for (col=0; col < 8; col++) { i...
0
196,347
GahpClient::check_pending_timeout(const char *,const char *) { if ( pending_reqid == 0 ) { return false; } if ( pending_submitted_to_gahp == false ) { return false; } if ( pending_timeout && (time(NULL) > pending_timeout) ) { clear_pending(); // we no longer want to hear about it... return true; } re...
0
286,328
void CastDetailedView::AppendSettingsEntries() { const bool userAddingRunning = Shell::GetInstance() ->session_state_delegate() ->IsInSecondaryLoginScreen(); if (login_ == user::LOGGED_IN_NONE || login_ == user::LOGGED_IN_LOCKED || use...
0