idx
int64
func
string
target
int64
105,855
static int __init init_nfs_fs(void) { int err; err = nfsiod_start(); if (err) goto out6; err = nfs_fs_proc_init(); if (err) goto out5; err = nfs_init_nfspagecache(); if (err) goto out4; err = nfs_init_inodecache(); if (err) goto out3; err = nfs_init_readpagecache(); if (err) goto out2; err =...
0
360,789
static AsyncURB *async_alloc(void) { return (AsyncURB *) qemu_mallocz(sizeof(AsyncURB)); }
0
189,117
void OMXCodec::addCodecSpecificData(const void *data, size_t size) { CodecSpecificData *specific = (CodecSpecificData *)malloc(sizeof(CodecSpecificData) + size - 1); specific->mSize = size; memcpy(specific->mData, data, size); mCodecSpecificData.push(specific); }
0
459,055
coroutine_fn iscsi_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int bytes, BdrvRequestFlags flags) { IscsiLun *iscsilun = bs->opaque; struct IscsiTask iTask; uint64_t lba; uint32_t nb_blocks; bool use_16_for_ws = iscsilun->use_16_for_rw; int r = 0; ...
0
372,138
static void call_nt_transact_notify_change(connection_struct *conn, struct smb_request *req, uint16 **ppsetup, uint32 setup_count, char **ppparams, uint32 parameter_count, char **ppdata, uint32 data_count, uint32 max_data_count, uint32 max_param_count) { ...
0
194,283
void Gfx::opEndMarkedContent(Object args[], int numArgs) { if (mcStack) popMarkedContent(); out->endMarkedContent(state); }
0
188,755
void RenderViewImpl::FocusedNodeChanged(const WebNode& fromNode, const WebNode& toNode) { RenderFrameImpl* previous_frame = nullptr; if (!fromNode.IsNull()) previous_frame = RenderFrameImpl::FromWebFrame(fromNode.GetDocument().GetFrame()); RenderFrameImpl* new_f...
0
155,132
size_t vterm_screen_get_text(const VTermScreen *screen, char *str, size_t len, const VTermRect rect) { return _get_chars(screen, 1, str, len, rect); }
0
97,622
GF_Err elst_Write(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 i; u32 nb_entries; GF_EdtsEntry *p; GF_EditListBox *ptr = (GF_EditListBox *)s; if (!ptr) return GF_BAD_PARAM; nb_entries = gf_list_count(ptr->entryList); e = gf_isom_full_box_write(s, bs); if (e) return e; gf_bs_write_u32(bs, nb_entries); for (i...
0
385,772
AttVal *TY_(NewAttribute)( TidyDocImpl* doc ) { AttVal *av = (AttVal*) TidyDocAlloc( doc, sizeof(AttVal) ); TidyClearMemory( av, sizeof(AttVal) ); return av; }
0
370,499
void check_response_for_cacheability(struct session *t, struct channel *rtr) { struct http_txn *txn = &t->txn; char *p1, *p2; char *cur_ptr, *cur_end, *cur_next; int cur_idx; if (!(txn->flags & TX_CACHEABLE)) return; /* Iterate through the headers. * we start with the start line. */ cur_idx = 0; cur_ne...
0
202,056
void ProcessBackingStore(HeapObjectHeader* header) { EXPECT_TRUE(header->IsValid()); EXPECT_TRUE(header->IsMarked()); header->Unmark(); GCInfoTable::Get() .GCInfoFromIndex(header->GcInfoIndex()) ->trace_(this, header->Payload()); }
0
499,170
static int sqfs_frag_lookup(u32 inode_fragment_index, struct squashfs_fragment_block_entry *e) { u64 start, n_blks, src_len, table_offset, start_block; unsigned char *metadata_buffer, *metadata, *table; struct squashfs_fragment_block_entry *entries; struct squashfs_super_block *sblk = ctxt.sblk; unsigned lo...
0
33,376
static int madvise_free_single_vma(struct vm_area_struct *vma, unsigned long start_addr, unsigned long end_addr) { unsigned long start, end; struct mm_struct *mm = vma->vm_mm; struct mmu_gather tlb; /* MADV_FREE works for only anon vma at the moment */ if (!vma_is_anonymous(vma)) return -EINVAL; start = ma...
0
177,341
void GeolocationInspectorAgent::setGeolocationOverride(ErrorString* error, const double* latitude, const double* longitude, const double* accuracy) { GeolocationPosition* position = m_controller->lastPosition(); if (!m_geolocationOverridden && position) m_platformGeolocationPosition = position; m_g...
0
334,238
static int vm_can_run(void) { if (powerdown_requested) return 0; if (reset_requested) return 0; if (shutdown_requested) return 0; if (debug_requested) return 0; return 1; }
0
206,366
void QuicClientPromisedInfo::Reset(QuicRstStreamErrorCode error_code) { QuicClientPushPromiseIndex::Delegate* delegate = client_request_delegate_; session_->ResetPromised(id_, error_code); session_->DeletePromised(this); if (delegate) { delegate->OnRendezvousResult(nullptr); } }
0
169,633
void JSTestNamedConstructorNamedConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject) { Base::finishCreation(globalObject); ASSERT(inherits(&s_info)); putDirect(exec->globalData(), exec->propertyNames().prototype, JSTestNamedConstructorPrototype::self(exec, globalObject), None); }
0
360,322
compare_by_display_name (NautilusFile *file_1, NautilusFile *file_2) { const char *name_1, *name_2; const char *key_1, *key_2; gboolean sort_last_1, sort_last_2; int compare; name_1 = nautilus_file_peek_display_name (file_1); name_2 = nautilus_file_peek_display_name (file_2); sort_last_1 = name_1[0] == SORT_LA...
0
448,563
zonetype_fromconfig(const cfg_obj_t *map) { const cfg_obj_t *obj = NULL; isc_result_t result; result = cfg_map_get(map, "type", &obj); INSIST(result == ISC_R_SUCCESS && obj != NULL); return (ns_config_getzonetype(obj)); }
0
65,664
int FLTIsBinaryComparisonFilterType(const char *pszValue) { if (pszValue) { if (strcasecmp(pszValue, "PropertyIsEqualTo") == 0 || strcasecmp(pszValue, "PropertyIsNotEqualTo") == 0 || strcasecmp(pszValue, "PropertyIsLessThan") == 0 || strcasecmp(pszValue, "PropertyIsGreaterThan") == 0 || ...
0
139,229
int tty_init_termios(struct tty_struct *tty) { struct ktermios *tp; int idx = tty->index; tp = tty->driver->termios[idx]; if (tp == NULL) { tp = kzalloc(sizeof(struct ktermios[2]), GFP_KERNEL); if (tp == NULL) return -ENOMEM; memcpy(tp, &tty->driver->init_termios, sizeof(struct ktermios)); tty->dr...
0
213,694
PHP_FUNCTION(pg_free_result) { zval *result; pgsql_result_handle *pg_result; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &result) == FAILURE) { return; } ZEND_FETCH_RESOURCE(pg_result, pgsql_result_handle *, &result, -1, "PostgreSQL result", le_result); if (Z_LVAL_P(result) == 0) { RETURN_FALS...
0
15,812
static gcry_err_code_t pubkey_decrypt ( int algorithm , gcry_mpi_t * result , gcry_mpi_t * data , gcry_mpi_t * skey , int flags ) { gcry_pk_spec_t * pubkey ; gcry_module_t module ; gcry_err_code_t rc ; int i ; * result = NULL ; if ( DBG_CIPHER && ! fips_mode ( ) ) { log_debug ( "pubkey_decrypt: algo=%d\n" , algo...
0
190,968
void SoundTriggerHwService::recognitionCallback(struct sound_trigger_recognition_event *event, void *cookie) { Module *module = (Module *)cookie; if (module == NULL) { return; } sp<SoundTriggerHwService> service = module->service().promote(); if (service == 0) { return; } service->sendRecognitionEvent(...
0
285,036
void ResourceDispatcherHostImpl::OnCancelRequest(int request_id) { CancelRequest(filter_->child_id(), request_id, true); }
0
253,706
void MockGenerateRandom(uint8_t* output, size_t n) { memset(output, 0xaa, n); }
0
203,138
bool IsEqualForTesting(const SendTabToSelfEntry& entry, const sync_pb::SendTabToSelfSpecifics& specifics) { return ( entry.GetGUID() == specifics.guid() && entry.GetURL() == specifics.url() && entry.GetTitle() == specifics.title() && entry.GetDeviceName() == specifics.de...
0
103,249
absl::Status Parse(const TfLiteNode* tflite_node, const TfLiteRegistration* registration, GraphFloat32* graph, ObjectReader* reader) final { Node* node = graph->NewNode(); node->operation.type = ToString(OperationType::PAD); RETURN_IF_ERROR(reader->AddInput(node, ...
0
147,655
static bool rt_cache_valid(const struct rtable *rt) { return rt && rt->dst.obsolete == DST_OBSOLETE_FORCE_CHK && !rt_is_expired(rt); }
0
508,811
rsvg_handle_get_position_sub (RsvgHandle * handle, RsvgPositionData * position_data, const char *id) { RsvgDrawingCtx *draw; RsvgNodeSvg *root; RsvgNode *node; RsvgBbox bbox; RsvgDimensionData dimension_data; cairo_surface_t *target = NULL; cairo_t *cr = NULL; gboolean ...
0
373,228
_PUBLIC_ int strcmp_safe(const char *s1, const char *s2) { if (s1 == s2) { return 0; } if (s1 == NULL || s2 == NULL) { return s1?-1:1; } return strcmp(s1, s2); }
0
18,586
static const char * mgs_readable_cvm ( mgs_client_verification_method_e m ) { switch ( m ) { case mgs_cvm_unset : return "unset" ; case mgs_cvm_cartel : return "cartel" ; case mgs_cvm_msva : return "msva" ; } return "unknown" ; }
0
380,215
static int ZEND_FASTCALL ZEND_FETCH_DIM_IS_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS) { zend_op *opline = EX(opline); zend_free_op free_op1; zval *dim = _get_zval_ptr_cv(&opline->op2, EX(Ts), BP_VAR_R TSRMLS_CC); zval **container = _get_zval_ptr_ptr_var(&opline->op1, EX(Ts), &free_op1 TSRMLS_CC); if (IS_VAR =...
0
125,618
xfs_attr_shortform_allfit( struct xfs_buf *bp, struct xfs_inode *dp) { struct xfs_attr_leafblock *leaf; struct xfs_attr_leaf_entry *entry; xfs_attr_leaf_name_local_t *name_loc; struct xfs_attr3_icleaf_hdr leafhdr; int bytes; int i; struct xfs_mount *mp = bp->b_target->bt_mount; leaf = bp->b_addr; xfs_a...
0
173,063
void WebContentsImpl::SetAccessibilityMode(AccessibilityMode mode) { if (mode == accessibility_mode_) return; if (IsNeverVisible()) return; accessibility_mode_ = mode; for (FrameTreeNode* node : frame_tree_.Nodes()) { UpdateAccessibilityModeOnFrame(node->current_frame_host()); RenderFrameHost...
0
88,153
static void reload_tss(struct kvm_vcpu *vcpu) { int cpu = raw_smp_processor_id(); struct svm_cpu_data *sd = per_cpu(svm_data, cpu); sd->tss_desc->type = 9; /* available 32/64-bit TSS */ load_TR_desc(); }
0
133,633
void svhd_box_del(GF_Box *s) { GF_SphericalVideoInfoBox *ptr = (GF_SphericalVideoInfoBox *)s; if (ptr->string) gf_free(ptr->string); gf_free(s);
0
446,137
virDomainHostdevSubsysSCSIClear(virDomainHostdevSubsysSCSIPtr scsisrc) { if (scsisrc->protocol == VIR_DOMAIN_HOSTDEV_SCSI_PROTOCOL_TYPE_ISCSI) virDomainHostdevSubsysSCSIiSCSIClear(&scsisrc->u.iscsi); else VIR_FREE(scsisrc->u.host.adapter); }
0
190,586
SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt, STACK_OF(SSL_CIPHER) *srvr) { SSL_CIPHER *c,*ret=NULL; STACK_OF(SSL_CIPHER) *prio, *allow; int i,ii,ok; #if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_EC) unsigned int j; int ec_ok, ec_nid; unsigned char ec_search1 = 0, ec_search2 =...
0
111,853
const char *configEnumGetName(configEnum *ce, int val) { while(ce->name != NULL) { if (ce->val == val) return ce->name; ce++; } return NULL; }
0
367,410
static int selinux_file_mmap(struct file *file, unsigned long reqprot, unsigned long prot, unsigned long flags, unsigned long addr, unsigned long addr_only) { int rc = 0; u32 sid = current_sid(); /* * notice that we are intentionally putting the SELinux check before * the secondary cap_file_mmap...
0
12,917
int basic_authentication(zval* this_ptr, smart_str* soap_headers TSRMLS_DC) { zval **login, **password; zval **login, **password; if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login"), (void **)&login) == SUCCESS && !zend_hash_exists(Z_OBJPROP_P(this_ptr), "_dig...
1
113,731
ca_by_subjectpubkey(X509_STORE *ctx, uint8_t *sig, size_t siglen) { STACK_OF(X509_OBJECT) *h; X509_OBJECT *xo; X509 *ca; int i; unsigned int len; uint8_t md[EVP_MAX_MD_SIZE]; h = ctx->objs; for (i = 0; i < sk_X509_OBJECT_num(h); i++) { xo = sk_X509_OBJECT_value(h, i); if (xo->type != X509_LU_X5...
0
68,142
GF_Err rssr_Read(GF_Box *s, GF_BitStream *bs) { GF_ReceivedSsrcBox *ptr = (GF_ReceivedSsrcBox *)s; ptr->ssrc = gf_bs_read_u32(bs); return GF_OK; }
0
338,141
static inline void vmsvga_update_rect(struct vmsvga_state_s *s, int x, int y, int w, int h) { DisplaySurface *surface = qemu_console_surface(s->vga.con); int line; int bypl; int width; int start; uint8_t *src; uint8_t *dst; if (x < 0) { ...
1
401,055
static int cirrus_vga_read_gr(CirrusVGAState * s, unsigned reg_index) { switch (reg_index) { case 0x00: // Standard VGA, BGCOLOR 0x000000ff return s->cirrus_shadow_gr0; case 0x01: // Standard VGA, FGCOLOR 0x000000ff return s->cirrus_shadow_gr1; case 0x02: // Standard VGA case 0x03:...
0
172,759
BackgroundContents* BackgroundContentsService::GetAppBackgroundContents( const string16& application_id) { BackgroundContentsMap::const_iterator it = contents_map_.find(application_id); return (it != contents_map_.end()) ? it->second.contents : NULL; }
0
522,402
TABLE_LIST *st_select_lex::end_nested_join(THD *thd) { TABLE_LIST *ptr; NESTED_JOIN *nested_join; DBUG_ENTER("end_nested_join"); DBUG_ASSERT(embedding); ptr= embedding; join_list= ptr->join_list; embedding= ptr->embedding; nested_join= ptr->nested_join; nested_join->nest_type= 0; if (nested_join->j...
0
109,474
static int vcf_idx_init(htsFile *fp, bcf_hdr_t *h, int min_shift, const char *fnidx) { int n_lvls, fmt; if (min_shift == 0) { min_shift = 14; n_lvls = 5; fmt = HTS_FMT_TBI; } else { // Set initial n_lvls to match tbx_index() int starting_n_lvls = (TBX_MAX_SHIFT - min...
0
181,238
void RenderView::DidInitiatePaint() { pepper_delegate_.ViewInitiatedPaint(); for (std::set<WebPluginDelegatePepper*>::iterator i = current_oldstyle_pepper_plugins_.begin(); i != current_oldstyle_pepper_plugins_.end(); ++i) (*i)->RenderViewInitiatedPaint(); }
0
502,061
static int replmd_process_backlink(struct ldb_module *module, struct la_backlink *bl, struct ldb_request *parent) { struct ldb_dn *target_dn, *source_dn; int ret; struct ldb_context *ldb = ldb_module_get_ctx(module); struct ldb_message *msg; TALLOC_CTX *frame = talloc_stackframe(); char *dn_string; /* - find...
0
470,379
void avahi_s_service_type_browser_free(AvahiSServiceTypeBrowser *b) { assert(b); AVAHI_LLIST_REMOVE(AvahiSServiceTypeBrowser, browser, b->server->service_type_browsers, b); if (b->record_browser) avahi_s_record_browser_free(b->record_browser); avahi_free(b->domain_name); avahi_free(b); }
0
95,051
static void tracked_request_end(BdrvTrackedRequest *req) { if (req->serialising) { req->bs->serialising_in_flight--; } QLIST_REMOVE(req, list); qemu_co_queue_restart_all(&req->wait_queue); }
0
402,756
static MagickBooleanType ReadPSDChannelZip(Image *image,const size_t channels, const ssize_t type,const PSDCompressionType compression, const size_t compact_size,ExceptionInfo *exception) { MagickBooleanType status; register unsigned char *p; size_t count, length, packet_size, row_si...
0
375,632
make_directory(const char *dir) { if (mkdir(dir, S_IRWXU | S_IRWXG | S_IRWXO) < 0) { fprintf(stderr, _("%s: could not create directory \"%s\": %s\n"), progname, dir, strerror(errno)); exit(2); } }
0
233,084
bool ewk_view_navigation_policy_decision(Evas_Object* ewkView, Ewk_Frame_Resource_Request* request) { EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData, true); EINA_SAFETY_ON_NULL_RETURN_VAL(smartData->api, true); if (!smartData->api->navigation_policy_decision) return true; return smartData->api->...
0
416,798
void show_opcodes(struct pt_regs *regs, const char *loglvl) { #define PROLOGUE_SIZE 42 #define EPILOGUE_SIZE 21 #define OPCODE_BUFSIZE (PROLOGUE_SIZE + 1 + EPILOGUE_SIZE) u8 opcodes[OPCODE_BUFSIZE]; unsigned long prologue = regs->ip - PROLOGUE_SIZE; bool bad_ip; /* * Make sure userspace isn't trying to trick us ...
0
388,586
static void qmp_query_auth(VncDisplay *vd, VncInfo2 *info) { switch (vd->auth) { case VNC_AUTH_VNC: info->auth = VNC_PRIMARY_AUTH_VNC; break; case VNC_AUTH_RA2: info->auth = VNC_PRIMARY_AUTH_RA2; break; case VNC_AUTH_RA2NE: info->auth = VNC_PRIMARY_AUTH_RA2NE; ...
0
130,230
TEST_F(QuotedString_ExtractFrom_Tests, EscapedSolidus) { whenInputIs("\"hello \\/world\\/\""); resultMustBe("hello /world/"); }
0
209,332
static PHP_FUNCTION(gzfile) { char *filename; int filename_len; int flags = REPORT_ERRORS; char buf[8192] = {0}; register int i = 0; long use_include_path = 0; php_stream *stream; if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|l", &filename, &filename_len, &use_include_path)) { return; }...
0
306,605
void CLASS eight_bit_load_raw() { uchar *pixel; unsigned row, col; pixel = (uchar *) calloc (raw_width, sizeof *pixel); merror (pixel, "eight_bit_load_raw()"); #ifdef LIBRAW_LIBRARY_BUILD try { #endif for (row=0; row < raw_height; row++) { #ifdef LIBRAW_LIBRARY_BUILD checkCancel(); #endif if (fread...
0
393,329
xmlRelaxNGValidateAttribute(xmlRelaxNGValidCtxtPtr ctxt, xmlRelaxNGDefinePtr define) { int ret = 0, i; xmlChar *value, *oldvalue; xmlAttrPtr prop = NULL, tmp; xmlNodePtr oldseq; if (ctxt->state->nbAttrLeft <= 0) return (-1); if (define->name != NULL) { ...
0
109,645
PyInit__ast3(void) { PyObject *m, *d; if (!init_types()) return NULL; m = PyModule_Create(&_astmodule); if (!m) return NULL; d = PyModule_GetDict(m); if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return NULL; if (PyModule_AddIntMacro(m, PyCF_ONLY_AST) < 0) return NULL...
0
25,440
inline static HTTPKeepAlive is_header_keep_alive ( const HTTPVersion & http_version , const MIMEField * con_hdr ) { enum { CON_TOKEN_NONE = 0 , CON_TOKEN_KEEP_ALIVE , CON_TOKEN_CLOSE , } ; int con_token = CON_TOKEN_NONE ; HTTPKeepAlive keep_alive = HTTP_NO_KEEPALIVE ; if ( con_hdr ) { if ( con_hdr -> value_get_i...
0
280,474
omx_video::omx_c2d_conv::omx_c2d_conv() { c2dcc = NULL; mLibHandle = NULL; mConvertOpen = NULL; mConvertClose = NULL; src_format = NV12_128m; pthread_mutex_init(&c_lock, NULL); }
0
201,990
bool OmniboxViewViews::TextAndUIDirectionMatch() const { return (GetRenderText()->GetDisplayTextDirection() == base::i18n::RIGHT_TO_LEFT) == base::i18n::IsRTL(); }
0
124,163
int nfc_llcp_queue_i_frames(struct nfc_llcp_sock *sock) { int nr_frames = 0; struct nfc_llcp_local *local = sock->local; pr_debug("Remote ready %d tx queue len %d remote rw %d", sock->remote_ready, skb_queue_len(&sock->tx_pending_queue), sock->remote_rw); /* Try to queue some I frames for transmission */ w...
0
63,679
g_NPN_ReleaseObject(NPObject *npobj) { if (!thread_check()) { npw_printf("WARNING: NPN_ReleaseObject not called from the main thread\n"); return; } if (npobj == NULL) return; if (rpc_method_invoke_possible(g_rpc_connection)) { D(bug("NPN_ReleaseObject <now>\n")); g_NPN_ReleaseObject_Now(npobj); } el...
0
463,832
int btrfs_insert_empty_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *cpu_key, u32 *data_size, int nr) { int ret = 0; int slot; int i; u32 total_size = 0; u32 total_data = 0; for (i = 0; i < nr; i++) total_data += da...
0
139,966
int av_parse_cpu_flags(const char *s) { #define CPUFLAG_MMXEXT (AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT | AV_CPU_FLAG_CMOV) #define CPUFLAG_3DNOW (AV_CPU_FLAG_3DNOW | AV_CPU_FLAG_MMX) #define CPUFLAG_3DNOWEXT (AV_CPU_FLAG_3DNOWEXT | CPUFLAG_3DNOW) #define CPUFLAG_SSE (AV_CPU_FLAG_SSE | CPUFLAG_...
1
370,156
int sctp_outq_is_empty(const struct sctp_outq *q) { return q->empty; }
0
267,671
const Handle<StringPrimitive> &strPrim() const { assert(isHandle_ && "must be a handle"); // Need to go through a variable to placate gcc4.9. const char *buffer = strPrim_.buffer; return *reinterpret_cast<const Handle<StringPrimitive> *>(buffer); }
0
257,240
static void prep_NVRAM_init ( void ) { m48t59_t * nvram ; nvram = m48t59_init ( 8 , 0x0074 , NVRAM_SIZE ) ; NVRAM_set_word ( nvram , 0x00 , NVRAM_SIZE >> 10 ) ; NVRAM_set_byte ( nvram , 0x02 , 0x01 ) ; NVRAM_set_byte ( nvram , 0x03 , 0x01 ) ; NVRAM_set_byte ( nvram , 0x08 , 0x00 ) ; NVRAM_set_byte ( nvram , 0x09...
0
174,473
void DeleteTexture() { if (texture_id_) { host_context_->deleteTexture(texture_id_); texture_id_ = 0; } }
0
503,982
static int _sqlite3_escape_str(char *to, const char *from) { char s; while ( (s = *from++) != '\0' ) { if (s == '\'' || s == '\\') { *to++ = '\\'; } *to++ = s; } *to = '\0'; return 0; }
0
268,264
void imap_unmunge_mbox_name(bool unicode, char *s) { imap_unquote_string(s); char *buf = mutt_str_dup(s); if (buf) { imap_utf_decode(unicode, &buf); strncpy(s, buf, strlen(s)); } FREE(&buf); }
0
175,414
static void vrend_hw_emit_framebuffer_state(struct vrend_context *ctx) { static const GLenum buffers[8] = { GL_COLOR_ATTACHMENT0_EXT, GL_COLOR_ATTACHMENT1_EXT, GL_COLOR_ATTACHMENT2_EXT, GL_COLOR_ATTACHMENT3_EXT, GL_COLOR_ATTACHMENT4_EXT, GL_COLOR_ATTACHMENT5_EXT, GL_COLOR_AT...
0
267,002
static inline int mxf_read_utf16_string(AVIOContext *pb, int size, char** str, int be) { int ret; size_t buf_size; if (size < 0) return AVERROR(EINVAL); buf_size = size + size / 2 + 1; *str = av_malloc(buf_size); if (!*str) return AVERROR(ENOMEM); if (be) ...
1
210,703
bool IsMarked() const { return HeapObjectHeader::FromPayload(this)->IsMarked(); }
0
236,585
AutoLockOnValidThread(base::Lock& lock, base::ThreadChecker* thread_checker) : auto_lock_(lock) { DCHECK(!thread_checker || thread_checker->CalledOnValidThread()); }
0
327,353
static DWORD WINAPI do_suspend(LPVOID opaque) { GuestSuspendMode *mode = opaque; DWORD ret = 0; if (!SetSuspendState(*mode == GUEST_SUSPEND_MODE_DISK, TRUE, TRUE)) { slog("failed to suspend guest, %s", GetLastError()); ret = -1; } g_free(mode); return ret; }
1
130,203
static int unlock_futex_pi(u32 __user *uaddr, u32 uval) { u32 oldval; /* * There is no waiter, so we unlock the futex. The owner died * bit has not to be preserved here. We are the owner: */ oldval = cmpxchg_futex_value_locked(uaddr, uval, 0); if (oldval == -EFAULT) return oldval; if (oldval != uval) r...
0
28,885
static int pack_options_allow_reuse ( void ) { return allow_ofs_delta ; }
0
346,754
static int tstats_open(struct inode *inode, struct file *filp) { return single_open(filp, tstats_show, NULL); }
1
4,628
QStringList JlCompress::extractDir(QuaZip &zip, const QString &dir) { if(!zip.open(QuaZip::mdUnzip)) { return QStringList(); } QDir directory(dir); QStringList extracted; if (!zip.goToFirstFile()) { return QStringList(); } do { QString name = zip.getCurrentFileName()...
1
494,490
static CURLcode inflate_stream(struct Curl_easy *data, struct contenc_writer *writer, zlibInitState started) { struct zlib_params *zp = (struct zlib_params *) &writer->params; z_stream *z = &zp->z; /* zlib state structure */ uInt nread = z->ava...
0
292,561
static int bell(void *user) { VTermScreen *screen = user; if(screen->callbacks && screen->callbacks->bell) return (*screen->callbacks->bell)(screen->cbdata); return 0; }
0
368,813
xsltTemplateProcess(xsltTransformContextPtr ctxt ATTRIBUTE_UNUSED, xmlNodePtr node) { if (node == NULL) return(NULL); return(0); }
0
335,935
static void common_init(MpegEncContext * s) { static int inited=0; switch(s->msmpeg4_version){ case 1: case 2: s->y_dc_scale_table= s->c_dc_scale_table= ff_mpeg1_dc_scale_table; break; case 3: if(s->workaround_bugs){ s->y_dc_scale_table= old_f...
0
53,293
static int binder_inc_node(struct binder_node *node, int strong, int internal, struct list_head *target_list) { int ret; binder_node_inner_lock(node); ret = binder_inc_node_nilocked(node, strong, internal, target_list); binder_node_inner_unlock(node); return ret; }
0
166,868
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateObjException(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSTestObj::s_info)) return throwVMTypeError(exec); JSTestObj* castedThis = jsCast<JSTestObj*>(asObject(thisValue)); ASSERT_GC_...
0
26,145
static void dtap_gcc_term ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) { guint32 curr_offset ; guint32 consumed ; guint curr_len ; curr_offset = offset ; curr_len = len ; ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_GCC_CAUSE , NULL ) ; }
0
36,989
UnicodeString::refCount() const { return umtx_loadAcquire(*((u_atomic_int32_t *)fUnion.fFields.fArray - 1)); }
0
365,783
g_file_delete(const char* filename) { #if defined(_WIN32) return DeleteFileA(filename); #else return unlink(filename) != -1; #endif }
0
80,697
static void updatePortStats(struct port_stats **stats, u_int32_t port, u_int32_t addr, u_int8_t version, u_int32_t num_pkts, u_int32_t num_bytes, const char *proto) { struct port_stats *s = NULL; int count = 0; HASH_FIND_INT(*stats, &port, s); if(...
0
232,422
SPL_METHOD(SplFileInfo, getBasename) { spl_filesystem_object *intern = (spl_filesystem_object*)zend_object_store_get_object(getThis() TSRMLS_CC); char *fname, *suffix = 0; size_t flen; int slen = 0, path_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &suffix, &slen) == FAILURE) { return; } s...
0
352,569
switch (yych) { case 'a': goto yy42; default: goto yy41; }
1
99,734
isdn_net_close(struct net_device *dev) { struct net_device *p; #ifdef CONFIG_ISDN_X25 struct concap_proto * cprot = ((isdn_net_local *) netdev_priv(dev))->netdev->cprot; /* printk(KERN_DEBUG "isdn_net_close %s\n" , dev-> name ); */ #endif #ifdef CONFIG_ISDN_X25 if( cprot && cprot -> pops ) cprot -> pops -> close...
0
269,689
SWFInput_input_seek(SWFInput input, long offset, int whence) { if ( whence == SEEK_CUR ) { if ( offset >= 0 ) input->offset = min(input->length, input->offset + offset); else input->offset = max(0, input->offset + offset); } else if ( whence == SEEK_END ) input->offset = max(0, input->length - offset);...
0