unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
183,591
1
uint32 PluginInstance::ScheduleTimer(uint32 interval, NPBool repeat, void (*func)(NPP id, uint32 timer_id)) { // Use next timer id. uint32 timer_id; timer_id = next_timer_id_; ++next_timer_id_; DCHECK(next_timer_id_ != 0); // Record timer interval and repeat. TimerInfo info; info.interval = interval; info.repeat = rep...
17,400
165,810
0
void SVGElement::MapInstanceToElement(SVGElement* instance) { DCHECK(instance); DCHECK(instance->InUseShadowTree()); HeapHashSet<WeakMember<SVGElement>>& instances = EnsureSVGRareData()->ElementInstances(); DCHECK(!instances.Contains(instance)); instances.insert(instance); }
17,401
188,615
1
void VarianceTest<VarianceFunctionType>::ZeroTest() { for (int i = 0; i <= 255; ++i) { memset(src_, i, block_size_); for (int j = 0; j <= 255; ++j) { memset(ref_, j, block_size_); unsigned int sse; unsigned int var; REGISTER_STATE_CHECK(var = variance_(src_, width_, ref_, width_, &sse)); EXPECT_EQ...
17,402
179,871
1
static int rt_fill_info(struct net *net, __be32 dst, __be32 src, struct flowi4 *fl4, struct sk_buff *skb, u32 portid, u32 seq, int event, int nowait, unsigned int flags) { struct rtable *rt = skb_rtable(skb); struct rtmsg *r; struct nlmsghdr *nlh; unsigned long expires = 0; u32 error; u32 metrics[RTAX_MAX]...
17,403
97,556
0
string16 BuildSnippet(const std::string& document, const std::string& query) { const std::string document_folded = StringToLowerASCII(std::string(document)); std::vector<std::string> query_words; SplitString(query, ' ', &query_words); Snippet::MatchPositions match_positions; match_posi...
17,404
8,502
0
CSoundFile::~CSoundFile() { Destroy(); }
17,405
59,370
0
static bool xfrm_is_alive(const struct km_event *c) { return (bool)xfrm_acquire_is_on(c->net); }
17,406
151,717
0
bool Browser::PreHandleKeyboardEvent(content::WebContents* source, const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { if (exclusive_access_manager_->HandleUserKeyPress(event)) return true; return window()->PreHandleKeyboa...
17,407
87,082
0
CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive) { if ((a == NULL) || (b == NULL) || ((a->type & 0xFF) != (b->type & 0xFF)) || cJSON_IsInvalid(a)) { return false; } /* check if type is valid */ switch (a->type & 0xFF) ...
17,408
80,655
0
GF_Box *uuid_New() { ISOM_DECL_BOX_ALLOC(GF_UnknownUUIDBox, GF_ISOM_BOX_TYPE_UUID); return (GF_Box *) tmp; }
17,409
122,916
0
bool RenderProcessHostImpl::ShouldUseProcessPerSite( BrowserContext* browser_context, const GURL& url) { const CommandLine& command_line = *CommandLine::ForCurrentProcess(); if (command_line.HasSwitch(switches::kProcessPerSite)) return true; if (GetContentClient()->browser()-> ShouldUsePr...
17,410
166,912
0
void Performance::mark( ScriptState* script_state, const String& mark_name, DoubleOrPerformanceMarkOptions& start_time_or_mark_options, ExceptionState& exception_state) { if (!RuntimeEnabledFeatures::CustomUserTimingEnabled()) { DCHECK(start_time_or_mark_options.IsNull()); } if (!user_timing_...
17,411
82,609
0
bool isNumeric(char ch) { return (ch>='0') && (ch<='9'); }
17,412
103,357
0
void ConvertRGB24ToYUV(const uint8* rgbframe, uint8* yplane, uint8* uplane, uint8* vplane, int width, int height, int rgbstride, int ystride, ...
17,413
111,443
0
void InputHandler::cancelSelection() { if (!isActiveTextEdit()) return; ASSERT(m_currentFocusElement->document() && m_currentFocusElement->document()->frame()); int selectionStartPosition = selectionStart(); ProcessingChangeGuard guard(this); setCursorPosition(selectionStartPosition); }
17,414
174,662
0
sp<IMemoryHeap> HeapCache::get_heap(const sp<IBinder>& binder) { sp<IMemoryHeap> realHeap; Mutex::Autolock _l(mHeapCacheLock); ssize_t i = mHeapCache.indexOfKey(binder); if (i>=0) realHeap = mHeapCache.valueAt(i).heap; else realHeap = interface_cast<IMemoryHeap>(binder); return realHeap; }
17,415
74,656
0
struct wif *net_open(char *iface) { struct wif *wi; struct priv_net *pn; int s; /* setup wi struct */ wi = wi_alloc(sizeof(*pn)); if (!wi) return NULL; wi->wi_read = net_read; wi->wi_write = net_write; wi->wi_set_channel = net_set_channel; wi->wi_get_channel = net_get_channel; wi->wi_set_rate ...
17,416
155,420
0
void ChromeContentBrowserClient::OnNetworkServiceDataUseUpdate( int32_t network_traffic_annotation_id_hash, int64_t recv_bytes, int64_t sent_bytes) { if (data_use_measurement::ChromeDataUseMeasurement::GetInstance()) { data_use_measurement::ChromeDataUseMeasurement::GetInstance() ->ReportNetwo...
17,417
127,767
0
int MockNetworkTransaction::Start(const HttpRequestInfo* request, const CompletionCallback& callback, const BoundNetLog& net_log) { if (request_) return ERR_FAILED; request_ = request; return StartInternal(request, callback, net_log); }
17,418
178,149
1
static void php_snmp_object_free_storage(void *object TSRMLS_DC) { php_snmp_object *intern = (php_snmp_object *)object; if (!intern) { return; } netsnmp_session_free(&(intern->session)); zend_object_std_dtor(&intern->zo TSRMLS_CC); efree(intern); }
17,419
172,596
0
AudioFlinger::EffectChain::EffectChain(ThreadBase *thread, int sessionId) : mThread(thread), mSessionId(sessionId), mActiveTrackCnt(0), mTrackCnt(0), mTailBufferCount(0), mOwnInBuffer(false), mVolumeCtrlIdx(-1), mLeftVolume(UINT_MAX), mRightVolume(UINT_MAX), mNewLeftVolume(UINT_MAX), mNewRightVolume(UINT_...
17,420
155,296
0
bool ChromeContentBrowserClient::CanIgnoreCertificateErrorIfNeeded() { return base::CommandLine::ForCurrentProcess()->HasSwitch( switches::kUserDataDir); }
17,421
38,936
0
make_bound_box(POLYGON *poly) { int i; double x1, y1, x2, y2; if (poly->npts > 0) { x2 = x1 = poly->p[0].x; y2 = y1 = poly->p[0].y; for (i = 1; i < poly->npts; i++) { if (poly->p[i].x < x1) x1 = poly->p[i].x; if (poly->p[i].x > x2) x2 = poly->p[i].x; if (poly->p[i].y < y1) ...
17,422
130,291
0
ULONG DataObjectImpl::Release() { base::RefCountedThreadSafe<DownloadFileObserver>::Release(); return 0; }
17,423
23,739
0
int bond_release(struct net_device *bond_dev, struct net_device *slave_dev) { struct bonding *bond = netdev_priv(bond_dev); struct slave *slave, *oldcurrent; struct sockaddr addr; u32 old_features = bond_dev->features; /* slave is not a slave or master is not master of this slave */ if (!(slave_dev->flags & IFF_...
17,424
153,630
0
void GLES2Implementation::DisableVertexAttribArray(GLuint index) { GPU_CLIENT_SINGLE_THREAD_CHECK(); GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glDisableVertexAttribArray(" << index << ")"); vertex_array_object_manager_->SetAttribEnable(index, false); helper_->DisableVertexAttribArray(index...
17,425
133,182
0
void HWNDMessageHandler::UpdateDwmNcRenderingPolicy() { if (base::win::GetVersion() < base::win::VERSION_VISTA) return; DWMNCRENDERINGPOLICY policy = DWMNCRP_ENABLED; if (remove_standard_frame_ || delegate_->IsUsingCustomFrame()) policy = DWMNCRP_DISABLED; DwmSetWindowAttribute(hwnd(), DWMWA_NCRENDERING...
17,426
63,408
0
static void entropy_decode_stereo_3860(APEContext *ctx, int blockstodecode) { int32_t *decoded0 = ctx->decoded[0]; int32_t *decoded1 = ctx->decoded[1]; int blocks = blockstodecode; while (blockstodecode--) *decoded0++ = ape_decode_value_3860(ctx, &ctx->gb, &ctx->riceY); while (blocks--) ...
17,427
124,437
0
void WebRuntimeFeatures::enableNotifications(bool enable) { RuntimeEnabledFeatures::setNotificationsEnabled(enable); }
17,428
112,506
0
KURL Document::openSearchDescriptionURL() { static const char* const openSearchMIMEType = "application/opensearchdescription+xml"; static const char* const openSearchRelation = "search"; if (!frame() || frame()->tree()->parent()) return KURL(); if (frame()->loader()->state() != FrameStateCompl...
17,429
81,864
0
static int wc_ecc_curve_load(const ecc_set_type* dp, ecc_curve_spec** pCurve, byte load_mask) { int ret = 0, x; ecc_curve_spec* curve; byte load_items = 0; /* mask of items to load */ if (dp == NULL || pCurve == NULL) return BAD_FUNC_ARG; #ifdef ECC_CACHE_CURVE x = wc_ecc_get_curve_idx...
17,430
4,050
0
void CachedFileStream::setPos(Guint pos, int dir) { Guint size; if (dir >= 0) { cc->seek(pos, SEEK_SET); bufPos = pos; } else { cc->seek(0, SEEK_END); size = (Guint)cc->tell(); if (pos > size) pos = (Guint)size; cc->seek(-(int)pos, SEEK_END); bufPos = (Guint)cc->tell(); } ...
17,431
401
0
fz_new_indexed_colorspace(fz_context *ctx, fz_colorspace *base, int high, unsigned char *lookup) { fz_colorspace *cs = NULL; struct indexed *idx; idx = fz_malloc_struct(ctx, struct indexed); idx->lookup = lookup; idx->base = fz_keep_colorspace(ctx, base); idx->high = high; fz_try(ctx) cs = fz_new_colorspace(...
17,432
134,807
0
bool TouchEventConverterEvdev::HasTouchscreen() const { return true; }
17,433
47,687
0
static struct dst_entry *icmpv6_route_lookup(struct net *net, struct sk_buff *skb, struct sock *sk, struct flowi6 *fl6) { struct dst_entry *dst, *dst2; struct flowi6 fl2; int err; err = ip6_dst_lookup(net, sk, &dst, fl6); if (err) return ERR_PTR(err); /* * We won't send icmp if...
17,434
113,222
0
ui::Layer* GetLayer(views::Widget* widget) { return widget->GetNativeView()->layer(); }
17,435
100,374
0
virtual void Init() { #if defined(OS_WIN) CoInitialize(NULL); #endif render_process_ = new RenderProcess(); render_process_->set_main_thread(new RenderThread(channel_id_)); base::Thread::SetThreadWasQuitProperly(true); }
17,436
139,243
0
void AudioSystemImpl::HasInputDevices(OnBoolCallback on_has_devices_cb) const { if (GetTaskRunner()->BelongsToCurrentThread()) { GetTaskRunner()->PostTask( FROM_HERE, base::Bind(on_has_devices_cb, audio_manager_->HasAudioInputDevices())); return; } base::PostTaskAndReplyWithResult( ...
17,437
61,558
0
static int is_pcm(enum AVCodecID codec_id) { /* we only care about "normal" PCM codecs until we get samples */ return codec_id >= AV_CODEC_ID_PCM_S16LE && codec_id < AV_CODEC_ID_PCM_S24DAUD; }
17,438
44,737
0
static int keyring_detect_cycle_iterator(const void *object, void *iterator_data) { struct keyring_search_context *ctx = iterator_data; const struct key *key = keyring_ptr_to_key(object); kenter("{%d}", key->serial); /* We might get a keyring with matching index-key that is nonetheless a * different keyri...
17,439
142,490
0
void ShelfLayoutManager::UpdateAutoHideForMouseEvent(ui::MouseEvent* event, aura::Window* target) { in_mouse_drag_ = (event->type() == ui::ET_MOUSE_DRAGGED || (in_mouse_drag_ && event->type() != ui::ET_MOUSE_RELEASED && even...
17,440
143,229
0
void Document::notifyLayoutTreeOfSubtreeChanges() { if (!layoutView()->wasNotifiedOfSubtreeChange()) return; m_lifecycle.advanceTo(DocumentLifecycle::InLayoutSubtreeChange); layoutView()->handleSubtreeModifications(); DCHECK(!layoutView()->wasNotifiedOfSubtreeChange()); m_lifecycle.advanc...
17,441
107,733
0
void FrameLoader::ClientDroppedNavigation() { if (!provisional_document_loader_ || provisional_document_loader_->DidStart()) return; DetachProvisionalDocumentLoader(provisional_document_loader_); Settings* settings = frame_->GetSettings(); if (settings && settings->GetForceMainWorldInitialization()) { ...
17,442
175,383
0
int Downmix_Configure(downmix_module_t *pDwmModule, effect_config_t *pConfig, bool init) { downmix_object_t *pDownmixer = &pDwmModule->context; if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate || pConfig->outputCfg.channels != DOWNMIX_OUTPUT_CHANNELS || pConfig->inputCfg.format != AUDIO_FORMA...
17,443
178,521
1
static NOINLINE char *xmalloc_optname_optval(uint8_t *option, const struct dhcp_optflag *optflag, const char *opt_name) { unsigned upper_length; int len, type, optlen; char *dest, *ret; /* option points to OPT_DATA, need to go back to get OPT_LEN */ len = option[-OPT_DATA + OPT_LEN]; type = optflag->flags & OPTION_TY...
17,444
147,671
0
static void OverloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { scheduler::CooperativeSchedulingManager::Instance()->Safepoint(); bool is_arity_error = false; switch (std::min(2, info.Length())) { case 1: if (true) { OverloadedStaticMethod1Method(info); retu...
17,445
145,863
0
ImmersiveFullscreenController* controller() { return controller_.get(); }
17,446
159,631
0
void RenderFrameHostManager::CreateProxiesForNewRenderFrameHost( SiteInstance* old_instance, SiteInstance* new_instance) { if (new_instance->IsRelatedSiteInstance(old_instance)) { CreateOpenerProxies(new_instance, frame_tree_node_); } else { frame_tree_node_->frame_tree()->CreateProxiesForSiteInstan...
17,447
146,931
0
size_t WebLocalFrameImpl::CharacterIndexForPoint( const WebPoint& point_in_viewport) const { if (!GetFrame()) return kNotFound; IntPoint point = GetFrame()->View()->ViewportToContents(point_in_viewport); HitTestResult result = GetFrame()->GetEventHandler().HitTestResultAtPoint( point, HitTestReques...
17,448
128,525
0
void Instance::Alert(const std::string& message) { GetWindowObject().Call("alert", message); }
17,449
178,472
1
PHP_FUNCTION(pg_get_notify) { zval *pgsql_link; int id = -1; long result_type = PGSQL_ASSOC; PGconn *pgsql; PGnotify *pgsql_notify; if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &pgsql_link, &result_type) == FAILURE) { RETURN_FALSE; } ZEND_FETCH_RESOURCE2(p...
17,450
55,442
0
static int proc_root_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat ) { generic_fillattr(d_inode(dentry), stat); stat->nlink = proc_root.nlink + nr_processes(); return 0; }
17,451
110,774
0
bool AutocompleteEditModel::CanPasteAndGo(const string16& text) const { if (!view_->GetCommandUpdater()->IsCommandEnabled(IDC_OPEN_CURRENT_URL)) return false; profile_->GetAutocompleteClassifier()->Classify(text, string16(), false, false, &paste_and_go_match_, &paste_and_go_alternate_nav_url_); return ...
17,452
36,520
0
int __exit snd_card_info_done(void) { snd_info_free_entry(snd_card_info_entry); #ifdef MODULE snd_info_free_entry(snd_card_module_info_entry); #endif return 0; }
17,453
26,233
0
static void perf_output_get_handle(struct perf_output_handle *handle) { struct ring_buffer *rb = handle->rb; preempt_disable(); local_inc(&rb->nest); handle->wakeup = local_read(&rb->wakeup); }
17,454
113,698
0
DesktopNativeWidgetHelperAura::DesktopNativeWidgetHelperAura( NativeWidgetAura* widget) : widget_(widget), root_window_event_filter_(NULL), is_embedded_window_(false) { }
17,455
148,814
0
void InterstitialPageImpl::InterstitialPageRVHDelegateView::ShowPopupMenu( RenderFrameHost* render_frame_host, const gfx::Rect& bounds, int item_height, double item_font_size, int selected_item, const std::vector<MenuItem>& items, bool right_aligned, bool allow_multiple_selection) { NO...
17,456
170,459
0
status_t Parcel::readAligned(T *pArg) const { COMPILE_TIME_ASSERT_FUNCTION_SCOPE(PAD_SIZE(sizeof(T)) == sizeof(T)); if ((mDataPos+sizeof(T)) <= mDataSize) { const void* data = mData+mDataPos; mDataPos += sizeof(T); *pArg = *reinterpret_cast<const T*>(data); return NO_ERROR; } else { return NOT_ENOUGH...
17,457
92,391
0
int get_kernel_consoles(char ***ret) { _cleanup_strv_free_ char **l = NULL; _cleanup_free_ char *line = NULL; const char *p; int r; assert(ret); /* If /sys is mounted read-only this means we are running in some kind of container environment. In that * case /sys...
17,458
89,882
0
upnp_event_create_notify(struct subscriber * sub) { struct upnp_event_notify * obj; /*struct timeval sock_timeout;*/ obj = calloc(1, sizeof(struct upnp_event_notify)); if(!obj) { syslog(LOG_ERR, "%s: calloc(): %m", "upnp_event_create_notify"); return; } obj->sub = sub; obj->state = ECreated; #ifdef ENABLE_I...
17,459
104,915
0
PPB_Widget_Impl::PPB_Widget_Impl(PluginInstance* instance) : Resource(instance) { }
17,460
12,799
0
SSL_SESSION *SSL_get_session(const SSL *ssl) /* aka SSL_get0_session; gets 0 objects, just returns a copy of the pointer */ { return (ssl->session); }
17,461
170,031
0
xsltFreeStackElemList(xsltStackElemPtr elem) { xsltStackElemPtr next; while (elem != NULL) { next = elem->next; xsltFreeStackElem(elem); elem = next; } }
17,462
91,945
0
void __blk_end_request_all(struct request *rq, blk_status_t error) { bool pending; unsigned int bidi_bytes = 0; lockdep_assert_held(rq->q->queue_lock); WARN_ON_ONCE(rq->q->mq_ops); if (unlikely(blk_bidi_rq(rq))) bidi_bytes = blk_rq_bytes(rq->next_rq); pending = __blk_end_bidi_request(rq, error, blk_rq_bytes(...
17,463
119,634
0
static LayoutUnit logicalHeightForLine(const RenderBlock* block, bool isFirstLine, LayoutUnit replacedHeight = 0) { if (!block->document().inNoQuirksMode() && replacedHeight) return replacedHeight; if (!(block->style(isFirstLine)->lineBoxContain() & LineBoxContainBlock)) return 0; return m...
17,464
75,633
0
static int read_wrapper_data (WavpackContext *wpc, WavpackMetadata *wpmd) { if ((wpc->open_flags & OPEN_WRAPPER) && wpc->wrapper_bytes < MAX_WRAPPER_BYTES && wpmd->byte_length) { wpc->wrapper_data = (unsigned char *)realloc (wpc->wrapper_data, wpc->wrapper_bytes + wpmd->byte_length); if (!wpc->wrapper_data...
17,465
137,825
0
MediaControlTimeRemainingDisplayElement(MediaControls& mediaControls) : MediaControlTimeDisplayElement(mediaControls, MediaTimeRemainingDisplay) { }
17,466
139,146
0
void RenderProcessHostImpl::FilterURL(bool empty_allowed, GURL* url) { FilterURL(this, empty_allowed, url); }
17,467
166,430
0
void RecordDownloadContentTypeSecurity( const GURL& download_url, const std::vector<GURL>& url_chain, const std::string& mime_type, const base::RepeatingCallback<bool(const GURL&)>& is_origin_secure_callback) { bool is_final_download_secure = is_origin_secure_callback.Run(download_url); bool...
17,468
67,331
0
static void __init dcache_init_early(void) { unsigned int loop; /* If hashes are distributed across NUMA nodes, defer * hash allocation until vmalloc space is available. */ if (hashdist) return; dentry_hashtable = alloc_large_system_hash("Dentry cache", sizeof(struct hlist_bl_head), dhash_entrie...
17,469
31,695
0
COMPAT_SYSCALL_DEFINE2(sigaltstack, const compat_stack_t __user *, uss_ptr, compat_stack_t __user *, uoss_ptr) { stack_t uss, uoss; int ret; mm_segment_t seg; if (uss_ptr) { compat_stack_t uss32; memset(&uss, 0, sizeof(stack_t)); if (copy_from_user(&uss32, uss_ptr, sizeof(compat_stack_t))) return -...
17,470
159,338
0
void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas( HTMLCanvasElementOrOffscreenCanvas& result) const { if (canvas()) { result.SetHTMLCanvasElement(static_cast<HTMLCanvasElement*>(Host())); } else { result.SetOffscreenCanvas(static_cast<OffscreenCanvas*>(Host())); } }
17,471
66,912
0
char *enl_wait_for_reply(void) { XEvent ev; static char msg_buffer[20]; register unsigned char i; alarm(2); for (; !XCheckTypedWindowEvent(disp, my_ipc_win, ClientMessage, &ev) && !timeout;); alarm(0); if (ev.xany.type != ClientMessage) { return(IPC_TIMEOUT); } for (i = 0; i < 20; i++) { msg_buffer...
17,472
69,509
0
static int rxrpc_krb5_decode_principal(struct krb5_principal *princ, const __be32 **_xdr, unsigned int *_toklen) { const __be32 *xdr = *_xdr; unsigned int toklen = *_toklen, n_parts, loop, tmp; /* there must be at least one name, and at least #names+1 length * words */ if (toklen <= 12) r...
17,473
153,235
0
::Region DesktopWindowTreeHostX11::GetWindowShape() const { return window_shape_.get(); }
17,474
126,929
0
TabContextMenuContents(BaseTab* tab, BrowserTabStripController* controller) : tab_(tab), controller_(controller), last_command_(TabStripModel::CommandFirst) { model_.reset(new TabMenuModel( this, controller->model_, controller->tabstrip_->GetModelInde...
17,475
86,780
0
TIFFFdOpen(int fd, const char* name, const char* mode) { TIFF* tif; tif = TIFFClientOpen(name, mode, ddd (thandle_t) fd, _tiffReadProc, _tiffWriteProc, _tiffSeekProc, _tiffCloseProc, _tiffSizeProc, _tiffMapProc, _tiffUnmapProc); if (tif) tif->tif_fd = fd; return (tif); }
17,476
183,133
1
static Image *ReadWPGImage(const ImageInfo *image_info, ExceptionInfo *exception) { typedef struct { size_t FileId; MagickOffsetType DataOffset; unsigned int ProductType; unsigned int FileType; unsigned char MajorVersion; unsigned char MinorVersion; unsigned int EncryptKey; unsigne...
17,477
56,903
0
static enum iwch_ep_state state_read(struct iwch_ep_common *epc) { unsigned long flags; enum iwch_ep_state state; spin_lock_irqsave(&epc->lock, flags); state = epc->state; spin_unlock_irqrestore(&epc->lock, flags); return state; }
17,478
34,383
0
static void init_once(void *foo) { struct btrfs_inode *ei = (struct btrfs_inode *) foo; inode_init_once(&ei->vfs_inode); }
17,479
24,131
0
static void DoHTCSendPktsTest(struct ar6_softc *ar, int MapNo, HTC_ENDPOINT_ID eid, struct sk_buff *dupskb) { struct ar_cookie *cookie; struct ar_cookie *cookieArray[HTC_TEST_DUPLICATE]; struct sk_buff *new_skb; int i; int pkts = 0; struct htc_packet_queue pktQueue; EPPING_HEADER ...
17,480
68,921
0
static bool set_on_slab_cache(struct kmem_cache *cachep, size_t size, unsigned long flags) { size_t left; cachep->num = 0; left = calculate_slab_order(cachep, size, flags); if (!cachep->num) return false; cachep->colour = left / cachep->colour_off; return true; }
17,481
113,166
0
Launcher::~Launcher() { }
17,482
73,325
0
void ass_stripe_unpack_c(int16_t *dst, const uint8_t *src, ptrdiff_t src_stride, uintptr_t width, uintptr_t height) { for (uintptr_t y = 0; y < height; ++y) { int16_t *ptr = dst; for (uintptr_t x = 0; x < width; x += STRIPE_WIDTH) { for (int k = 0; k < STRIPE_WID...
17,483
65,398
0
static void __nfsd4_hash_conn(struct nfsd4_conn *conn, struct nfsd4_session *ses) { conn->cn_session = ses; list_add(&conn->cn_persession, &ses->se_conns); }
17,484
39,678
0
static long do_rmdir(int dfd, const char __user *pathname) { int error = 0; char * name; struct dentry *dentry; struct nameidata nd; error = user_path_parent(dfd, pathname, &nd, &name); if (error) return error; switch(nd.last_type) { case LAST_DOTDOT: error = -ENOTEMPTY; goto exit1; case LAST_DOT: er...
17,485
171,523
0
OMX_ERRORTYPE SimpleSoftOMXComponent::emptyThisBuffer( OMX_BUFFERHEADERTYPE *buffer) { sp<AMessage> msg = new AMessage(kWhatEmptyThisBuffer, mHandler); msg->setPointer("header", buffer); msg->post(); return OMX_ErrorNone; }
17,486
95,803
0
const char *FS_LoadedPakChecksums( void ) { static char info[BIG_INFO_STRING]; searchpath_t *search; info[0] = 0; for ( search = fs_searchpaths ; search ; search = search->next ) { if ( !search->pack ) { continue; } Q_strcat( info, sizeof( info ), va( "%i ", search->pack->checksum ) ); } return in...
17,487
52,231
0
arpt_error(struct sk_buff *skb, const struct xt_action_param *par) { net_err_ratelimited("arp_tables: error: '%s'\n", (const char *)par->targinfo); return NF_DROP; }
17,488
164,938
0
ResourceDispatcherHostImpl::HeaderInterceptorInfo::HeaderInterceptorInfo( const HeaderInterceptorInfo& other) {}
17,489
4,946
0
gst_qtdemux_handle_src_event (GstPad * pad, GstEvent * event) { gboolean res = TRUE; GstQTDemux *qtdemux = GST_QTDEMUX (gst_pad_get_parent (pad)); switch (GST_EVENT_TYPE (event)) { case GST_EVENT_SEEK: if (qtdemux->pullbased) { res = gst_qtdemux_do_seek (qtdemux, pad, event); } else { ...
17,490
38,002
0
static inline struct sk_buff *handle_ing(struct sk_buff *skb, struct packet_type **pt_prev, int *ret, struct net_device *orig_dev) { if (skb->dev->rx_queue.qdisc == &noop_qdisc) goto out; if (*pt_prev) { *ret = deliver_skb(skb, *pt_prev, orig_dev); *pt_prev = NULL; } switch (ing_filter(skb)) { ...
17,491
180,432
1
void xmlrpc_char_encode(char *outbuffer, const char *s1) { long unsigned int i; unsigned char c; char buf2[15]; mowgli_string_t *s = mowgli_string_create(); *buf2 = '\0'; *outbuffer = '\0'; if ((!(s1) || (*(s1) == '\0'))) { return; } for (i = 0; s1[i] != '\0'; i++) { c = s1[i]; if (c > 127) { snprintf(buf2, sizeof bu...
17,492
89,654
0
int mdiobus_write_nested(struct mii_bus *bus, int addr, u32 regnum, u16 val) { int err; BUG_ON(in_interrupt()); mutex_lock_nested(&bus->mdio_lock, MDIO_MUTEX_NESTED); err = __mdiobus_write(bus, addr, regnum, val); mutex_unlock(&bus->mdio_lock); return err; }
17,493
25,280
0
xscale1_pmnc_counter_has_overflowed(unsigned long pmnc, enum xscale_counters counter) { int ret = 0; switch (counter) { case XSCALE_CYCLE_COUNTER: ret = pmnc & XSCALE1_CCOUNT_OVERFLOW; break; case XSCALE_COUNTER0: ret = pmnc & XSCALE1_COUNT0_OVERFLOW; break; case XSCALE_COUNTER1: ret = pmnc & XSCAL...
17,494
130,715
0
static void deprecatedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { TestObject* imp = V8TestObject::toNative(info.Holder()); imp->deprecatedMethod(); }
17,495
57,782
0
int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log) { bool is_dirty = false; int r; mutex_lock(&kvm->slots_lock); /* * Flush potentially hardware-cached dirty pages to dirty_bitmap. */ if (kvm_x86_ops->flush_log_dirty) kvm_x86_ops->flush_log_dirty(kvm); r = kvm_get_dirty_log_protec...
17,496
67,566
0
static int auth_count_scoreboard(cmd_rec *cmd, const char *user) { char *key; void *v; pr_scoreboard_entry_t *score = NULL; long cur = 0, hcur = 0, ccur = 0, hostsperuser = 1, usersessions = 0; config_rec *c = NULL, *maxc = NULL; /* First, check to see which Max* directives are configured. If none * ar...
17,497
161,669
0
VaapiVideoDecodeAccelerator::CreateSurface() { DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); base::AutoLock auto_lock(lock_); if (available_va_surfaces_.empty()) return nullptr; DCHECK(!awaiting_va_surfaces_recycle_); scoped_refptr<VASurface> va_surface(new VASurface( available_va...
17,498
1,471
0
static ssize_t pdu_unmarshal(V9fsPDU *pdu, size_t offset, const char *fmt, ...) { ssize_t ret; va_list ap; va_start(ap, fmt); ret = pdu->s->transport->pdu_vunmarshal(pdu, offset, fmt, ap); va_end(ap); return ret; }
17,499