idx
int64
func
string
target
int64
329,465
void net_hub_check_clients(void) { NetHub *hub; NetHubPort *port; NetClientState *peer; QLIST_FOREACH(hub, &hubs, next) { int has_nic = 0, has_host_dev = 0; QLIST_FOREACH(port, &hub->ports, next) { peer = port->nc.peer; if (!peer) { f...
0
6,831
TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { const TfLiteTensor* input = GetInput(context, node, kInputTensor); TfLiteTensor* output = GetOutput(context, node, kOutputTensor); if (input->type != kTfLiteFloat32) { TF_LITE_UNSUPPORTED_TYPE(context, input->type, "Ceil"); } optimized_ops::Ce...
1
415,572
imapx_disconnect (CamelIMAPXServer *is) { g_cancellable_cancel (is->priv->cancellable); g_mutex_lock (&is->priv->stream_lock); if (is->priv->connection) { /* No need to wait for close for too long */ imapx_server_set_connection_timeout (is->priv->connection, 3); } g_clear_object (&is->priv->input_stream); ...
0
250,118
int RenderFlexibleBox::firstLineBoxBaseline() const { if (isWritingModeRoot() || m_numberOfInFlowChildrenOnFirstLine <= 0) return -1; RenderBox* baselineChild = 0; int childNumber = 0; for (RenderBox* child = m_orderIterator.first(); child; child = m_orderIterator.next()) { if (child->is...
0
228,676
bool HttpUtil::NameValuePairsIterator::GetNext() { if (!props_.GetNext()) return false; value_begin_ = props_.value_begin(); value_end_ = props_.value_end(); name_begin_ = name_end_ = value_end_; std::string::const_iterator equals = std::find(value_begin_, value_end_, '='); if (equals == value_end_ ||...
0
58,381
int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *ecdsa) { return ASN1_i2d_bio_of(EC_KEY,i2d_EC_PUBKEY,bp,ecdsa); }
0
229,341
GSList *gslist_find_string(GSList *list, const char *key) { for (; list != NULL; list = list->next) if (g_strcmp0(list->data, key) == 0) return list; return NULL; }
0
166,936
xmlParseCharData(xmlParserCtxtPtr ctxt, int cdata) { const xmlChar *in; int nbchar = 0; int line = ctxt->input->line; int col = ctxt->input->col; int ccol; SHRINK; GROW; /* * Accelerated common case where input don't need to be * modified before passing it to the handler. */ if (!cdata) {...
0
425,610
UsbHubCtrlClearPortFeature ( IN USB_DEVICE *HubDev, IN UINT8 Port, IN UINT16 Feature ) { EFI_STATUS Status; // // In USB bus, all the port index starts from 0. But HUB // indexes its port from 1. So, port number is added one. // Status...
0
401,454
cr_tknzr_parse_w (CRTknzr * a_this, guchar ** a_start, guchar ** a_end, CRParsingLocation *a_location) { guint32 cur_char = 0; CRInputPos init_pos; enum CRStatus status = CR_OK; g_return_val_if_fail (a_this && PRIVATE (a_this) ...
0
260,220
static int netlbl_cipsov4_listall(struct sk_buff *skb, struct netlink_callback *cb) { struct netlbl_cipsov4_doiwalk_arg cb_arg; int doi_skip = cb->args[0]; cb_arg.nl_cb = cb; cb_arg.skb = skb; cb_arg.seq = cb->nlh->nlmsg_seq; cipso_v4_doi_walk(&doi_skip, netlbl_cipsov4_listall_cb, &cb_arg); cb->args[0] ...
0
172,473
PHP_FUNCTION(pg_fetch_all_columns) { zval *result; PGresult *pgsql_result; pgsql_result_handle *pg_result; zend_long colno=0; int pg_numrows, pg_row; size_t num_fields; if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|l", &result, &colno) == FAILURE) { RETURN_FALSE; } ZEND_FETCH_RESOURCE(pg_result, pgsql_resu...
0
476,275
void InstanceKlass::deallocate_contents(ClassLoaderData* loader_data) { // Orphan the mirror first, CMS thinks it's still live. if (java_mirror() != NULL) { java_lang_Class::set_klass(java_mirror(), NULL); } // Also remove mirror from handles loader_data->remove_handle(_java_mirror); // Need to take ...
0
149,014
void ksz9131WritePhyReg(NetInterface *interface, uint8_t address, uint16_t data) { //Write the specified PHY register if(interface->smiDriver != NULL) { interface->smiDriver->writePhyReg(SMI_OPCODE_WRITE, interface->phyAddr, address, data); } else { interface->nicDriver->writeP...
0
328,286
void virtio_queue_notify(VirtIODevice *vdev, int n) { if (n < VIRTIO_PCI_QUEUE_MAX && vdev->vq[n].vring.desc) { trace_virtio_queue_notify(vdev, n, &vdev->vq[n]); vdev->vq[n].handle_output(vdev, &vdev->vq[n]); } }
0
182,053
SWFInput_dtor(SWFInput input) { #if TRACK_ALLOCS ming_gc_remove_node(input->gcnode); #endif free(input); }
0
495,964
bool queueMicrotask(JSContext *cx, unsigned argc, Value *vp) { CallArgs args = CallArgsFromVp(argc, vp); if (!args.requireAtLeast(cx, "queueMicrotask", 1)) { return false; } if (!args[0].isObject() || !JS::IsCallable(&args[0].toObject())) { JS_ReportErrorLatin1(cx, "queueMicrotask: Argument 1 is not a ...
0
244,425
BluetoothRemoteGATTCharacteristic::BluetoothRemoteGATTCharacteristic( ExecutionContext* context, mojom::blink::WebBluetoothRemoteGATTCharacteristicPtr characteristic, BluetoothRemoteGATTService* service, BluetoothDevice* device) : ContextLifecycleObserver(context), m_characteristic(std::move(c...
0
293,789
GF_Err tsro_Write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_TimeOffHintEntryBox *ptr = (GF_TimeOffHintEntryBox *)s; if (ptr == NULL) return GF_BAD_PARAM; e = gf_isom_box_write_header(s, bs); if (e) return e; gf_bs_write_u32(bs, ptr->TimeOffset); return GF_OK; }
0
33,859
void test_checkout_nasty__dot_git_hfs_ignorable(void) { #ifdef __APPLE__ test_checkout_fails("refs/heads/dotgit_hfs_ignorable_1", ".git/foobar"); test_checkout_fails("refs/heads/dotgit_hfs_ignorable_2", ".git/foobar"); test_checkout_fails("refs/heads/dotgit_hfs_ignorable_3", ".git/foobar"); test_checkout_fails("ref...
0
502,447
static void descriptor_changes_parser(TDB_DATA key, TDB_DATA data, void *private_data) { struct descriptor_changes **c_ptr = (struct descriptor_changes **)private_data; uintptr_t ptr = 0; SMB_ASSERT(data.dsize == sizeof(ptr)); memcpy(&ptr, data.dptr, data.dsize); *c_ptr = talloc_get_type_abort((void *)ptr, stru...
0
321,180
void qemu_chr_be_write(CharDriverState *s, uint8_t *buf, int len) { if (s->chr_read) { s->chr_read(s->handler_opaque, buf, len); } }
0
329,713
int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) { graph->filters = av_realloc(graph->filters, sizeof(AVFilterContext*) * ++graph->filter_count); if (!graph->filters) return AVERROR(ENOMEM); graph->filters[graph->filter_count - 1]...
1
239,289
bool WebContentsImpl::IsLoadingToDifferentDocument() const { return IsLoading() && is_load_to_different_document_; }
0
128,559
static int php_var_unserialize_internal(UNSERIALIZE_PARAMETER) { const unsigned char *cursor, *limit, *marker, *start; zval *rval_ref; limit = max; cursor = *p; if (YYCURSOR >= YYLIMIT) { return 0; } if (var_hash && (*p)[0] != 'R') { var_push(var_hash, rval); } start = cursor; #line 576 "ext/standard...
0
476,484
static void lo_do_readdir(fuse_req_t req, fuse_ino_t ino, size_t size, off_t offset, struct fuse_file_info *fi, int plus) { struct lo_data *lo = lo_data(req); struct lo_dirp *d = NULL; struct lo_inode *dinode; g_autofree char *buf = NULL; char *p; size_t rem = size; ...
0
68,216
int snd_interval_refine(struct snd_interval *i, const struct snd_interval *v) { int changed = 0; if (snd_BUG_ON(snd_interval_empty(i))) return -EINVAL; if (i->min < v->min) { i->min = v->min; i->openmin = v->openmin; changed = 1; } else if (i->min == v->min && !i->openmin && v->openmin) { i->openmin = 1; ...
0
128,291
PJ_DEF(pj_status_t) pjmedia_sdp_media_add_attr( pjmedia_sdp_media *m, pjmedia_sdp_attr *attr) { return pjmedia_sdp_attr_add(&m->attr_count, m->attr, attr); }
0
50,131
void Context::removeHeaderMapValue(HeaderMapType type, absl::string_view key) { auto map = getMap(type); if (!map) { return; } const Http::LowerCaseString lower_key(std::move(std::string(key))); map->remove(lower_key); }
0
163,317
bool WindowCanOpenTabs(Browser* browser) { if (browser->tab_count() >= browser_defaults::kMaxTabCount) return false; return browser->CanSupportWindowFeature(Browser::FEATURE_TABSTRIP) || browser->tabstrip_model()->empty(); }
0
325,425
static inline void RENAME(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, long width, long height, long lumStride, long chromStride, long dstStride, long vertLumPerChroma) { long y; const long chromWidth= width>>1; for(y=0; y<height; y++) { #ifdef HAVE_MMX //...
0
323,265
static void patch_reloc(uint8_t *code_ptr, int type, intptr_t value, intptr_t addend) { uint32_t insn; value += addend; switch (type) { case R_SPARC_32: if (value != (uint32_t)value) { tcg_abort(); } *(uint32_t *)code_ptr = value; ...
0
346,808
static struct n_hdlc *n_hdlc_alloc(void) { struct n_hdlc_buf *buf; int i; struct n_hdlc *n_hdlc = kzalloc(sizeof(*n_hdlc), GFP_KERNEL); if (!n_hdlc) return NULL; spin_lock_init(&n_hdlc->rx_free_buf_list.spinlock); spin_lock_init(&n_hdlc->tx_free_buf_list.spinlock); spin_lock_init(&n_hdlc->rx_buf_list.spinloc...
1
118,667
void HTTPSession::setByteEventTracker( std::shared_ptr<ByteEventTracker> byteEventTracker) { if (byteEventTracker && byteEventTracker_) { byteEventTracker->absorb(std::move(*byteEventTracker_)); } byteEventTracker_ = byteEventTracker; if (byteEventTracker_) { byteEventTracker_->setCallback(this); ...
0
477,749
float operator()(const float x, const float y) const { return (float)ref((int)x,(int)y); }
0
355,014
shmem_file_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) { struct inode *inode = file->f_path.dentry->d_inode; loff_t pos; unsigned long written; ssize_t err; if ((ssize_t) count < 0) return -EINVAL; if (!access_ok(VERIFY_READ, buf, count)) return -EFAULT; mutex_lock(&inod...
0
506,206
int tls12_get_req_sig_algs(SSL *s, unsigned char *p) { size_t slen = sizeof(tls12_sigalgs); #ifdef OPENSSL_FIPS /* If FIPS mode don't include MD5 which is last */ if (FIPS_mode()) slen -= 2; #endif if (p) memcpy(p, tls12_sigalgs, slen); return (int)slen; }
0
459,296
static void cmd_read(IDEState *s, uint8_t* buf) { int nb_sectors, lba; if (buf[0] == GPCMD_READ_10) { nb_sectors = lduw_be_p(buf + 7); } else { nb_sectors = ldl_be_p(buf + 6); } lba = ldl_be_p(buf + 2); if (nb_sectors == 0) { ide_atapi_cmd_ok(s); return; } ...
0
141,618
int snd_timer_open(struct snd_timer_instance **ti, char *owner, struct snd_timer_id *tid, unsigned int slave_id) { struct snd_timer *timer; struct snd_timer_instance *timeri = NULL; if (tid->dev_class == SNDRV_TIMER_CLASS_SLAVE) { /* open a slave instance */ if (tid->dev_sclass <= SNDRV_TIMER_SCLASS_N...
0
291,723
smb2_echo_callback(struct mid_q_entry *mid) { struct TCP_Server_Info *server = mid->callback_data; struct smb2_echo_rsp *smb2 = (struct smb2_echo_rsp *)mid->resp_buf; unsigned int credits_received = 1; if (mid->mid_state == MID_RESPONSE_RECEIVED) credits_received = le16_to_cpu(smb2->hdr.CreditRequest); DeleteM...
0
87,660
Pl_ASCIIHexDecoder::Pl_ASCIIHexDecoder(char const* identifier, Pipeline* next) : Pipeline(identifier, next), pos(0), eod(false) { this->inbuf[0] = '0'; this->inbuf[1] = '0'; this->inbuf[2] = '\0'; }
0
429,870
void ClientHandler::reset_upstream_read_timeout(ev_tstamp t) { conn_.rt.repeat = t; if (ev_is_active(&conn_.rt)) { ev_timer_again(conn_.loop, &conn_.rt); } }
0
47,694
int mp_radix_size (mp_int *a, int radix, int *size) { int res, digs; fp_digit d; #ifndef WOLFSSL_SMALL_STACK fp_int t[1]; #else fp_int *t; #endif *size = 0; /* special case for binary */ if (radix == 2) { *size = fp_count_bits (a) + (a->sign == FP_NEG ? 1 : 0) + 1; ...
0
155,421
recvauth_common(krb5_context context, krb5_auth_context * auth_context, /* IN */ krb5_pointer fd, char *appl_version, krb5_principal server, krb5_int32 flags, krb5_keytab keytab, /* OUT */ ...
0
431,229
CmdGrantRolesToRole() : BasicCommand("grantRolesToRole") {}
0
199,081
WebCookieJar* RenderViewImpl::GetCookieJar() { return &cookie_jar_; }
0
341,040
Visitor *qmp_input_visitor_new(QObject *obj, bool strict) { QmpInputVisitor *v; assert(obj); v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_INPUT; v->visitor.start_struct = qmp_input_start_struct; v->visitor.check_struct = qmp_input_check_struct; v->visitor.end_struct = qmp...
0
451,398
void HeaderToMetadataFilter::applyKeyValue(std::string&& value, const Rule& rule, const KeyValuePair& keyval, StructMap& np) { if (!keyval.value().empty()) { value = keyval.value(); } else { const auto& matcher = rule.regexRewrite(); if (matcher != nullptr) { ...
0
489,805
static GF_AUContext *gf_seng_create_new_au(GF_StreamContext *sc, u32 time) { GF_AUContext *new_au, *last_au; if (!sc) return NULL; last_au = gf_list_last(sc->AUs); if (last_au && last_au->timing == time) { GF_LOG(GF_LOG_DEBUG, GF_LOG_SCENE, ("[SceneEngine] Forcing new AU\n")); time++; } new_au = gf_sm_stream_...
0
255,885
void GeneratePathsToCheck(const GURL& url, std::vector<std::string>* paths) { paths->clear(); const std::string path = url.path(); // const sidesteps GCC bugs below! if (path.empty()) return; const size_t kMaxPathsToCheck = 4; for (std::string::const_iterator i(path.begin()); i != path.end()...
1
283,831
Offliner::RequestStatus BackgroundLoaderOffliner::CanSavePageInBackground( content::WebContents* web_contents) { DCHECK(is_low_bar_met_) << "Minimum quality must have been reached before checking loaded page"; std::unique_ptr<security_state::VisibleSecurityState> visible_security_state = GetVisibleS...
0
406,551
void init() { resolve_in_select_list= FALSE; error_processor= &dummy_error_processor; first_name_resolution_table= NULL; last_name_resolution_table= NULL; }
0
368,140
process_cmd_maxdelayratio(CMD_Request *msg, char *line) { IPAddr address; double max_delay_ratio; int ok; if (read_address_double(line, &address, &max_delay_ratio)) { UTI_IPHostToNetwork(&address, &msg->data.modify_maxdelayratio.address); msg->data.modify_maxdelayratio.new_max_delay_ratio = UTI_Float...
0
294,145
xfs_vn_symlink( struct inode *dir, struct dentry *dentry, const char *symname) { struct inode *inode; struct xfs_inode *cip = NULL; struct xfs_name name; int error; umode_t mode; mode = S_IFLNK | (irix_symlink_mode ? 0777 & ~current_umask() : S_IRWXUGO); error = xfs_dentry_mode_to_name(&name, dentry, mod...
0
257,334
static void pdf_process_stream ( fz_context * ctx , pdf_processor * proc , pdf_csi * csi , fz_stream * stm ) { pdf_document * doc = csi -> doc ; pdf_lexbuf * buf = csi -> buf ; fz_cookie * cookie = csi -> cookie ; pdf_token tok = PDF_TOK_ERROR ; int in_text_array = 0 ; int syntax_errors = 0 ; pdf_clear_stack ( c...
0
90,700
bool kvm_vcpu_is_reset_bsp(struct kvm_vcpu *vcpu) { return vcpu->kvm->arch.bsp_vcpu_id == vcpu->vcpu_id; }
0
470,645
static void htab_init_buckets(struct bpf_htab *htab) { unsigned i; for (i = 0; i < htab->n_buckets; i++) { INIT_HLIST_NULLS_HEAD(&htab->buckets[i].head, i); if (htab_use_raw_lock(htab)) { raw_spin_lock_init(&htab->buckets[i].raw_lock); lockdep_set_class(&htab->buckets[i].raw_lock, &htab->lockdep_key...
0
505,760
int ssl3_renegotiate(SSL *s) { if (s->handshake_func == NULL) return(1); if (s->s3->flags & SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS) return(0); s->s3->renegotiate=1; return(1); }
0
275,737
DownloadInterruptReason DownloadItemImpl::GetLastReason() const { return last_reason_; }
0
113,449
sctp_disposition_t sctp_sf_cookie_echoed_prm_abort( struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) { /* There is a single T1 timer, so we should be able to use * common function with the COOKIE-WAIT state. ...
0
202,769
zstatus(i_ctx_t *i_ctx_p) { os_ptr op = osp; switch (r_type(op)) { case t_file: { stream *s; make_bool(op, (file_is_valid(s, op) ? 1 : 0)); } return 0; case t_string: { gs_parsed_file_name_t pname; ...
0
494,051
static bool ParseExtensionsProperty(ExtensionMap *ret, std::string *err, const json &o) { (void)err; json_const_iterator it; if (!FindMember(o, "extensions", it)) { return false; } auto &obj = GetValue(it); if (!IsObject(obj)) { return false; } ExtensionMap ...
0
193,519
double timeDelta(base::TimeTicks time, base::TimeTicks start, double invalid_value = -1) { return time.is_null() ? invalid_value : (time - start).InMillisecondsF(); }
0
21,922
gcry_sexp_t gcry_sexp_nth ( const gcry_sexp_t list , int number ) { const byte * p ; DATALEN n ; gcry_sexp_t newlist ; byte * d ; int level = 0 ; if ( ! list || list -> d [ 0 ] != ST_OPEN ) return NULL ; p = list -> d ; while ( number > 0 ) { p ++ ; if ( * p == ST_DATA ) { memcpy ( & n , ++ p , sizeof n ) ; ...
0
141,543
static int matroska_parse_frame(MatroskaDemuxContext *matroska, MatroskaTrack *track, AVStream *st, uint8_t *data, int pkt_size, uint64_t timecode, uint64_t duration, int64_t pos, int is_k...
1
117,377
ALWAYS_INLINE Variant preg_return_no_error(Variant&& return_value) { *rl_last_error_code = PHP_PCRE_NO_ERROR; return std::move(return_value); }
0
187,785
SafeBrowsingBlockingPage* CreateSafeBrowsingPage( SafeBrowsingUIManager* ui_manager, WebContents* web_contents, const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) { if (unsafe_resources.size() == 1 && (unsafe_resources[0].threat_type == SB_THREAT_TYPE_URL_MALWARE || ...
0
171,391
BluetoothSocketUpdateFunction::BluetoothSocketUpdateFunction() {}
0
61,726
term_push_title(int which) { if ((which & SAVE_RESTORE_TITLE) && T_CST != NULL && *T_CST != NUL) { OUT_STR(T_CST); out_flush(); } if ((which & SAVE_RESTORE_ICON) && T_SSI != NULL && *T_SSI != NUL) { OUT_STR(T_SSI); out_flush(); } }
0
344,577
cmsBool OptimizeByResampling(cmsPipeline** Lut, cmsUInt32Number Intent, cmsUInt32Number* InputFormat, cmsUInt32Number* OutputFormat, cmsUInt32Number* dwFlags) { cmsPipeline* Src; cmsPipeline* Dest; cmsStage* mpe; cmsStage* CLUT; cmsStage *KeepPreLin = NULL, *KeepPostLin = NULL; int nGridPoints; ...
1
16,914
static int dissect_h245_IndR_multiplex ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_IndR_multiplex , IndR_multiplex_choice , NULL ) ; return offset ; }
0
239,705
void ServiceWorkerContextCore::AddProviderHost( std::unique_ptr<ServiceWorkerProviderHost> host) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); int provider_id = host->provider_id(); providers_->emplace(provider_id, std::move(host)); }
0
138,297
void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index) { btrfs_dev_stat_inc(dev, index); btrfs_dev_stat_print_on_error(dev); }
0
224,951
param_cmp(const X509_VERIFY_PARAM * const *a, const X509_VERIFY_PARAM * const *b) { return strcmp((*a)->name, (*b)->name); }
0
30,217
static void ImportBlackQuantum ( const Image * image , QuantumInfo * quantum_info , const MagickSizeType number_pixels , const unsigned char * magick_restrict p , Quantum * magick_restrict q , ExceptionInfo * exception ) { QuantumAny range ; register ssize_t x ; unsigned int pixel ; if ( image -> colorspace != CMYK...
0
220,113
WebContents* WebContents::FromRenderFrameHost(RenderFrameHost* rfh) { RenderFrameHostImpl* rfh_impl = static_cast<RenderFrameHostImpl*>(rfh); if (!rfh_impl) return NULL; return rfh_impl->delegate()->GetAsWebContents(); }
0
432,842
backend_can_extents (struct backend *b, struct connection *conn) { struct b_conn_handle *h = &conn->handles[b->i]; debug ("%s: can_extents", b->name); if (h->can_extents == -1) h->can_extents = b->can_extents (b, conn); return h->can_extents; }
0
74,024
void HTTPSession::onSessionParseError(const HTTPException& error) { VLOG(4) << *this << " session layer parse error. Terminate the session."; if (error.hasCodecStatusCode()) { std::unique_ptr<folly::IOBuf> errorMsg = folly::IOBuf::copyBuffer(error.what()); codec_->generateGoaway(writeBuf_, ...
0
250,251
int HttpProxyClientSocket::DoDrainBody() { DCHECK(drain_buf_.get()); DCHECK(transport_->is_initialized()); next_state_ = STATE_DRAIN_BODY_COMPLETE; return http_stream_parser_->ReadResponseBody( drain_buf_.get(), kDrainBodyBufferSize, io_callback_); }
0
134,219
static int newlabelentry (LexState *ls, Labellist *l, TString *name, int line, int pc) { int n = l->n; luaM_growvector(ls->L, l->arr, n, l->size, Labeldesc, SHRT_MAX, "labels/gotos"); l->arr[n].name = name; l->arr[n].line = line; l->arr[n].nactvar = ls->fs->nactvar;...
0
419,260
winlink_cmp(struct winlink *wl1, struct winlink *wl2) { return (wl1->idx - wl2->idx); }
0
98,064
int key_link(struct key *keyring, struct key *key) { struct assoc_array_edit *edit; int ret; kenter("{%d,%d}", keyring->serial, refcount_read(&keyring->usage)); key_check(keyring); key_check(key); ret = __key_link_begin(keyring, &key->index_key, &edit); if (ret == 0) { kdebug("begun {%d,%d}", keyring->seria...
0
435,634
static u32 ql_get_speed(struct ql3_adapter *qdev) { u32 status; unsigned long hw_flags; spin_lock_irqsave(&qdev->hw_lock, hw_flags); if (ql_sem_spinlock(qdev, QL_PHY_GIO_SEM_MASK, (QL_RESOURCE_BITS_BASE_CODE | (qdev->mac_index) * 2) << 7)) { spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); retu...
0
381,419
cmd_readkey (assuan_context_t ctx, char *line) { ctrl_t ctrl = assuan_get_pointer (ctx); int rc; unsigned char *cert = NULL; size_t ncert, n; ksba_cert_t kc = NULL; ksba_sexp_t p; unsigned char *pk; size_t pklen; if ((rc = open_card (ctrl, NULL))) return rc; line = xstrdup (line); /* Need a co...
0
405,402
bool __zone_watermark_ok(struct zone *z, unsigned int order, unsigned long mark, int classzone_idx, unsigned int alloc_flags, long free_pages) { long min = mark; int o; const bool alloc_harder = (alloc_flags & (ALLOC_HARDER|ALLOC_OOM)); /* free_pages may go negative - that's OK */ free_pages -= (1 << orde...
0
184,049
void GLES2DecoderImpl::DoBlitFramebufferCHROMIUM( GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) { const char* func_name = "glBlitFramebufferCHROMIUM"; DCHECK(!ShouldDeferReads() && !ShouldDeferDraws()); if (!Che...
0
204,155
static void unsignedShortAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); TestObjectV8Internal::unsignedShortAttrAttributeGetter(info); TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); }
0
197,532
void SyncBackendHost::Core::DoRequestConfig( syncable::ModelTypeSet types_to_config, sync_api::ConfigureReason reason) { DCHECK_EQ(MessageLoop::current(), sync_loop_); sync_manager_->RequestConfig(types_to_config, reason); }
0
466,450
TEST_F(ConnectionManagerUtilityTest, ViaEmpty) { connection_.stream_info_.downstream_address_provider_->setRemoteAddress( std::make_shared<Network::Address::Ipv4Instance>("10.0.0.1")); ON_CALL(config_, useRemoteAddress()).WillByDefault(Return(true)); TestRequestHeaderMapImpl request_headers; EXPECT_EQ((M...
0
363,465
_gdm_user_show_full_display_name (GdmUser *user) { char *uniq_name; g_return_if_fail (GDM_IS_USER (user)); if (user->real_name != NULL) { uniq_name = g_strdup_printf ("%s (%s)", user->real_name, ...
0
214,389
gfx::Size GLES2DecoderImpl::GetBoundReadFramebufferSize() { Framebuffer* framebuffer = GetBoundReadFramebuffer(); if (framebuffer) { return framebuffer->GetFramebufferValidSize(); } else if (offscreen_target_frame_buffer_.get()) { return offscreen_size_; } else { return surface_->GetSize(); } }
0
29,913
static guint16 de_tp_sub_channel ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) { guint32 curr_offset ; guchar oct ; const gchar * str ; curr_offset = offset ; oct = tvb_get_guint8 ( tvb , curr_offset ) & 0x3f ; if ( ...
0
419,877
Rename a mailbox */ PHP_FUNCTION(imap_renamemailbox) { zval *streamind; zend_string *old_mailbox, *new_mailbox; pils *imap_le_struct; if (zend_parse_parameters(ZEND_NUM_ARGS(), "rSS", &streamind, &old_mailbox, &new_mailbox) == FAILURE) { return; } if ((imap_le_struct = (pils *)zend_fetch_resource(Z_RES_P(s...
0
148,373
char *Hub::inflate(char *data, size_t &length) { dynamicInflationBuffer.clear(); inflationStream.next_in = (Bytef *) data; inflationStream.avail_in = length; int err; do { inflationStream.next_out = (Bytef *) inflationBuffer; inflationStream.avail_out = LARGE_BUFFER_SIZE; e...
0
487,556
void WillReleaseScriptContext(v8::Local<v8::Context> context, int world_id) final { // Unset spell checker when the script context is going to be released, as // the spell check implementation lives there. UnsetAndDestroy(); }
0
292,700
inline void post () {_sem.post();}
0
152,143
const T* data(const unsigned int x, const unsigned int y=0, const unsigned int z=0, const unsigned int c=0) const { return _data + x + (ulongT)y*_width + (ulongT)z*_width*_height + (ulongT)c*_width*_height*_depth;
0
39,232
SMB2_sess_alloc_buffer(struct SMB2_sess_data *sess_data) { int rc; struct cifs_ses *ses = sess_data->ses; struct smb2_sess_setup_req *req; struct TCP_Server_Info *server = ses->server; rc = small_smb2_init(SMB2_SESSION_SETUP, NULL, (void **) &req); if (rc) return rc; /* First session, not a reauthenticate */...
0
35,525
static inline const char *FxSubexpression(const char *expression, ExceptionInfo *exception) { const char *subexpression; register ssize_t level; level=0; subexpression=expression; while ((*subexpression != '\0') && ((level != 1) || (strchr(")",(int) *subexpression) == (char *) NULL))) {...
0
236,776
int svc_rdma_post_recv(struct svcxprt_rdma *xprt, gfp_t flags) { struct ib_recv_wr recv_wr, *bad_recv_wr; struct svc_rdma_op_ctxt *ctxt; struct page *page; dma_addr_t pa; int sge_no; int buflen; int ret; ctxt = svc_rdma_get_context(xprt); buflen = 0; ctxt->direction = DMA_FROM_DEVICE; ctxt->cqe.done = svc_r...
0