idx
int64
func
string
target
int64
498,086
void html_txtf(const char *format, ...) { va_list args; va_start(args, format); html_vtxtf(format, args); va_end(args); }
0
462,215
static pj_status_t decode_sockaddr_attr(pj_pool_t *pool, const pj_uint8_t *buf, const pj_stun_msg_hdr *msghdr, void **p_attr) { pj_stun_sockaddr_attr *attr; int af; unsigned addr_len; pj_uint32_t val; PJ_CHECK_STACK(); PJ_UNUSED_ARG(msghdr); /* Create t...
0
225,769
GF_Err metx_box_write(GF_Box *s, GF_BitStream *bs) { GF_MetaDataSampleEntryBox *ptr = (GF_MetaDataSampleEntryBox *)s; GF_Err e = gf_isom_box_write_header(s, bs); if (e) return e; gf_bs_write_data(bs, ptr->reserved, 6); gf_bs_write_u16(bs, ptr->dataReferenceIndex); if (ptr->type!=GF_ISOM_BOX_TYPE_STPP) { if (...
0
276,921
static int do_i2c_md(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { uint chip; uint addr, length; uint alen; uint j, nbytes, linebytes; int ret; #if CONFIG_IS_ENABLED(DM_I2C) struct udevice *dev; #endif /* We use the last specified parameters, unless new ones are * entered. */ chip...
0
466,107
static int load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg) { struct desc_struct seg_desc; u8 dpl, rpl, cpl; unsigned err_vec = GP_VECTOR; u32 err_code = 0; bool null_selector = !(selector & ~0x3); /* 0000-0003 are null */ int ret; memset(&seg_desc, 0, sizeof seg_desc); if ...
0
409,430
set_mouse_topline(win_T *wp) { orig_topline = wp->w_topline; # ifdef FEAT_DIFF orig_topfill = wp->w_topfill; # endif }
0
90,900
void GetUsageForOrigins(const std::set<GURL>& origins, StorageType type) { DCHECK(original_message_loop()->BelongsToCurrentThread()); std::vector<GURL> origins_to_gather; std::set<GURL> cached_origins; client_tracker()->GetCachedOrigins(&cached_origins); std::set<GURL> already_added; for (std:...
0
256,450
JANET_CORE_FN(cfun_array_push, "(array/push arr x)", "Insert an element in the end of an array. Modifies the input array and returns it.") { janet_arity(argc, 1, -1); JanetArray *array = janet_getarray(argv, 0); if (INT32_MAX - argc + 1 <= array->count) { janet_panic("arr...
0
256,435
static void parse_rtcp_report( pjmedia_rtcp_session *sess, const void *pkt, pj_size_t size) { pjmedia_rtcp_common *common = (pjmedia_rtcp_common*) pkt; const pjmedia_rtcp_rr *rr = NULL; const pjmedia_rtcp_sr *sr = NULL; pj_uint32_t last_loss, jitter_samp, jitter; /* Parse RTCP *...
0
415,214
cmd_disconnect (assuan_context_t ctx, char *line) { ctrl_t ctrl = assuan_get_pointer (ctx); (void)line; ctrl->server_local->disconnect_allowed = 1; return 0; }
0
348,444
static void ax_changedmtu(struct mkiss *ax) { struct net_device *dev = ax->dev; unsigned char *xbuff, *rbuff, *oxbuff, *orbuff; int len; len = dev->mtu * 2; /* * allow for arrival of larger UDP packets, even if we say not to * also fixes a bug in which SunOS sends 512-byte packets even with * an MSS of 128...
0
301,423
static NTSTATUS vfswrap_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp, uint32 security_info, TALLOC_CTX *mem_ctx, struct security_descriptor **ppdesc) { NTSTATUS result; START_PROFILE(fget_nt_acl); result = posix_fget_nt_acl(fsp, security_info, mem_ctx, ppdesc); EN...
0
500,682
int sftp_unlink(sftp_session sftp, const char *file) { sftp_status_message status = NULL; sftp_message msg = NULL; ssh_string filename; ssh_buffer buffer; uint32_t id; buffer = ssh_buffer_new(); if (buffer == NULL) { ssh_set_error_oom(sftp->session); return -1; } filename = ssh_string_from_c...
0
310,000
npop(void) { int result = 0; if (TPS(stack_ptr) > 0) { TPS(stack_ptr)--; if (TPS(stack)[TPS(stack_ptr)].num_type) result = TPS(stack)[TPS(stack_ptr)].data.num; } else { DEBUG(2, ("npop: stack underflow: %s", _nc_visbuf(TPS(tparam_base)))); _nc_tparm_err++; } return result; }
0
224,285
gopher_request_parse(const HttpRequest * req, char *type_id, char *request) { ::Parser::Tokenizer tok(req->url.path()); if (request) *request = 0; tok.skip('/'); // ignore failures? path could be ab-empty if (tok.atEnd()) { *type_id = GOPHER_DIRECTORY; return; } stati...
0
463,156
static int cleanup_cb(void *rock, const char *key, size_t keylen, const char *data __attribute__((unused)), size_t datalen __attribute__((unused))) { annotate_db_t *d = (annotate_db_t *)rock; return cyrusdb_delete(d->db, key, keylen, tid(d), /*f...
0
246,486
RPVector *r_bin_wasm_get_codes(RBinWasmObj *bin) { r_return_val_if_fail (bin && bin->g_sections, NULL); return bin->g_codes? bin->g_codes: parse_unique_subsec_vec_by_id (bin, R_BIN_WASM_SECTION_CODE); }
0
355,641
eval7_leader( typval_T *rettv, int numeric_only, char_u *start_leader, char_u **end_leaderp) { char_u *end_leader = *end_leaderp; int ret = OK; int error = FALSE; varnumber_T val = 0; vartype_T type = rettv->v_type; #ifdef FEAT_FLOAT float_T f = 0.0; if (rettv->v_ty...
0
383,320
gdImageDashedLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) { int dx, dy, incr1, incr2, d, x, y, xend, yend, xdirflag, ydirflag; int dashStep = 0; int on = 1; int wid; int vert; int thick = im->thick; dx = abs (x2 - x1); dy = abs (y2 - y1); if (dy <= dx) { /* More-or-less h...
0
217,551
int parse(char *elf) { int fd; struct stat st; uint8_t *elf_map; int count; char *tmp; char *name; char flag[4]; MODE = get_elf_class(elf); fd = open(elf, O_RDONLY); if (fd < 0) { perror("open"); return -1; } if (fstat(fd, &st) < 0) { perror("fs...
1
488,339
int __pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long address) { pmd_t *new = pmd_alloc_one(mm, address); if (!new) return -ENOMEM; smp_wmb(); /* See comment in __pte_alloc */ spin_lock(&mm->page_table_lock); #ifndef __ARCH_HAS_4LEVEL_HACK if (pud_present(*pud)) /* Another has populated it */ pmd_...
0
289,253
static int snd_pcm_oss_get_ptr(struct snd_pcm_oss_file *pcm_oss_file, int stream, struct count_info __user * _info) { struct snd_pcm_substream *substream; struct snd_pcm_runtime *runtime; snd_pcm_sframes_t delay; int fixup; struct count_info info; int err; if (_info == NULL) return -EFAULT; substream = pcm_...
0
225,956
GF_Err stsh_box_size(GF_Box *s) { GF_ShadowSyncBox *ptr = (GF_ShadowSyncBox *)s; ptr->size += 4 + (8 * gf_list_count(ptr->entries)); return GF_OK; }
0
233,937
DocumentSource::GetNextResult DocumentSourceUnionWith::doGetNext() { if (!_pipeline) { // We must have already been disposed, so we're finished. return GetNextResult::makeEOF(); } if (_executionState == ExecutionProgress::kIteratingSource) { auto nextInput = pSource->getNext(); ...
0
417,477
virNodeDeviceCapPCIDefFormat(virBufferPtr buf, const virNodeDevCapData *data) { size_t i; if (data->pci_dev.klass >= 0) virBufferAsprintf(buf, "<class>0x%.6x</class>\n", data->pci_dev.klass); virBufferAsprintf(buf, "<domain>%d</domain>\n", data->pc...
0
229,351
Fprint128 GetDeviceCacheKey(EagerOperation* op, const EagerContext& ctx) { Fprint128 device_cache_key = op->MutableAttrs()->CacheKey(op->DeviceName()); device_cache_key = FingerprintCat128(device_cache_key, ctx.AllowSoftPlacement()); return device_cache_key; }
0
459,523
static long __bpf_get_stackid(struct bpf_map *map, struct perf_callchain_entry *trace, u64 flags) { struct bpf_stack_map *smap = container_of(map, struct bpf_stack_map, map); struct stack_map_bucket *bucket, *new_bucket, *old_bucket; u32 max_depth = map->value_size / stack_map_data_size(map); /* stack_map_...
0
238,327
int digest_file_by_name(const char *algo, const char *filename, unsigned char *hash, const unsigned char *sig) { struct digest *d; int ret; d = digest_alloc(algo); if (!d) return -EIO; ret = digest_file(d, filename, hash, sig); digest_free(d); return ret; }
0
463,147
EXPORTED int annotatemore_rawwrite(const char *mboxname, const char *entry, const char *userid, const struct buf *value) { char key[MAX_MAILBOX_PATH+1]; int keylen, r; annotate_db_t *d = NULL; uint32_t uid = 0; init_internal(); r = _annotate_getdb(mboxname, u...
0
226,214
GF_Err subs_box_read(GF_Box *s, GF_BitStream *bs) { GF_SubSampleInformationBox *ptr = (GF_SubSampleInformationBox *)s; u32 entry_count, i, j; u16 subsample_count; ISOM_DECREASE_SIZE(ptr, 4); entry_count = gf_bs_read_u32(bs); for (i=0; i<entry_count; i++) { u32 subs_size=0; GF_SubSampleInfoEntry *pSamp = (G...
0
333,550
gdImagePtr gdImageRotateGeneric(gdImagePtr src, const float degrees, const int bgColor) { float _angle = ((float) (-degrees / 180.0f) * (float)M_PI); const int angle_rounded = (int)floor(degrees * 100); const int src_w = gdImageSX(src); const int src_h = gdImageSY(src); const unsigned int new_width = (unsigned in...
0
238,524
static int check_attach_modify_return(unsigned long addr, const char *func_name) { if (within_error_injection_list(addr) || !strncmp(SECURITY_PREFIX, func_name, sizeof(SECURITY_PREFIX) - 1)) return 0; return -EINVAL; }
0
329,877
span_renderer_init (cairo_abstract_span_renderer_t *_r, const cairo_composite_rectangles_t *composite, cairo_antialias_t antialias, cairo_bool_t needs_clip) { cairo_image_span_renderer_t *r = (cairo_image_span_renderer_t *)_r; cairo_image_surface_t *dst = (cairo_image_surface_t *)composi...
0
427,726
cdf_calloc(const char *file __attribute__((__unused__)), size_t line __attribute__((__unused__)), size_t n, size_t u) { DPRINTF(("%s,%" SIZE_T_FORMAT "u: %s %" SIZE_T_FORMAT "u %" SIZE_T_FORMAT "u\n", file, line, __func__, n, u)); return calloc(n, u); }
0
336,509
SPICE_GNUC_VISIBLE int spice_server_is_server_mouse(SpiceServer *reds) { return reds->mouse_mode == SPICE_MOUSE_MODE_SERVER; }
0
317,041
static int may_create(struct inode *dir, struct dentry *dentry, u16 tclass) { const struct task_security_struct *tsec = selinux_cred(current_cred()); struct inode_security_struct *dsec; struct superblock_security_struct *sbsec; u32 sid, newsid; struct common_audit_data ad; int rc; dsec = inode_s...
0
393,532
static SQInteger base_setdebughook(HSQUIRRELVM v) { sq_setdebughook(v); return 0; }
0
214,909
static int mlx5_fpga_conn_create_cq(struct mlx5_fpga_conn *conn, int cq_size) { struct mlx5_fpga_device *fdev = conn->fdev; struct mlx5_core_dev *mdev = fdev->mdev; u32 temp_cqc[MLX5_ST_SZ_DW(cqc)] = {0}; u32 out[MLX5_ST_SZ_DW(create_cq_out)]; struct mlx5_wq_param wqp; struct mlx5_cqe64 *cqe; int inlen, err, eqn...
1
273,914
static void handle_PWD(ctrl_t *ctrl, char *arg) { char buf[sizeof(ctrl->cwd) + 10]; snprintf(buf, sizeof(buf), "257 \"%s\"\r\n", ctrl->cwd); send_msg(ctrl->sd, buf); }
0
369,916
static ssize_t oom_adjust_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) { struct task_struct *task; char buffer[PROC_NUMBUF]; int oom_adjust; unsigned long flags; int err; memset(buffer, 0, sizeof(buffer)); if (count > sizeof(buffer) - 1) count = sizeof(buffer) - 1; if (cop...
0
513,092
void Item_func_isnull::print(String *str, enum_query_type query_type) { if (const_item() && !args[0]->maybe_null && !(query_type & (QT_NO_DATA_EXPANSION | QT_VIEW_INTERNAL))) str->append("/*always not null*/ 1"); else args[0]->print_parenthesised(str, query_type, precedence()); str->append(STRING_WI...
0
244,324
GF_Err reftype_AddRefTrack(GF_TrackReferenceTypeBox *ref, GF_ISOTrackID trackID, u16 *outRefIndex) { u32 i; if (!ref || !trackID) return GF_BAD_PARAM; if (outRefIndex) *outRefIndex = 0; //don't add a dep if already here !! for (i = 0; i < ref->trackIDCount; i++) { if (ref->trackIDs[i] == trackID) { if (outRe...
0
345,210
int con_copy_unimap(struct vc_data *dst_vc, struct vc_data *src_vc) { struct uni_pagedir *q; if (!*src_vc->vc_uni_pagedir_loc) return -EINVAL; if (*dst_vc->vc_uni_pagedir_loc == *src_vc->vc_uni_pagedir_loc) return 0; con_free_unimap(dst_vc); q = *src_vc->vc_uni_pagedir_loc; q->refcount++; *dst_vc->vc_uni_pa...
0
256,431
static pj_status_t get_codec_info_from_sdp(pjmedia_endpt *endpt, const pjmedia_sdp_media *m, unsigned *sci_cnt, sdp_codec_info_t sci[]) { pjmedia_codec_mgr *codec_mgr; unsigned j, cnt = 0; pjmedia_type type = PJMEDIA_TYPE_UNKNOWN; pj_status_t status; type = pjmedia_get_type(...
0
273,107
buildopts_get() { return buildopts; }
0
384,130
raptor_new_xml_writer(raptor_world* world, raptor_namespace_stack *nstack, raptor_iostream* iostr) { raptor_xml_writer* xml_writer; RAPTOR_CHECK_CONSTRUCTOR_WORLD(world); if(!iostr) return NULL; raptor_world_open(world); xml_writer = RAPTOR_CALLOC(raptor_x...
0
484,053
testSuite_SecureChannel(void) { Suite *s = suite_create("SecureChannel"); TCase *tc_initAndDelete = tcase_create("Initialize and delete Securechannel"); tcase_add_checked_fixture(tc_initAndDelete, setup_funcs_called, teardown_funcs_called); tcase_add_checked_fixture(tc_initAndDelete, setup_key_sizes, t...
0
220,862
inline int16_t lut_lookup(int16_t value, const int16_t* lut) { return lut_lookup_with_interpolation(value, lut); }
0
210,484
static int io_read(struct io_kiocb *req, unsigned int issue_flags) { struct iovec inline_vecs[UIO_FASTIOV], *iovec = inline_vecs; struct kiocb *kiocb = &req->rw.kiocb; struct iov_iter __iter, *iter = &__iter; struct io_async_rw *rw = req->async_data; ssize_t io_size, ret, ret2; bool force_nonblock = issue_flags &...
1
244,322
GF_Err paen_box_write(GF_Box *s, GF_BitStream *bs) { if (!s) return GF_BAD_PARAM; return gf_isom_box_write_header(s, bs); }
0
512,304
longlong val_int_from_real() { DBUG_ASSERT(is_fixed()); return Converter_double_to_longlong_with_warn(val_real(), false).result(); }
0
343,267
static void displayopenfailure(const char * const name) { char buffer[PATH_MAX + 42U]; const int e = errno; if (SNCHECK(snprintf(buffer, sizeof buffer, MSG_OPEN_FAILURE, name), sizeof buffer)) { _EXIT(EXIT_FAILURE); } errno = e; error(550, buffer); }
0
242,990
static int ssl_check_ctr_renegotiate( mbedtls_ssl_context *ssl ) { size_t ep_len = mbedtls_ssl_ep_len( ssl ); int in_ctr_cmp; int out_ctr_cmp; if( ssl->state != MBEDTLS_SSL_HANDSHAKE_OVER || ssl->renego_status == MBEDTLS_SSL_RENEGOTIATION_PENDING || ssl->conf->disable_renegotiation == M...
0
482,689
gst_flxdec_src_query_handler (GstPad * pad, GstObject * parent, GstQuery * query) { GstFlxDec *flxdec = (GstFlxDec *) parent; gboolean ret = FALSE; switch (GST_QUERY_TYPE (query)) { case GST_QUERY_DURATION: { GstFormat format; gst_query_parse_duration (query, &format, NULL); if (f...
0
387,774
bool InstanceKlass::should_be_initialized() const { return !is_initialized(); }
0
261,890
njs_string_prototype_char_at(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { size_t length; int64_t start; njs_int_t ret; njs_slice_prop_t slice; njs_string_prop_t string; ret = njs_string_object_validate(vm, njs_argument(args, 0))...
0
224,590
Status BiasAddGradShape(shape_inference::InferenceContext* c) { ShapeHandle input_shape; // Fetch the data_format attribute, which may not exist. string data_format; Status s = c->GetAttr("data_format", &data_format); if (s.ok() && data_format == "NCHW") { TF_RETURN_IF_ERROR(c->WithRankAtLeast(c->input(0...
0
401,582
write_pool(struct entropy_store *r, const char __user *buffer, size_t count) { size_t bytes; __u32 t, buf[16]; const char __user *p = buffer; while (count > 0) { int b, i = 0; bytes = min(count, sizeof(buf)); if (copy_from_user(&buf, p, bytes)) return -EFAULT; for (b = bytes ; b > 0 ; b -= sizeof(__u3...
0
436,132
static int io_timeout_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe, bool is_timeout_link) { struct io_timeout_data *data; unsigned flags; u32 off = READ_ONCE(sqe->off); if (unlikely(req->ctx->flags & IORING_SETUP_IOPOLL)) return -EINVAL; if (sqe->ioprio || sqe->buf_index || sqe->len != 1) ...
0
225,949
GF_Err svhd_box_size(GF_Box *s) { GF_SphericalVideoInfoBox *ptr = (GF_SphericalVideoInfoBox *)s; if (ptr->string) s->size += (u32) strlen(ptr->string); s->size += 1; return GF_OK;
0
270,111
TfLiteStatus CalculateActivationRangeQuantizedImpl( TfLiteContext* context, TfLiteFusedActivation activation, int32_t qmin, int32_t qmax, TfLiteTensor* output, int32_t* act_min, int32_t* act_max) { const auto scale = output->params.scale; const auto zero_point = output->params.zero_point; int32_t tmp_q; ...
0
384,207
static int nf_tables_dump_flowtable(struct sk_buff *skb, struct netlink_callback *cb) { const struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh); struct nft_flowtable_filter *filter = cb->data; unsigned int idx = 0, s_idx = cb->args[0]; struct net *net = sock_net(skb->sk); int family = nfmsg->nfgen_family; stru...
0
384,281
gs_heap_stable(gs_memory_t *mem) { return mem; /* heap memory is stable */ }
0
212,927
static void sungem_send_packet(SunGEMState *s, const uint8_t *buf, int size) { NetClientState *nc = qemu_get_queue(s->nic); if (s->macregs[MAC_XIFCFG >> 2] & MAC_XIFCFG_LBCK) { nc->info->receive(nc, buf, size); } else { qemu_send_packet(nc, buf, size); } }
1
244,072
GF_Err prhd_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_ProjectionHeaderBox *ptr = (GF_ProjectionHeaderBox *)s; e = gf_isom_full_box_write(s, bs); if (e) return e; gf_bs_write_u32(bs, ptr->yaw); gf_bs_write_u32(bs, ptr->pitch); gf_bs_write_u32(bs, ptr->roll); return GF_OK; }
0
448,549
static struct stream *bgp_update_packet_eor(struct peer *peer, afi_t afi, safi_t safi) { struct stream *s; iana_afi_t pkt_afi = IANA_AFI_IPV4; iana_safi_t pkt_safi = IANA_SAFI_UNICAST; if (DISABLE_BGP_ANNOUNCE) return NULL; if (bgp_debug_neighbor_events(peer)) zlog_debug("send End-of-RIB for %s to %...
0
269,515
static void TIFFWarnings(const char *module,const char *format,va_list warning) { char message[MagickPathExtent]; ExceptionInfo *exception; #if defined(MAGICKCORE_HAVE_VSNPRINTF) (void) vsnprintf(message,MagickPathExtent-2,format,warning); #else (void) vsprintf(message,format,warning); #endif messag...
0
512,732
longlong Item_func_bit_or::val_int() { DBUG_ASSERT(fixed == 1); ulonglong arg1= (ulonglong) args[0]->val_int(); if (args[0]->null_value) { null_value=1; /* purecov: inspected */ return 0; /* purecov: inspected */ } ulonglong arg2= (ulonglong) args[1]->val_int(); if (args[1]->null_value) { nu...
0
314,525
PJ_DEF(pj_uint32_t) pjmedia_sdp_transport_get_proto(const pj_str_t *tp) { pj_str_t token, rest = {0}; pj_ssize_t idx; PJ_ASSERT_RETURN(tp, PJMEDIA_TP_PROTO_NONE); idx = pj_strtok2(tp, "/", &token, 0); if (idx != tp->slen) pj_strset(&rest, tp->ptr + token.slen + 1, tp->slen - token.slen - 1); ...
0
421,385
static void pc(int c) { putchar(c); }
0
488,411
static void * __init find_section64(Elf64_Ehdr *ehdr, const char *secname, unsigned long *size) { Elf64_Shdr *sechdrs; unsigned int i; char *secnames; /* Grab section headers and strings so we can tell who is who */ sechdrs = (void *)ehdr + ehdr->e_shoff; secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx]...
0
247,641
bool expectNoCertChain() const { return expect_no_cert_chain_; }
0
387,626
static int snd_ctl_elem_read_user(struct snd_card *card, struct snd_ctl_elem_value __user *_control) { struct snd_ctl_elem_value *control; int result; control = memdup_user(_control, sizeof(*control)); if (IS_ERR(control)) return PTR_ERR(control); down_read(&card->controls_rwsem); result = snd_ctl_elem_...
0
353,203
SplashPattern *SplashOutputDev::getColor(GfxGray gray) { SplashColor color; if (reverseVideo) { gray = gfxColorComp1 - gray; } color[0] = colToByte(gray); return new SplashSolidColor(color); }
0
244,357
GF_Box *svhd_box_new() { ISOM_DECL_BOX_ALLOC(GF_SphericalVideoInfoBox, GF_ISOM_BOX_TYPE_SVHD); return (GF_Box *)tmp; }
0
211,155
int tcp_emu(struct socket *so, struct mbuf *m) { Slirp *slirp = so->slirp; unsigned n1, n2, n3, n4, n5, n6; char buff[257]; uint32_t laddr; unsigned lport; char *bptr; DEBUG_CALL("tcp_emu"); DEBUG_ARG("so = %p", so); DEBUG_ARG("m = %p", m); switch (so->so_emu) { int x, ...
1
481,266
static void mlx5_fpga_conn_event(struct mlx5_core_qp *mqp, int event) { struct mlx5_fpga_conn *conn; conn = container_of(mqp, struct mlx5_fpga_conn, qp.mqp); mlx5_fpga_warn(conn->fdev, "QP event %u on QP #%u\n", event, mqp->qpn); }
0
359,255
bgp_show_rsclient_summary (struct vty *vty, struct bgp *bgp, afi_t afi, safi_t safi) { struct peer *peer; struct listnode *node, *nnode; int count = 0; /* Header string for each address family. */ static char header[] = "Neighbor V AS Export-Policy Import-Policy Up/Do...
0
231,779
void handleCipherUnavailable( CipherUnavailable* originalData, QuicServerConnectionState& conn, size_t packetSize, ServerEvents::ReadData& readData) { if (!originalData->packet || originalData->packet->empty()) { VLOG(10) << "drop because no data " << conn; if (conn.qLogger) { conn.qLogg...
0
222,519
void FunctionLibraryDefinition::Clear() { mutex_lock l(mu_); function_defs_.clear(); func_grad_.clear(); }
0
434,093
do_arg_all( int count, int forceit, // hide buffers in current windows int keep_tabs) // keep current tabs, for ":tab drop file" { int i; win_T *wp, *wpnext; char_u *opened; // Array of weight for which args are open: // 0: not opened // 1: opened in other tab // 2: opened in c...
0
508,368
bool extend_table_list(THD *thd, TABLE_LIST *tables, Prelocking_strategy *prelocking_strategy, bool has_prelocking_list) { bool error= false; LEX *lex= thd->lex; if (thd->locked_tables_mode <= LTM_LOCK_TABLES && ! has_prelocking_list && tables->updating && ...
0
216,965
multi_update::initialize_tables(JOIN *join) { TABLE_LIST *table_ref; DBUG_ENTER("initialize_tables"); if (unlikely((thd->variables.option_bits & OPTION_SAFE_UPDATES) && error_if_full_join(join))) DBUG_RETURN(1); main_table=join->join_tab->table; table_to_update= 0; /* Any update has at ...
1
472,120
int proc_cgroupstats_show(struct seq_file *m, void *v) { struct cgroup_subsys *ss; int i; seq_puts(m, "#subsys_name\thierarchy\tnum_cgroups\tenabled\n"); /* * ideally we don't want subsystems moving around while we do this. * cgroup_mutex is also necessary to guarantee an atomic snapshot of * subsys/hierarch...
0
432,176
static bool addrrange_equal(AddrRange r1, AddrRange r2) { return int128_eq(r1.start, r2.start) && int128_eq(r1.size, r2.size); }
0
225,685
GF_Box *trep_box_new() { ISOM_DECL_BOX_ALLOC(GF_TrackExtensionPropertiesBox, GF_ISOM_BOX_TYPE_TREP); tmp->child_boxes = gf_list_new(); return (GF_Box *)tmp;
0
273,913
static int recv_msg(int sd, char *msg, size_t len, char **cmd, char **argument) { char *ptr; ssize_t bytes; uint8_t *raw = (uint8_t *)msg; /* Clear for every new command. */ memset(msg, 0, len); /* Save one byte (-1) for NUL termination */ bytes = recv(sd, msg, len - 1, 0); if (bytes < 0) { if (EINTR == err...
0
513,150
static int plugin_initialize(MEM_ROOT *tmp_root, struct st_plugin_int *plugin, int *argc, char **argv, bool options_only) { int ret= 1; DBUG_ENTER("plugin_initialize"); mysql_mutex_assert_owner(&LOCK_plugin); uint state= plugin->state; DBUG_ASSERT(state == PLUGIN_IS_UNINITIALIZED...
0
244,168
GF_Err trgr_box_size(GF_Box *s) { u32 pos=0; GF_TrackGroupBox *ptr = (GF_TrackGroupBox *) s; gf_isom_check_position_list(s, ptr->groups, &pos); return GF_OK; }
0
269,307
static av_always_inline int same_block(BlockNode *a, BlockNode *b){ if((a->type&BLOCK_INTRA) && (b->type&BLOCK_INTRA)){ return !((a->color[0] - b->color[0]) | (a->color[1] - b->color[1]) | (a->color[2] - b->color[2])); }else{ return !((a->mx - b->mx) | (a->my - b->my) | (a->ref - b->ref) | ((a->...
0
341,817
search_impl(i_ctx_t *i_ctx_p, bool forward) { os_ptr op = osp; os_ptr op1 = op - 1; uint size = r_size(op); uint count; byte *pat; byte *ptr; byte ch; int incr = forward ? 1 : -1; check_read_type(*op1, t_string); check_read_type(*op, t_string); if (size > r_size(op1)) { /* c...
0
267,963
R_API RBinFile *r_bin_file_find_by_fd(RBin *bin, ut32 bin_fd) { RListIter *iter; RBinFile *bf; r_return_val_if_fail (bin, NULL); r_list_foreach (bin->binfiles, iter, bf) { if (bf->fd == bin_fd) { return bf; } } return NULL; }
0
437,692
static int cx23888_ir_rx_shutdown(struct v4l2_subdev *sd) { struct cx23888_ir_state *state = to_state(sd); struct cx23885_dev *dev = state->dev; mutex_lock(&state->rx_params_lock); /* Disable or slow down all IR Rx circuits and counters */ irqenable_rx(dev, 0); control_rx_enable(dev, false); control_rx_demodul...
0
252,280
int mz_uncompress(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len) { mz_stream stream; int status; memset(&stream, 0, sizeof(stream)); // In case mz_ulong is 64-bits (argh I hate longs). if ((source_len | *pDest_len) > 0xFFFFFFFFU) return MZ_PARA...
0
405,387
static void xfrm_policy_inexact_list_reinsert(struct net *net, struct xfrm_pol_inexact_node *n, u16 family) { unsigned int matched_s, matched_d; struct xfrm_policy *policy, *p; matched_s = 0; matched_d = 0; list_for_each_entry_reverse(policy, &net->xfrm.policy_all, walk.all) { struct hlis...
0
244,204
GF_Err trgr_box_write(GF_Box *s, GF_BitStream *bs) { return gf_isom_box_write_header(s, bs); }
0
366,340
static void *m_start(struct seq_file *m, loff_t *pos) { struct proc_mounts *p = m->private; struct list_head *prev; down_read(&namespace_sem); if (!*pos) { prev = &p->ns->list; } else { prev = &p->cursor.mnt_list; /* Read after we'd reached the end? */ if (list_empty(prev)) return NULL; } return mn...
0
326,912
static struct vidtv_access_unit *vidtv_s302m_access_unit_init(struct vidtv_access_unit *head) { struct vidtv_access_unit *au; au = kzalloc(sizeof(*au), GFP_KERNEL); if (!au) return NULL; if (head) { while (head->next) head = head->next; head->next = au; } return au; }
0
300,735
static int tipc_wait_for_accept(struct socket *sock, long timeo) { struct sock *sk = sock->sk; DEFINE_WAIT_FUNC(wait, woken_wake_function); int err; /* True wake-one mechanism for incoming connections: only * one process gets woken up, not the 'whole herd'. * Since we do not 'race & poll' for established socke...
0
440,899
LogMessageTypeVerbString(MessageType type, int verb) { if (type == X_ERROR) verb = 0; if (logVerbosity < verb && logFileVerbosity < verb) return NULL; switch (type) { case X_PROBED: return X_PROBE_STRING; case X_CONFIG: return X_CONFIG_STRING; case X_DEFAULT: ...
0