idx
int64
func
string
target
int64
366,208
static void lock_mnt_tree(struct mount *mnt) { struct mount *p; for (p = mnt; p; p = next_mnt(p, mnt)) { int flags = p->mnt.mnt_flags; /* Don't allow unprivileged users to change mount flags */ flags |= MNT_LOCK_ATIME; if (flags & MNT_READONLY) flags |= MNT_LOCK_READONLY; if (flags & MNT_NODEV) fla...
0
343,161
static void __exit esp6_fini(void) { if (xfrm6_protocol_deregister(&esp6_protocol, IPPROTO_ESP) < 0) pr_info("%s: can't remove protocol\n", __func__); xfrm_unregister_type(&esp6_type, AF_INET6); }
0
261,902
njs_string_to_c_string(njs_vm_t *vm, njs_value_t *value) { u_char *p, *data, *start; size_t size; if (value->short_string.size != NJS_STRING_LONG) { start = value->short_string.start; size = value->short_string.size; if (size < NJS_STRING_SHORT) { start[size] = '\0'; ...
0
434,091
alist_check_arg_idx(void) { win_T *win; tabpage_T *tp; FOR_ALL_TAB_WINDOWS(tp, win) if (win->w_alist == curwin->w_alist) check_arg_idx(win); }
0
391,645
static void schedule_async_open(struct timeval request_time, struct smb_request *req) { struct deferred_open_record state; struct timeval timeout; timeout = timeval_set(20, 0); ZERO_STRUCT(state); state.delayed_for_oplocks = false; state.async_open = true; if (!request_timed_out(request_time, timeout)) { ...
0
336,538
static bool reds_send_link_error(RedLinkInfo *link, uint32_t error) { struct { SpiceLinkHeader header; SpiceLinkReply reply; } msg; SPICE_VERIFY(sizeof(msg) == sizeof(SpiceLinkHeader) + sizeof(SpiceLinkReply)); msg.header.magic = SPICE_MAGIC; msg.header.size = GUINT32_TO_LE(sizeof(m...
0
440,881
FreeAuditTimer(void) { if (auditTimer != NULL) { /* Force output of pending messages */ TimerForce(auditTimer); TimerFree(auditTimer); auditTimer = NULL; } }
0
310,172
cleanup(void) { int rc; #if NO_LEAKS free_namelist(namelst); _nc_leaks_dump_entry(); #endif if (tmp_fp != 0) fclose(tmp_fp); if (to_remove != 0) { #if HAVE_REMOVE rc = remove(to_remove); #else rc = unlink(to_remove); #endif if (rc != 0) perror(to_remove); } }
0
405,712
static void xemaclite_disable_interrupts(struct net_local *drvdata) { u32 reg_data; /* Disable the Global Interrupt Enable */ xemaclite_writel(XEL_GIER_GIE_MASK, drvdata->base_addr + XEL_GIER_OFFSET); /* Disable the Tx interrupts for the first buffer */ reg_data = xemaclite_readl(drvdata->base_addr + XEL_TSR_OFF...
0
253,725
static unsigned int ccp_queue_buf(struct ccp_data *data, unsigned int from) { struct ccp_sg_workarea *sg_wa = &data->sg_wa; struct ccp_dm_workarea *dm_wa = &data->dm_wa; unsigned int buf_count, nbytes; /* Clear the buffer if setting it */ if (!from) memset(dm_wa->address, 0, dm_wa->length); if (!sg_wa->sg) ...
0
283,753
static void zynq_slcr_register_types(void) { type_register_static(&zynq_slcr_info); }
0
221,505
add_tzdata_args (FlatpakBwrap *bwrap, GFile *runtime_files) { g_autofree char *raw_timezone = flatpak_get_timezone (); g_autofree char *timezone_content = g_strdup_printf ("%s\n", raw_timezone); g_autofree char *localtime_content = g_strconcat ("../usr/share/zoneinfo/", raw_timezone, NULL); g_a...
0
313,760
nv_ver_scrollbar(cmdarg_T *cap) { if (cap->oap->op_type != OP_NOP) clearopbeep(cap->oap); // Even if an operator was pending, we still want to scroll gui_do_scroll(); }
0
253,585
smb2_get_next_mid(struct TCP_Server_Info *server) { __u64 mid; /* for SMB2 we need the current value */ spin_lock(&GlobalMid_Lock); mid = server->CurrentMid++; spin_unlock(&GlobalMid_Lock); return mid; }
0
219,980
int callback_glewlwyd_user_get_session_list (const struct _u_request * request, struct _u_response * response, void * user_data) { struct config_elements * config = (struct config_elements *)user_data; json_t * j_session_list; size_t offset = 0, limit = GLEWLWYD_DEFAULT_LIMIT_SIZE; long int l_converted = 0; c...
0
256,153
void wrapper_libxsmm_spmdm_compute_generic_thread( empty_type_wrapper<bfloat16>, const libxsmm_spmdm_handle* handle, char transA, char transB, const bfloat16* alpha, libxsmm_CSR_sparseslice* A_sparse, const bfloat16* B, char transC, const bfloat16* beta, float* C, int block_id, int tid, int nthreads) { ...
0
225,638
GF_Err rtpo_box_size(GF_Box *s) { s->size += 4; return GF_OK; }
0
453,006
static int nft_fwd_validate(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nft_data **data) { return nft_chain_validate_hooks(ctx->chain, (1 << NF_NETDEV_INGRESS) | (1 << NF_NETDEV_EGRESS)); }
0
261,392
static int decode_sao_type_idx(thread_context* tctx) { logtrace(LogSlice,"# sao_type_idx_luma/chroma\n"); int bit0 = decode_CABAC_bit(&tctx->cabac_decoder, &tctx->ctx_model[CONTEXT_MODEL_SAO_TYPE_IDX]); if (bit0==0) { logtrace(LogSymbols,"$1 sao_type_idx=%d\n",0); return 0;...
0
427,705
cdf_read(const cdf_info_t *info, off_t off, void *buf, size_t len) { size_t siz = CAST(size_t, off + len); if (CAST(off_t, off + len) != CAST(off_t, siz)) goto out; if (info->i_buf != NULL && info->i_len >= siz) { (void)memcpy(buf, &info->i_buf[off], len); return CAST(ssize_t, len); } if (info->i_fd == -1...
0
281,636
void CLASS nokia_load_raw() { uchar *data, *dp; int rev, dwide, row, col, c; rev = 3 * (order == 0x4949); dwide = (raw_width * 5 + 1) / 4; data = (uchar *) malloc (dwide*2); merror (data, "nokia_load_raw()"); #ifdef LIBRAW_LIBRARY_BUILD try { #endif for (row=0; row < raw_height; row++) { #ifdef LIBRA...
0
413,650
static inline bool get_next_i(IterCtx *ctx, size_t *next_i) { (*next_i)++; ut64 cur_addr = *next_i + ctx->start_addr; if (ctx->fcn) { if (!ctx->cur_bb) { ctx->path = r_list_new (); ctx->switch_path = r_list_new (); ctx->bbl = r_list_clone (ctx->fcn->bbs); ctx->cur_bb = r_anal_get_block_at (ctx->fcn->an...
0
314,519
static void parse_bandwidth_info(pj_scanner *scanner, pjmedia_sdp_bandw *bandw, volatile parse_context *ctx) { pj_str_t str; ctx->last_error = PJMEDIA_SDP_EINBANDW; /* b= */ pj_scan_advance_n(scanner, 2, SKIP_WS); /* modifier */ pj_scan_get_until_ch(scanner, ':', &bandw->modifier); p...
0
248,241
DLLIMPORT cfg_t *cfg_getnsec(cfg_t *cfg, const char *name, unsigned int index) { return cfg_opt_getnsec(cfg_getopt(cfg, name), index); }
0
225,813
GF_Err stss_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 i; GF_SyncSampleBox *ptr = (GF_SyncSampleBox *)s; e = gf_isom_full_box_write(s, bs); if (e) return e; gf_bs_write_u32(bs, ptr->nb_entries); for (i = 0; i < ptr->nb_entries; i++) { gf_bs_write_u32(bs, ptr->sampleNumbers[i]); } return GF_OK; }
0
218,768
static MagickBooleanType ReadPSDLayersInternal(Image *image, const ImageInfo *image_info,const PSDInfo *psd_info, const MagickBooleanType skip_layers,ExceptionInfo *exception) { char type[4]; LayerInfo *layer_info; MagickSizeType size; MagickBooleanType status; ssize_t i; ssize_...
0
242,938
static int ssl_prepare_record_content( mbedtls_ssl_context *ssl, mbedtls_record *rec ) { int ret, done = 0; MBEDTLS_SSL_DEBUG_BUF( 4, "input record from network", rec->buf, rec->buf_len ); #if defined(MBEDTLS_SSL_HW_RECORD_ACCEL) if( mbedtl...
0
359,277
DEFUN (no_neighbor_peer_group, no_neighbor_peer_group_cmd, "no neighbor WORD peer-group", NO_STR NEIGHBOR_STR "Neighbor tag\n" "Configure peer-group\n") { struct peer_group *group; group = peer_group_lookup (vty->index, argv[0]); if (group) peer_group_delete (group);...
0
488,418
static __init void vdso_setup_trampolines(struct lib32_elfinfo *v32, struct lib64_elfinfo *v64) { /* * Find signal trampolines */ #ifdef CONFIG_PPC64 vdso64_rt_sigtramp = find_function64(v64, "__kernel_sigtramp_rt64"); #endif vdso32_sigtramp = find_function32(v32, "__kernel_sigtramp32"); vdso32_rt_si...
0
522,325
static void RecBlk(GmfMshSct *msh, const void *blk, int siz) { // Copy this line-block into the main mesh buffer if(siz) { memcpy(&msh->blk[ msh->pos ], blk, (size_t)(siz * WrdSiz)); msh->pos += siz * WrdSiz; } // When the buffer is full or this procedure is APIF77ed with a 0 size, // flu...
0
273,894
static void handle_CLNT(ctrl_t *ctrl, char *arg) { send_msg(ctrl->sd, "200 CLNT\r\n"); }
0
261,209
MqttProp* MqttClient_PropsAdd(MqttProp **head) { return MqttProps_Add(head); }
0
248,326
DLLIMPORT unsigned int cfg_opt_size(cfg_opt_t *opt) { if (opt) return opt->nvalues; return 0; }
0
473,993
st_init_strcasetable_with_size(st_index_t size) { return st_init_table_with_size(&type_strcasehash, size); }
0
244,038
GF_Err trik_box_size(GF_Box *s) { GF_TrickPlayBox *ptr = (GF_TrickPlayBox *) s; ptr->size += 8 * ptr->entry_count; return GF_OK; }
0
261,947
njs_encode_hex(njs_str_t *dst, const njs_str_t *src) { u_char *p, c; size_t i, len; const u_char *start; static const u_char hex[16] = "0123456789abcdef"; len = src->length; start = src->start; p = dst->start; for (i = 0; i < len; i++) { c = start[i]; ...
0
195,291
void Compute(OpKernelContext* context) override { const Tensor& rhs = context->input(1); // We always return the input ref. context->forward_ref_input_to_ref_output(0, 0); // We can't always know how this value will be used downstream, so make // conservative assumptions in specifying constraint...
1
223,384
static void do_utfpeakcharback_invalid(compiler_common *common) { /* Peak a character back. Does not modify STR_PTR. */ DEFINE_COMPILER; sljit_s32 i; sljit_s32 has_cmov = sljit_has_cpu_feature(SLJIT_HAS_CMOV); struct sljit_jump *jump[2]; struct sljit_label *two_byte_entry; struct sljit_label *three_byte_entry; struct s...
0
346,455
source_runtime(char_u *name, int flags) { return source_in_path(p_rtp, name, flags, NULL); }
0
90,151
WifiNetwork* GetWifiNetworkByName(const std::string& name) { for (size_t i = 0; i < wifi_networks_.size(); ++i) { if (wifi_networks_[i]->name().compare(name) == 0) { return wifi_networks_[i]; } } return NULL; }
0
489,210
static int hfsplus_cat_build_record(hfsplus_cat_entry *entry, u32 cnid, struct inode *inode) { if (S_ISDIR(inode->i_mode)) { struct hfsplus_cat_folder *folder; folder = &entry->folder; memset(folder, 0, sizeof(*folder)); folder->type = cpu_to_be16(HFSPLUS_FOLDER); folder->id = cpu_to_be32(inode->i_ino); H...
0
269,489
static void TIFFReadPhotoshopLayers(const ImageInfo *image_info,Image *image, ExceptionInfo *exception) { const char *option; const StringInfo *profile; CustomStreamInfo *custom_stream; Image *layers; ImageInfo *clone_info; PhotoshopProfile photoshop_profile; PSDInfo in...
0
221,175
GF_HEVCConfig *gf_odf_hevc_cfg_read(u8 *dsi, u32 dsi_size, Bool is_lhvc) { GF_BitStream *bs = gf_bs_new(dsi, dsi_size, GF_BITSTREAM_READ); GF_HEVCConfig *cfg = gf_odf_hevc_cfg_read_bs(bs, is_lhvc); gf_bs_del(bs); return cfg; }
0
252,374
void *mz_zip_reader_extract_file_to_heap(mz_zip_archive *pZip, const char *pFilename, size_t *pSize, mz_uint flags) { int file_index = mz_zip_reader_locate_file(pZip, pFilename, NULL, flags); if (file_index < 0) { if (pSize) *pSiz...
0
310,006
set_background_color(NCURSES_SP_DCLx int bg, NCURSES_SP_OUTC outc) { #ifdef USE_TERM_DRIVER CallDriver_3(SP_PARM, td_color, FALSE, bg, outc); #else if (set_a_background) { TPUTS_TRACE("set_a_background"); NCURSES_SP_NAME(tputs) (NCURSES_SP_ARGx TIPARM_1(set_a_background, bg), 1, outc); } else { T...
0
440,879
LogMessageVerb(MessageType type, int verb, const char *format, ...) { va_list ap; va_start(ap, format); LogVMessageVerb(type, verb, format, ap); va_end(ap); }
0
224,237
R_API ut32 r_io_bank_first(RIO *io) { ut32 bankid = -1; r_id_storage_get_lowest (io->banks, &bankid); return bankid; }
0
366,174
static struct ns_common *mntns_get(struct task_struct *task) { struct ns_common *ns = NULL; struct nsproxy *nsproxy; task_lock(task); nsproxy = task->nsproxy; if (nsproxy) { ns = &nsproxy->mnt_ns->ns; get_mnt_ns(to_mnt_ns(ns)); } task_unlock(task); return ns; }
0
413,611
R_API int r_core_anal_search_xrefs(RCore *core, ut64 from, ut64 to, PJ *pj, int rad) { const bool cfg_debug = r_config_get_b (core->config, "cfg.debug"); bool cfg_anal_strings = r_config_get_i (core->config, "anal.strings"); ut64 at; int count = 0; int bsz = 8096; RAnalOp op = { 0 }; if (from == to) { return ...
0
310,171
is_csi(const char *s) { int result = 0; if (s != 0) { if (UChar(s[0]) == CSI) result = 1; else if (s[0] == ESC && s[1] == L_BRACK) result = 2; } return result; }
0
244,133
GF_Err ihdr_box_read(GF_Box *s,GF_BitStream *bs) { GF_J2KImageHeaderBox *ptr = (GF_J2KImageHeaderBox *) s; ISOM_DECREASE_SIZE(s, 14) ptr->height = gf_bs_read_u32(bs); ptr->width = gf_bs_read_u32(bs); ptr->nb_comp = gf_bs_read_u16(bs); ptr->bpc = gf_bs_read_u8(bs); ptr->Comp = gf_bs_read_u8(bs); ptr->UnkC = gf...
0
389,702
alloc_tv(void) { return ALLOC_CLEAR_ONE(typval_T); }
0
244,076
GF_Err fiin_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem) { FDItemInformationBox *ptr = (FDItemInformationBox *)s; switch(a->type) { case GF_ISOM_BOX_TYPE_PAEN: BOX_FIELD_LIST_ASSIGN(partition_entries) return GF_OK; case GF_ISOM_BOX_TYPE_SEGR: BOX_FIELD_ASSIGN(session_info, FDSessionGroupBox) return GF_OK...
0
376,347
gpg_ctx_op_wait (struct _GpgCtx *gpg) { #ifndef G_OS_WIN32 sigset_t mask, omask; pid_t retval; gint status; if (!gpg->exited) { sigemptyset (&mask); sigaddset (&mask, SIGALRM); sigprocmask (SIG_BLOCK, &mask, &omask); alarm (1); retval = waitpid (gpg->pid, &status, 0); alarm (0); sigprocmask (SIG_SETM...
0
332,373
free_operatorfunc_option(void) { # ifdef FEAT_EVAL free_callback(&opfunc_cb); # endif }
0
349,882
static int hw_atl_utils_mpi_set_state(struct aq_hw_s *self, enum hal_atl_utils_fw_state_e state) { u32 val = aq_hw_read_reg(self, HW_ATL_MPI_CONTROL_ADR); struct hw_atl_utils_mbox_header mbox; u32 transaction_id = 0; int err = 0; if (state == MPI_RESET) { hw_atl_utils_mpi_read_mbox(self, &mbox); tr...
0
244,012
GF_Err rvcc_box_size(GF_Box *s) { GF_RVCConfigurationBox *ptr = (GF_RVCConfigurationBox *)s; ptr->size += 2; if (! ptr->predefined_rvc_config) ptr->size += 2; return GF_OK; }
0
387,762
int InstanceKlass::find_method_index(const Array<Method*>* methods, const Symbol* name, const Symbol* signature, OverpassLookupMode overpass_mode, StaticLookupMode static_m...
0
512,883
longlong val_datetime_packed(THD *thd) { Datetime::Options_cmp opt(thd); return has_value() ? Datetime(thd, this, opt).to_packed() : 0; }
0
255,784
create_user_authz(authz_full_t *authz, const char *repository, const char *user, apr_pool_t *result_pool, apr_pool_t *scratch_pool) { int i; node_t *root = create_node(NULL, result_pool); construction_context_t *ctx = create_construction_cont...
0
267,842
vm_run_global (const ecma_compiled_code_t *bytecode_p, /**< pointer to bytecode to run */ ecma_object_t *function_object_p) /**< function object if available */ { #if JERRY_BUILTIN_REALMS ecma_object_t *global_obj_p = (ecma_object_t *) ecma_op_function_get_realm (bytecode_p); #else /* !JERRY_BUILTIN_RE...
0
385,853
SYSCALL_DEFINE5(fchownat, int, dfd, const char __user *, filename, uid_t, user, gid_t, group, int, flag) { struct path path; int error = -EINVAL; int lookup_flags; if ((flag & ~(AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH)) != 0) goto out; lookup_flags = (flag & AT_SYMLINK_NOFOLLOW) ? 0 : LOOKUP_FOLLOW; if (flag & ...
0
241,364
TensorShapes GetOutputMatrixShapes( const TensorShapes& input_matrix_shapes) const final { return TensorShapes({TensorShape({input_matrix_shapes[0].dim_size(1), input_matrix_shapes[1].dim_size(1)})}); }
0
312,465
qf_goto_tabwin_with_file(int fnum) { tabpage_T *tp; win_T *wp; FOR_ALL_TAB_WINDOWS(tp, wp) if (wp->w_buffer->b_fnum == fnum) { goto_tabpage_win(tp, wp); return TRUE; } return FALSE; }
0
337,817
struct sctp_chunk *sctp_make_shutdown_ack(const struct sctp_association *asoc, const struct sctp_chunk *chunk) { struct sctp_chunk *retval; retval = sctp_make_control(asoc, SCTP_CID_SHUTDOWN_ACK, 0, 0, GFP_ATOMIC); /* RFC 2960 6.4 Multi-homed SCTP Endpoints * * An endpoint SHOULD transmit reply c...
0
390,578
SetVirtualModMap( XkbSrvInfoPtr xkbi, xkbSetMapReq * req, xkbVModMapWireDesc * wire, XkbChangesPtr changes) { register unsigned i,first,last; XkbServerMapPtr srv = xkbi->desc->server; first= req->firstVModMapKey; last= req->firstVModMapKey+req->nVModMapKeys-1; bzero(&srv->vmodmap[first],req-...
0
459,090
static int tcf_block_offload_bind(struct tcf_block *block, struct Qdisc *q, struct tcf_block_ext_info *ei, struct netlink_ext_ack *extack) { struct net_device *dev = q->dev_queue->dev; int err; down_write(&block->cb_lock); /* If tc offload feature is disabled and the block we try to bind * to alread...
0
463,182
static void annotate_state_unset_scope(annotate_state_t *state) { init_internal(); if (state->ourmailbox) mailbox_close(&state->ourmailbox); state->mailbox = NULL; if (state->ourmbentry) mboxlist_entry_free(&state->ourmbentry); state->mbentry = NULL; state->uid = 0; state-...
0
261,191
const char* MqttClient_GetProtocolVersionString(MqttClient *client) { const char* str = NULL; int ver = MqttClient_GetProtocolVersion(client); switch (ver) { case MQTT_CONNECT_PROTOCOL_LEVEL_4: return "v3.1.1"; #ifdef WOLFMQTT_V5 case MQTT_CONNECT_PROTOCOL_LEVEL_5: ...
0
220,241
Status Graph::AddWhileContext(StringPiece frame_name, std::vector<Node*> enter_nodes, std::vector<Node*> exit_nodes, OutputTensor cond_output, std::vector<OutputTensor> body_inputs, ...
0
462,250
static void* clone_sockaddr_attr(pj_pool_t *pool, const void *src) { pj_stun_sockaddr_attr *dst = PJ_POOL_ALLOC_T(pool, pj_stun_sockaddr_attr); pj_memcpy(dst, src, sizeof(pj_stun_sockaddr_attr)); return (void*)dst; }
0
402,631
SECU_FilePasswd(PK11SlotInfo *slot, PRBool retry, void *arg) { cms_context *cms = (cms_context *)arg; int fd; char *file = NULL; char *token_name = slot ? PK11_GetTokenName(slot) : NULL; struct token_pass *phrases = NULL; size_t nphrases = 0; char *phrase = NULL; char *start; char *ret = NULL; char *path; i...
0
231,691
TEST_F(QuicServerTransportTest, ReceiveConnectionCloseTwice) { auto qLogger = std::make_shared<FileQLogger>(VantagePoint::Server); server->getNonConstConn().qLogger = qLogger; ShortHeader header( ProtectionType::KeyPhaseZero, *server->getConn().serverConnectionId, clientNextAppDataPacketNum++); ...
0
220,847
inline void GetActivationMinMax(FusedActivationFunctionType ac, float* output_activation_min, float* output_activation_max) { switch (ac) { case FusedActivationFunctionType::kNone: *output_activation_min = std::numeric_limits<float>::lowest(); ...
0
409,497
term_cursor_mode(int forced) { static int showing_mode = -1; char_u *p; // Only do something when redrawing the screen and we can restore the // mode. if (!full_screen || *T_CEI == NUL) { # ifdef FEAT_TERMRESPONSE if (forced && initial_cursor_shape > 0) // Restore to initial values. ...
0
474,460
HandleToObject( TPMI_DH_OBJECT handle // IN: handle of the object ) { UINT32 index; // Return NULL if the handle references a permanent handle because there is no // associated OBJECT. if(HandleGetType(handle) == TPM_HT_PERMANENT) return NULL; // In this imple...
0
262,034
Proto_ConcatXMLStrings(gchar *str1, gchar *str2) { gchar *newStr; if (NULL == str2) { return str1; } newStr = g_strdup_printf("%s%s", str1, str2); g_free(str1); g_free(str2); return newStr; }
0
221,636
std::unique_ptr<FunctionPass> CreateSymbolicShapeOptimizationPass( bool constraints_only) { return std::make_unique<SymbolicShapeOptimizationPass>(constraints_only); }
0
254,723
njs_typed_array_from(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { double num; int64_t length, i; njs_int_t ret; njs_value_t *this, *source, *mapfn; njs_value_t arguments[3], retval; njs_function_t *function; nj...
0
139,223
gfx::Rect OverlayWindowViews::GetPlayPauseControlsBounds() { return play_pause_controls_view_->GetMirroredBounds(); }
0
210,700
static struct dir *squashfs_opendir(unsigned int block_start, unsigned int offset, struct inode **i) { squashfs_dir_header_2 dirh; char buffer[sizeof(squashfs_dir_entry_2) + SQUASHFS_NAME_LEN + 1] __attribute__((aligned)); squashfs_dir_entry_2 *dire = (squashfs_dir_entry_2 *) buffer; long long start; int bytes;...
1
90,810
UpdateAccessTimeTask( QuotaManager* manager, const GURL& origin, StorageType type, base::Time accessed_time) : DatabaseTaskBase(manager), origin_(origin), type_(type), accessed_time_(accessed_time) {}
0
487,649
static int set_one_prio(struct task_struct *p, int niceval, int error) { int no_nice; if (p->uid != current->euid && p->euid != current->euid && !capable(CAP_SYS_NICE)) { error = -EPERM; goto out; } if (niceval < task_nice(p) && !can_nice(p, niceval)) { error = -EACCES; goto out; } no_nice = security_t...
0
242,616
Status Put(Tuple* tuple) { std::unique_lock<std::mutex> lock(mu_); std::size_t tuple_bytes = GetTupleBytes(*tuple); // Sanity check so that we don't block for ever below if (memory_limit_ > 0 && tuple_bytes > memory_limit_) { return Status( errors::ResourceExhausted("Attempted to ins...
0
508,856
void unsafe_mixed_statement(LEX::enum_stmt_accessed_table a, LEX::enum_stmt_accessed_table b, uint condition) { int type= 0; int index= (1U << a) | (1U << b); for (type= 0; type < 256; type++) { if ((type & index) == index) { binlog_unsafe_map[type] |= condition; ...
0
225,112
bool OpDefEqual(const OpDef& o1, const OpDef& o2) { // attr order doesn't matter. // Compare it separately here instead of serializing below. if (!RepeatedAttrDefEqual(o1.attr(), o2.attr())) return false; // `control_output` order doesn't matter. std::set<string> control_output1(o1.control_output().begin(), ...
0
458,923
get_c_indent(void) { pos_T cur_curpos; int amount; int scope_amount; int cur_amount = MAXCOL; colnr_T col; char_u *theline; char_u *linecopy; pos_T *trypos; pos_T *comment_pos; pos_T *tryposBrace = NULL; pos_T tryposCopy; pos_T our_paren_pos; char_u *start; int...
0
317,295
static void selinux_sock_graft(struct sock *sk, struct socket *parent) { struct inode_security_struct *isec = inode_security_novalidate(SOCK_INODE(parent)); struct sk_security_struct *sksec = sk->sk_security; if (sk->sk_family == PF_INET || sk->sk_family == PF_INET6 || sk->sk_family == PF_UNIX) isec->sid =...
0
223,422
static SLJIT_INLINE unsigned int char_othercase(compiler_common *common, unsigned int c) { /* Returns with the othercase. */ #ifdef SUPPORT_UNICODE if ((common->utf || common->ucp) && c > 127) return UCD_OTHERCASE(c); #endif return TABLE_GET(c, common->fcc, c); }
0
453,040
static void nft_fwd_neigh_eval(const struct nft_expr *expr, struct nft_regs *regs, const struct nft_pktinfo *pkt) { struct nft_fwd_neigh *priv = nft_expr_priv(expr); void *addr = &regs->data[priv->sreg_addr]; int oif = regs->data[priv->sreg_dev]; unsigned int verdict = NF_STOLEN; struct sk_buff *...
0
359,301
DEFUN (clear_ip_bgp_instance_all_ipv4_in_prefix_filter, clear_ip_bgp_instance_all_ipv4_in_prefix_filter_cmd, "clear ip bgp view WORD * ipv4 (unicast|multicast) in prefix-filter", CLEAR_STR IP_STR BGP_STR "Clear all peers\n" "Address family\n" "Address Family modif...
0
384,286
gs_heap_resize_string(gs_memory_t * mem, byte * data, uint old_num, uint new_num, client_name_t cname) { if (gs_heap_object_type(mem, data) != &st_bytes) lprintf2("%s: resizing non-string 0x%lx!\n", client_name_string(cname), (ulong) data); return gs_heap_resize_ob...
0
238,314
static void dummy_free(struct digest *d) {}
0
240,271
shift_delete_registers() { int n; y_current = &y_regs[9]; free_yank_all(); // free register nine for (n = 9; n > 1; --n) y_regs[n] = y_regs[n - 1]; y_current = &y_regs[1]; if (!y_append) y_previous = y_current; y_regs[1].y_array = NULL; // set register one to empty }
0
508,895
LEX::LEX() : explain(NULL), result(0), arena_for_set_stmt(0), mem_root_for_set_stmt(0), option_type(OPT_DEFAULT), context_analysis_only(0), sphead(0), is_lex_started(0), limit_rows_examined_cnt(ULONGLONG_MAX) { init_dynamic_array2(&plugins, sizeof(plugin_ref), plugins_static_buffer, ...
0
312,507
qf_view_result(int split) { qf_info_T *qi = &ql_info; if (IS_LL_WINDOW(curwin)) qi = GET_LOC_LIST(curwin); if (qf_list_empty(qf_get_curlist(qi))) { emsg(_(e_no_errors)); return; } if (split) { // Open the selected entry in a new window qf_jump_newwin(qi, 0, (long)curwin->w_cursor.l...
0
247,125
void gf_fs_print_stats(GF_FilterSession *fsess) { u64 run_time=0, active_time=0, nb_tasks=0, nb_filters=0; u32 i, count; GF_LOG(GF_LOG_INFO, GF_LOG_APP, ("\n")); gf_mx_p(fsess->filters_mx); count=gf_list_count(fsess->filters); for (i=0; i<count; i++) { GF_Filter *f = gf_list_get(fsess->filters, i); if (f->m...
0
202,304
find_match_text(colnr_T startcol, int regstart, char_u *match_text) { colnr_T col = startcol; int c1, c2; int len1, len2; int match; for (;;) { match = TRUE; len2 = MB_CHAR2LEN(regstart); // skip regstart for (len1 = 0; match_text[len1] != NUL; len1 += MB_CHAR2LEN(c1)) { c1...
1
437,297
compile_length_quantifier_node(QuantNode* qn, regex_t* reg) { int len, mod_tlen; int infinite = IS_REPEAT_INFINITE(qn->upper); enum QuantBodyEmpty empty_info = qn->body_empty_info; int tlen = compile_length_tree(NODE_QUANT_BODY(qn), reg); if (tlen < 0) return tlen; if (tlen == 0) return 0; /* anychar re...
0
274,728
callbacks_drawingarea_button_release_event (GtkWidget *widget, GdkEventButton *event) { gint index; if (event->type != GDK_BUTTON_RELEASE) return TRUE; switch (screen.state) { case IN_MOVE: screen.off_x = 0; screen.off_y = 0; render_refresh_rendered_image_on_screen (); callbacks_switch_to_normal_tool_cu...
0