unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
72,227
0
parse_server_match_config(ServerOptions *options, struct connection_info *connectinfo) { ServerOptions mo; initialize_server_options(&mo); parse_server_config(&mo, "reprocess config", &cfg, connectinfo); copy_set_server_options(options, &mo, 0); }
12,700
150,655
0
InputHandlerProxy::EventDisposition InputHandlerProxy::HitTestTouchEvent( const blink::WebTouchEvent& touch_event, bool* is_touching_scrolling_layer, cc::TouchAction* white_listed_touch_action) { *is_touching_scrolling_layer = false; EventDisposition result = DROP_EVENT; for (size_t i = 0; i < touch_e...
12,701
33,352
0
static int i2c_type_bootmode(struct edgeport_serial *serial) { struct device *dev = &serial->serial->dev->dev; int status; u8 *data; data = kmalloc(1, GFP_KERNEL); if (!data) { dev_err(dev, "%s - out of memory\n", __func__); return -ENOMEM; } /* Try to read type 2 */ status = ti_vread_sync(serial->serial-...
12,702
37,587
0
static void shadow_walk_init(struct kvm_shadow_walk_iterator *iterator, struct kvm_vcpu *vcpu, u64 addr) { iterator->addr = addr; iterator->shadow_addr = vcpu->arch.mmu.root_hpa; iterator->level = vcpu->arch.mmu.shadow_root_level; if (iterator->level == PT64_ROOT_LEVEL && vcpu->arch.mmu.root_level < P...
12,703
39,605
0
static void free_ioctx(struct work_struct *work) { struct kioctx *ctx = container_of(work, struct kioctx, free_work); pr_debug("freeing %p\n", ctx); aio_free_ring(ctx); free_percpu(ctx->cpu); kmem_cache_free(kioctx_cachep, ctx); }
12,704
172,156
0
config_t *config_new_clone(const config_t *src) { assert(src != NULL); config_t *ret = config_new_empty(); assert(ret != NULL); for (const list_node_t *node = list_begin(src->sections); node != list_end(src->sections); node = list_next(node)) { section_t *sec = list_node(node); for (const list...
12,705
19,997
0
int nfs4_proc_setclientid_confirm(struct nfs_client *clp, struct nfs4_setclientid_res *arg, struct rpc_cred *cred) { struct nfs_fsinfo fsinfo; struct rpc_message msg = { .rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_SETCLIENTID_CONFIRM], .rpc_argp = arg, .rpc_resp = &fsinfo, .rpc_cred = cred, }; unsigned l...
12,706
92,574
0
static inline unsigned long group_faults_shared(struct numa_group *ng) { unsigned long faults = 0; int node; for_each_online_node(node) { faults += ng->faults[task_faults_idx(NUMA_MEM, node, 0)]; } return faults; }
12,707
116,957
0
void IndexedDBDispatcher::RequestIDBDatabaseOpen( WebIDBDatabaseCallbacks* callbacks_ptr, int32 idb_database_id) { ResetCursorPrefetchCaches(); scoped_ptr<WebIDBDatabaseCallbacks> callbacks(callbacks_ptr); DCHECK(!pending_database_callbacks_.Lookup(idb_database_id)); pending_database_callbacks_.Add...
12,708
85,930
0
void dm_set_md_type(struct mapped_device *md, enum dm_queue_mode type) { BUG_ON(!mutex_is_locked(&md->type_lock)); md->type = type; }
12,709
157,293
0
void WebMediaPlayerImpl::Play() { DVLOG(1) << __func__; DCHECK(main_task_runner_->BelongsToCurrentThread()); if (blink::WebUserGestureIndicator::IsProcessingUserGesture(frame_)) video_locked_when_paused_when_hidden_ = false; #if defined(OS_ANDROID) // WMPI_CAST if (IsRemote()) { cast_impl_.play(); ...
12,710
138,417
0
void Document::dispatchUnloadEvents() { RefPtrWillBeRawPtr<Document> protect(this); if (m_parser) m_parser->stopParsing(); if (m_loadEventProgress == LoadEventNotRun) return; if (m_loadEventProgress <= UnloadEventInProgress) { Element* currentFocusedElement = focusedElement(); ...
12,711
4,445
0
PHP_MINFO_FUNCTION(phar) /* {{{ */ { phar_request_initialize(TSRMLS_C); php_info_print_table_start(); php_info_print_table_header(2, "Phar: PHP Archive support", "enabled"); php_info_print_table_row(2, "Phar EXT version", PHP_PHAR_VERSION); php_info_print_table_row(2, "Phar API version", PHP_PHAR_API_VERSION); ph...
12,712
87,146
0
CJSON_PUBLIC(void *) cJSON_malloc(size_t size) { return global_hooks.allocate(size); }
12,713
13,644
0
static SRP_gN_cache *SRP_gN_new_init(const char *ch) { unsigned char tmp[MAX_LEN]; int len; SRP_gN_cache *newgN = (SRP_gN_cache *)OPENSSL_malloc(sizeof(SRP_gN_cache)); if (newgN == NULL) return NULL; if ((newgN->b64_bn = BUF_strdup(ch)) == NULL) goto err; len = t_fromb...
12,714
71,402
0
static MagickBooleanType WriteVIFFImage(const ImageInfo *image_info, Image *image) { #define VFF_CM_genericRGB 15 #define VFF_CM_NONE 0 #define VFF_DEP_IEEEORDER 0x2 #define VFF_DES_RAW 0 #define VFF_LOC_IMPLICIT 1 #define VFF_MAPTYP_NONE 0 #define VFF_MAPTYP_1_BYTE 1 #define VFF_MS_NONE 0 #define VFF_MS_ONEP...
12,715
69,939
0
void addReplyErrorFormat(client *c, const char *fmt, ...) { size_t l, j; va_list ap; va_start(ap,fmt); sds s = sdscatvprintf(sdsempty(),fmt,ap); va_end(ap); /* Make sure there are no newlines in the string, otherwise invalid protocol * is emitted. */ l = sdslen(s); for (j = 0; j < l...
12,716
83,373
0
static int ssl_write_client_key_exchange( mbedtls_ssl_context *ssl ) { int ret; size_t i, n; const mbedtls_ssl_ciphersuite_t *ciphersuite_info = ssl->transform_negotiate->ciphersuite_info; MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> write client key exchange" ) ); #if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_...
12,717
126
0
PHP_FUNCTION(openssl_error_string) { char buf[512]; unsigned long val; if (zend_parse_parameters_none() == FAILURE) { return; } val = ERR_get_error(); if (val) { RETURN_STRING(ERR_error_string(val, buf), 1); } else { RETURN_FALSE; } }
12,718
32,210
0
int netif_receive_skb(struct sk_buff *skb) { struct packet_type *ptype, *pt_prev; struct net_device *orig_dev; struct net_device *master; struct net_device *null_or_orig; struct net_device *null_or_bond; int ret = NET_RX_DROP; __be16 type; if (!skb->tstamp.tv64) net_timestamp(skb); if (vlan_tx_tag_present(...
12,719
5,645
0
fatal_exit_handler (int sig) { signal (sig, SIG_IGN); fatal_exit (sig); }
12,720
75,481
0
kdc_process_s4u_x509_user(krb5_context context, krb5_kdc_req *request, krb5_pa_data *pa_data, krb5_keyblock *tgs_subkey, krb5_keyblock *tgs_session, krb5_pa_s4u_x509_user **s4u_x509_user, ...
12,721
9,254
0
void virtio_vmstate_save(QEMUFile *f, void *opaque, size_t size) { virtio_save(VIRTIO_DEVICE(opaque), f); }
12,722
78,809
0
int sc_pkcs15emu_sc_hsm_encode_cvc(sc_pkcs15_card_t * p15card, sc_cvc_t *cvc, u8 ** buf, size_t *buflen) { sc_card_t *card = p15card->card; struct sc_asn1_entry asn1_cvc[C_ASN1_CVC_SIZE]; struct sc_asn1_entry asn1_cvcert[C_ASN1_CVCERT_SIZE]; struct sc_asn1_entry asn1_cvc_body[C_ASN1_CVC_BODY_SIZE]; struct sc_a...
12,723
36,833
0
sector_t bmap(struct inode *inode, sector_t block) { sector_t res = 0; if (inode->i_mapping->a_ops->bmap) res = inode->i_mapping->a_ops->bmap(inode->i_mapping, block); return res; }
12,724
81,488
0
static int tracing_open(struct inode *inode, struct file *file) { struct trace_array *tr = inode->i_private; struct trace_iterator *iter; int ret = 0; if (trace_array_get(tr) < 0) return -ENODEV; /* If this file was open for write, then erase contents */ if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_...
12,725
15,520
0
static NOINLINE int send_select(uint32_t xid, uint32_t server, uint32_t requested) { struct dhcp_packet packet; struct in_addr addr; /* * RFC 2131 4.3.2 DHCPREQUEST message * ... * If the DHCPREQUEST message contains a 'server identifier' * option, the message is in response to a DHCPOFFER message. * Otherwise,...
12,726
133,571
0
RenderFrameHostManager* WebContentsImpl::GetRenderManager() const { return frame_tree_.root()->render_manager(); }
12,727
57,115
0
static int nfs4_do_create(struct inode *dir, struct dentry *dentry, struct nfs4_createdata *data) { int status = nfs4_call_sync(NFS_SERVER(dir)->client, NFS_SERVER(dir), &data->msg, &data->arg.seq_args, &data->res.seq_res, 1); if (status == 0) { update_changeattr(dir, &data->res.dir_cinfo); status = nfs_i...
12,728
87,616
0
static unsigned update_adler32(unsigned adler, const unsigned char* data, unsigned len) { unsigned s1 = adler & 0xffff; unsigned s2 = (adler >> 16) & 0xffff; while(len > 0) { /*at least 5550 sums can be done before the sums overflow, saving a lot of module divisions*/ unsigned amount = len > 5550 ? 5...
12,729
95,170
0
static void cmd_status(char *tag, char *name) { int c; unsigned statusitems = 0; const char *errstr = "Bad status string"; mbentry_t *mbentry = NULL; struct statusdata sdata = STATUSDATA_INIT; int r = 0; char *intname = mboxname_from_external(name, &imapd_namespace, imapd_userid); r = m...
12,730
76,328
0
static int sortfunc(const void *a, const void *b) { off_t diff = ((* ((struct mschmd_file **) a))->offset) - ((* ((struct mschmd_file **) b))->offset); return (diff < 0) ? -1 : ((diff > 0) ? 1 : 0); }
12,731
95,092
0
rfc1048_print(netdissect_options *ndo, register const u_char *bp) { register uint16_t tag; register u_int len; register const char *cp; register char c; int first, idx; uint32_t ul; uint16_t us; uint8_t uc, subopt, suboptlen; ND_PRINT((ndo, "\n\t Vendor-rfc1048 Extensions")); /* Step over magic cook...
12,732
162,068
0
void RenderProcessHostImpl::CreateRendererHost( mojom::RendererHostAssociatedRequest request) { renderer_host_binding_.Bind(std::move(request)); }
12,733
112,263
0
virtual bool GetAcceleratorForCommandId(int command_id, ui::Accelerator* accelerator) { return false; }
12,734
183,903
1
bool AutofillDownloadManager::StartUploadRequest( const FormStructure& form, bool form_was_autofilled, const FieldTypeSet& available_field_types) { if (next_upload_request_ > base::Time::Now()) { // We are in back-off mode: do not do the request. VLOG(1) << "AutofillDownloadManager: Upload request is throttled."; retur...
12,735
4,412
0
PHP_METHOD(PharFileInfo, getPharFlags) { PHAR_ENTRY_OBJECT(); if (zend_parse_parameters_none() == FAILURE) { return; } RETURN_LONG(entry_obj->ent.entry->flags & ~(PHAR_ENT_PERM_MASK|PHAR_ENT_COMPRESSION_MASK)); }
12,736
156,543
0
void GrantPermissionsForFile(const base::FilePath& file, int permissions) { base::FilePath stripped = file.StripTrailingSeparators(); file_permissions_[stripped] |= permissions; UMA_HISTOGRAM_COUNTS_1M( "ChildProcessSecurityPolicy.FilePermissionPathLength", stripped.value().size()); }
12,737
175,404
0
status_t SampleTable::setChunkOffsetParams( uint32_t type, off64_t data_offset, size_t data_size) { if (mChunkOffsetOffset >= 0) { return ERROR_MALFORMED; } CHECK(type == kChunkOffsetType32 || type == kChunkOffsetType64); mChunkOffsetOffset = data_offset; mChunkOffsetType = type; if (data_size < 8) ...
12,738
56,914
0
static void fuse_aio_complete_req(struct fuse_conn *fc, struct fuse_req *req) { struct fuse_io_priv *io = req->io; ssize_t pos = -1; fuse_release_user_pages(req, !io->write); if (io->write) { if (req->misc.write.in.size != req->misc.write.out.size) pos = req->misc.write.in.offset - io->offset + req->misc...
12,739
63,728
0
do_block_io_op(struct xen_blkif_ring *ring) { union blkif_back_rings *blk_rings = &ring->blk_rings; int more_to_do; do { more_to_do = __do_block_io_op(ring); if (more_to_do) break; RING_FINAL_CHECK_FOR_REQUESTS(&blk_rings->common, more_to_do); } while (more_to_do); return more_to_do; }
12,740
180,303
1
static int _gd2GetHeader(gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt, int *ncx, int *ncy, t_chunk_info ** chunkIdx) { int i; int ch; char id[5]; t_chunk_info *cidx; int sidx; int nc; GD2_DBG(php_gd_error("Reading gd2 header info")); for (i = 0; i < 4; i++) { ch = gdGetC(in); if (ch == EO...
12,741
58,463
0
tcp_send_len (server *serv, char *buf, int len) { char *dbuf; int noqueue = !serv->outbound_queue; if (!prefs.hex_net_throttle) return server_send_real (serv, buf, len); dbuf = malloc (len + 2); /* first byte is the priority */ dbuf[0] = 2; /* pri 2 for most things */ memcpy (dbuf + 1, buf, len); dbuf[len + ...
12,742
10,376
0
user_local_new (Daemon *daemon, uid_t uid) { User *user; user = g_object_new (TYPE_USER, NULL); user->daemon = daemon; user->uid = uid; return user; }
12,743
178,090
1
XGetDeviceControl( register Display *dpy, XDevice *dev, int control) { XDeviceControl *Device = NULL; XDeviceControl *Sav = NULL; xDeviceState *d = NULL; xDeviceState *sav = NULL; xGetDeviceControlReq *req; xGetDeviceControlReply rep; XExtDisplayInfo *info = XInput_find_display(dpy); LockDisplay(dpy); if (_XiCheck...
12,744
9,731
0
parse_opt_register_src_bracket( struct translate_ctx *ctx, struct parsed_bracket *brackets, int *parsed_brackets) { const char *cur = ctx->cur; *parsed_brackets = 0; eat_opt_white( &cur ); if (cur[0] == '[') { ++cur; ctx->cur = cur; if (!parse_register_bracket(ctx, brackets)) ...
12,745
173,296
0
file_getpos(struct file *file, fpos_t *pos) { if (fgetpos(file->file, pos)) { /* This is unexpected, so perror it */ perror(file->file_name); stop(file, READ_ERROR_CODE, "fgetpos"); } }
12,746
44,562
0
int do_rootfs_setup(struct lxc_conf *conf, const char *name, const char *lxcpath) { if (conf->rootfs_setup) { /* * rootfs was set up in another namespace. bind-mount it * to give us a mount in our own ns so we can pivot_root to it */ const char *path = conf->rootfs.mount; if (mount(path, path, "rootfs"...
12,747
162,816
0
void ContextState::RestoreRenderbufferBindings() { bound_renderbuffer_valid = false; }
12,748
150,331
0
void PasswordAutofillAgent::PasswordValueGatekeeper::Reset() { was_user_gesture_seen_ = false; elements_.clear(); }
12,749
6,495
0
static int dtls1_handshake_write(SSL *s) { return dtls1_do_write(s, SSL3_RT_HANDSHAKE); }
12,750
94,319
0
SYSCALL_DEFINE5(waitid, int, which, pid_t, upid, struct siginfo __user *, infop, int, options, struct rusage __user *, ru) { struct wait_opts wo; struct pid *pid = NULL; enum pid_type type; long ret; if (options & ~(WNOHANG|WNOWAIT|WEXITED|WSTOPPED|WCONTINUED)) return -EINVAL; if (!(options & (WEXITED|WSTOPP...
12,751
137,041
0
bool InputType::CanBeSuccessfulSubmitButton() { return false; }
12,752
139,867
0
ZeroSuggestProvider* ZeroSuggestProvider::Create( AutocompleteProviderClient* client, HistoryURLProvider* history_url_provider, AutocompleteProviderListener* listener) { return new ZeroSuggestProvider(client, history_url_provider, listener); }
12,753
104,442
0
GLvoid StubGLFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) { glFramebufferTexture2DEXT(target, attachment, textarget, texture, level); }
12,754
64,212
0
AP_DECLARE(void) ap_set_context_info(request_rec *r, const char *context_prefix, const char *context_document_root) { core_request_config *conf = ap_get_core_module_config(r->request_config); if (context_prefix) conf->context_prefix = context_prefix; if (context_...
12,755
25,908
0
static int ptrace_set_breakpoint_addr(struct task_struct *tsk, int nr, unsigned long addr) { struct perf_event *bp; struct thread_struct *t = &tsk->thread; struct perf_event_attr attr; int err = 0; if (ptrace_get_breakpoints(tsk) < 0) return -ESRCH; if (!t->ptrace_bps[nr]) { ptrace_breakpoint_init...
12,756
187,547
1
status_t OMXNodeInstance::allocateBufferWithBackup( OMX_U32 portIndex, const sp<IMemory> &params, OMX::buffer_id *buffer, OMX_U32 allottedSize) { Mutex::Autolock autoLock(mLock); if (allottedSize > params->size()) { return BAD_VALUE; } BufferMeta *buffer_meta = new BufferMeta(params, true); OMX_BUFFERHEADERTYPE ...
12,757
178,218
1
static zval *xml_call_handler(xml_parser *parser, zval *handler, zend_function *function_ptr, int argc, zval **argv) { int i; TSRMLS_FETCH(); if (parser && handler && !EG(exception)) { zval ***args; zval *retval; int result; zend_fcall_info fci; args = safe_emalloc(sizeof(zval **), argc, 0); for (i = 0; i < ...
12,758
171,206
0
status_t MediaPlayerService::Client::setMetadataFilter(const Parcel& filter) { status_t status; media::Metadata::Filter allow, drop; if (unmarshallFilter(filter, &allow, &status) && unmarshallFilter(filter, &drop, &status)) { Mutex::Autolock lock(mLock); mMetadataAllow = allow; mMetadat...
12,759
75,644
0
void WavpackSetFileInformation (WavpackContext *wpc, char *file_extension, unsigned char file_format) { if (file_extension && strlen (file_extension) < sizeof (wpc->file_extension)) { add_to_metadata (wpc, file_extension, (uint32_t) strlen (file_extension), ID_ALT_EXTENSION); strcpy (wpc->file_exten...
12,760
19,213
0
int netlink_attachskb(struct sock *sk, struct sk_buff *skb, long *timeo, struct sock *ssk) { struct netlink_sock *nlk; nlk = nlk_sk(sk); if (atomic_read(&sk->sk_rmem_alloc) > sk->sk_rcvbuf || test_bit(0, &nlk->state)) { DECLARE_WAITQUEUE(wait, current); if (!*timeo) { if (!ssk || netlink_is_ker...
12,761
11,807
0
ptr_array_has_string (GPtrArray *p, const gchar *str) { guint n; gboolean ret; ret = FALSE; for (n = 0; n < p->len; n++) { if (g_strcmp0 (p->pdata[n], str) == 0) { ret = TRUE; goto out; } } out: return ret; }
12,762
147,405
0
static void GetMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "get"); TestObject* impl = V8TestObject::ToImpl(info.Holder()); ScriptState* script_state = ScriptState::ForRelevantRealm(info); if (UNLI...
12,763
136,881
0
void HTMLInputElement::DispatchChangeEventIfNeeded() { if (isConnected() && input_type_->ShouldSendChangeEventAfterCheckedChanged()) DispatchChangeEvent(); }
12,764
1,369
0
static void nfs_readlink_req(void) { uint32_t data[1024]; uint32_t *p; int len; p = &(data[0]); p = rpc_add_credentials(p); memcpy (p, filefh, NFS_FHSIZE); p += (NFS_FHSIZE / 4); len = p - &(data[0]); rpc_req(PROG_NFS, NFS_READLINK, data, len); }
12,765
137,612
0
DownloadControllerBase* DownloadControllerBase::Get() { base::AutoLock lock(g_download_controller_lock_.Get()); if (!DownloadControllerBase::download_controller_) download_controller_ = DownloadController::GetInstance(); return DownloadControllerBase::download_controller_; }
12,766
139,636
0
DynamicsCompressorNode* AudioContext::createDynamicsCompressor() { ASSERT(isMainThread()); return DynamicsCompressorNode::create(this, m_destinationNode->sampleRate()); }
12,767
14,182
0
__glXDrawableRelease(__GLXdrawable *drawable) { }
12,768
78,924
0
FindMatchingInterp(CompatInfo *info, SymInterpInfo *new) { SymInterpInfo *old; darray_foreach(old, info->interps) if (old->interp.sym == new->interp.sym && old->interp.mods == new->interp.mods && old->interp.match == new->interp.match) return old; return NULL; }...
12,769
107,839
0
void PrintWebViewHelper::DidFinishPrinting(bool success) { if (!success) { WebView* web_view = print_web_view_; if (!web_view) web_view = render_view_->webview(); render_view_->runModalAlertDialog( web_view->mainFrame(), l10n_util::GetStringUTF16(IDS_PRINT_SPOOL_FAILED_ERROR_TEXT));...
12,770
53,970
0
void ndp_msgra_flag_managed_set(struct ndp_msgra *msgra, bool flag_managed) { if (flag_managed) msgra->ra->nd_ra_flags_reserved |= ND_RA_FLAG_MANAGED; else msgra->ra->nd_ra_flags_reserved &= ~ND_RA_FLAG_MANAGED; }
12,771
142,127
0
void ApplyEdits() { editor_->ApplyEdits(); }
12,772
11,348
0
fbCombineConjointOutC (CARD32 *dest, CARD32 *src, CARD32 *mask, int width) { fbCombineConjointGeneralC (dest, src, mask, width, CombineAOut); }
12,773
111,326
0
BlackBerry::Platform::String WebPage::selectedText() const { return d->m_selectionHandler->selectedText(); }
12,774
117,071
0
void SessionService::Init() { registrar_.Add(this, content::NOTIFICATION_TAB_PARENTED, content::NotificationService::AllSources()); registrar_.Add(this, content::NOTIFICATION_TAB_CLOSED, content::NotificationService::AllSources()); registrar_.Add(this, content::NOTIFICATION_NAV_L...
12,775
131,694
0
static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); TestObjectPythonV8Internal::runtimeEnabledVoidMethodMethod(info); TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); }
12,776
10,967
0
PHP_FUNCTION(grapheme_strlen) { unsigned char* string; int string_len; UChar* ustring = NULL; int ustring_len = 0; int ret_len; UErrorCode status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", (char **)&string, &string_len) == FAILURE) { intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR, "graphe...
12,777
63,273
0
static int midi_setup_channel_pressure(struct _mdi *mdi, uint8_t channel, uint8_t pressure) { MIDI_EVENT_DEBUG(__FUNCTION__,channel, pressure); _WM_CheckEventMemoryPool(mdi); mdi->events[mdi->event_count].do_event = *_WM_do_channel_pressure; mdi->events[mdi->event_...
12,778
11,956
0
CMS_RecipientInfo *CMS_add1_recipient_cert(CMS_ContentInfo *cms, X509 *recip, unsigned int flags) { CMS_RecipientInfo *ri = NULL; CMS_EnvelopedData *env; EVP_PKEY *pk = NULL; env = cms_get0_enveloped(cms); if (!env) goto err; /* Initialize reci...
12,779
138,590
0
void NavigatorImpl::CancelNavigation(FrameTreeNode* frame_tree_node, bool inform_renderer) { CHECK(IsBrowserSideNavigationEnabled()); frame_tree_node->ResetNavigationRequest(false, inform_renderer); if (frame_tree_node->IsMainFrame()) navigation_data_.reset(); }
12,780
12,148
0
time_t XMLRPC_GetValueDateTime(XMLRPC_VALUE value) { return (time_t)((value && value->type == xmlrpc_datetime) ? value->i : 0); }
12,781
139,975
0
double HTMLMediaElement::duration() const { return m_duration; }
12,782
134,271
0
OmniboxState::OmniboxState(const OmniboxEditModel::State& model_state, const gfx::Range& selection, const gfx::Range& saved_selection_for_focus_change) : model_state(model_state), selection(selection), saved_selection_for_focus_change(saved_selection...
12,783
165,443
0
bool Document::AllowInlineEventHandler(Node* node, EventListener* listener, const String& context_url, const WTF::OrdinalNumber& context_line) { Element* element = node && node->IsElementNode() ? ToEle...
12,784
99,907
0
NPError NPN_GetURL(NPP id, const char* url, const char* target) { return GetURLNotify(id, url, target, false, 0); }
12,785
138,707
0
void RenderFrameHostImpl::GrantFileAccessFromResourceRequestBody( const ResourceRequestBodyImpl& body) { GrantFileAccess(GetProcess()->GetID(), body.GetReferencedFiles()); }
12,786
183,534
1
bool Vp9Parser::ParseUncompressedHeader(const uint8_t* stream, off_t frame_size, Vp9FrameHeader* fhdr) { reader_.Initialize(stream, frame_size); fhdr->data = stream; fhdr->frame_size = frame_size; // frame marker if (reader_.ReadLite...
12,787
148,637
0
void DoNothing(void* texture_context) {}
12,788
149,181
0
void LockScreenMediaControlsView::RunResetControlsAnimation() { ui::ScopedLayerAnimationSettings animation( contents_view_->layer()->GetAnimator()); animation.SetPreemptionStrategy( ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET); animation.SetTransitionDuration(kAnimationDuration); contents_...
12,789
92,247
0
XML_GetCurrentByteIndex(XML_Parser parser) { if (parser == NULL) return -1; if (parser->m_eventPtr) return (XML_Index)(parser->m_parseEndByteIndex - (parser->m_parseEndPtr - parser->m_eventPtr)); return -1; }
12,790
108,914
0
void RenderViewImpl::OnCSSInsertRequest(const string16& frame_xpath, const std::string& css) { WebFrame* frame = GetChildFrame(frame_xpath); if (!frame) return; frame->document().insertUserStyleSheet( WebString::fromUTF8(css), WebDocument::UserStyleAuthorLe...
12,791
16,618
0
ReadUserLogState::CheckFileStatus( int fd, bool &is_empty ) { StatWrapper sb; if ( fd >= 0 ) { (void) sb.Stat( fd ); } if ( m_cur_path.Length() && !sb.IsBufValid() ) { (void) sb.Stat( m_cur_path.Value() ); } if ( sb.GetRc() ) { dprintf( D_FULLDEBUG, "StatFile: errno = %d\n", sb.GetErrno() ); return Rea...
12,792
47,722
0
__netlink_kernel_create(struct net *net, int unit, struct module *module, struct netlink_kernel_cfg *cfg) { struct socket *sock; struct sock *sk; struct netlink_sock *nlk; struct listeners *listeners = NULL; struct mutex *cb_mutex = cfg ? cfg->cb_mutex : NULL; unsigned int groups; BUG_ON(!nl_table); if (un...
12,793
93,527
0
static int ip6mr_fill_mroute(struct mr6_table *mrt, struct sk_buff *skb, u32 portid, u32 seq, struct mfc6_cache *c, int cmd, int flags) { struct nlmsghdr *nlh; struct rtmsg *rtm; int err; nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); if (!nlh) return -EMSGSIZE; rtm = nlmsg_data(...
12,794
8,645
0
size_t mptsas_config_ioc_4(MPTSASState *s, uint8_t **data, int address) { return MPTSAS_CONFIG_PACK(4, MPI_CONFIG_PAGETYPE_IOC, 0x00, "*b*b*w"); }
12,795
161,880
0
void PrintRenderFrameHelper::PrintPreviewContext::CalculateIsModifiable() { is_modifiable_ = !PrintingNodeOrPdfFrame(source_frame(), source_node_); }
12,796
89,494
0
decompileENUMERATE(int n, SWF_ACTION *actions, int maxn, int is_type2) { int i=0; while (i < maxn && i < 5 && OpCode(actions, n+i, maxn)) i++; INDENT println("/* a for-var-in loop should follow below: */" ); return i-1; // preserve some code for decompileIF()... } // ... and let decompileIF() do all t...
12,797
95,650
0
qboolean CL_CheckPaused(void) { if(cl_paused->integer || cl_paused->modified) return qtrue; return qfalse; }
12,798
140,258
0
void V8Window::eventAttributeSetterCustom(v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) { LocalFrame* frame = toLocalDOMWindow(V8Window::toImpl(info.Holder()))->frame(); ExceptionState exceptionState(ExceptionState::SetterContext, "event", "Window", info.Holder(), info.GetIsolate()); ...
12,799