idx
int64
func
string
target
int64
441,830
SProcXkbPerClientFlags(ClientPtr client) { REQUEST(xkbPerClientFlagsReq); swaps(&stuff->length); REQUEST_SIZE_MATCH(xkbPerClientFlagsReq); swaps(&stuff->deviceSpec); swapl(&stuff->change); swapl(&stuff->value); swapl(&stuff->ctrlsToChange); swapl(&stuff->autoCtrls); swapl(&stuff->au...
0
223,429
static SLJIT_INLINE void set_jumps(jump_list *list, struct sljit_label *label) { while (list) { /* sljit_set_label is clever enough to do nothing if either the jump or the label is NULL. */ SET_LABEL(list->jump, label); list = list->next; } }
0
291,780
static void free_clt(struct rtrs_clt_sess *clt) { free_permits(clt); free_percpu(clt->pcpu_path); /* * release callback will free clt and destroy mutexes in last put */ device_unregister(&clt->dev); }
0
387,829
InstanceKlass* InstanceKlass::nest_host(Symbol* validationException, TRAPS) { InstanceKlass* nest_host_k = _nest_host; if (nest_host_k == NULL) { // need to resolve and save our nest-host class. This could be attempted // concurrently but as the result is idempotent and we don't use the class // then we...
0
309,985
NCURSES_SP_NAME(init_pair) (NCURSES_SP_DCLx NCURSES_PAIRS_T pair, NCURSES_COLOR_T f, NCURSES_COLOR_T b) { return _nc_init_pair(SP_PARM, pair, f, b); }
0
338,104
bool WasmBinaryBuilder::maybeVisitRefCast(Expression*& out, uint32_t code) { if (code == BinaryConsts::RefCast) { auto* rtt = popNonVoidExpression(); auto* ref = popNonVoidExpression(); out = Builder(wasm).makeRefCast(ref, rtt); return true; } else if (code == BinaryConsts::RefCastStatic) { auto...
0
386,485
void DL_Dxf::writePolylineEnd(DL_WriterA& dw) { if (version==DL_VERSION_2000) { } else { dw.entity("SEQEND"); } }
0
238,771
fuzzy_match_func_sort(fuzmatch_str_T *fm, int sz) { // Sort the list by the descending order of the match score qsort((void *)fm, (size_t)sz, sizeof(fuzmatch_str_T), fuzzy_match_func_compare); }
0
386,518
void DL_Dxf::writeLayer(DL_WriterA& dw, const DL_LayerData& data, const DL_Attributes& attrib) { if (data.name.empty()) { std::cerr << "DL_Dxf::writeLayer: " << "Layer name must not be empty\n"; return; } int color = attrib.getColor()...
0
270,372
static uint32_t ok_png_get_height_for_pass(const ok_png_decoder *decoder) { const uint32_t h = decoder->png->height; if (decoder->interlace_method == 0) { return h; } switch (decoder->interlace_pass) { case 1: return (h + 7) / 8; case 2: return (h + 7) / 8; case 3: retur...
0
222,858
Status GraphProperties::UpdateEnter(SymbolicShapeRefiner* shape_refiner, const NodeDef* node, bool* new_shapes) { InferenceContext* ic = shape_refiner->GetContext(node); if (!ic) { TF_RETURN_IF_ERROR(shape_refiner->UpdateNode(node, new_shapes)); ic = shape_refiner->GetCon...
0
462,243
static void PUTVAL16H(pj_uint8_t *buf, unsigned pos, pj_uint16_t hval) { buf[pos+0] = (pj_uint8_t) ((hval & 0xFF00) >> 8); buf[pos+1] = (pj_uint8_t) ((hval & 0x00FF) >> 0); }
0
512,735
bool Item_func_case::date_op(THD *thd, MYSQL_TIME *ltime, date_mode_t fuzzydate) { DBUG_ASSERT(fixed == 1); Item *item= find_item(); if (!item) return (null_value= true); Datetime_truncation_not_needed dt(thd, item, fuzzydate); return (null_value= dt.copy_to_mysql_time(ltime, mysql_timestamp_type())); }
0
512,411
bool vcol_assignment_allowed_value() const { return vcol_assignment_ok; }
0
328,921
R_API void r_bin_java_bootstrap_method_argument_free(void /*RBinJavaBootStrapArgument*/ *b) { RBinJavaBootStrapArgument *bsm_arg = b; if (bsm_arg) { RBinJavaCPTypeMetas *tm = (RBinJavaCPTypeMetas*)bsm_arg->argument_info_cp_obj; if (tm) { if (tm && (size_t)(tm->allocs) > 1024 && tm->allocs->delete_obj) { tm...
0
359,558
bgp_open_receive (struct peer *peer, bgp_size_t size) { int ret; u_char version; u_char optlen; u_int16_t holdtime; u_int16_t send_holdtime; as_t remote_as; struct peer *realpeer; struct in_addr remote_id; int capability; u_int8_t notify_data_remote_as[2]; u_int8_t notify_data_remote_id[4]; rea...
0
451,882
static uint_fast32_t jpc_abstorelstepsize(jpc_fix_t absdelta, int scaleexpn) { int p; uint_fast32_t mant; uint_fast32_t expn; int n; if (absdelta < 0) { return UINT_FAST32_MAX; } p = jpc_fix_firstone(absdelta) - JPC_FIX_FRACBITS; n = 11 - jpc_fix_firstone(absdelta); mant = ((n < 0) ? (absdelta >> (-n)) : (...
0
343,325
static int safe_fd_isset(const int fd, const fd_set * const fds) { if (fd == -1) { return 0; } return FD_ISSET(fd, fds); }
0
202,082
R_API RBinJavaAttrInfo *r_bin_java_bootstrap_methods_attr_new(RBinJavaObj *bin, ut8 *buffer, ut64 sz, ut64 buf_offset) { ut32 i = 0; RBinJavaBootStrapMethod *bsm = NULL; ut64 offset = 0; RBinJavaAttrInfo *attr = r_bin_java_default_attr_new (bin, buffer, sz, buf_offset); offset += 6; if (attr) { attr->type = R_B...
1
226,135
GF_Err dmax_box_size(GF_Box *s) { s->size += 4; return GF_OK; }
0
253,590
smb2_is_status_io_timeout(char *buf) { struct smb2_hdr *shdr = (struct smb2_hdr *)buf; if (shdr->Status == STATUS_IO_TIMEOUT) return true; else return false; }
0
282,882
int rsi_send_rx_filter_frame(struct rsi_common *common, u16 rx_filter_word) { struct rsi_mac_frame *cmd_frame; struct sk_buff *skb; rsi_dbg(MGMT_TX_ZONE, "Sending RX filter frame\n"); skb = dev_alloc_skb(FRAME_DESC_SZ); if (!skb) { rsi_dbg(ERR_ZONE, "%s: Failed in allocation of skb\n", __func__); return -...
0
267,921
char *ogs_nas_5gs_suci_from_mobile_identity( ogs_nas_5gs_mobile_identity_t *mobile_identity) { ogs_nas_5gs_mobile_identity_suci_t *mobile_identity_suci = NULL; ogs_plmn_id_t plmn_id; char tmp[OGS_NAS_MAX_SCHEME_OUTPUT_LEN*2+1]; char routing_indicator[5]; char *suci = NULL; int scheme_out...
0
281,135
__xfrm4_selector_match(const struct xfrm_selector *sel, const struct flowi *fl) { const struct flowi4 *fl4 = &fl->u.ip4; return addr4_match(fl4->daddr, sel->daddr.a4, sel->prefixlen_d) && addr4_match(fl4->saddr, sel->saddr.a4, sel->prefixlen_s) && !((xfrm_flowi_dport(fl, &fl4->uli) ^ sel->dport) & sel->dport_ma...
0
210,571
int cx23888_ir_probe(struct cx23885_dev *dev) { struct cx23888_ir_state *state; struct v4l2_subdev *sd; struct v4l2_subdev_ir_parameters default_params; int ret; state = kzalloc(sizeof(struct cx23888_ir_state), GFP_KERNEL); if (state == NULL) return -ENOMEM; spin_lock_init(&state->rx_kfifo_lock); if (kfifo_...
1
336,585
static red::shared_ptr<RedVDIReadBuf> vdi_read_buf_new(RedCharDeviceVDIPort *dev) { auto buf = red::make_shared<RedVDIReadBuf>(); buf->dev = dev; return buf; }
0
202,892
void dostor(char *name, const int append, const int autorename) { ULHandler ulhandler; int f; const char *ul_name = NULL; const char *atomic_file = NULL; off_t filesize = (off_t) 0U; struct stat st; double started = 0.0; signed char overwrite = 0; int overflow = 0; int ret = -1; ...
1
310,177
drv_rescol(TERMINAL_CONTROL_BLOCK * TCB) { bool result = FALSE; SCREEN *sp; AssertTCB(); SetSP(); if (orig_pair != 0) { NCURSES_PUTP2("orig_pair", orig_pair); result = TRUE; } return result; }
0
369,422
static inline bool __io_fill_cqe_req(struct io_kiocb *req, s32 res, u32 cflags) { trace_io_uring_complete(req->ctx, req, req->user_data, res, cflags); return __io_fill_cqe(req->ctx, req->user_data, res, cflags); }
0
512,763
bool val_native_with_conversion_from_item(THD *thd, Item *item, Native *to, const Type_handler *handler) { DBUG_ASSERT(is_fixed()); return null_value= item->val_native_with_conversion(thd, to, handler); }
0
448,919
int ZEXPORT inflateCopy(dest, source) z_streamp dest; z_streamp source; { struct inflate_state FAR *state; struct inflate_state FAR *copy; unsigned char FAR *window; unsigned wsize; /* check input */ if (inflateStateCheck(source) || dest == Z_NULL) return Z_STREAM_ERROR; state = (st...
0
273,931
static void handle_TYPE(ctrl_t *ctrl, char *argument) { char type[24] = "200 Type set to I.\r\n"; char unknown[] = "501 Invalid argument to TYPE.\r\n"; if (!argument) argument = "Z"; switch (argument[0]) { case 'A': ctrl->type = TYPE_A; /* ASCII */ break; case 'I': ctrl->type = TYPE_I; /* IMAGE/BINARY...
0
386,562
void DL_Dxf::endSequence(DL_CreationInterface* creationInterface) { creationInterface->endSequence(); }
0
389,741
init_tv(typval_T *varp) { if (varp != NULL) CLEAR_POINTER(varp); }
0
474,070
koi8_u_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED) { if (code < 256) return ENC_IS_KOI8_U_CTYPE(code, ctype); else return FALSE; }
0
346,417
ex_runtime(exarg_T *eap) { char_u *arg = eap->arg; char_u *p = skiptowhite(arg); int len = (int)(p - arg); int flags = eap->forceit ? DIP_ALL : 0; if (STRNCMP(arg, "START", len) == 0) { flags += DIP_START + DIP_NORTP; arg = skipwhite(arg + len); } else if (STRNCMP(arg, "OPT"...
0
512,512
longlong Item_func_between::val_int_cmp_native() { THD *thd= current_thd; const Type_handler *h= m_comparator.type_handler(); NativeBuffer<STRING_BUFFER_USUAL_SIZE> value, a, b; if (val_native_with_conversion_from_item(thd, args[0], &value, h)) return 0; bool ra= args[1]->val_native_with_conversion(thd, &...
0
224,578
Status EinsumShape(shape_inference::InferenceContext* c) { // We assume that the equation has a valid format. Either (x),(y)->(z) // or (x)->(z), where each of (x), (y) and (z) are concatenation of zero or // more latin alphabets and contains at most one ellipsis ('...'). string equation; TF_RETURN_IF_ERROR(c...
0
259,612
void HierarchicalBitmapRequester::ResetToStartOfImage(void) { #if ACCUSOFT_CODE for(UBYTE i = 0;i < m_ucCount;i++) { m_pulY[i] = 0; m_pulReadyLines[i] = 0; } // assert(m_pLargestScale); // Now iterate through the tree. m_pLargestScale->ResetToStartOfImage(); #endif }
0
313,772
nv_abbrev(cmdarg_T *cap) { if (cap->cmdchar == K_DEL || cap->cmdchar == K_KDEL) cap->cmdchar = 'x'; // DEL key behaves like 'x' // in Visual mode these commands are operators if (VIsual_active) v_visop(cap); else nv_optrans(cap); }
0
270,369
static void ok_inflater_make_huffman_tree_from_array(ok_inflater_huffman_tree *tree, const uint8_t *code_length, int length) { tree->bits = 1; // Count the number of codes for each code length. // Let code_length_count[n] be the number of codes of length...
0
207,755
PHP_FUNCTION(openssl_encrypt) { zend_bool raw_output = 0; char *data, *method, *password, *iv = ""; int data_len, method_len, password_len, iv_len = 0, max_iv_len; const EVP_CIPHER *cipher_type; EVP_CIPHER_CTX cipher_ctx; int i, outlen, keylen; unsigned char *outbuf, *key; zend_bool free_iv; if (zend_parse_pa...
1
225,742
void stri_box_del(GF_Box *s) { GF_SubTrackInformationBox *ptr = (GF_SubTrackInformationBox *)s; if (ptr == NULL) return; if (ptr->attribute_list) gf_free(ptr->attribute_list); gf_free(ptr);
0
477,286
static inline void tipc_crypto_clone_msg(struct net *net, struct sk_buff *_skb, struct tipc_bearer *b, struct tipc_media_addr *dst, struct tipc_node *__dnode, u8 type) { struct sk_buff *skb; skb = skb_clone(_skb, GFP_ATOMIC); if (skb) { TIPC_SKB_CB(skb)->xmit_type = type; tipc_crypto_xmit(net,...
0
246,643
static GF_Err naludmx_initialize(GF_Filter *filter) { GF_NALUDmxCtx *ctx = gf_filter_get_udta(filter); ctx->sps = gf_list_new(); ctx->pps = gf_list_new(); switch (ctx->nal_length) { case 1: ctx->max_nalu_size_allowed = 0xFF; break; case 2: ctx->max_nalu_size_allowed = 0xFFFF; break; case 4: ctx->max_na...
0
512,385
double val_real() { return has_value() ? Time(this).to_double() : 0; }
0
349,261
void sort_directory(struct dir *dir) { struct dir_ent *cur, *l1, *l2, *next; int len1, len2, stride = 1; if(dir->dir_count < 2) return; /* * We can consider our linked-list to be made up of stride length * sublists. Eacn iteration around this loop merges adjacent * stride length sublists into larger 2*st...
0
513,362
bool open_tmp_table(TABLE *table) { int error; if ((error= table->file->ha_open(table, table->s->path.str, O_RDWR, HA_OPEN_TMP_TABLE | HA_OPEN_INTERNAL_TABLE))) { table->file->print_error(error, MYF(0)); /* purecov: inspected */ table->...
0
225,870
GF_Box *ccst_box_new() { ISOM_DECL_BOX_ALLOC(GF_CodingConstraintsBox, GF_ISOM_BOX_TYPE_CCST); return (GF_Box *) tmp; }
0
473,999
parse_enclose(Node** np, OnigToken* tok, int term, UChar** src, UChar* end, ScanEnv* env) { int r, num; Node *target; OnigOptionType option; OnigCodePoint c; OnigEncoding enc = env->enc; #ifdef USE_NAMED_GROUP int list_capture; #endif UChar* p = *src; PFETCH_READY; *np = NULL; if (PEND) re...
0
349,889
static int hw_atl_utils_fw_upload_dwords(struct aq_hw_s *self, u32 addr, u32 *p, u32 cnt, enum mcp_area area) { int err = 0; u32 val; err = readx_poll_timeout_atomic(hw_atl_sem_ram_get, self, val, val == 1U, 10U, 100000U); if (err < 0) goto err_exit; if (ATL_HW_IS_CHIP_FEATURE(self, REVISION_B1...
0
101,695
void WebProcessProxy::removeMessagePortChannel(uint64_t channelID) { if (!isValid()) return; send(Messages::WebProcess::RemoveMessagePortChannel(channelID), /* destinationID */ 0); }
0
434,085
alist_add( alist_T *al, char_u *fname, int set_fnum) // 1: set buffer number; 2: re-use curbuf { if (fname == NULL) // don't add NULL file names return; if (check_arglist_locked() == FAIL) return; arglist_locked = TRUE; #ifdef BACKSLASH_IN_FILENAME slash_adjust(fname); #endif AARGLI...
0
512,638
With_sum_func_cache(const Item *a, const Item *b, const Item *c, const Item *d, const Item *e) :m_with_sum_func(a->with_sum_func() || b->with_sum_func() || c->with_sum_func() || d->with_sum_func() || e->with_sum_func()) { }
0
328,997
R_API char *r_bin_java_get_utf8_from_cp_item_list(RList *cp_list, ut64 idx) { /* Search through the Constant Pool list for the given CP Index. If the idx not found by directly going to the list index, the list will be walked and then the IDX will be checked. rvalue: new char* for caller to free. */ char *value =...
0
383,368
gdImageSaveAlpha (gdImagePtr im, int saveAlphaArg) { im->saveAlphaFlag = saveAlphaArg; }
0
234,761
static noinline int init_first_rw_device(struct btrfs_trans_handle *trans) { struct btrfs_fs_info *fs_info = trans->fs_info; u64 alloc_profile; struct btrfs_block_group *meta_bg; struct btrfs_block_group *sys_bg; /* * When adding a new device for sprouting, the seed device is read-only * so we must first allo...
0
430,409
static size_t ovs_nsh_key_attr_size(void) { /* Whenever adding new OVS_NSH_KEY_ FIELDS, we should consider * updating this function. */ return nla_total_size(NSH_BASE_HDR_LEN) /* OVS_NSH_KEY_ATTR_BASE */ /* OVS_NSH_KEY_ATTR_MD1 and OVS_NSH_KEY_ATTR_MD2 are * mutually exclusive, so the bigger one can cover ...
0
455,305
bash_filename_stat_hook (dirname) char **dirname; { char *local_dirname, *new_dirname, *t; int should_expand_dirname, return_value; int global_nounset; WORD_LIST *wl; local_dirname = *dirname; should_expand_dirname = return_value = 0; if (t = mbschr (local_dirname, '$')) should_expand_dirname = ...
0
343,303
void donoop(void) { #ifdef BORING_MODE addreply_noformat(200, "dc.w $4E71"); #else addreply_noformat(200, MSG_SLEEPING); #endif }
0
427,168
static void close_func (LexState *ls) { lua_State *L = ls->L; FuncState *fs = ls->fs; Proto *f = fs->f; luaK_ret(fs, luaY_nvarstack(fs), 0); /* final return */ leaveblock(fs); lua_assert(fs->bl == NULL); luaK_finish(fs); luaM_shrinkvector(L, f->code, f->sizecode, fs->pc, Instruction); luaM_shrinkvect...
0
225,106
Status ValidateAttrValue(const AttrValue& attr_value, const OpDef::AttrDef& attr) { // Is it a valid value? TF_RETURN_WITH_CONTEXT_IF_ERROR(AttrValueHasType(attr_value, attr.type()), " for attr '", attr.name(), "'"); // Does the value satisfy the minimum...
0
275,929
int uECC_compute_public_key(const uint8_t *private_key, uint8_t *public_key, uECC_Curve curve) { #if uECC_VLI_NATIVE_LITTLE_ENDIAN uECC_word_t *_private = (uECC_word_t *)private_key; uECC_word_t *_public = (uECC_word_t *)public_key; #else uECC_word_t _private[uECC_MAX_WORDS]; uECC_word_t _public[uECC_MA...
0
244,300
void dfla_box_del(GF_Box *s) { GF_FLACConfigBox *ptr = (GF_FLACConfigBox *) s; if (ptr->data) gf_free(ptr->data); gf_free(ptr); }
0
437,327
optimize_nodes(Node* node, NodeOpt* opt, OptEnv* env) { int i; int r; NodeOpt xo; OnigEncoding enc; r = 0; enc = env->enc; clear_node_opt_info(opt); set_bound_node_opt_info(opt, &env->mmd); switch (NODE_TYPE(node)) { case NODE_LIST: { OptEnv nenv; Node* nd = node; copy_opt_e...
0
197,565
static int MqttClient_WaitType(MqttClient *client, void *packet_obj, byte wait_type, word16 wait_packet_id, int timeout_ms) { int rc; word16 packet_id; MqttPacketType packet_type; #ifdef WOLFMQTT_MULTITHREAD MqttPendResp *pendResp; int readLocked; #endif MqttMsgStat* mms_stat; int waitMa...
1
204,495
static int __io_sync_cancel(struct io_uring_task *tctx, struct io_cancel_data *cd, int fd) { struct io_ring_ctx *ctx = cd->ctx; /* fixed must be grabbed every time since we drop the uring_lock */ if ((cd->flags & IORING_ASYNC_CANCEL_FD) && (cd->flags & IORING_ASYNC_CANCEL_FD_FIXED)) { unsigned long fi...
1
513,156
bool sys_var_pluginvar::global_update(THD *thd, set_var *var) { DBUG_ASSERT(!is_readonly()); mysql_mutex_assert_owner(&LOCK_global_system_variables); void *tgt= real_value_ptr(thd, OPT_GLOBAL); const void *src= &var->save_result; if (!var->value) src= var_def_ptr(plugin_var); plugin_var->update(thd, ...
0
387,788
Klass* InstanceKlass::find_field(Symbol* name, Symbol* sig, fieldDescriptor* fd) const { // search order according to newest JVM spec (5.4.3.2, p.167). // 1) search for field in current klass if (find_local_field(name, sig, fd)) { return const_cast<InstanceKlass*>(this); } // 2) search for field recursive...
0
208,673
handle_spawn (PortalFlatpak *object, GDBusMethodInvocation *invocation, GUnixFDList *fd_list, const gchar *arg_cwd_path, const gchar *const *arg_argv, GVariant *arg_fds, GVariant ...
1
391,652
static bool file_has_brlocks(files_struct *fsp) { struct byte_range_lock *br_lck; br_lck = brl_get_locks_readonly(fsp); if (!br_lck) return false; return (brl_num_locks(br_lck) > 0); }
0
272,372
is_valid_cert(CERTCertificate *cert, void *data) { struct validity_cbdata *cbd = (struct validity_cbdata *)data; PK11SlotInfo *slot = cbd->slot; SECKEYPrivateKey *privkey = NULL; int errnum; errnum = PORT_GetError(); if (errnum == SEC_ERROR_EXTENSION_NOT_FOUND) { dprintf("Got SEC_ERROR_EXTENSION_NOT_FOUND; cle...
0
293,547
PJ_DEF(void) pj_scan_restore_state( pj_scanner *scanner, pj_scan_state *state) { scanner->curptr = state->curptr; scanner->line = state->line; scanner->start_line = state->start_line; }
0
477,802
static int pfkey_process(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr) { void *ext_hdrs[SADB_EXT_MAX]; int err; /* Non-zero return value of pfkey_broadcast() does not always signal * an error and even on an actual error we may still want to process * the message so rather ignore the return v...
0
244,338
GF_Err stsg_box_size(GF_Box *s) { GF_SubTrackSampleGroupBox *ptr = (GF_SubTrackSampleGroupBox *)s; ptr->size += 6 + 4 * ptr->nb_groups; return GF_OK; }
0
463,134
static int write_entry(struct mailbox *mailbox, unsigned int uid, const char *entry, const char *userid, const struct buf *value, int ignorequota, int silent, ...
0
273,927
static void handle_MKD(ctrl_t *ctrl, char *arg) { char *path; path = compose_abspath(ctrl, arg); if (!path) { INFO("Invalid path for %s: %m", arg); goto fail; } if (mkdir(path, 0755)) { if (EPERM == errno) fail: send_msg(ctrl->sd, "550 Not allowed to create directory.\r\n"); else send_msg(ctrl->sd, ...
0
508,879
TABLE_LIST* st_select_lex::get_table_list() { return table_list.first; }
0
248,237
DLLIMPORT char *cfg_opt_getnstr(cfg_opt_t *opt, unsigned int index) { if (!opt || opt->type != CFGT_STR) { errno = EINVAL; return NULL; } if (opt->values && index < opt->nvalues) return opt->values[index]->string; if (opt->simple_value.string) return *opt->simple_value.string; return NULL; }
0
201,384
ga_concat_shorten_esc(garray_T *gap, char_u *str) { char_u *p; char_u *s; int c; int clen; char_u buf[NUMBUFLEN]; int same_len; if (str == NULL) { ga_concat(gap, (char_u *)"NULL"); return; } for (p = str; *p != NUL; ++p) { same_len = 1; s = p; c = mb_ptr...
1
413,691
static bool esilbreak_mem_write(RAnalEsil *esil, ut64 addr, const ut8 *buf, int len) { handle_var_stack_access (esil, addr, R_ANAL_VAR_ACCESS_TYPE_WRITE, len); return true; }
0
90,189
static std::string ToHtmlTableRow(Network* network) { std::string str; if (network->type() == TYPE_WIFI || network->type() == TYPE_CELLULAR) { WirelessNetwork* wireless = static_cast<WirelessNetwork*>(network); str += WrapWithTD(wireless->name()) + WrapWithTD(base::IntToString(wireless->auto_connect...
0
221,661
int Socket::readFromSocketn(char *buff, int len, unsigned int flags, int timeout) { return readFromSocket(buff, len, flags, timeout, true, false); #ifdef NODEF if (!isssl) { return BaseSocket::readFromSocketn(buff, len, flags, timeout); } int cnt, rc; cnt = len; // first, return what...
0
232,828
void Compute(OpKernelContext* context) override { ResourceHandle handle; OP_REQUIRES_OK(context, HandleFromInput(context, kResourceHandleName, &handle)); core::RefCountPtr<QuantileStreamResource> stream_resource; // Create a reference to the underlying resource using the handle. ...
0
492,670
_vte_terminal_scroll_text (VteTerminal *terminal, int scroll_amount) { long start, end, i; VteScreen *screen; screen = terminal->pvt->screen; if (screen->scrolling_restricted) { start = screen->insert_delta + screen->scrolling_region.start; end = screen->insert_delta + screen->scrolling_region.end; } else { ...
0
222,920
DisjointSet<Handle>::GetMergedValue(Handle value) { Rep* rep = Find(value); if (!rep) { // We don't know anything about this handle. return HandleToObject<Handle>::Unknown(); } return rep->value; }
0
261,907
njs_string_truncate(njs_value_t *value, uint32_t size, uint32_t length) { u_char *dst, *src; uint32_t n; if (size <= NJS_STRING_SHORT) { if (value->short_string.size == NJS_STRING_LONG) { dst = value->short_string.start; src = value->long_string.data->start; ...
0
462,238
PJ_DEF(pj_status_t) pj_stun_uint64_attr_create(pj_pool_t *pool, int attr_type, const pj_timestamp *value, pj_stun_uint64_attr **p_attr) { pj_stun_uint64_attr *attr; PJ_ASSERT_RETURN(pool && p_attr, PJ_EINVAL); attr = PJ_POOL_ZALLOC_T(pool, pj_stun_uint64_attr); INIT...
0
261,239
int SN_Client_Connect(MqttClient *client, SN_Connect *mc_connect) { int rc = 0, len = 0; static byte will_done; /* Validate required arguments */ if ((client == NULL) || (mc_connect == NULL)) { return MQTT_CODE_ERROR_BAD_ARG; } if (mc_connect->stat == MQTT_MSG_BEGIN) { will_do...
0
275,965
static bitcount_t smax(bitcount_t a, bitcount_t b) { return (a > b ? a : b); }
0
291,789
static int rtrs_clt_failover_req(struct rtrs_clt_sess *clt, struct rtrs_clt_io_req *fail_req) { struct rtrs_clt_path *alive_path; struct rtrs_clt_io_req *req; int err = -ECONNABORTED; struct path_it it; rcu_read_lock(); for (path_it_init(&it, clt); (alive_path = it.next_path(&it)) && it.i < it.clt->pa...
0
309,817
initialize_mousetype(SCREEN *sp) { T((T_CALLED("initialize_mousetype()"))); /* Try gpm first, because gpm may be configured to run in xterm */ #if USE_GPM_SUPPORT if (allow_gpm_mouse(sp)) { if (!sp->_mouse_gpm_loaded) { #ifdef HAVE_LIBDL load_gpm_library(sp); #else /* !HAVE_LIBDL */ sp->_mouse_g...
0
512,343
Item *Item_func_ge::negated_item(THD *thd) /* a >= b -> a < b */ { return new (thd->mem_root) Item_func_lt(thd, args[0], args[1]); }
0
436,114
static int io_send(struct io_kiocb *req, unsigned int issue_flags) { struct io_sr_msg *sr = &req->sr_msg; struct msghdr msg; struct iovec iov; struct socket *sock; unsigned flags; int min_ret = 0; int ret; sock = sock_from_file(req->file); if (unlikely(!sock)) return -ENOTSOCK; ret = import_single_range(W...
0
390,537
XkbWriteKeyTypes( XkbDescPtr xkb, xkbGetMapReply * rep, char * buf, ClientPtr client) { XkbKeyTypePtr type; unsigned i; xkbKeyTypeWireDesc *wire; type= &xkb->map->types[rep->firstType]; for (i=0;i<rep->nTypes;i++,type++) { register unsigned n; wire= (xkbKeyTypeWireDesc *)buf; wire...
0
488,334
static int __init vdso_do_func_patch64(struct lib32_elfinfo *v32, struct lib64_elfinfo *v64, const char *orig, const char *fix) { Elf64_Sym *sym64_gen, *sym64_fix; sym64_gen = find_symbol64(v64, orig); if (sym64_gen == NULL) { printk(KERN_ERR "vDSO64: Can't find symbol %s !\n", orig); retu...
0
455,319
split_ignorespec (s, ip) char *s; int *ip; { char *t; int n, i; if (s == 0) return 0; i = *ip; if (s[i] == 0) return 0; n = skip_to_delim (s, i, ":", SD_NOJMP|SD_EXTGLOB|SD_GLOB); t = substring (s, i, n); if (s[n] == ':') n++; *ip = n; return t; }
0
338,207
bool WasmBinaryBuilder::getBasicType(int32_t code, Type& out) { switch (code) { case BinaryConsts::EncodedType::i32: out = Type::i32; return true; case BinaryConsts::EncodedType::i64: out = Type::i64; return true; case BinaryConsts::EncodedType::f32: out = Type::f32; re...
0
356,691
template <class T> void Statement::Error(T* baton) { Statement* stmt = baton->stmt; Napi::Env env = stmt->Env(); Napi::HandleScope scope(env); // Fail hard on logic errors. assert(stmt->status != 0); EXCEPTION(Napi::String::New(env, stmt->message.c_str()), stmt->status, exception); Napi::...
0
512,897
const Type_handler *real_type_handler() const { if (field->is_created_from_null_item) return &type_handler_null; return field->type_handler(); }
0