idx int64 | func string | target int64 |
|---|---|---|
294,716 | m_yday(union DateData *x)
{
int jd, ry, rd;
double sg;
jd = m_local_jd(x);
sg = m_virtual_sg(x); /* !=m_sg() */
if (m_proleptic_gregorian_p(x) ||
(jd - sg) > 366)
return c_gregorian_to_yday(m_year(x), m_mon(x), m_mday(x));
if (m_proleptic_julian_p(x))
return c_julian_to_yday(m_year(x), m_mo... | 0 |
224,549 | Status QuantizedConcatV2Shape(InferenceContext* c, int num_inputs_to_concat) {
return ConcatShapeHelper(c, 0 /* start_value_index */,
num_inputs_to_concat /* end_value_index */,
num_inputs_to_concat /* dim_index */);
} | 0 |
313,766 | nv_mark(cmdarg_T *cap)
{
if (!checkclearop(cap->oap))
{
if (setmark(cap->nchar) == FAIL)
clearopbeep(cap->oap);
}
} | 0 |
492,693 | vte_sequence_handler_set_scrolling_region_from_start (VteTerminal *terminal, GValueArray *params)
{
GValue value = {0};
g_value_init (&value, G_TYPE_LONG);
g_value_set_long (&value, 0); /* Out of range means start/end */
g_value_array_insert (params, 0, &value);
vte_sequence_handler_offset(terminal, params, -1,... | 0 |
343,238 | void disablesignals(void)
{
sigset_t sigs;
sigfillset(&sigs);
if (sigprocmask(SIG_BLOCK, &sigs, &old_sigmask) < 0) {
_EXIT(EXIT_FAILURE);
}
} | 0 |
447,041 | long SshIo::SshImpl::getFileLength()
{
long length = 0;
if (protocol_ == pSftp) { // sftp
sftp_attributes attributes = sftp_fstat(fileHandler_);
length = (long)attributes->size;
} else { // ssh
std::string response;
//std::string cmd = "sta... | 0 |
387,639 | void snd_ctl_disconnect_layer(struct snd_ctl_layer_ops *lops)
{
struct snd_ctl_layer_ops *lops2, *prev_lops2;
down_write(&snd_ctl_layer_rwsem);
for (lops2 = snd_ctl_layer, prev_lops2 = NULL; lops2; lops2 = lops2->next) {
if (lops2 == lops) {
if (!prev_lops2)
snd_ctl_layer = lops->next;
else
prev_lop... | 0 |
247,128 | void gf_fs_run_step(GF_FilterSession *fsess)
{
gf_fs_thread_proc(&fsess->main_th);
} | 0 |
248,294 | DLLIMPORT int cfg_setnint(cfg_t *cfg, const char *name, long int value, unsigned int index)
{
cfg_opt_t *opt;
opt = cfg_getopt(cfg, name);
if (opt && opt->validcb2 && (*opt->validcb2)(cfg, opt, (void *)&value) != 0)
return CFG_FAIL;
return cfg_opt_setnint(opt, value, index);
} | 0 |
244,153 | GF_Err pdin_box_read(GF_Box *s, GF_BitStream *bs)
{
u32 i;
GF_ProgressiveDownloadBox *ptr = (GF_ProgressiveDownloadBox*)s;
ptr->count = (u32) (ptr->size) / 8;
ptr->rates = (u32*)gf_malloc(sizeof(u32)*ptr->count);
if (!ptr->rates) return GF_OUT_OF_MEM;
ptr->times = (u32*)gf_malloc(sizeof(u32)*ptr->count);
if (!p... | 0 |
402,655 | hide_stolen_goods_from_cms(cms_context *new,
cms_context *old UNUSED)
{
new->tokenname = NULL;
new->certname = NULL;
} | 0 |
476,132 | static int composite_bind(struct usb_gadget *gadget,
struct usb_gadget_driver *gdriver)
{
struct usb_composite_dev *cdev;
struct usb_composite_driver *composite = to_cdriver(gdriver);
int status = -ENOMEM;
cdev = kzalloc(sizeof *cdev, GFP_KERNEL);
if (!cdev)
return status;
spin_lock_init(&cdev->lock);
c... | 0 |
498,100 | void html_link_open(const char *url, const char *title, const char *class)
{
html("<a href='");
html_attr(url);
if (title) {
html("' title='");
html_attr(title);
}
if (class) {
html("' class='");
html_attr(class);
}
html("'>");
} | 0 |
336,020 | static int sr_mdio_read(struct net_device *netdev, int phy_id, int loc)
{
struct usbnet *dev = netdev_priv(netdev);
__le16 res;
int rc = 0;
if (phy_id) {
netdev_dbg(netdev, "Only internal phy supported\n");
return 0;
}
/* Access NSR_LINKST bit for link status instead of MII_BMSR */
if (loc == MII_BMSR) {
... | 0 |
379,324 | do_exmode(
int improved) // TRUE for "improved Ex" mode
{
int save_msg_scroll;
int prev_msg_row;
linenr_T prev_line;
varnumber_T changedtick;
if (improved)
exmode_active = EXMODE_VIM;
else
exmode_active = EXMODE_NORMAL;
State = MODE_NORMAL;
may_trigger_modechanged();
/... | 0 |
259,268 | static MOVFragmentStreamInfo *get_frag_stream_info_from_pkt(MOVFragmentIndex *frag_index, AVPacket *pkt, int id)
{
int current = frag_index->current;
if (!frag_index->nb_items)
return NULL;
// Check frag_index->current is the right one for pkt. It can out of sync.
if (current >= 0 && current <... | 0 |
197,223 | njs_module_path(njs_vm_t *vm, const njs_str_t *dir, njs_module_info_t *info)
{
char *p;
size_t length;
njs_bool_t trail;
char src[NJS_MAX_PATH + 1];
trail = 0;
length = info->name.length;
if (dir != NULL) {
length = dir->length;
if (length == 0) {
... | 1 |
434,109 | alist_name(aentry_T *aep)
{
buf_T *bp;
// Use the name from the associated buffer if it exists.
bp = buflist_findnr(aep->ae_fnum);
if (bp == NULL || bp->b_fname == NULL)
return aep->ae_fname;
return bp->b_fname;
} | 0 |
261,200 | int MqttClient_Publish_ex(MqttClient *client, MqttPublish *publish,
MqttPublishCb pubCb)
{
int rc = MQTT_CODE_SUCCESS;
MqttPacketType resp_type;
/* Validate required arguments */
if (client == NULL || publish == NULL) {
return MQTT_CODE_ERROR_BAD_ARG;
}
#ifdef W... | 0 |
500,046 | krb5_error_code kssl_check_authent(
/* IN */ KSSL_CTX *kssl_ctx,
/* IN */ krb5_data *authentp,
/* OUT */ krb5_timestamp *atimep,
/* OUT */ KSSL_ERR *kssl_err )
{
krb5_error_code krb5rc = 0;
KRB5_ENCDATA *dec_authent = NULL;
KRB5_AUTHENTBODY *auth = NUL... | 0 |
452,376 | ex_retab(exarg_T *eap)
{
linenr_T lnum;
int got_tab = FALSE;
long num_spaces = 0;
long num_tabs;
long len;
long col;
long vcol;
long start_col = 0; // For start of white-space string
long start_vcol = 0; // For start of white-space string
long old_len;
long new_len;
ch... | 0 |
244,139 | void st3d_box_del(GF_Box *s)
{
gf_free(s);
} | 0 |
512,723 | Item_default_value(THD *thd, Name_resolution_context *context_arg, Item *a,
bool vcol_assignment_arg)
:Item_field(thd, context_arg, (const char *)NULL, (const char *)NULL,
&null_clex_str), vcol_assignment_ok(vcol_assignment_arg),
arg(a), cached_field(NULL) {} | 0 |
215,103 | createRandomCursorExecutor(const CollectionPtr& coll,
const boost::intrusive_ptr<ExpressionContext>& expCtx,
long long sampleSize,
long long numRecords,
boost::optional<BucketUnpacker> bucketUnpacker) {
Opera... | 1 |
413,819 | Method* LinkResolver::resolve_interface_method(const LinkInfo& link_info, Bytecodes::Code code, TRAPS) {
Klass* resolved_klass = link_info.resolved_klass();
// check if klass is interface
if (!resolved_klass->is_interface()) {
ResourceMark rm(THREAD);
char buf[200];
jio_snprintf(buf, sizeof(buf), "F... | 0 |
398,541 | RzBinSection *getsection(RzBinFile *binfile, const char *sn) {
rz_return_val_if_fail(binfile && sn, NULL);
RzListIter *iter;
RzBinSection *section = NULL;
RzBinObject *o = binfile->o;
if (!o || !o->sections) {
return NULL;
}
rz_list_foreach (o->sections, iter, section) {
if (!section->name) {
continue;
... | 0 |
512,717 | bool Regexp_processor_pcre::exec(String *str, int offset,
uint n_result_offsets_to_convert)
{
if (!(str= convert_if_needed(str, &subject_converter)))
return true;
m_pcre_exec_rc= pcre_exec_with_warn(m_pcre, &m_pcre_extra,
str->c_ptr_safe(),... | 0 |
513,140 | static bool plugin_load_list(MEM_ROOT *tmp_root, const char *list)
{
char buffer[FN_REFLEN];
LEX_STRING name= {buffer, 0}, dl= {NULL, 0}, *str= &name;
char *p= buffer;
DBUG_ENTER("plugin_load_list");
while (list)
{
if (p == buffer + sizeof(buffer) - 1)
{
sql_print_error("plugin-load parameter ... | 0 |
522,332 | int my_aio_write ( struct aiocb *aiocbp){return(aio_write (aiocbp));} | 0 |
359,843 | WandPrivate void CLINoImageOperator(MagickCLI *cli_wand,
const char *option,const char *arg1n,const char *arg2n)
{
const char /* percent escaped versions of the args */
*arg1,
*arg2;
#define _image_info (cli_wand->wand.image_info)
#define _images (cli_wand->wand.images)
#define _exception ... | 0 |
259,535 | static CURLUcode hostname_check(struct Curl_URL *u, char *hostname)
{
size_t len;
size_t hlen = strlen(hostname);
if(hostname[0] == '[') {
const char *l = "0123456789abcdefABCDEF:.";
if(hlen < 4) /* '[::]' is the shortest possible valid string */
return CURLUE_BAD_IPV6;
hostname++;
hlen -= ... | 0 |
313,833 | nv_end(cmdarg_T *cap)
{
if (cap->arg || (mod_mask & MOD_MASK_CTRL)) // CTRL-END = goto last line
{
cap->arg = TRUE;
nv_goto(cap);
cap->count1 = 1; // to end of current line
}
nv_dollar(cap);
} | 0 |
462,252 | static pj_status_t encode_binary_attr(const void *a, pj_uint8_t *buf,
unsigned len,
const pj_stun_msg_hdr *msghdr,
unsigned *printed)
{
const pj_stun_binary_attr *ca = (const pj_stun_binary_attr*)a;
PJ_CHECK_STACK();
PJ_UNUSED_ARG(msghdr);
/* Calculated total attr_... | 0 |
364,770 | findtags_string_convert(findtags_state_T *st)
{
char_u *conv_line;
int len;
conv_line = string_convert(&st->vimconv, st->lbuf, NULL);
if (conv_line == NULL)
return;
// Copy or swap lbuf and conv_line.
len = (int)STRLEN(conv_line) + 1;
if (len > st->lbuf_size)
{
vim_free(st->lbuf);
... | 0 |
512,367 | bool Item_func_between::fix_length_and_dec()
{
max_length= 1;
/*
As some compare functions are generated after sql_yacc,
we have to check for out of memory conditions here
*/
if (!args[0] || !args[1] || !args[2])
return TRUE;
if (m_comparator.aggregate_for_comparison(Item_func_between::func_name(... | 0 |
500,085 | kssl_krb5_sname_to_principal(krb5_context CO,
krb5_const char * pC1,
krb5_const char * pC2,
krb5_int32 I,
krb5_principal * pPR)
{
if (!krb5_loaded)
load_krb5_dll();
if ( p_krb5_sname_to_principal )
... | 0 |
230,459 | uip_nd6_init()
{
#if UIP_ND6_SEND_NA
/* Only handle NSs if we are prepared to send out NAs */
uip_icmp6_register_input_handler(&ns_input_handler);
#endif
#if UIP_ND6_SEND_NS
/*
* Only handle NAs if we are prepared to send out NSs. */
uip_icmp6_register_input_handler(&na_input_handler);
#endif
#if UIP_CONF_... | 0 |
401,541 | int __init rand_initialize(void)
{
init_std_data(&input_pool);
crng_initialize_primary(&primary_crng);
crng_global_init_time = jiffies;
if (ratelimit_disable) {
urandom_warning.interval = 0;
unseeded_warning.interval = 0;
}
return 0;
} | 0 |
338,747 | static Image *ReadTGAImage(const ImageInfo *image_info,
ExceptionInfo *exception)
{
Image
*image;
MagickBooleanType
status;
PixelInfo
pixel;
Quantum
index;
register Quantum
*q;
register ssize_t
i,
x;
size_t
base,
flag,
offset,
real,
skip;
ssize_t
... | 0 |
353,196 | static int getSat(int r, int g, int b) {
int rgbMin, rgbMax;
rgbMin = rgbMax = r;
if (g < rgbMin) {
rgbMin = g;
} else if (g > rgbMax) {
rgbMax = g;
}
if (b < rgbMin) {
rgbMin = b;
} else if (b > rgbMax) {
rgbMax = b;
}
return rgbMax - rgbMin;
} | 0 |
353,142 | void SplashOutputDev::updateOverprintMode(GfxState *state) {
splash->setOverprintMode(state->getOverprintMode());
} | 0 |
301,485 | add_banned(
suginfo_T *su,
char_u *word)
{
char_u *s;
hash_T hash;
hashitem_T *hi;
hash = hash_hash(word);
hi = hash_lookup(&su->su_banned, word, hash);
if (HASHITEM_EMPTY(hi))
{
s = vim_strsave(word);
if (s != NULL)
hash_add_item(&su->su_banned, hi, s, hash);
}
} | 0 |
359,512 | DEFUN (neighbor_peer_group,
neighbor_peer_group_cmd,
"neighbor WORD peer-group",
NEIGHBOR_STR
"Neighbor tag\n"
"Configure peer-group\n")
{
struct bgp *bgp;
struct peer_group *group;
bgp = vty->index;
group = peer_group_get (bgp, argv[0]);
if (! group)
return CMD_WARNIN... | 0 |
223,458 | static void delayed_mem_copy_init(delayed_mem_copy_status *status, compiler_common *common)
{
int i;
for (i = 0; i < RECURSE_TMP_REG_COUNT; i++)
{
SLJIT_ASSERT(status->tmp_regs[i] >= 0);
SLJIT_ASSERT(sljit_get_register_index(status->saved_tmp_regs[i]) < 0 || status->tmp_regs[i] == status->saved_tmp_regs[i]);
... | 0 |
512,926 | String *val_str(String *to)
{
return has_value() ? Datetime(this).to_string(to, decimals) : NULL;
} | 0 |
255,082 | ompl::geometric::VFRRT::Motion *ompl::geometric::VFRRT::extendTree(Motion *m, base::State *rstate,
const Eigen::VectorXd &v)
{
base::State *newState = si_->allocState();
si_->copyState(newState, m->state);
double d = si_->distance(m->state,... | 0 |
401,598 | u64 get_random_u64(void)
{
u64 ret;
unsigned long flags;
struct batched_entropy *batch;
static void *previous;
warn_unseeded_randomness(&previous);
batch = raw_cpu_ptr(&batched_entropy_u64);
spin_lock_irqsave(&batch->batch_lock, flags);
if (batch->position % ARRAY_SIZE(batch->entropy_u64) == 0) {
extract_cr... | 0 |
336,550 | bool reds_handle_migrate_data(RedsState *reds, MainChannelClient *mcc,
SpiceMigrateDataMain *mig_data, uint32_t size)
{
RedCharDeviceVDIPort *agent_dev = reds->agent_dev.get();
spice_debug("main-channel: got migrate data");
/*
* Now that the client has switched to the tar... | 0 |
247,366 | char * pgpArmorWrap(int atype, const unsigned char * s, size_t ns)
{
char *buf = NULL, *val = NULL;
char *enc = rpmBase64Encode(s, ns, -1);
char *crc = rpmBase64CRC(s, ns);
const char *valstr = pgpValStr(pgpArmorTbl, atype);
if (crc != NULL && enc != NULL) {
rasprintf(&buf, "%s=%s", enc, crc);
... | 0 |
384,917 | f_writefile(typval_T *argvars, typval_T *rettv)
{
int binary = FALSE;
int append = FALSE;
#ifdef HAVE_FSYNC
int do_fsync = p_fs;
#endif
char_u *fname;
FILE *fd;
int ret = 0;
listitem_T *li;
list_T *list = NULL;
blob_T *blob = NULL;
rettv->vval.v_number = -1;
if (check_se... | 0 |
226,137 |
GF_Err sgpd_box_read(GF_Box *s, GF_BitStream *bs)
{
u32 entry_count;
GF_SampleGroupDescriptionBox *p = (GF_SampleGroupDescriptionBox *)s;
ISOM_DECREASE_SIZE(p, 8);
p->grouping_type = gf_bs_read_u32(bs);
if (p->version>=1) {
ISOM_DECREASE_SIZE(p, 4);
p->default_length = gf_bs_read_u32(bs);
}
if (p->version... | 0 |
230,272 | njs_array_prototype_iterator(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
njs_index_t magic)
{
int64_t i, length;
njs_int_t ret;
njs_array_t *array;
njs_value_t accumulator;
njs_iterator_args_t iargs;
njs_iterator_handler_t han... | 0 |
409,502 | term_delete_lines(int line_count)
{
OUT_STR(tgoto((char *)T_CDL, 0, line_count));
} | 0 |
382,796 | static void gdFreeDynamicCtx (struct gdIOCtx *ctx)
{
dynamicPtr *dp;
dpIOCtx *dctx;
dctx = (dpIOCtx *) ctx;
dp = dctx->dp;
gdFree(ctx);
dp->realSize = 0;
dp->logicalSize = 0;
gdFree(dp);
} | 0 |
279,912 | not_writing(void)
{
if (p_write)
return FALSE;
emsg(_(e_file_not_written_writing_is_disabled_by_write_option));
return TRUE;
} | 0 |
439,172 | static inline double GetFITSPixel(Image *image,int bits_per_pixel)
{
switch (image->depth >> 3)
{
case 1:
return((double) ReadBlobByte(image));
case 2:
return((double) ((short) ReadBlobShort(image)));
case 4:
{
if (bits_per_pixel > 0)
return((double) ReadBlobSignedLong(imag... | 0 |
223,094 | static MagickBooleanType IsPCL(const unsigned char *magick,const size_t length)
{
if (length < 4)
return(MagickFalse);
if (memcmp(magick,"\033E\033&",4) == 0)
return(MagickFalse);
if (memcmp(magick,"\033E\033",3) == 0)
return(MagickTrue);
return(MagickFalse);
} | 0 |
220,171 | void Compute(OpKernelContext* context) override {
const Tensor& contents = context->input(0);
OP_REQUIRES(
context, TensorShapeUtils::IsScalar(contents.shape()),
errors::InvalidArgument("`contents` must be scalar but got shape",
contents.shape().DebugString()));... | 0 |
508,384 | lock_table_names(THD *thd, const DDL_options_st &options,
TABLE_LIST *tables_start, TABLE_LIST *tables_end,
ulong lock_wait_timeout, uint flags)
{
MDL_request_list mdl_requests;
TABLE_LIST *table;
MDL_request global_request;
ulong org_lock_wait_timeout= lock_wait_timeout;
/* ... | 0 |
409,450 | handle_csi(
char_u *tp,
int len,
char_u *argp,
int offset,
char_u *buf,
int bufsize,
int *buflen,
char_u *key_name,
int *slen)
{
int first = -1; // optional char right after {lead}
int trail; // char that ends CSI sequence
int arg[3] = {-1, -1, -1}; // argument numbers
int argc; //... | 0 |
346,423 | ex_options(
exarg_T *eap UNUSED)
{
char_u buf[500];
int multi_mods = 0;
buf[0] = NUL;
(void)add_win_cmd_modifers(buf, &cmdmod, &multi_mods);
vim_setenv((char_u *)"OPTWIN_CMD", buf);
cmd_source((char_u *)SYS_OPTWIN_FILE, NULL);
} | 0 |
512,319 | longlong val_datetime_packed(THD *thd)
{
if (check_null_ref())
return 0;
else
return Item_direct_ref::val_datetime_packed(thd);
} | 0 |
335,420 | apply_cmdmod(cmdmod_T *cmod)
{
#ifdef HAVE_SANDBOX
if ((cmod->cmod_flags & CMOD_SANDBOX) && !cmod->cmod_did_sandbox)
{
++sandbox;
cmod->cmod_did_sandbox = TRUE;
}
#endif
if (cmod->cmod_verbose != 0)
{
if (cmod->cmod_verbose_save == 0)
cmod->cmod_verbose_save = p_verbose + 1;
p_verbose = cmo... | 0 |
411,917 | _compare_tor_version_str_ptr(const void **_a, const void **_b)
{
const char *a = *_a, *b = *_b;
int ca, cb;
tor_version_t va, vb;
ca = tor_version_parse(a, &va);
cb = tor_version_parse(b, &vb);
/* If they both parse, compare them. */
if (!ca && !cb)
return tor_version_compare(&va,&vb);
/* If one par... | 0 |
222,864 | Status GraphProperties::UpdateMerge(SymbolicShapeRefiner* shape_refiner,
const NodeDef* node,
bool* new_shapes) const {
InferenceContext* ic = shape_refiner->GetContext(node);
if (!ic) {
// Now we can run shape inference
TF_RETURN_IF_ER... | 0 |
231,683 | TEST_F(
QuicServerTransportTest,
MigrateToUnvalidatePeerCancelsOutstandingPathChallenge) {
server->getNonConstConn().transportSettings.disableMigration = false;
auto data = IOBuf::copyBuffer("bad data");
auto packetData = packetToBuf(createStreamPacket(
*clientConnectionId,
*server->getConn().... | 0 |
267,919 | void ogs_nas_5gs_nas_guti_to_mobility_identity_guti(
ogs_nas_5gs_guti_t *nas_guti,
ogs_nas_5gs_mobile_identity_guti_t *mobile_identity_guti)
{
ogs_assert(nas_guti);
ogs_assert(mobile_identity_guti);
memset(mobile_identity_guti, 0, sizeof(*mobile_identity_guti));
/*
* TS24.501
... | 0 |
289,334 | static int lock_params(struct snd_pcm_runtime *runtime)
{
if (mutex_lock_interruptible(&runtime->oss.params_lock))
return -ERESTARTSYS;
if (atomic_read(&runtime->oss.rw_ref)) {
mutex_unlock(&runtime->oss.params_lock);
return -EBUSY;
}
return 0;
} | 0 |
505,646 | bool smtp_command_parser_pending_data(struct smtp_command_parser *parser)
{
if (parser->data == NULL)
return FALSE;
return i_stream_have_bytes_left(parser->data);
} | 0 |
244,193 | GF_Err trun_box_read(GF_Box *s, GF_BitStream *bs)
{
u32 i;
GF_TrackFragmentRunBox *ptr = (GF_TrackFragmentRunBox *)s;
#ifdef GF_ENABLE_CTRN
if (ptr->type == GF_ISOM_BOX_TYPE_CTRN) {
ptr->type = GF_ISOM_BOX_TYPE_TRUN;
ptr->use_ctrn = GF_TRUE;
return ctrn_box_read(s, bs);
}
#endif
//check this is a good file... | 0 |
289,313 | snd_pcm_hw_param_value_max(const struct snd_pcm_hw_params *params,
snd_pcm_hw_param_t var, int *dir)
{
if (hw_is_mask(var)) {
if (dir)
*dir = 0;
return snd_mask_max(hw_param_mask_c(params, var));
}
if (hw_is_interval(var)) {
const struct snd_interval *i = hw_param_interval_c(params, var);
if (dir)
... | 0 |
488,430 | static int do_move_pages(struct mm_struct *mm, struct page_to_node *pm,
int migrate_all)
{
int err;
struct page_to_node *pp;
LIST_HEAD(pagelist);
down_read(&mm->mmap_sem);
/*
* Build a list of pages to migrate
*/
migrate_prep();
for (pp = pm; pp->node != MAX_NUMNODES; pp++) {
struct vm_area_struct *v... | 0 |
379,685 | static const char *get_regname(RAnal *anal, RAnalValue *value) {
const char *name = NULL;
if (value && value->reg && value->reg->name) {
name = value->reg->name;
RRegItem *ri = r_reg_get (anal->reg, value->reg->name, -1);
if (ri && (ri->size == 32) && (anal->bits == 64)) {
name = r_reg_32_to_64 (anal->reg, v... | 0 |
406,208 | static void success_message(struct libmnt_context *cxt)
{
unsigned long mflags = 0;
const char *tgt, *src;
if (mnt_context_helper_executed(cxt)
|| mnt_context_get_status(cxt) != 1)
return;
mnt_context_get_mflags(cxt, &mflags);
tgt = mnt_context_get_target(cxt);
src = mnt_context_get_source(cxt);
if (mf... | 0 |
96,951 | void encode(ArgumentEncoder* encoder, CFTypeRef typeRef)
{
CFType type = typeFromCFTypeRef(typeRef);
encoder->encodeEnum(type);
switch (type) {
case CFArray:
encode(encoder, static_cast<CFArrayRef>(typeRef));
return;
case CFBoolean:
encode(encoder, static_cast<CFBooleanRef>(... | 0 |
261,248 | int wm_SemFree(wm_Sem *s) {
vSemaphoreDelete(*s);
*s = NULL;
return 0;
} | 0 |
234,864 | static void reset_balance_state(struct btrfs_fs_info *fs_info)
{
struct btrfs_balance_control *bctl = fs_info->balance_ctl;
int ret;
BUG_ON(!fs_info->balance_ctl);
spin_lock(&fs_info->balance_lock);
fs_info->balance_ctl = NULL;
spin_unlock(&fs_info->balance_lock);
kfree(bctl);
ret = del_balance_item(fs_info)... | 0 |
473,846 | onigenc_utf16_32_get_ctype_code_range(OnigCtype ctype, OnigCodePoint* sb_out,
const OnigCodePoint* ranges[],
struct OnigEncodingTypeST* enc ARG_UNUSED)
{
*sb_out = 0x00;
return onigenc_unicode_ctype_code_range(ctype, ranges);
} | 0 |
385,940 | static int atomic_open(struct nameidata *nd, struct dentry *dentry,
struct path *path, struct file *file,
const struct open_flags *op,
bool got_write, bool need_lookup,
int *opened)
{
struct inode *dir = nd->path.dentry->d_inode;
unsigned open_flag = open_to_namei_flags(op->open_flag);
umode_t mode;
in... | 0 |
293,776 | static bool on_rebase_pointer(ut64 offset, ut64 decorated_addr, RRebaseCtx *ctx) {
if (offset < ctx->off) {
return true;
}
if (offset >= ctx->eob) {
return false;
}
ut64 in_buf = offset - ctx->off;
if (in_buf >= ctx->count || (in_buf + 8) > ctx->count) {
return false;
}
RParsedPointer ptr;
r_parse_point... | 0 |
226,204 |
void leva_box_del(GF_Box *s)
{
GF_LevelAssignmentBox *ptr = (GF_LevelAssignmentBox *)s;
if (ptr == NULL) return;
if (ptr->levels) gf_free(ptr->levels);
gf_free(ptr); | 0 |
384,837 | transchar_buf(buf_T *buf, int c)
{
int i;
i = 0;
if (IS_SPECIAL(c)) // special key code, display as ~@ char
{
transchar_charbuf[0] = '~';
transchar_charbuf[1] = '@';
i = 2;
c = K_SECOND(c);
}
if ((!chartab_initialized && ((c >= ' ' && c <= '~')))
|| (c < 256 && vim_isprintc_stri... | 0 |
455,414 | xfs_inode_ag_walk(
struct xfs_mount *mp,
struct xfs_perag *pag,
int (*execute)(struct xfs_inode *ip, int flags,
void *args),
int flags,
void *args,
int tag,
int iter_flags)
{
uint32_t first_index;
int last_error = 0;
int skipped;
int done;
int nr_found;
restart:
done = 0;
skipp... | 0 |
224,736 | GF_Err ipro_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem)
{
GF_ItemProtectionBox *ptr = (GF_ItemProtectionBox *)s;
if (a->type == GF_ISOM_BOX_TYPE_SINF) {
BOX_FIELD_LIST_ASSIGN(protection_information)
return GF_OK;
}
return GF_OK;
} | 0 |
227,009 | IRC_PROTOCOL_CALLBACK(438)
{
struct t_gui_buffer *ptr_buffer;
IRC_PROTOCOL_MIN_ARGS(4);
ptr_buffer = irc_msgbuffer_get_target_buffer (server, NULL,
command, NULL, NULL);
if (argc >= 5)
{
weechat_printf_date_tags (
ptr_buffer,
... | 0 |
369,104 | static void io_req_task_work_add(struct io_kiocb *req, bool priority)
{
struct task_struct *tsk = req->task;
struct io_uring_task *tctx = tsk->io_uring;
enum task_work_notify_mode notify;
struct io_wq_work_node *node;
unsigned long flags;
bool running;
WARN_ON_ONCE(!tctx);
io_drop_inflight_file(req);
spin_l... | 0 |
343,231 | static void sigterm_client(int sig)
{
(void) sig;
disablesignals();
_EXIT(EXIT_SUCCESS);
} | 0 |
240,606 | void Compute(OpKernelContext* c) override {
core::RefCountPtr<Var> v;
OP_REQUIRES_OK(c, LookupResource(c, HandleFromInput(c, 0), &v));
OP_REQUIRES_OK(c, EnsureSparseVariableAccess<Device, T>(c, v.get()));
// NOTE: We hold the lock for the whole gather operation instead
// of increasing the referen... | 0 |
385,796 | static inline int should_follow_link(struct inode *inode, int follow)
{
if (unlikely(!(inode->i_opflags & IOP_NOFOLLOW))) {
if (likely(inode->i_op->follow_link))
return follow;
/* This gets set once for the inode lifetime */
spin_lock(&inode->i_lock);
inode->i_opflags |= IOP_NOFOLLOW;
spin_unlock(&inode-... | 0 |
244,226 | GF_Err metx_box_read(GF_Box *s, GF_BitStream *bs)
{
u32 size, i;
GF_Err e;
char *str;
GF_MetaDataSampleEntryBox *ptr = (GF_MetaDataSampleEntryBox*)s;
e = gf_isom_base_sample_entry_read((GF_SampleEntryBox *)ptr, bs);
if (e) return e;
ISOM_DECREASE_SIZE(ptr, 8);
if (ptr->size > (u64)SIZE_MAX) {
GF_LOG(GF_LOG_... | 0 |
247,618 | TEST_P(SslSocketTest, RevokedIntermediateCertificate) {
// This should succeed, since the crl chain is complete.
//
// Trust chain contains:
// - Root authority certificate (i.e., ca_cert.pem)
// - Intermediate authority certificate (i.e., intermediate_ca_cert.pem)
//
// Certificate revocation list con... | 0 |
448,916 | local int inflateStateCheck(strm)
z_streamp strm;
{
struct inflate_state FAR *state;
if (strm == Z_NULL ||
strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0)
return 1;
state = (struct inflate_state FAR *)strm->state;
if (state == Z_NULL || state->strm != strm ||
state-... | 0 |
446,106 | static int atusb_ed(struct ieee802154_hw *hw, u8 *level)
{
WARN_ON(!level);
*level = 0xbe;
return 0;
} | 0 |
300,757 | static int __tipc_nl_add_sk_info(struct sk_buff *skb, struct tipc_sock
*tsk)
{
struct net *net = sock_net(skb->sk);
struct sock *sk = &tsk->sk;
if (nla_put_u32(skb, TIPC_NLA_SOCK_REF, tsk->portid) ||
nla_put_u32(skb, TIPC_NLA_SOCK_ADDR, tipc_own_addr(net)))
return -EMSGSIZE;
if (tipc_sk_connected(sk))... | 0 |
328,976 | R_API RBinJavaStackMapFrameMetas *r_bin_java_determine_stack_frame_type(ut8 tag) {
ut8 type_value = 0;
if (tag < 64) {
type_value = R_BIN_JAVA_STACK_FRAME_SAME;
} else if (tag < 128) {
type_value = R_BIN_JAVA_STACK_FRAME_SAME_LOCALS_1;
} else if (247 < tag && tag < 251) {
type_value = R_BIN_JAVA_STACK_FRAME_C... | 0 |
244,361 | GF_Box *ihdr_box_new()
{
ISOM_DECL_BOX_ALLOC(GF_J2KImageHeaderBox, GF_ISOM_BOX_TYPE_IHDR);
return (GF_Box *)tmp;
} | 0 |
328,861 | R_API void r_bin_java_print_fieldref_cp_summary(RBinJavaCPTypeObj *obj) {
if (!obj) {
eprintf ("Attempting to print an invalid RBinJavaCPTypeObj* FieldRef.\n");
return;
}
eprintf ("FieldRef ConstantPool Type (%d) ", obj->metas->ord);
eprintf (" Offset: 0x%08"PFMT64x"", obj->file_offset);
eprintf (" Class Inde... | 0 |
474,054 | fetch_token_in_cc(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
{
int num;
OnigCodePoint c, c2;
const OnigSyntaxType* syn = env->syntax;
OnigEncoding enc = env->enc;
UChar* prev;
UChar* p = *src;
PFETCH_READY;
if (PEND) {
tok->type = TK_EOT;
return tok->type;
}
PFETCH(c);
tok->t... | 0 |
317,223 | static void selinux_inode_invalidate_secctx(struct inode *inode)
{
struct inode_security_struct *isec = selinux_inode(inode);
spin_lock(&isec->lock);
isec->initialized = LABEL_INVALID;
spin_unlock(&isec->lock);
} | 0 |
210,393 | 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... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.