idx int64 | func string | target int64 |
|---|---|---|
230,386 | static void on_syntax_error(struct pj_scanner *scanner)
{
PJ_UNUSED_ARG(scanner);
PJ_THROW(EX_SYNTAX_ERROR);
} | 0 |
395,076 | redraw_later(int type)
{
redraw_win_later(curwin, type);
} | 0 |
326,107 | regnext(char_u *p)
{
int offset;
if (p == JUST_CALC_SIZE || reg_toolong)
return NULL;
offset = NEXT(p);
if (offset == 0)
return NULL;
if (OP(p) == BACK)
return p - offset;
else
return p + offset;
} | 0 |
436,084 |
static int io_init_req(struct io_ring_ctx *ctx, struct io_kiocb *req,
const struct io_uring_sqe *sqe)
{
struct io_submit_state *state;
unsigned int sqe_flags;
int personality, ret = 0;
req->opcode = READ_ONCE(sqe->opcode);
/* same numerical values with corresponding REQ_F_*, safe to copy */
req->flags ... | 0 |
225,406 | static void buffer_written(struct v4l2_loopback_device *dev,
struct v4l2l_buffer *buf)
{
del_timer_sync(&dev->sustain_timer);
del_timer_sync(&dev->timeout_timer);
spin_lock_bh(&dev->lock);
dev->bufpos2index[dev->write_position % dev->used_buffers] =
buf->buffer.index;
list_move_tail(&buf->list_head, &dev-... | 0 |
312,402 | qf_process_qftf_option(void)
{
return option_set_callback_func(p_qftf, &qftf_cb);
} | 0 |
385,838 | COMPAT_SYSCALL_DEFINE2(truncate, const char __user *, path, compat_off_t, length)
{
return do_sys_truncate(path, length);
} | 0 |
246,667 | GF_Err afrt_box_read(GF_Box *s, GF_BitStream *bs)
{
unsigned int i;
GF_AdobeFragmentRunTableBox *ptr = (GF_AdobeFragmentRunTableBox *)s;
ISOM_DECREASE_SIZE(ptr, 5)
ptr->timescale = gf_bs_read_u32(bs);
ptr->quality_entry_count = gf_bs_read_u8(bs);
if (ptr->size < ptr->quality_entry_count)
return GF_ISOM_INVALI... | 0 |
312,425 | qf_parse_fmt_l(regmatch_T *rmp, int midx, qffields_T *fields)
{
if (rmp->startp[midx] == NULL)
return QF_FAIL;
fields->lnum = atol((char *)rmp->startp[midx]);
return QF_OK;
} | 0 |
341,821 | zstringmatch(i_ctx_t *i_ctx_p)
{
os_ptr op = osp;
os_ptr op1 = op - 1;
bool result;
check_read_type(*op, t_string);
switch (r_type(op1)) {
case t_string:
check_read(*op1);
goto cmp;
case t_name:
name_string_ref(imemory, op1, op1); /* can't fail */... | 0 |
310,274 | dirserv_get_name_status(const char *id_digest, const char *nickname)
{
char fp[HEX_DIGEST_LEN+1];
char *fp_by_name;
base16_encode(fp, sizeof(fp), id_digest, DIGEST_LEN);
if ((fp_by_name =
strmap_get_lc(fingerprint_list->fp_by_name, nickname))) {
if (!strcasecmp(fp, fp_by_name)) {
return FP_NA... | 0 |
508,847 | void Lex_input_stream::body_utf8_append(const char *ptr,
const char *end_ptr)
{
DBUG_ASSERT(m_cpp_buf <= ptr && ptr <= m_cpp_buf + m_buf_length);
DBUG_ASSERT(m_cpp_buf <= end_ptr && end_ptr <= m_cpp_buf + m_buf_length);
if (!m_body_utf8)
return;
if (m_cpp_utf8_proce... | 0 |
231,735 | TEST_F(QuicServerTransportTest, RecvPathChallenge) {
auto& conn = server->getNonConstConn();
// Add additional peer id so PathResponse completes.
conn.peerConnectionIds.emplace_back(ConnectionId({1, 2, 3, 4}), 1);
ShortHeader header(
ProtectionType::KeyPhaseZero, *conn.serverConnectionId, 10);
Regular... | 0 |
345,122 | static void pxa3xx_gcu_debug_timedout(struct timer_list *unused)
{
struct pxa3xx_gcu_priv *priv = debug_timer_priv;
QERROR("Timer DUMP");
mod_timer(&pxa3xx_gcu_debug_timer, jiffies + 5 * HZ);
} | 0 |
473,937 | get_case_fold_codes_by_str(OnigCaseFoldType flag,
const OnigUChar* p, const OnigUChar* end,
OnigCaseFoldCodeItem items[],
OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
f... | 0 |
489,144 | sctp_disposition_t sctp_sf_unk_chunk(const struct sctp_endpoint *ep,
const struct sctp_association *asoc,
const sctp_subtype_t type,
void *arg,
sctp_cmd_seq_t *commands)
{
struct sctp_chunk *unk_chunk = arg;
struct sctp_chunk *err_chunk;
sctp_chunkhdr_t *hdr;
SCTP_DEBUG_PRINTK("... | 0 |
366,215 | bool legitimize_mnt(struct vfsmount *bastard, unsigned seq)
{
int res = __legitimize_mnt(bastard, seq);
if (likely(!res))
return true;
if (unlikely(res < 0)) {
rcu_read_unlock();
mntput(bastard);
rcu_read_lock();
}
return false;
} | 0 |
386,582 | bool DL_Dxf::getStrippedLine(std::string& s, unsigned int size, FILE *fp, bool stripSpace) {
if (!feof(fp)) {
// The whole line in the file. Includes space for NULL.
char* wholeLine = new char[size];
// Only the useful part of the line
char* line;
line = fgets(wholeLine, si... | 0 |
276,964 | ~EncryptingStream() {
m_Output->Release();
delete m_StreamCipher;
} | 0 |
259,218 | static int64_t add_ctts_entry(MOVCtts** ctts_data, unsigned int* ctts_count, unsigned int* allocated_size,
int count, int duration)
{
MOVCtts *ctts_buf_new;
const size_t min_size_needed = (*ctts_count + 1) * sizeof(MOVCtts);
const size_t requested_size =
min_size_needed... | 0 |
220,173 | uint64 InputTensor::Hash::operator()(InputTensor const& s) const {
return Hash64Combine(std::hash<const Node*>()(s.node),
std::hash<int>()(s.index));
} | 0 |
274,724 | callbacks_change_layer_color_clicked (GtkButton *button, gpointer user_data) {
gint index=callbacks_get_selected_row_index();
if (index < 0) {
show_no_layers_warning ();
return;
}
callbacks_show_color_picker_dialog (index);
} | 0 |
242,989 | static int ssl_compress_buf( mbedtls_ssl_context *ssl )
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
unsigned char *msg_post = ssl->out_msg;
ptrdiff_t bytes_written = ssl->out_msg - ssl->out_buf;
size_t len_pre = ssl->out_msglen;
unsigned char *msg_pre = ssl->compress_buf;
#if defined(MBEDTLS_... | 0 |
230,142 | static json_t * check_attestation_packed(json_t * j_params, cbor_item_t * auth_data, cbor_item_t * att_stmt, const unsigned char * client_data, gnutls_pubkey_t g_key) {
json_t * j_error = json_array(), * j_return;
cbor_item_t * key, * alg = NULL, * sig = NULL, * x5c_array = NULL, * cert_leaf = NULL;
size_t i, cli... | 0 |
240,298 | stuff_yank(int regname, char_u *p)
{
char_u *lp;
char_u **pp;
// check for read-only register
if (regname != 0 && !valid_yank_reg(regname, TRUE))
{
vim_free(p);
return FAIL;
}
if (regname == '_') // black hole: don't do anything
{
vim_free(p);
return OK;
}
get_yank_regi... | 0 |
462,316 | pcl_status_read(byte * data, uint max_data, pcl_state_t * pcs)
{
uint count = min(max_data,
pcs->status.write_pos - pcs->status.read_pos);
if (count)
memcpy(data, pcs->status.buffer + pcs->status.read_pos, count);
pcs->status.read_pos += count;
if (pcs->status.read_pos == p... | 0 |
309,938 | csi_length(const char *value)
{
int result = 0;
if (value[0] == '\033' && value[1] == '[') {
result = 2;
} else if (UChar(value[0]) == 0x9a) {
result = 1;
}
return result;
} | 0 |
473,863 | big5_uao_mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc ARG_UNUSED)
{
return big5_mbc_enc_len0(p, e, 2, EncLen_BIG5_UAO);
} | 0 |
513,136 | static void update_func_int(THD *thd, struct st_mysql_sys_var *var,
void *tgt, const void *save)
{
*(int *)tgt= *(int *) save;
} | 0 |
274,683 | aperture_report(gerbv_aperture_t *apertures[], int aperture_num,
double x, double y, gerbv_image_t *img, gerbv_project_t *prj)
{
gerbv_aperture_type_t type = apertures[aperture_num]->type;
double *params = apertures[aperture_num]->parameter;
gerbv_simplified_amacro_t *sam = apertures[aperture_num]->simplified;
g... | 0 |
294,459 | c_jd_to_nth_kday(int jd, double sg, int *ry, int *rm, int *rn, int *rk)
{
int rd, rjd, ns2;
c_jd_to_civil(jd, sg, ry, rm, &rd);
c_find_fdom(*ry, *rm, sg, &rjd, &ns2);
*rn = DIV(jd - rjd, 7) + 1;
*rk = c_jd_to_wday(jd);
} | 0 |
512,295 | virtual void quick_fix_field()
{
DBUG_ASSERT(0);
} | 0 |
233,852 | void fmtutil_handle_exif2(deark *c, i64 pos, i64 len,
u32 *returned_flags, u32 *orientation, u32 *exifversion)
{
int user_opt;
de_module_params *mparams = NULL;
if(returned_flags) {
*returned_flags = 0;
}
user_opt = de_get_ext_option_bool(c, "extractexif", -1);
if(user_opt==1 || (c->extract_level>=2 && user_... | 0 |
424,521 | static void video_timer(VideoClientContext* video, UINT64 now)
{
PresentationContext* presentation;
VideoClientContextPriv* priv = video->priv;
VideoFrame *peekFrame, *frame = NULL;
EnterCriticalSection(&priv->framesLock);
do
{
peekFrame = (VideoFrame*)Queue_Peek(priv->frames);
if (!peekFrame)
break;
i... | 0 |
486,799 | static void gem_init(Object *obj)
{
CadenceGEMState *s = CADENCE_GEM(obj);
DeviceState *dev = DEVICE(obj);
DB_PRINT("\n");
gem_init_register_masks(s);
memory_region_init_io(&s->iomem, OBJECT(s), &gem_ops, s,
"enet", sizeof(s->regs));
sysbus_init_mmio(SYS_BUS_DEVICE(d... | 0 |
384,683 | send_newstyle_option_reply_meta_context (uint32_t option, uint32_t reply,
uint32_t context_id,
const char *name)
{
GET_CONN;
struct nbd_fixed_new_option_reply fixed_new_option_reply;
struct nbd_fixed_new_option_reply_meta_context co... | 0 |
254,903 | DocumentSourceGroup::rewriteGroupAsTransformOnFirstDocument() const {
if (_idExpressions.size() != 1) {
// This transformation is only intended for $group stages that group on a single field.
return nullptr;
}
auto fieldPathExpr = dynamic_cast<ExpressionFieldPath*>(_idExpressions.front().ge... | 0 |
508,820 | bool LEX::save_prep_leaf_tables()
{
if (!thd->save_prep_leaf_list)
return FALSE;
Query_arena *arena= thd->stmt_arena, backup;
arena= thd->activate_stmt_arena_if_needed(&backup);
//It is used for DETETE/UPDATE so top level has only one SELECT
DBUG_ASSERT(select_lex.next_select() == NULL);
bool res= sele... | 0 |
413,856 | Method* LinkResolver::linktime_resolve_interface_method_or_null(
const LinkInfo& link_info) {
EXCEPTION_MARK;
Method* method_result = linktime_resolve_interface_method(link_info, THREAD);
if (HAS_PENDING_EXCEPTION) {
CLEAR_PENDING_EXCEPTION;
return NULL;
... | 0 |
459,126 | static void tcf_block_owner_del(struct tcf_block *block,
struct Qdisc *q,
enum flow_block_binder_type binder_type)
{
struct tcf_block_owner_item *item;
list_for_each_entry(item, &block->owner_list, list) {
if (item->q == q && item->binder_type == binder_type) {
list_del(&item->list);
kfree(item);
... | 0 |
387,727 | bool InstanceKlass::is_dependent_nmethod(nmethod* nm) {
return dependencies().is_dependent_nmethod(nm);
} | 0 |
506,696 | int setup_tests(void)
{
ADD_ALL_TESTS(call_run_cert, OSSL_NELEM(name_fns));
ADD_TEST(test_GENERAL_NAME_cmp);
return 1;
} | 0 |
253,517 | parse_server_interfaces(struct network_interface_info_ioctl_rsp *buf,
size_t buf_len,
struct cifs_server_iface **iface_list,
size_t *iface_count)
{
struct network_interface_info_ioctl_rsp *p;
struct sockaddr_in *addr4;
struct sockaddr_in6 *addr6;
struct iface_info_ipv4 *p4;
struct iface_info_ipv6 *p6;
st... | 0 |
248,272 | DLLIMPORT int cfg_parse(cfg_t *cfg, const char *filename)
{
int ret;
char *fn;
FILE *fp;
if (!cfg || !filename) {
errno = EINVAL;
return CFG_FILE_ERROR;
}
if (cfg->path)
fn = cfg_searchpath(cfg->path, filename);
else
fn = cfg_tilde_expand(filename);
if (!fn)
return CFG_FILE_ERROR;
free(cfg->filena... | 0 |
432,186 | static MemTxResult subpage_read(struct uc_struct *uc, void *opaque, hwaddr addr, uint64_t *data,
unsigned len, MemTxAttrs attrs)
{
subpage_t *subpage = opaque;
uint8_t buf[8];
MemTxResult res;
#if defined(DEBUG_SUBPAGE)
printf("%s: subpage %p len %u addr " TARGET_FMT_plx... | 0 |
226,343 | GF_Err tfxd_box_read(GF_Box *s, GF_BitStream *bs)
{
GF_MSSTimeExtBox *ptr = (GF_MSSTimeExtBox *)s;
ISOM_DECREASE_SIZE(ptr, 4);
ptr->version = gf_bs_read_u8(bs);
ptr->flags = gf_bs_read_u24(bs);
if (ptr->version == 0x01) {
ISOM_DECREASE_SIZE(ptr, 16);
ptr->absolute_time_in_track_timescale = gf_bs_read_u64(bs);... | 0 |
281,054 | static void xfrm_statistics_fini(struct net *net)
{
xfrm_proc_fini(net);
free_percpu(net->mib.xfrm_statistics);
} | 0 |
455,293 | finddirs (pat, sdir, flags, ep, np)
char *pat;
char *sdir;
int flags;
struct globval **ep;
int *np;
{
char **r, *n;
int ndirs;
struct globval *ret, *e, *g;
/*itrace("finddirs: pat = `%s' sdir = `%s' flags = 0x%x", pat, sdir, flags);*/
e = ret = 0;
r = glob_vector (pat, sdir, flags);
... | 0 |
252,378 | static int tdefl_flush_block(tdefl_compressor *d, int flush) {
mz_uint saved_bit_buf, saved_bits_in;
mz_uint8 *pSaved_output_buf;
mz_bool comp_block_succeeded = MZ_FALSE;
int n, use_raw_block =
((d->m_flags & TDEFL_FORCE_ALL_RAW_BLOCKS) != 0) &&
(d->m_lookahead_pos - d->m_lz_code_buf_d... | 0 |
225,952 | void tfrf_box_del(GF_Box *s)
{
GF_MSSTimeRefBox *ptr = (GF_MSSTimeRefBox *)s;
if (ptr->frags) gf_free(ptr->frags);
gf_free(s);
} | 0 |
512,995 | bool get_date(THD *thd, MYSQL_TIME *ltime, date_mode_t fuzzydate)
{
cached_time.copy_to_mysql_time(ltime);
return (null_value= false);
} | 0 |
466,125 | static int em_bsf(struct x86_emulate_ctxt *ctxt)
{
u8 zf;
__asm__ ("bsf %2, %0; setz %1"
: "=r"(ctxt->dst.val), "=q"(zf)
: "r"(ctxt->src.val));
ctxt->eflags &= ~X86_EFLAGS_ZF;
if (zf) {
ctxt->eflags |= X86_EFLAGS_ZF;
/* Disable writeback. */
ctxt->dst.type = OP_NONE;
}
return X86EMUL_CONTINUE;
} | 0 |
294,438 | test_unit_v2v_iter2(VALUE (* conv1)(VALUE),
VALUE (* conv2)(VALUE))
{
if (!test_unit_v2v(INT2FIX(0), conv1, conv2))
return 0;
if (!test_unit_v2v(INT2FIX(1), conv1, conv2))
return 0;
if (!test_unit_v2v(INT2FIX(2), conv1, conv2))
return 0;
if (!test_unit_v2v(INT2FIX(3), conv1, conv2))
return 0;
... | 0 |
261,227 | static inline int MqttIsPubRespPacket(int packet_type)
{
return (packet_type == MQTT_PACKET_TYPE_PUBLISH_ACK /* Acknowledgment */ ||
packet_type == MQTT_PACKET_TYPE_PUBLISH_REC /* Received */ ||
packet_type == MQTT_PACKET_TYPE_PUBLISH_REL /* Release */ ||
packet_type == MQTT_PACK... | 0 |
292,137 | void LinkResolver::resolve_invoke(CallInfo& result, Handle& recv,
const methodHandle& attached_method,
Bytecodes::Code byte, TRAPS) {
Klass* defc = attached_method->method_holder();
Symbol* name = attached_method->name();
Symbol* type = attached_method->si... | 0 |
508,341 | bool table_already_fk_prelocked(TABLE_LIST *tl, LEX_STRING *db,
LEX_STRING *table, thr_lock_type lock_type)
{
for (; tl; tl= tl->next_global )
{
if (tl->lock_type >= lock_type &&
tl->prelocking_placeholder == TABLE_LIST::FK &&
strcmp(tl->db, db->str) == 0 &&
... | 0 |
259,084 | Status run(BundleReader* reader) {
TensorShape restored_full_shape;
TF_RETURN_IF_ERROR(
reader->LookupTensorShape(tensor_name, &restored_full_shape));
VLOG(1) << "Restoring tensor " << idx << " : " << tensor_name << " : "
<< restored_full_shape.num_elements();
Tensor* restored_ten... | 0 |
513,051 | void print(String *str, enum_query_type query_type)
{
str->append(STRING_WITH_LEN("ignore"));
} | 0 |
221,154 | void gf_odf_vp_cfg_del(GF_VPConfig *cfg)
{
if (!cfg) return;
if (cfg->codec_initdata) {
gf_free(cfg->codec_initdata);
cfg->codec_initdata = NULL;
}
gf_free(cfg);
} | 0 |
384,876 | expand_backtick(
garray_T *gap,
char_u *pat,
int flags) // EW_* flags
{
char_u *p;
char_u *cmd;
char_u *buffer;
int cnt = 0;
int i;
// Create the command: lop off the backticks.
cmd = vim_strnsave(pat + 1, STRLEN(pat) - 2);
if (cmd == NULL)
return -1;
#ifdef FEAT_EVAL
... | 0 |
359,481 | peer_lookup_vty (struct vty *vty, const char *ip_str)
{
int ret;
struct bgp *bgp;
union sockunion su;
struct peer *peer;
bgp = vty->index;
ret = str2sockunion (ip_str, &su);
if (ret < 0)
{
vty_out (vty, "%% Malformed address: %s%s", ip_str, VTY_NEWLINE);
return NULL;
}
peer = peer... | 0 |
326,646 | hfs_write_decmpfs_block(struct archive_write_disk *a, const char *buff,
size_t size)
{
const char *buffer_to_write;
size_t bytes_to_write;
int ret;
if (a->decmpfs_block_count == (unsigned)-1) {
void *new_block;
size_t new_size;
unsigned int block_count;
if (a->decmpfs_header_p == NULL) {
new_block ... | 0 |
353,180 | SplashGouraudPattern::~SplashGouraudPattern() {
} | 0 |
246,692 | static GF_Err do_compress_top_boxes(char *inName, char *outName)
{
FILE *in, *out;
u8 *buf;
u32 buf_alloc, comp_size;
s32 bytes_comp=0;
s32 bytes_uncomp=0;
GF_Err e = GF_OK;
u64 source_size, dst_size;
u32 orig_box_overhead;
u32 final_box_overhead;
u32 nb_added_box_bytes=0;
Bool has_mov = GF_FALSE;
Bool repl... | 0 |
384,799 | f_finddir(typval_T *argvars, typval_T *rettv)
{
findfilendir(argvars, rettv, FINDFILE_DIR);
} | 0 |
336,583 | void reds_on_vm_stop(RedsState *reds)
{
FOREACH_QXL_INSTANCE(reds, qxl) {
red_qxl_stop(qxl);
}
} | 0 |
509,525 | static int mark_recovery_start(const char* log_dir)
{
int res;
DBUG_ENTER("mark_recovery_start");
if (!(maria_recover_options & HA_RECOVER_ANY))
ma_message_no_user(ME_WARNING, "Please consider using option"
" --aria-recover-options[=...] to automatically check and"
... | 0 |
413,663 | static int core_anal_graph_construct_nodes(RCore *core, RAnalFunction *fcn, int opts, PJ *pj, Sdb *DB) {
RAnalBlock *bbi;
RListIter *iter;
int is_keva = opts & R_CORE_ANAL_KEYVALUE;
int is_star = opts & R_CORE_ANAL_STAR;
int is_json = opts & R_CORE_ANAL_JSON;
int is_html = r_cons_context ()->is_html;
int left = ... | 0 |
432,179 | static void test_map_big_memory(void)
{
uc_engine *uc;
OK(uc_open(UC_ARCH_X86, UC_MODE_64, &uc));
uc_assert_err(UC_ERR_NOMEM,
uc_mem_map(uc, 0x0, 0xfffffffffffff000, UC_PROT_ALL));
OK(uc_close(uc));
} | 0 |
413,852 | void CallInfo::set_interface(Klass* resolved_klass,
const methodHandle& resolved_method,
const methodHandle& selected_method,
int itable_index, TRAPS) {
// This is only called for interface methods. If the resolved_method
// come... | 0 |
312,387 | ex_cwindow(exarg_T *eap)
{
qf_info_T *qi;
qf_list_T *qfl;
win_T *win;
if ((qi = qf_cmd_get_stack(eap, TRUE)) == NULL)
return;
qfl = qf_get_curlist(qi);
// Look for an existing quickfix window.
win = qf_find_win(qi);
// If a quickfix window is open but we have no errors to display,
... | 0 |
434,098 | ex_argedit(exarg_T *eap)
{
int i = eap->addr_count ? (int)eap->line2 : curwin->w_arg_idx + 1;
// Whether curbuf will be reused, curbuf->b_ffname will be set.
int curbuf_is_reusable = curbuf_reusable();
if (do_arglist(eap->arg, AL_ADD, i, TRUE) == FAIL)
return;
maketitle();
if (curwin->w_arg_i... | 0 |
487,654 | int raw_notifier_chain_unregister(struct raw_notifier_head *nh,
struct notifier_block *n)
{
return notifier_chain_unregister(&nh->head, n);
} | 0 |
229,334 | inline tensorflow::Fprint128 FingerprintCat128(const tensorflow::Fprint128& a,
const tensorflow::Fprint128& b) {
return {tensorflow::FingerprintCat64(a.low64, b.low64),
tensorflow::FingerprintCat64(a.high64, b.high64)};
} | 0 |
225,755 | void stdp_box_del(GF_Box *s)
{
GF_DegradationPriorityBox *ptr = (GF_DegradationPriorityBox *)s;
if (ptr == NULL ) return;
if (ptr->priorities) gf_free(ptr->priorities);
gf_free(ptr);
} | 0 |
274,717 | void callbacks_update_scrollbar_limits (void){
gerbv_render_info_t tempRenderInfo = {0, 0, 0, 0,
GERBV_RENDER_TYPE_CAIRO_HIGH_QUALITY,
screenRenderInfo.displayWidth,
screenRenderInfo.displayHeight};
GtkAdjustment *hAdjust = (GtkAdjustment *)screen.win.hAdjustment;
GtkAdjustment *vAdjust = (GtkAdjustment *)scr... | 0 |
359,208 | BPF_CALL_2(bpf_ringbuf_discard, void *, sample, u64, flags)
{
bpf_ringbuf_commit(sample, flags, true /* discard */);
return 0;
} | 0 |
225,891 | #ifndef GPAC_DISABLE_ISOM_WRITE
GF_Err sgpd_box_write(GF_Box *s, GF_BitStream *bs)
{
u32 i, nb_descs;
GF_SampleGroupDescriptionBox *p = (GF_SampleGroupDescriptionBox *)s;
GF_Err e;
e = gf_isom_full_box_write(s, bs);
if (e) return e;
gf_bs_write_u32(bs, p->grouping_type);
if (p->version>=1) gf_bs_write_u32(bs, p... | 0 |
238,798 | get_spat_last_idx(void)
{
return last_idx;
} | 0 |
345,133 | static int pxa3xx_gcu_remove(struct platform_device *pdev)
{
struct pxa3xx_gcu_priv *priv = platform_get_drvdata(pdev);
struct device *dev = &pdev->dev;
pxa3xx_gcu_wait_idle(priv);
misc_deregister(&priv->misc_dev);
dma_free_coherent(dev, SHARED_SIZE, priv->shared, priv->shared_phys);
clk_disable_unprepare(priv->... | 0 |
484,798 | static void __exit netif_exit(void)
{
xenbus_unregister_driver(&netfront_driver);
} | 0 |
222,503 | FunctionLibraryDefinition::FindHelper(const string& func) const {
auto iter = function_defs_.find(func);
if (iter == function_defs_.end()) {
return nullptr;
} else {
return iter->second;
}
} | 0 |
459,509 | BPF_CALL_4(bpf_get_stack, struct pt_regs *, regs, void *, buf, u32, size,
u64, flags)
{
return __bpf_get_stack(regs, NULL, NULL, buf, size, flags);
} | 0 |
238,402 | njs_function_lambda_frame(njs_vm_t *vm, njs_function_t *function,
const njs_value_t *this, const njs_value_t *args, njs_uint_t nargs,
njs_bool_t ctor)
{
size_t n, frame_size;
uint32_t args_count, value_count, value_size, temp_size;
njs_value_t *value, *bound,... | 0 |
440,874 | LogSetParameter(LogParameter param, int value)
{
switch (param) {
case XLOG_FLUSH:
logFlush = value ? TRUE : FALSE;
return TRUE;
case XLOG_SYNC:
logSync = value ? TRUE : FALSE;
return TRUE;
case XLOG_VERBOSITY:
logVerbosity = value;
return TRUE;
case X... | 0 |
244,285 | GF_Err jp2h_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem)
{
GF_J2KHeaderBox *ptr = (GF_J2KHeaderBox *)s;
switch(a->type) {
case GF_ISOM_BOX_TYPE_IHDR:
BOX_FIELD_ASSIGN(ihdr, GF_J2KImageHeaderBox)
return GF_OK;
case GF_ISOM_BOX_TYPE_COLR:
BOX_FIELD_ASSIGN(colr, GF_ColourInformationBox)
return GF_OK;
}
re... | 0 |
256,945 | static Status ReshapeToRank3(const Tensor& input, int batch_size,
Tensor* output) {
const int rank = input.dims();
TensorShape output_shape = {batch_size, input.dim_size(rank - 2),
input.dim_size(rank - 1)};
return CopyFrom(input, output_shape... | 0 |
488,362 | void unmap_mapping_range(struct address_space *mapping,
loff_t const holebegin, loff_t const holelen, int even_cows)
{
struct zap_details details;
pgoff_t hba = holebegin >> PAGE_SHIFT;
pgoff_t hlen = (holelen + PAGE_SIZE - 1) >> PAGE_SHIFT;
/* Check for overflow. */
if (sizeof(holelen) > sizeof(hlen)) {
long... | 0 |
484,761 | static int xennet_change_mtu(struct net_device *dev, int mtu)
{
int max = xennet_can_sg(dev) ? XEN_NETIF_MAX_TX_SIZE : ETH_DATA_LEN;
if (mtu > max)
return -EINVAL;
dev->mtu = mtu;
return 0;
} | 0 |
248,763 | static const char *get_top_domain(const char * const domain, size_t *outlen)
{
size_t len = 0;
const char *first = NULL, *last;
if(domain) {
len = strlen(domain);
last = memrchr(domain, '.', len);
if(last) {
first = memrchr(domain, '.', (last - domain));
if(first)
len -= (++first ... | 0 |
219,990 | int callback_glewlwyd_scheme_check_forbid_profile (const struct _u_request * request, struct _u_response * response, void * user_data) {
struct config_elements * config = (struct config_elements *)user_data;
json_t * j_param = ulfius_get_json_body_request(request, NULL), * j_scheme = get_user_auth_scheme_module(con... | 0 |
294,557 | ns_to_day(VALUE n)
{
if (FIXNUM_P(n))
return rb_rational_new2(n, day_in_nanoseconds);
return f_quo(n, day_in_nanoseconds);
} | 0 |
349,281 | void squashfs_closedir(struct dir *dir)
{
struct dir_ent *ent = dir->dirs;
while(ent) {
struct dir_ent *tmp = ent;
ent = ent->next;
free(tmp->name);
free(tmp);
}
free(dir);
} | 0 |
299,905 | readconf_main(void)
{
int sep = 0;
struct stat statbuf;
uschar *s, *filename;
uschar *list = config_main_filelist;
/* Loop through the possible file names */
while((filename = string_nextinlist(&list, &sep, big_buffer, big_buffer_size))
!= NULL)
{
/* Cut out all the fancy processing unless specifically wan... | 0 |
487,669 | asmlinkage long sys_old_getrlimit(unsigned int resource, struct rlimit __user *rlim)
{
struct rlimit x;
if (resource >= RLIM_NLIMITS)
return -EINVAL;
task_lock(current->group_leader);
x = current->signal->rlim[resource];
task_unlock(current->group_leader);
if (x.rlim_cur > 0x7FFFFFFF)
x.rlim_cur = 0x7FFFFFFF... | 0 |
294,542 | d_new_by_frags(VALUE klass, VALUE hash, VALUE sg)
{
VALUE jd;
if (!c_valid_start_p(NUM2DBL(sg))) {
sg = INT2FIX(DEFAULT_SG);
rb_warning("invalid start is ignored");
}
if (NIL_P(hash))
rb_raise(eDateError, "invalid date");
if (NIL_P(ref_hash("jd")) &&
NIL_P(ref_hash("yday")) &&
!NIL_P(ref_has... | 0 |
226,189 |
GF_Err stvi_box_size(GF_Box *s)
{
GF_StereoVideoBox *ptr = (GF_StereoVideoBox *)s;
ptr->size+= 12 + ptr->sit_len;
return GF_OK; | 0 |
359,332 | DEFUN (clear_ip_bgp_external_in_prefix_filter,
clear_ip_bgp_external_in_prefix_filter_cmd,
"clear ip bgp external in prefix-filter",
CLEAR_STR
IP_STR
BGP_STR
"Clear all external peers\n"
"Soft reconfig inbound update\n"
"Push out prefix-list ORF and do inbound sof... | 0 |
175,700 | virtual bool ethernet_available() const {
return available_devices_ & (1 << TYPE_ETHERNET);
}
| 0 |
437,305 | tree_min_len(Node* node, ScanEnv* env)
{
OnigLen len;
OnigLen tmin;
len = 0;
switch (NODE_TYPE(node)) {
case NODE_BACKREF:
if (! NODE_IS_CHECKER(node)) {
int i;
int* backs;
MemEnv* mem_env = SCANENV_MEMENV(env);
BackRefNode* br = BACKREF_(node);
if (NODE_IS_RECURSION(node)) ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.