unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
37,617
0
static void ept_load_pdptrs(struct kvm_vcpu *vcpu) { if (!test_bit(VCPU_EXREG_PDPTR, (unsigned long *)&vcpu->arch.regs_dirty)) return; if (is_paging(vcpu) && is_pae(vcpu) && !is_long_mode(vcpu)) { vmcs_write64(GUEST_PDPTR0, vcpu->arch.mmu.pdptrs[0]); vmcs_write64(GUEST_PDPTR1, vcpu->arch.mmu.pdptrs[1])...
13,000
161,885
0
void PrintRenderFrameHelper::PrintPreviewContext::ClearContext() { prep_frame_view_.reset(); metafile_.reset(); pages_to_render_.clear(); error_ = PREVIEW_ERROR_NONE; }
13,001
185,609
1
void AppCacheUpdateJob::HandleMasterEntryFetchCompleted( URLFetcher* fetcher) { DCHECK(internal_state_ == NO_UPDATE || internal_state_ == DOWNLOADING); net::URLRequest* request = fetcher->request(); const GURL& url = request->original_url(); master_entry_fetches_.erase(url); ++master_entries_completed_;...
13,002
150,469
0
bool NavigationControllerImpl::IsUnmodifiedBlankTab() const { return IsInitialNavigation() && !GetLastCommittedEntry() && !delegate_->HasAccessedInitialDocument(); }
13,003
136,656
0
void FrameLoader::DidFinishNavigation() { DCHECK((document_loader_ && document_loader_->SentDidFinishLoad()) || !HasProvisionalNavigation()); if (!document_loader_ || !document_loader_->SentDidFinishLoad() || HasProvisionalNavigation()) { return; } if (frame_->IsLoading()) { progress_tra...
13,004
98,770
0
void DidReceiveResponse(const std::string& mime_type, const std::string& headers, uint32 expected_length, uint32 last_modified, bool request_is_seekable) { DCHECK(channel_ != NULL); PluginMsg_DidReceiveResp...
13,005
181,620
1
static int load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg) { u8 cpl = ctxt->ops->cpl(ctxt); return __load_segment_descriptor(ctxt, selector, seg, cpl, X86_TRANSFER_NONE, NULL); }
13,006
73,405
0
add_cipher_name_to_ary(const OBJ_NAME *name, VALUE ary) { rb_ary_push(ary, rb_str_new2(name->name)); return NULL; }
13,007
31,848
0
static int xen_vbd_translate(struct phys_req *req, struct xen_blkif *blkif, int operation) { struct xen_vbd *vbd = &blkif->vbd; int rc = -EACCES; if ((operation != READ) && vbd->readonly) goto out; if (likely(req->nr_sects)) { blkif_sector_t end = req->sector_number + req->nr_sects; if (unlikely(en...
13,008
84,579
0
add_pre_form_item(struct pre_form *pf, struct pre_form_item *prev, int type, char *name, char *value, char *checked) { struct pre_form_item *new; if (!pf) return NULL; if (prev) new = prev->next = New(struct pre_form_item); else new = pf->item = New(struct pre_form_item); new->type = type; ...
13,009
116,701
0
bool RenderViewImpl::runModalConfirmDialog(WebFrame* frame, const WebString& message) { return RunJavaScriptMessage(ui::JAVASCRIPT_MESSAGE_TYPE_CONFIRM, message, string16(), frame->docu...
13,010
171,547
0
String8::String8(const char* o) : mString(allocFromUTF8(o, strlen(o))) { if (mString == NULL) { mString = getEmptyString(); } }
13,011
16,394
0
CStarter::RemoteHold( int ) { if( jic ) { jic->gotHold(); } if ( this->Hold( ) ) { dprintf( D_FULLDEBUG, "Got Hold when no jobs running\n" ); this->allJobsDone(); return ( true ); } return ( false ); }
13,012
18,466
0
kvp_get_ip_info(int family, char *if_name, int op, void *out_buffer, int length) { struct ifaddrs *ifap; struct ifaddrs *curp; int offset = 0; int sn_offset = 0; int error = 0; char *buffer; struct hv_kvp_ipaddr_value *ip_buffer; char cidr_mask[5]; /* /xyz */ int weight; int i; unsigned int *w; char *sn...
13,013
186,511
1
SendTabToSelfInfoBarDelegate::SendTabToSelfInfoBarDelegate( const SendTabToSelfEntry* entry) { entry_ = entry; }
13,014
103,251
0
void WebSocketJob::OnCloseSpdyStream() { spdy_websocket_stream_.reset(); OnClose(socket_); }
13,015
107,999
0
TranslateInfoBarDelegate* TranslateManager::GetTranslateInfoBarDelegate( TabContents* tab) { for (int i = 0; i < tab->infobar_delegate_count(); ++i) { TranslateInfoBarDelegate* delegate = tab->GetInfoBarDelegateAt(i)->AsTranslateInfoBarDelegate(); if (delegate) return delegate; } return ...
13,016
60,564
0
static MagickBooleanType EncodeImage(const ImageInfo *image_info,Image *image, const size_t data_size,ExceptionInfo *exception) { #define MaxCode(number_bits) ((one << (number_bits))-1) #define MaxHashTable 5003 #define MaxGIFBits 12UL #define MaxGIFTable (1UL << MaxGIFBits) #define GIFOutputCode(code) \ { \ /*...
13,017
6,477
0
static EC_GROUP *ec_asn1_parameters2group(const ECPARAMETERS *params) { int ok = 0, tmp; EC_GROUP *ret = NULL; BIGNUM *p = NULL, *a = NULL, *b = NULL; EC_POINT *point = NULL; long field_bits; if (!params->fieldID || !params->fieldID->fieldType || !params->fieldID->p.ptr) { ECerr...
13,018
115,999
0
string16 ExtensionGlobalError::GetBubbleViewAcceptButtonLabel() { return l10n_util::GetStringUTF16(IDS_EXTENSION_ALERT_ITEM_OK); }
13,019
108,263
0
void FrameLoader::loadInSameDocument(const KURL& url, SerializedScriptValue* stateObject, bool isNewNavigation) { ASSERT(!stateObject || (stateObject && !isNewNavigation)); m_frame->document()->setURL(url); documentLoader()->replaceRequestURLForSameDocumentNavigation(url); if (isNewNavigation && !shoul...
13,020
89,389
0
void part_set_generic_name(const struct blk_desc *dev_desc, int part_num, char *name) { char *devtype; switch (dev_desc->if_type) { case IF_TYPE_IDE: case IF_TYPE_SATA: case IF_TYPE_ATAPI: devtype = "hd"; break; case IF_TYPE_SCSI: devtype = "sd"; break; case IF_TYPE_USB: devtype = "usbd"; break; c...
13,021
187,799
1
void SoftMP3::onQueueFilled(OMX_U32 /* portIndex */) { if (mSignalledError || mOutputPortSettingsChange != NONE) { return; } List<BufferInfo *> &inQueue = getPortQueue(0); List<BufferInfo *> &outQueue = getPortQueue(1); while ((!inQueue.empty() || (mSawInputEos && !mSignalledOutputEos)) && !outQueue.empty()) { ...
13,022
32,166
0
gro_result_t napi_frags_finish(struct napi_struct *napi, struct sk_buff *skb, gro_result_t ret) { switch (ret) { case GRO_NORMAL: case GRO_HELD: skb->protocol = eth_type_trans(skb, skb->dev); if (ret == GRO_HELD) skb_gro_pull(skb, -ETH_HLEN); else if (netif_receive_skb(skb)) ret = GRO_DROP; ...
13,023
2,862
0
ProcShmCreatePixmap(ClientPtr client) { PixmapPtr pMap; DrawablePtr pDraw; DepthPtr pDepth; int i, rc; ShmDescPtr shmdesc; ShmScrPrivateRec *screen_priv; REQUEST(xShmCreatePixmapReq); unsigned int width, height, depth; unsigned long size; REQUEST_SIZE_MATCH(xShmCreatePixmapReq)...
13,024
129,926
0
void DistillerNativeJavaScript::BindFunctionToObject( v8::Local<v8::Object> javascript_object, const std::string& name, const base::Callback<Sig> callback) { v8::Isolate* isolate = javascript_object->GetIsolate(); javascript_object->Set( gin::StringToSymbol(isolate, name), gin::CreateFunctio...
13,025
157,447
0
void MediaElementAudioSourceNode::SetFormat(size_t number_of_channels, float sample_rate) { GetMediaElementAudioSourceHandler().SetFormat(number_of_channels, sample_rate); }
13,026
2,837
0
nm_setting_vpn_error_quark (void) { static GQuark quark; if (G_UNLIKELY (!quark)) quark = g_quark_from_static_string ("nm-setting-vpn-error-quark"); return quark; }
13,027
165,934
0
void RenderFrameImpl::ScrollFocusedEditableElementIntoRect( const gfx::Rect& rect) { blink::WebAutofillClient* autofill_client = frame_->AutofillClient(); if (has_scrolled_focused_editable_node_into_rect_ && rect == rect_for_scrolled_focused_editable_node_ && autofill_client) { autofill_client->DidCom...
13,028
9,235
0
void virtio_queue_set_host_notifier_fd_handler(VirtQueue *vq, bool assign, bool set_handler) { AioContext *ctx = qemu_get_aio_context(); if (assign && set_handler) { if (vq->use_aio) { aio_set_event_notifier(ctx, &vq->host_notifier, true, ...
13,029
46,049
0
xdr_dpol_arg(XDR *xdrs, dpol_arg *objp) { if (!xdr_ui_4(xdrs, &objp->api_version)) { return (FALSE); } if (!xdr_nullstring(xdrs, &objp->name)) { return (FALSE); } return (TRUE); }
13,030
149,960
0
bool LayerTreeHostImpl::IsActivelyScrolling() const { if (!CurrentlyScrollingNode()) return false; if (settings_.ignore_root_layer_flings && IsCurrentlyScrollingViewport()) return false; return did_lock_scrolling_layer_; }
13,031
50,556
0
MagickExport MagickBooleanType LinearStretchImage(Image *image, const double black_point,const double white_point,ExceptionInfo *exception) { #define LinearStretchImageTag "LinearStretch/Image" CacheView *image_view; double *histogram, intensity; MagickBooleanType status; ssize_t blac...
13,032
84,937
0
static int encryption_required(const struct cifs_tcon *tcon) { if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA)) return 1; return 0; }
13,033
59,079
0
comics_document_load (EvDocument *document, const char *uri, GError **error) { ComicsDocument *comics_document = COMICS_DOCUMENT (document); GSList *supported_extensions; gchar *std_out; gchar *mime_type; gchar **cb_files, *cb_file; gboolean success; int i, retval; GError *err = NULL; comic...
13,034
165,904
0
RenderFrameImpl* RenderFrameImpl::FromRoutingID(int routing_id) { auto iter = g_routing_id_frame_map.Get().find(routing_id); if (iter != g_routing_id_frame_map.Get().end()) return iter->second; return nullptr; }
13,035
137,733
0
void ChromeContentUtilityClient::SetNetworkBinderCreationCallback( const NetworkBinderCreationCallback& callback) { g_network_binder_creation_callback.Get() = callback; }
13,036
19,656
0
static void kvp_pool_enumerate(int pool, int index, __u8 *key, int key_size, __u8 *value, int value_size) { struct kvp_record *record; /* * First update our in-memory database. */ kvp_update_mem_state(pool); record = kvp_file_info[pool].records; if (index >= kvp_file_info[pool].num_records) { /* * T...
13,037
48,388
0
tsize_t t2p_write_pdf_transfer_dict(T2P* t2p, TIFF* output, uint16 i){ tsize_t written=0; char buffer[32]; int buflen=0; (void)i; /* XXX */ written += t2pWriteFile(output, (tdata_t) "/FunctionType 0 \n", 17); written += t2pWriteFile(output, (tdata_t) "/Domain [0.0 1.0] \n", 19); written += t2pWriteFile(output,...
13,038
83,548
0
static BOOL update_begin_paint(rdpContext* context) { wStream* s; rdpUpdate* update = context->update; if (update->us) update->EndPaint(context); s = fastpath_update_pdu_init_new(context->rdp->fastpath); if (!s) return FALSE; Stream_SealLength(s); Stream_Seek(s, 2); /* numberOrders (2 bytes) */ update->...
13,039
24,772
0
static int check_pad_bytes(struct kmem_cache *s, struct page *page, u8 *p) { unsigned long off = s->inuse; /* The end of info */ if (s->offset) /* Freepointer is placed after the object. */ off += sizeof(void *); if (s->flags & SLAB_STORE_USER) /* We also have user information there */ off += 2 * sizeof(st...
13,040
96,474
0
const char *AppLayerProtoDetectGetProtoName(AppProto alproto) { return alpd_ctx.alproto_names[alproto]; }
13,041
165,650
0
std::wstring GetClientsKeyPath() { return GetClientsKeyPath(GetAppGuid()); }
13,042
27,810
0
static void br_multicast_del_pg(struct net_bridge *br, struct net_bridge_port_group *pg) { struct net_bridge_mdb_htable *mdb; struct net_bridge_mdb_entry *mp; struct net_bridge_port_group *p; struct net_bridge_port_group __rcu **pp; mdb = mlock_dereference(br->mdb, br); mp = br_mdb_ip_get(mdb, &pg->addr); ...
13,043
71,263
0
static int kvm_vcpu_release(struct inode *inode, struct file *filp) { struct kvm_vcpu *vcpu = filp->private_data; debugfs_remove_recursive(vcpu->debugfs_dentry); kvm_put_kvm(vcpu->kvm); return 0; }
13,044
25,771
0
set_ext_hw_attr(struct hw_perf_event *hwc, struct perf_event *event) { struct perf_event_attr *attr = &event->attr; unsigned int cache_type, cache_op, cache_result; u64 config, val; config = attr->config; cache_type = (config >> 0) & 0xff; if (cache_type >= PERF_COUNT_HW_CACHE_MAX) return -EINVAL; cache_op...
13,045
135,969
0
PassRefPtrWillBeRawPtr<Node> ContainerNode::replaceChild(PassRefPtrWillBeRawPtr<Node> newChild, PassRefPtrWillBeRawPtr<Node> oldChild, ExceptionState& exceptionState) { #if !ENABLE(OILPAN) ASSERT(refCount() || parentOrShadowHostNode()); #endif RefPtrWillBeRawPtr<Node> protect(this); if (oldChild == newChi...
13,046
32,366
0
static int lock_mount(struct path *path) { struct vfsmount *mnt; retry: mutex_lock(&path->dentry->d_inode->i_mutex); if (unlikely(cant_mount(path->dentry))) { mutex_unlock(&path->dentry->d_inode->i_mutex); return -ENOENT; } down_write(&namespace_sem); mnt = lookup_mnt(path); if (likely(!mnt)) return 0; up...
13,047
125,350
0
GDataFileSystem::CreateDirectoryParams::CreateDirectoryParams( const FilePath& created_directory_path, const FilePath& target_directory_path, bool is_exclusive, bool is_recursive, const FileOperationCallback& callback) : created_directory_path(created_directory_path), target_directory_path...
13,048
46,751
0
static int crc32c_sparc64_cra_init(struct crypto_tfm *tfm) { u32 *key = crypto_tfm_ctx(tfm); *key = ~0; return 0; }
13,049
83,920
0
vips_foreign_summary_class( VipsObjectClass *object_class, VipsBuf *buf ) { VipsForeignClass *class = VIPS_FOREIGN_CLASS( object_class ); VIPS_OBJECT_CLASS( vips_foreign_parent_class )-> summary_class( object_class, buf ); if( class->suffs ) { const char **p; vips_buf_appends( buf, " (" ); for( p = class-...
13,050
12,693
0
void SSL3_RECORD_set_seq_num(SSL3_RECORD *r, const unsigned char *seq_num) { memcpy(r->seq_num, seq_num, SEQ_NUM_SIZE); }
13,051
111,540
0
void TouchEventHandler::playSoundIfAnchorIsTarget() const { if (m_lastFatFingersResult.node() && m_lastFatFingersResult.node()->isLink()) BlackBerry::Platform::SystemSound::instance()->playSound(BlackBerry::Platform::SystemSoundType::InputKeypress); }
13,052
114,962
0
void TestingAutomationProvider::GetViews( DictionaryValue* args, IPC::Message* reply_message) { ListValue* view_list = new ListValue(); BrowserList::const_iterator browser_iter = BrowserList::begin(); for (; browser_iter != BrowserList::end(); ++browser_iter) { Browser* browser = *browser_iter; for (i...
13,053
7,955
0
void buffer_free(Buffer *buffer) { g_free(buffer->buffer); buffer->offset = 0; buffer->capacity = 0; buffer->buffer = NULL; }
13,054
143,706
0
void RenderWidgetHostImpl::SetBackgroundOpaque(bool opaque) { Send(new ViewMsg_SetBackgroundOpaque(GetRoutingID(), opaque)); }
13,055
179,639
1
asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg, unsigned int vlen, unsigned int flags, struct compat_timespec __user *timeout) { int datagrams; struct timespec ktspec; if (flags & MSG_CMSG_COMPAT) return -EINVAL; if (COMPAT_USE_64BIT_TIME) return __sys_recvmmsg(fd, (struct mmsghdr _...
13,056
25,449
0
static bool pmc_overflow(unsigned long val) { if ((int)val < 0) return true; /* * Events on POWER7 can roll back if a speculative event doesn't * eventually complete. Unfortunately in some rare cases they will * raise a performance monitor exception. We need to catch this to * ensure we reset the PMC. In a...
13,057
177,906
1
SplashPath *Splash::makeDashedPath(SplashPath *path) { SplashPath *dPath; SplashCoord lineDashTotal; SplashCoord lineDashStartPhase, lineDashDist, segLen; SplashCoord x0, y0, x1, y1, xa, ya; GBool lineDashStartOn, lineDashOn, newPath; int lineDashStartIdx, lineDashIdx; int i, j, k; lineDashTotal = 0; for (i = 0; i < s...
13,058
173,133
0
findb(const png_byte *name) { int i = NINFO; while (--i >= 0) { if (memcmp(chunk_info[i].name, name, 4) == 0) break; } return i; }
13,059
43,186
0
int oz_hcd_heartbeat(void *hport) { int rc = 0; struct oz_port *port = hport; struct oz_hcd *ozhcd = port->ozhcd; struct oz_urb_link *urbl, *n; LIST_HEAD(xfr_list); struct urb *urb; struct oz_endpoint *ep; struct timespec ts, delta; getrawmonotonic(&ts); /* Check the OUT isoc endpoints to see if any URB data...
13,060
51,039
0
int page_symlink(struct inode *inode, const char *symname, int len) { return __page_symlink(inode, symname, len, !mapping_gfp_constraint(inode->i_mapping, __GFP_FS)); }
13,061
140,116
0
EnumerationHistogram& HTMLMediaElement::showControlsHistogram() const { if (isHTMLVideoElement()) { DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("Media.Controls.Show.Video", MediaControlsShowMax)); return histogram; } DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ...
13,062
60,420
0
static int packet_notifier(struct notifier_block *this, unsigned long msg, void *ptr) { struct sock *sk; struct net_device *dev = netdev_notifier_info_to_dev(ptr); struct net *net = dev_net(dev); rcu_read_lock(); sk_for_each_rcu(sk, &net->packet.sklist) { struct packet_sock *po = pkt_sk(sk); switch (ms...
13,063
65,204
0
static int lockd_start_svc(struct svc_serv *serv) { int error; if (nlmsvc_rqst) return 0; /* * Create the kernel thread and wait for it to start. */ nlmsvc_rqst = svc_prepare_thread(serv, &serv->sv_pools[0], NUMA_NO_NODE); if (IS_ERR(nlmsvc_rqst)) { error = PTR_ERR(nlmsvc_rqst); printk(KERN_WARNING ...
13,064
181,952
1
ossl_cipher_initialize(VALUE self, VALUE str) { EVP_CIPHER_CTX *ctx; const EVP_CIPHER *cipher; char *name; unsigned char dummy_key[EVP_MAX_KEY_LENGTH] = { 0 }; name = StringValueCStr(str); GetCipherInit(self, ctx); if (ctx) { ossl_raise(rb_eRuntimeError, "Cipher already inititalized!"); } AllocCipher(self, ctx); i...
13,065
166,312
0
void WaitForOneCapturedBuffer() { base::RunLoop run_loop; EXPECT_CALL(*this, DoOnBufferReady(_)) .Times(AnyNumber()) .WillOnce(ExitMessageLoop(task_runner_, run_loop.QuitClosure())) .RetiresOnSaturation(); run_loop.Run(); }
13,066
64,912
0
static iw_tmpsample get_raw_sample_flt32(struct iw_context *ctx, int x, int y, int channel) { size_t z; z = y*ctx->img1.bpr + (ctx->img1_numchannels_physical*x + channel)*4; return (iw_tmpsample)iw_get_float32(&ctx->img1.pixels[z]); }
13,067
38,801
0
box_contain(PG_FUNCTION_ARGS) { BOX *box1 = PG_GETARG_BOX_P(0); BOX *box2 = PG_GETARG_BOX_P(1); PG_RETURN_BOOL(FPge(box1->high.x, box2->high.x) && FPle(box1->low.x, box2->low.x) && FPge(box1->high.y, box2->high.y) && FPle(box1->low.y, box2->low.y)); }
13,068
149,318
0
void DatabaseImpl::IDBThreadHelper::RenameObjectStore( int64_t transaction_id, int64_t object_store_id, const base::string16& new_name) { DCHECK(idb_thread_checker_.CalledOnValidThread()); if (!connection_->IsConnected()) return; IndexedDBTransaction* transaction = connection_->GetTransacti...
13,069
96,432
0
void mp_encode_lua_table_as_array(lua_State *L, mp_buf *buf, int level) { #if LUA_VERSION_NUM < 502 size_t len = lua_objlen(L,-1), j; #else size_t len = lua_rawlen(L,-1), j; #endif mp_encode_array(L,buf,len); for (j = 1; j <= len; j++) { lua_pushnumber(L,j); lua_gettable(L,-2); ...
13,070
149,943
0
void LayerTreeHostImpl::EvictAllUIResources() { if (ui_resource_map_.empty()) return; ClearUIResources(); client_->SetNeedsCommitOnImplThread(); client_->OnCanDrawStateChanged(CanDraw()); client_->RenewTreePriority(); }
13,071
135,205
0
void Document::didLoadAllScriptBlockingResources() { loadingTaskRunner()->postTask(BLINK_FROM_HERE, m_executeScriptsWaitingForResourcesTask->cancelAndCreate()); if (frame()) frame()->loader().client()->didRemoveAllPendingStylesheet(); if (m_gotoAnchorNeededAfterStylesheetsLoad && view()) v...
13,072
10,637
0
Ins_NOT( FT_Long* args ) { args[0] = !args[0]; }
13,073
124,881
0
bool RenderBox::hasRelativeLogicalHeight() const { return style()->logicalHeight().isPercent() || style()->logicalMinHeight().isPercent() || style()->logicalMaxHeight().isPercent(); }
13,074
59,968
0
static void *find_audio_control_unit(struct mixer_build *state, unsigned char unit) { /* we just parse the header */ struct uac_feature_unit_descriptor *hdr = NULL; while ((hdr = snd_usb_find_desc(state->buffer, state->buflen, hdr, USB_DT_CS_INTERFACE)) != NULL) { if (hdr->bLength >= 4 && hdr-...
13,075
163,392
0
void RenderThreadImpl::RemoveObserver(RenderThreadObserver* observer) { observer->UnregisterMojoInterfaces(&associated_interfaces_); observers_.RemoveObserver(observer); }
13,076
164,317
0
ScriptExecutor* ExecuteCodeInTabFunction::GetScriptExecutor( std::string* error) { Browser* browser = nullptr; content::WebContents* contents = nullptr; bool success = GetTabById(execute_tab_id_, browser_context(), include_incognito_information(), &browser, nullptr, ...
13,077
43,915
0
hfs_set_compressed_fflag(struct archive_write_disk *a) { int r; if ((r = lazy_stat(a)) != ARCHIVE_OK) return (r); a->st.st_flags |= UF_COMPRESSED; if (fchflags(a->fd, a->st.st_flags) != 0) { archive_set_error(&a->archive, errno, "Failed to set UF_COMPRESSED file flag"); return (ARCHIVE_WARN); } retu...
13,078
84,725
0
loop_get_status_compat(struct loop_device *lo, struct compat_loop_info __user *arg) { struct loop_info64 info64; int err = 0; if (!arg) err = -EINVAL; if (!err) err = loop_get_status(lo, &info64); if (!err) err = loop_info64_to_compat(&info64, arg); return err; }
13,079
53,798
0
static void __init reserve_brk(void) { if (_brk_end > _brk_start) memblock_reserve(__pa_symbol(_brk_start), _brk_end - _brk_start); /* Mark brk area as locked down and no longer taking any new allocations */ _brk_start = 0; }
13,080
139,878
0
bool ZeroSuggestProvider::ShouldAppendExtraParams( const SearchSuggestionParser::SuggestResult& result) const { return true; }
13,081
65,817
0
nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open *open) { struct xdr_stream *xdr = &resp->xdr; __be32 *p; if (nfserr) goto out; nfserr = nfsd4_encode_stateid(xdr, &open->op_stateid); if (nfserr) goto out; p = xdr_reserve_space(xdr, 24); if (!p) return nfserr_resource; p...
13,082
18,597
0
int ext4_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, __u64 start, __u64 len) { ext4_lblk_t start_blk; int error = 0; /* fallback to generic here if not in extents fmt */ if (!(ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS))) return generic_block_fiemap(inode, fieinfo, start, len, ext4_g...
13,083
13,038
0
ecc_check_secret_key (gcry_sexp_t keyparms) { gcry_err_code_t rc; gcry_sexp_t l1 = NULL; int flags = 0; char *curvename = NULL; gcry_mpi_t mpi_g = NULL; gcry_mpi_t mpi_q = NULL; ECC_secret_key sk; mpi_ec_t ec = NULL; memset (&sk, 0, sizeof sk); /* Look for flags. */ l1 = sexp_find_token (keyparm...
13,084
38,627
0
void flush_vsx_to_thread(struct task_struct *tsk) { if (tsk->thread.regs) { preempt_disable(); if (tsk->thread.regs->msr & MSR_VSX) { #ifdef CONFIG_SMP BUG_ON(tsk != current); #endif giveup_vsx(tsk); } preempt_enable(); } }
13,085
117,916
0
static v8::Handle<v8::Value> withScriptStateObjExceptionCallback(const v8::Arguments& args) { INC_STATS("DOM.TestObj.withScriptStateObjException"); TestObj* imp = V8TestObj::toNative(args.Holder()); ExceptionCode ec = 0; { EmptyScriptState state; RefPtr<TestObj> result = imp->withScriptStateObjE...
13,086
127,135
0
int AggregateProfilesIntoAutofillPrefs(const std::string& filename) { CHECK(test_server()->Start()); std::string data; base::FilePath data_file = ui_test_utils::GetTestFilePath(base::FilePath().AppendASCII("autofill"), base::FilePath().AppendASCII(filename))...
13,087
84,895
0
sess_auth_rawntlmssp_negotiate(struct sess_data *sess_data) { int rc; struct smb_hdr *smb_buf; SESSION_SETUP_ANDX *pSMB; struct cifs_ses *ses = sess_data->ses; __u16 bytes_remaining; char *bcc_ptr; u16 blob_len; cifs_dbg(FYI, "rawntlmssp session setup negotiate phase\n"); /* * if memory allocation is succe...
13,088
158,063
0
void LocalFrameClientImpl::DidStopLoading() { if (web_frame_->Client()) web_frame_->Client()->DidStopLoading(); }
13,089
50,514
0
int perf_proc_update_handler(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) { int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); if (ret || !write) return ret; max_samples_per_tick = DIV_ROUND_UP(sysctl_perf_event_sample_rate, HZ); perf_sample_period_ns =...
13,090
40,947
0
struct json_tokener* json_tokener_new(void) { return json_tokener_new_ex(JSON_TOKENER_DEFAULT_DEPTH); }
13,091
64,435
0
mrb_garbage_collect(mrb_state *mrb) { mrb_full_gc(mrb); }
13,092
66,610
0
static bool port_has_data(struct port *port) { unsigned long flags; bool ret; ret = false; spin_lock_irqsave(&port->inbuf_lock, flags); port->inbuf = get_inbuf(port); if (port->inbuf) ret = true; spin_unlock_irqrestore(&port->inbuf_lock, flags); return ret; }
13,093
72,858
0
static jpc_mstabent_t *jpc_mstab_lookup(int id) { jpc_mstabent_t *mstabent; for (mstabent = jpc_mstab;; ++mstabent) { if (mstabent->id == id || mstabent->id < 0) { return mstabent; } } assert(0); return 0; }
13,094
11,421
0
fbFetchPixel_c8 (const FbBits *bits, int offset, miIndexedPtr indexed) { CARD32 pixel = READ((CARD8 *) bits + offset); return indexed->rgba[pixel]; }
13,095
153,134
0
void PDFiumEngine::ZoomUpdated(double new_zoom_level) { CancelPaints(); current_zoom_ = new_zoom_level; CalculateVisiblePages(); UpdateTickMarks(); }
13,096
106,883
0
int RenderBox::lineHeight(bool /*firstLine*/, LineDirectionMode direction, LinePositionMode /*linePositionMode*/) const { if (isReplaced()) return direction == HorizontalLine ? m_marginTop + height() + m_marginBottom : m_marginRight + width() + m_marginLeft; return 0; }
13,097
56,683
0
static void ext4_put_super(struct super_block *sb) { struct ext4_sb_info *sbi = EXT4_SB(sb); struct ext4_super_block *es = sbi->s_es; int i, err; ext4_unregister_li_request(sb); dquot_disable(sb, -1, DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED); flush_workqueue(sbi->rsv_conversion_wq); destroy_workqueue(sbi->rs...
13,098
83,464
0
X509_VERIFY_PARAM_table_cleanup(void) { if (param_table) sk_X509_VERIFY_PARAM_pop_free(param_table, X509_VERIFY_PARAM_free); param_table = NULL; }
13,099