idx
int64
func
string
target
int64
179,720
void SessionModelAssociator::OnGotSession( int handle, std::vector<SessionWindow*>* windows) { DCHECK(CalledOnValidThread()); DCHECK(local_session_syncid_); sync_pb::SessionSpecifics specifics; specifics.set_session_tag(GetCurrentMachineTag()); sync_pb::SessionHeader* header_s = specifics.mutable_hea...
0
153,074
modifiers2keycode(int modifiers, int *key, char_u *string) { int new_slen = 0; if (modifiers != 0) { // Some keys have the modifier included. Need to handle that here to // make mappings work. This may result in a special key, such as // K_S_TAB. *key = simplify_key(*key, &modifiers); if (modifiers ...
0
10,106
coolkey_find_attribute(sc_card_t *card, sc_cardctl_coolkey_attribute_t *attribute) { u8 object_record_type; CK_ATTRIBUTE_TYPE attr_type = attribute->attribute_type; const u8 *obj = attribute->object->data; const u8 *attr = NULL; size_t buf_len = attribute->object->length; coolkey_object_header_t *object_head; in...
1
94,786
int mod_timer_pending(struct timer_list *timer, unsigned long expires) { return __mod_timer(timer, expires, MOD_TIMER_PENDING_ONLY); }
0
322,408
static void add_query_tests(QmpSchema *schema) { SchemaInfoList *tail; SchemaInfo *si, *arg_type, *ret_type; const char *test_name; /* Test the query-like commands */ for (tail = schema->list; tail; tail = tail->next) { si = tail->value; if (si->meta_type != SCHEMA_META_TYP...
1
330,081
int virtio_load(VirtIODevice *vdev, QEMUFile *f, int version_id) { int i, ret; int32_t config_len; uint32_t num; uint32_t features; BusState *qbus = qdev_get_parent_bus(DEVICE(vdev)); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vde...
1
354,014
AP_DECLARE(void) ap_update_vhost_from_headers(request_rec *r) { core_server_config *conf = ap_get_core_module_config(r->server->module_config); const char *host_header = apr_table_get(r->headers_in, "Host"); int is_v6literal = 0; int have_hostname_from_url = 0; if (r->hostname) { /* ...
1
348,668
void free_G_buffers(__G) /* releases all memory allocated in global vars */ __GDEF { #ifndef SFX unsigned i; #endif #ifdef SYSTEM_SPECIFIC_DTOR SYSTEM_SPECIFIC_DTOR(__G); #endif inflate_free(__G); checkdir(__G__ (char *)NULL, END); #ifdef DYNALLOC_CRCTAB if (CRC_32_TAB) { free_crc...
1
238,265
virtio_gpu_fill_display_info(VirtIOGPU *g, struct virtio_gpu_resp_display_info *dpy_info) { int i; for (i = 0; i < g->conf.max_outputs; i++) { if (g->enabled_output_bitmask & (1 << i)) { dpy_info->pmodes[i].enabled = 1; dpy_info->pmodes[i].r.width = ...
0
333,449
static int decode_ref_pic_list_reordering(H264Context *h){ MpegEncContext * const s = &h->s; int list, index; print_short_term(h); print_long_term(h); if(h->slice_type==I_TYPE || h->slice_type==SI_TYPE) return 0; //FIXME move before func for(list=0; list<2; list++){ memcpy(h->...
1
243,946
String HTMLInputElement::sanitizeValue(const String& proposedValue) const { if (proposedValue.isNull()) return proposedValue; return m_inputType->sanitizeValue(proposedValue); }
0
209,540
bool ExtensionRegistry::AddTerminated( const scoped_refptr<const Extension>& extension) { return terminated_extensions_.Insert(extension); }
0
128,296
static RList * get_java_bin_obj_list(RAnal *anal) { RBinJavaObj *bin_obj = (RBinJavaObj * )get_java_bin_obj(anal); // See libr/bin/p/bin_java.c to see what is happening here. The original intention // was to use a shared global db variable from shlr/java/class.c, but the // BIN_OBJS_ADDRS variable kept getting cor...
0
214,956
void RenderWidgetHostViewGtk::SetSize(const gfx::Size& size) { int width = std::min(size.width(), kMaxWindowWidth); int height = std::min(size.height(), kMaxWindowHeight); if (IsPopup()) { gtk_widget_set_size_request(view_.get(), width, height); } if (requested_size_.width() != width || requested_s...
0
456,331
static unsigned long *alloc_thread_stack_node(struct task_struct *tsk, int node) { #ifdef CONFIG_VMAP_STACK void *stack; int i; for (i = 0; i < NR_CACHED_STACKS; i++) { struct vm_struct *s; s = this_cpu_xchg(cached_stacks[i], NULL); if (!s) continue; /* Clear stale pointers from reused stack. */ mem...
0
238,306
__be32 nfsd4_check_resp_size(struct nfsd4_compoundres *resp, u32 respsize) { struct xdr_buf *buf = &resp->rqstp->rq_res; struct nfsd4_slot *slot = resp->cstate.slot; if (buf->len + respsize <= buf->buflen) return nfs_ok; if (!nfsd4_has_session(&resp->cstate)) return nfserr_resource; if (slot->sl_flags & NFSD4...
0
167,526
ProcXvQueryImageAttributes(ClientPtr client) { xvQueryImageAttributesReply rep; int size, num_planes, i; CARD16 width, height; XvImagePtr pImage = NULL; XvPortPtr pPort; int *offsets; int *pitches; int planeLength; REQUEST(xvQueryImageAttributesReq); REQUEST_SIZE_MATCH(xvQueryI...
0
145,593
static void sections_from_bin(RList *ret, RBinFile *bf, RDyldBinImage *bin) { RDyldCache *cache = (RDyldCache*) bf->o->bin_obj; if (!cache) { return; } struct MACH0_(obj_t) *mach0 = bin_to_mach0 (bf, bin); if (!mach0) { return; } struct section_t *sections = NULL; if (!(sections = MACH0_(get_sections) (ma...
0
452,906
static bool torture_smb2_notify_dir(struct torture_context *torture, struct smb2_tree *tree1, struct smb2_tree *tree2) { bool ret = true; NTSTATUS status; union smb_notify notify; union smb_open io; union smb_close cl; int i, count; struct smb2_handle h1 = {{0}}; struct smb2_handle h2 = {{0}};...
0
78,240
smtp_proceed_connected(struct smtp_session *s) { if (s->listener->flags & F_SMTPS) smtp_cert_init(s); else smtp_send_banner(s); }
0
8,434
static int replace_map_fd_with_map_ptr(struct verifier_env *env) { struct bpf_insn *insn = env->prog->insnsi; int insn_cnt = env->prog->len; int i, j; for (i = 0; i < insn_cnt; i++, insn++) { if (BPF_CLASS(insn->code) == BPF_LDX && (BPF_MODE(insn->code) != BPF_MEM || insn->imm != 0)) { verbose("BPF_LDX ...
1
417,202
parse_CT_CLEAR(char *arg OVS_UNUSED, struct ofpbuf *ofpacts, enum ofputil_protocol *usable_protocols OVS_UNUSED) { ofpact_put_CT_CLEAR(ofpacts); return NULL; }
0
79,895
wf_cliprdr_server_unlock_clipboard_data(CliprdrClientContext* context, const CLIPRDR_UNLOCK_CLIPBOARD_DATA* unlockClipboardData) { (void)context; (void)unlockClipboardData; return CHANNEL_RC_OK; }
0
316,906
SoftOpus::~SoftOpus() { if (mDecoder != NULL) { opus_multistream_decoder_destroy(mDecoder); mDecoder = NULL; } if (mHeader != NULL) { delete mHeader; mHeader = NULL; } }
0
60,342
define_function(exarg_T *eap, char_u *name_arg, garray_T *lines_to_free) { int j; int c; int saved_did_emsg = FALSE; char_u *name = name_arg; int is_global = FALSE; char_u *p; char_u *arg; char_u *whitep; char_u *line_arg = NULL; garray_T newargs; garray_T argtypes; g...
0
411,715
template<typename tc> CImg<T>& draw_line(const int x0, const int y0, const int z0, const int x1, const int y1, const int z1, const tc *const color, const float opacity=1, const unsigned int pattern=~0U, const bool init_hatch=true) { if (...
0
339,528
vnc_display_setup_auth(VncDisplay *vs, bool password, bool sasl, bool tls, bool x509) { /* * We have a choice of 3 authentication options * * 1. none * 2. vnc * 3. sasl * ...
0
144,882
flatpak_dir_new_full (GFile *path, gboolean user, DirExtraData *extra_data) { FlatpakDir *dir = g_object_new (FLATPAK_TYPE_DIR, "path", path, "user", user, NULL); if (extra_data != NULL) dir->extra_data = dir_extra_data_clone (extra_data); return dir; }
0
437,542
static void io_submit_state_end(struct io_submit_state *state) { blk_finish_plug(&state->plug); io_file_put(state); if (state->free_reqs) kmem_cache_free_bulk(req_cachep, state->free_reqs, &state->reqs[state->cur_req]); }
0
42,064
ftrace_ops_test(struct ftrace_ops *ops, unsigned long ip) { return 1; }
0
54,623
mp_sint32 PlayerGeneric::getCurrentBeatIndex() { if (player) return player->getBeatIndexFromSamplePos(getCurrentSamplePosition()); return 0; }
0
136,247
String StringUtil::Translate(const String& input, const String& from, const String& to) { if (input.empty()) return input; int len = input.size(); String retstr(len, ReserveString); char *ret = retstr.mutableData(); memcpy(ret, input.data(), len); auto trlen = std::min(from.siz...
0
335,302
static bool event_notifier_poll(void *opaque) { EventNotifier *e = opaque; AioContext *ctx = container_of(e, AioContext, notifier); return atomic_read(&ctx->notified); }
0
239,822
void RenderWidgetHostImpl::OnRenderProcessGone(int status, int exit_code) { if (!owned_by_render_frame_host_) { Destroy(true); } else { RendererExited(static_cast<base::TerminationStatus>(status), exit_code); } }
0
479,557
static cimg_int64 cut(const double val) { return val<(double)min()?min():val>(double)max()?max():(cimg_int64)val; }
0
474,807
static void __sock_set_timestamps(struct sock *sk, bool val, bool new, bool ns) { if (val) { sock_valbool_flag(sk, SOCK_TSTAMP_NEW, new); sock_valbool_flag(sk, SOCK_RCVTSTAMPNS, ns); sock_set_flag(sk, SOCK_RCVTSTAMP); sock_enable_timestamp(sk, SOCK_TIMESTAMP); } else { sock_reset_flag(sk, SOCK_RCVTSTAMP); ...
0
97,033
multi_process_incoming_tun(struct multi_context *m, const unsigned int mpp_flags) { struct gc_arena gc = gc_new(); bool ret = true; if (BLEN(&m->top.c2.buf) > 0) { unsigned int mroute_flags; struct mroute_addr src, dest; const int dev_type = TUNNEL_TYPE(m->top.c1.tuntap); ...
0
482,534
static void sqlite3WhereOpcodeRewriteTrace( sqlite3 *db, int pc, VdbeOp *pOp ){ if( (db->flags & SQLITE_VdbeAddopTrace)==0 ) return; sqlite3VdbePrintOp(0, pc, pOp); }
0
271,129
static void do_pcd_read(void) { pcd_busy = 1; pcd_retries = 0; pcd_transfer(); if (!pcd_count) { next_request(0); return; } pi_do_claimed(pcd_current->pi, pcd_start); }
0
407,605
ldns_rdf2buffer_str(ldns_buffer *buffer, const ldns_rdf *rdf) { ldns_status res = LDNS_STATUS_OK; /*ldns_buffer_printf(buffer, "%u:", ldns_rdf_get_type(rdf));*/ if (rdf) { switch(ldns_rdf_get_type(rdf)) { case LDNS_RDF_TYPE_NONE: break; case LDNS_RDF_TYPE_DNAME: res = ldns_rdf2buffer_str_dname(buffer, r...
0
330,677
static inline int halfpel_motion_search(MpegEncContext * s, int *mx_ptr, int *my_ptr, int dmin, int xmin, int ymin, int xmax, int ymax, int pred_x, int pred_y, uint8_t *ref_picture) { UINT16 *mv_penalty= s->mv_penalty[s->f_code] + MAX_MV; // f_code of the prev fram...
0
38,806
Error Box::read_children(BitstreamRange& range, int max_number) { int count = 0; while (!range.eof() && !range.error()) { std::shared_ptr<Box> box; Error error = Box::read(range, &box); if (error != Error::Ok) { return error; } if (m_children.size() > MAX_CHILDREN_PER_BOX) { std::s...
0
272,487
PHP_FUNCTION(imagecopymerge) { zval *SIM, *DIM; long SX, SY, SW, SH, DX, DY, PCT; gdImagePtr im_dst, im_src; int srcH, srcW, srcY, srcX, dstY, dstX, pct; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rrlllllll", &DIM, &SIM, &DX, &DY, &SX, &SY, &SW, &SH, &PCT) == FAILURE) { return; } ZEND_FETCH_RESOUR...
0
356,735
static jas_cmreal_t jas_cmshapmatlut_lookup(jas_cmshapmatlut_t *lut, jas_cmreal_t x) { jas_cmreal_t t; int lo; int hi; t = x * (lut->size - 1); lo = floor(t); if (lo < 0) return lut->data[0]; hi = ceil(t); if (hi >= lut->size) return lut->data[lut->size - 1]; return lut->data[lo] + (t - lo) * (lut->data[hi...
0
354,002
gst_matroska_demux_parse_stream (GstMatroskaDemux * demux, GstEbmlRead * ebml, GstMatroskaTrackContext ** dest_context) { GstMatroskaTrackContext *context; GstCaps *caps = NULL; GstTagList *cached_taglist; GstFlowReturn ret; guint32 id, riff_fourcc = 0; guint16 riff_audio_fmt = 0; gchar *codec = NULL;...
1
385,092
htmlCtxtReadMemory(htmlParserCtxtPtr ctxt, const char *buffer, int size, const char *URL, const char *encoding, int options) { xmlParserInputBufferPtr input; xmlParserInputPtr stream; if (ctxt == NULL) return (NULL); if (buffer == NULL) return (NULL); xmlInitParser...
0
194,448
void V4L2JpegEncodeAccelerator::EncodedInstanceDmaBuf::DestroyTask() { DCHECK(parent_->encoder_task_runner_->BelongsToCurrentThread()); while (!input_job_queue_.empty()) input_job_queue_.pop(); while (!running_job_queue_.empty()) running_job_queue_.pop(); DestroyInputBuffers(); DestroyOutputBuffers()...
0
56,193
static void print_udev_format(const char *name, const char *value) { char enc[265], safe[256]; size_t namelen = strlen(name); *safe = *enc = '\0'; if (!strcmp(name, "TYPE") || !strcmp(name, "VERSION")) { blkid_encode_string(value, enc, sizeof(enc)); printf("ID_FS_%s=%s\n", name, enc); } else if (!strcmp(nam...
0
454,327
TEST(GetComputedPathsTest, ExpressionFieldPathDoesNotCountAsRenameWhenUsingRemoveBuiltin) { intrusive_ptr<ExpressionContextForTest> expCtx(new ExpressionContextForTest()); auto expr = ExpressionFieldPath::parse(expCtx, "$$REMOVE", expCtx->variablesParseState); auto computedPaths = expr->getComputedPaths("a"...
0
218,892
ScriptPromise BluetoothRemoteGATTCharacteristic::getDescriptors( ScriptState* scriptState, const StringOrUnsignedLong& descriptorUUID, ExceptionState& exceptionState) { String descriptor = BluetoothUUID::getDescriptor(descriptorUUID, exceptionState); if (exceptionState.hadException()) return e...
0
375,070
_equalFieldStore(const FieldStore *a, const FieldStore *b) { COMPARE_NODE_FIELD(arg); COMPARE_NODE_FIELD(newvals); COMPARE_NODE_FIELD(fieldnums); COMPARE_SCALAR_FIELD(resulttype); return true; }
0
291,097
ptaaInitFull(PTAA *ptaa, PTA *pta) { l_int32 n, i; PTA *ptat; PROCNAME("ptaaInitFull"); if (!ptaa) return ERROR_INT("ptaa not defined", procName, 1); if (!pta) return ERROR_INT("pta not defined", procName, 1); n = ptaa->nalloc; ptaa->n = n; for (i = 0; i <...
0
107,119
static inline bool nested_vmx_allowed(struct kvm_vcpu *vcpu) { return nested && guest_cpuid_has(vcpu, X86_FEATURE_VMX); }
0
114,663
static void sas_ata_set_dmamode(struct ata_port *ap, struct ata_device *ata_dev) { struct domain_device *dev = ap->private_data; struct sas_internal *i = dev_to_sas_internal(dev); if (i->dft->lldd_ata_set_dmamode) i->dft->lldd_ata_set_dmamode(dev); }
0
226,618
void CalculatePageLayoutFromPrintParams( const PrintMsg_Print_Params& params, PageSizeMargins* page_layout_in_points) { int dpi = GetDPI(&params); int content_width = params.content_size.width(); int content_height = params.content_size.height(); int margin_bottom = params.page_size.height() - co...
0
160,597
IRC_PROTOCOL_CALLBACK(303) { IRC_PROTOCOL_MIN_ARGS(4); weechat_printf_date_tags ( irc_msgbuffer_get_target_buffer (server, NULL, command, NULL, NULL), date, irc_protocol_tags (command, "irc_numeric", NULL, NULL), _("%sUsers online: %s%s"), weechat_prefix ("network"), ...
0
253,370
std::wstring GetUsageStatsKeyPath(bool medium) { EXPECT_TRUE(!medium || system_level_); std::wstring result(L"Software\\"); if (kUseGoogleUpdateIntegration) { result.append(L"Google\\Update\\ClientState"); if (medium) result.append(L"Medium"); result.push_back(L'\\'); resu...
0
392,583
HWB_to_RGB (HWBType HWB, RGBType * RGB) { /* * H is given on [0, 6] or UNDEFINED. W and B are given on [0, 1]. * RGB are each returned on [0, 1]. */ float h = HWB.H, w = HWB.W, b = HWB.B, v, n, f; int i; v = 1 - b; if (h == HWB_UNDEFINED) RETURN_RGB (v, v, v); i = floor (h); f = h - i;...
0
302,565
R_API const char *r_anal_function_get_var_reg_at(RAnalFunction *fcn, st64 delta, ut64 addr) { st64 offset = addr - fcn->addr; RPVector *inst_accesses = ht_up_find (fcn->inst_vars, offset, NULL); if (!inst_accesses) { return NULL; } RAnalVar *var = NULL; void **it; r_pvector_foreach (inst_accesses, it) { RAna...
0
54,041
void Compute(OpKernelContext* ctx) override { const Tensor& indices_tensor = ctx->input(0); OP_REQUIRES(ctx, TensorShapeUtils::IsVector(indices_tensor.shape()) || TensorShapeUtils::IsScalar(indices_tensor.shape()), errors::InvalidArgument( ...
0
460,392
struct hid_field *hidinput_get_led_field(struct hid_device *hid) { struct hid_report *report; struct hid_field *field; int i, j; list_for_each_entry(report, &hid->report_enum[HID_OUTPUT_REPORT].report_list, list) { for (i = 0; i < report->maxfield; i++) { field = report->field[i]; for (j = 0;...
0
410,880
static THEME_SEARCH_REC *theme_search(GSList *list, const char *module) { THEME_SEARCH_REC *rec; while (list != NULL) { rec = list->data; if (g_strcasecmp(rec->short_name, module) == 0) return rec; list = list->next; } return NULL; }
0
316,220
void ChromotingInstance::SendClipboardItem(const std::string& mime_type, const std::string& item) { if (!IsConnected()) { return; } protocol::ClipboardEvent event; event.set_mime_type(mime_type); event.set_data(item); host_connection_->clipboard_stub()->InjectC...
0
487,541
ElectronBrowserClient::GetGeneratedCodeCacheSettings( content::BrowserContext* context) { // TODO(deepak1556): Use platform cache directory. base::FilePath cache_path = context->GetPath(); // If we pass 0 for size, disk_cache will pick a default size using the // heuristics based on available disk size. The...
0
223,167
void WebGLRenderingContextBase::deleteTexture(WebGLTexture* texture) { if (!DeleteObject(texture)) return; int max_bound_texture_index = -1; for (wtf_size_t i = 0; i < one_plus_max_non_default_texture_unit_; ++i) { if (texture == texture_units_[i].texture2d_binding_) { texture_units_[i].texture2d_b...
0
283,631
void V8TestObject::ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld( const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingAccessForIsolatedWorldsPerWorldBindingsLong...
0
236,101
WORD32 ih264d_video_decode(iv_obj_t *dec_hdl, void *pv_api_ip, void *pv_api_op) { /* ! */ dec_struct_t * ps_dec = (dec_struct_t *)(dec_hdl->pv_codec_handle); WORD32 i4_err_status = 0; UWORD8 *pu1_buf = NULL; WORD32 buflen; UWORD32 u4_max_ofst, u4_length_of_start_code = 0; UWORD32 bytes_consumed...
0
160,254
ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_GetObjectValue (MonoObject *obj) { MONO_ARCH_SAVE_REGS; if ((obj == NULL) || (! (obj->vtable->klass->valuetype))) return obj; else return mono_object_clone (obj); }
0
8,201
static int follow_dotdot_rcu(struct nameidata *nd) { struct inode *inode = nd->inode; if (!nd->root.mnt) set_root_rcu(nd); while (1) { if (path_equal(&nd->path, &nd->root)) break; if (nd->path.dentry != nd->path.mnt->mnt_root) { struct dentry *old = nd->path.dentry; struct dentry *parent = old->d_par...
1
258,818
glob_dir_to_array (dir, array, flags) char *dir, **array; int flags; { register unsigned int i, l; int add_slash; char **result, *new; struct stat sb; l = strlen (dir); if (l == 0) { if (flags & GX_MARKDIRS) for (i = 0; array[i]; i++) { if ((stat (array[i], &sb) == 0) && S_ISDI...
0
499,159
int sqfs_opendir(const char *filename, struct fs_dir_stream **dirsp) { unsigned char *inode_table = NULL, *dir_table = NULL; int j, token_count = 0, ret = 0, metablks_count; struct squashfs_dir_stream *dirs; char **token_list = NULL, *path = NULL; u32 *pos_list = NULL; dirs = calloc(1, sizeof(*dirs)); if (!dirs...
0
149,184
multi_client_connect_post_plugin(struct multi_context *m, struct multi_instance *mi, const struct plugin_return *pr, unsigned int option_permissions_mask, unsigned int *option_types_found)...
0
286,779
static void sctp_v6_get_dst(struct sctp_transport *t, union sctp_addr *saddr, struct flowi *fl, struct sock *sk) { struct sctp_association *asoc = t->asoc; struct dst_entry *dst = NULL; struct flowi6 *fl6 = &fl->u.ip6; struct sctp_bind_addr *bp; struct sctp_sockaddr_entry *laddr; union sctp_addr *baddr = N...
1
401,270
static int copy_tx_sa_stats(struct sk_buff *skb, struct macsec_tx_sa_stats __percpu *pstats) { struct macsec_tx_sa_stats sum = {0, }; int cpu; for_each_possible_cpu(cpu) { const struct macsec_tx_sa_stats *stats = per_cpu_ptr(pstats, cpu); sum.OutPktsProtected += stats->OutPktsProtected; sum.OutPktsEn...
0
512,247
void EC_GROUP_set_asn1_flag(EC_GROUP *group, int flag) { group->asn1_flag &= ~EC_GROUP_ASN1_FLAG_MASK; group->asn1_flag |= flag & EC_GROUP_ASN1_FLAG_MASK; }
0
337,106
int unix_listen_opts(QemuOpts *opts, Error **errp) { struct sockaddr_un un; const char *path = qemu_opt_get(opts, "path"); int sock, fd; sock = qemu_socket(PF_UNIX, SOCK_STREAM, 0); if (sock < 0) { error_setg_errno(errp, errno, "Failed to create Unix socket"); return -1; ...
1
33,125
static inline int iskeychar(int c) { return isalnum(c) || c == '-'; }
0
496,140
~Connection() { res.complete_request_handler_ = nullptr; cancel_deadline_timer(); #ifdef CROW_ENABLE_DEBUG connectionCount--; CROW_LOG_DEBUG << "Connection (" << this << ") freed, total: " << connectionCount; #endif }
0
16,445
static void close_detect_cb ( struct evhttp_request * req , void * arg ) { struct evhttp_connection * evcon = arg ; struct timeval tv ; if ( req != NULL && req -> response_code != HTTP_OK ) { fprintf ( stderr , "FAILED\n" ) ; exit ( 1 ) ; } timerclear ( & tv ) ; tv . tv_sec = 3 ; event_once ( - 1 , EV_TIMEOUT ...
0
195,574
OJPEGReadHeaderInfoSec(TIFF* tif) { static const char module[]="OJPEGReadHeaderInfoSec"; OJPEGState* sp=(OJPEGState*)tif->tif_data; uint8 m; uint16 n; uint8 o; if (sp->file_size==0) sp->file_size=TIFFGetFileSize(tif); if (sp->jpeg_interchange_format!=0) { if (sp->jpeg_interchange_format>=sp->file_size) { ...
0
386,968
static int usbvision_v4l2_mmap(struct file *file, struct vm_area_struct *vma) { struct usb_usbvision *usbvision = video_drvdata(file); int res; if (mutex_lock_interruptible(&usbvision->v4l2_lock)) return -ERESTARTSYS; res = usbvision_mmap(file, vma); mutex_unlock(&usbvision->v4l2_lock); return res; }
0
514,692
v8::Local<v8::Object> StreamReq::object() { return GetAsyncWrap()->object(); }
0
223,621
static struct kiocb *lookup_kiocb(struct kioctx *ctx, struct iocb __user *iocb, u32 key) { struct list_head *pos; assert_spin_locked(&ctx->ctx_lock); /* TODO: use a hash or array, this sucks. */ list_for_each(pos, &ctx->active_reqs) { struct kiocb *kiocb = list_kiocb(pos); if (kiocb->ki_obj.user == iocb...
0
397,535
static void csrhci_out_hci_packet_acl(void *opaque, const uint8_t *data, int len) { struct csrhci_s *s = (struct csrhci_s *) opaque; uint8_t *pkt = csrhci_out_packet(s, (len + 2) & ~1); /* Align */ *pkt ++ = H4_ACL_PKT; pkt[len & ~1] = 0; memcpy(pkt, data, len); csrhci_fifo_wak...
0
510,693
ha_partition::ha_partition(handlerton *hton, TABLE_SHARE *share, partition_info *part_info_arg, ha_partition *clone_arg, MEM_ROOT *clone_mem_root_arg) :handler(hton, share) { DBUG_ENTER("ha_partition::ha_partition(clone)"); init_allo...
0
235,328
static void createAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) { INC_STATS("DOM.TestObj.create._set"); TestObj* imp = V8TestObj::toNative(info.Holder()); bool v = value->BooleanValue(); imp->setCreate(v); return; }
0
363,260
_hb_ot_layout_set_glyph_property (hb_ot_layout_t *layout, hb_codepoint_t glyph, unsigned int property) { hb_ot_layout_glyph_class_t klass; if (property & LookupFlag::MarkAttachmentType) klass = HB_OT_LAYOUT_GLYPH_CLASS_MARK; else klass = (hb_ot_layout_glyph_class_t) property; hb_ot_lay...
0
219,383
void DidGetUsageAndQuotaForEviction(QuotaStatusCode status, int64 usage, int64 unlimited_usage, int64 quota, int64 available_space) { quota_status_ = status; usage_ = usage; unlimited_usage_ = unlimited_usage; quota_ = quota; available_space_ = available_space; }
0
60,155
static codel_time_t codel_skb_time_func(const struct sk_buff *skb) { const struct ieee80211_tx_info *info; info = (const struct ieee80211_tx_info *)skb->cb; return info->control.enqueue_time; }
0
81,928
flatpak_repo_parse_extra_data_sources (GVariant *extra_data_sources, int index, const char **name, guint64 *download_size, guint64 *in...
0
498,953
static RzList *analysis_graph_to(RzCore *core, ut64 addr, int depth, HtUP *avoid) { RzAnalysisFunction *cur_fcn = rz_analysis_get_fcn_in(core->analysis, core->offset, 0); RzList *list = rz_list_new(); HtUP *state = ht_up_new0(); if (!list || !state || !cur_fcn) { rz_list_free(list); ht_up_free(state); return...
0
460,091
proto_find_first_finfo(proto_tree *tree, const int id) { ffdata_t ffdata; ffdata.array = g_ptr_array_new(); ffdata.id = id; proto_tree_traverse_pre_order(tree, find_first_finfo, &ffdata); return ffdata.array; }
0
335,949
static int multiwrite_merge(BlockDriverState *bs, BlockRequest *reqs, int num_reqs, MultiwriteCB *mcb) { int i, outidx; // Sort requests by start sector qsort(reqs, num_reqs, sizeof(*reqs), &multiwrite_req_compare); // Check if adjacent requests touch the same clusters. If so, combine them...
0
117,692
learn_address_script(const struct multi_context *m, const struct multi_instance *mi, const char *op, const struct mroute_addr *addr) { struct gc_arena gc = gc_new(); struct env_set *es; bool ret = true; struct plugin_list *plugins; /* g...
0
83,214
static int cmp_memslot(const void *slot1, const void *slot2) { struct kvm_memory_slot *s1, *s2; s1 = (struct kvm_memory_slot *)slot1; s2 = (struct kvm_memory_slot *)slot2; if (s1->npages < s2->npages) return 1; if (s1->npages > s2->npages) return -1; return 0; }
0
216,020
HeadlessDevToolsClientMinimizeWindowTest() : HeadlessDevToolsClientChangeWindowStateTest( browser::WindowState::MINIMIZED){};
0
32,298
static void ffprobe_show_program_version(WriterContext *w) { AVBPrint pbuf; av_bprint_init(&pbuf, 1, AV_BPRINT_SIZE_UNLIMITED); writer_print_section_header(w, SECTION_ID_PROGRAM_VERSION); print_str("version", FFMPEG_VERSION); print_fmt("copyright", "Copyright (c) %d-%d the FFmpeg developers", ...
0
144,553
static BOOL gdi_Bitmap_Paint(rdpContext* context, rdpBitmap* bitmap) { gdiBitmap* gdi_bitmap = (gdiBitmap*) bitmap; UINT32 width = bitmap->right - bitmap->left + 1; UINT32 height = bitmap->bottom - bitmap->top + 1; return gdi_BitBlt(context->gdi->primary->hdc, bitmap->left, bitmap->top, ...
0
486,929
symbol_make_alias (symbol *sym, symbol *str, location loc) { if (sym->content->class != token_sym) complain (&loc, complaint, _("nonterminals cannot be given a string alias")); else if (str->alias) complain (&loc, Wother, _("symbol %s used more than once as a literal string"), st...
0
428,323
void tcp_send_loss_probe(struct sock *sk) { struct tcp_sock *tp = tcp_sk(sk); struct sk_buff *skb; int pcount; int mss = tcp_current_mss(sk); skb = tcp_send_head(sk); if (skb && tcp_snd_wnd_test(tp, skb, mss)) { pcount = tp->packets_out; tcp_write_xmit(sk, mss, TCP_NAGLE_OFF, 2, GFP_ATOMIC); if (tp->packet...
0