idx int64 | func string | target int64 |
|---|---|---|
281,077 | static struct xfrm_policy *xfrm_sk_policy_lookup(const struct sock *sk, int dir,
const struct flowi *fl, u16 family)
{
struct xfrm_policy *pol;
rcu_read_lock();
again:
pol = rcu_dereference(sk->sk_policy[dir]);
if (pol != NULL) {
bool match = xfrm_selector_match(&pol->selector, fl, family);
int err = 0... | 0 |
248,306 | static void cfg_handle_deprecated(cfg_t *cfg, cfg_opt_t *opt)
{
if (is_set(CFGF_DROP, opt->flags)) {
cfg_error(cfg, _("dropping deprecated configuration option '%s'"), opt->name);
cfg_free_value(opt);
} else {
cfg_error(cfg, _("found deprecated option '%s', please update configuration file."), opt->name);
}
} | 0 |
473,957 | koi8_u_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, 0,
flag, p, end, items... | 0 |
244,292 | GF_Box *emsg_box_new()
{
ISOM_DECL_BOX_ALLOC(GF_EventMessageBox, GF_ISOM_BOX_TYPE_EMSG);
return (GF_Box *)tmp;
} | 0 |
477,272 | void tipc_crypto_msg_rcv(struct net *net, struct sk_buff *skb)
{
struct tipc_crypto *rx;
struct tipc_msg *hdr;
if (unlikely(skb_linearize(skb)))
goto exit;
hdr = buf_msg(skb);
rx = tipc_node_crypto_rx_by_addr(net, msg_prevnode(hdr));
if (unlikely(!rx))
goto exit;
switch (msg_type(hdr)) {
case KEY_DISTR_M... | 0 |
336,491 | static void reds_mig_target_client_disconnect_all(RedsState *reds)
{
RedsMigTargetClient *mig_client;
GLIST_FOREACH(reds->mig_target_clients, RedsMigTargetClient, mig_client) {
reds_client_disconnect(reds, mig_client->client);
}
} | 0 |
413,841 | void CallInfo::set_resolved_method_name(TRAPS) {
assert(_resolved_method() != NULL, "Should already have a Method*");
oop rmethod_name = java_lang_invoke_ResolvedMethodName::find_resolved_method(_resolved_method, CHECK);
_resolved_method_name = Handle(THREAD, rmethod_name);
} | 0 |
261,442 | static inline int decode_coeff_abs_level_greater1(thread_context* tctx,
int cIdx, int i,
bool firstCoeffInSubblock,
bool firstSubblock,
... | 0 |
279,941 | do_sub_msg(
int count_only) // used 'n' flag for ":s"
{
/*
* Only report substitutions when:
* - more than 'report' substitutions
* - command was typed by user, or number of changed lines > 'report'
* - giving messages is not disabled by 'lazyredraw'
*/
if (((sub_nsubs > p_repo... | 0 |
224,235 | R_API bool r_io_bank_update_map_boundaries(RIO *io, const ut32 bankid, const ut32 mapid, ut64 ofrom, ut64 oto) {
RIOBank *bank = r_io_bank_get (io, bankid);
r_return_val_if_fail (io && bank, false);
RListIter *iter;
RIOMapRef *mapref;
r_list_foreach_prev (bank->maprefs, iter, mapref) {
if (mapref->id == mapid) {... | 0 |
413,343 | static int netsnmp_session_init(php_snmp_session **session_p, int version, char *hostname, char *community, int timeout, int retries TSRMLS_DC)
{
php_snmp_session *session;
char *pptr, *host_ptr;
int force_ipv6 = FALSE;
int n;
struct sockaddr **psal;
struct sockaddr **res;
*session_p = (php_snmp_session *)emall... | 0 |
463,114 | static void annotation_get_freespace_total(annotate_state_t *state,
struct annotate_entry_list *entry)
{
uint64_t tavail = 0;
uint64_t ttotal = 0;
struct buf value = BUF_INITIALIZER;
(void) partlist_local_find_freespace_most(0, NULL, NULL, &tavail, &ttotal);
buf_printf(&value, ... | 0 |
249,957 | __old_realpath (const char *name, char *resolved)
{
if (resolved == NULL)
{
__set_errno (EINVAL);
return NULL;
}
return __realpath (name, resolved);
} | 0 |
450,420 | static void audio_capture(void *opaque, void *buf, int size)
{
VncState *vs = opaque;
assert(vs->magic == VNC_MAGIC);
vnc_lock_output(vs);
if (vs->output.offset < vs->throttle_output_offset) {
vnc_write_u8(vs, VNC_MSG_SERVER_QEMU);
vnc_write_u8(vs, VNC_MSG_SERVER_QEMU_AUDIO);
vn... | 0 |
222,522 | Status AddDefaultAttrs(const string& op,
const GetFunctionSignature& get_function,
AttrValueMap* attrs) {
const OpDef* op_def = nullptr;
TF_RETURN_IF_ERROR(get_function(op, &op_def));
AttrSlice attr_slice(attrs);
for (const auto& attr_def : op_def->attr()) {
if ... | 0 |
366,285 | static int graft_tree(struct mount *mnt, struct mount *p, struct mountpoint *mp)
{
if (mnt->mnt.mnt_sb->s_flags & SB_NOUSER)
return -EINVAL;
if (d_is_dir(mp->m_dentry) !=
d_is_dir(mnt->mnt.mnt_root))
return -ENOTDIR;
return attach_recursive_mnt(mnt, p, mp, false);
} | 0 |
462,434 | destructSess(ptcpsess_t *pSess)
{
free(pSess->pMsg);
free(pSess->epd);
prop.Destruct(&pSess->peerName);
prop.Destruct(&pSess->peerIP);
/* TODO: make these inits compile-time switch depending: */
pSess->pMsg = NULL;
pSess->epd = NULL;
free(pSess);
} | 0 |
376,349 | camel_gpg_context_set_always_trust (CamelGpgContext *context,
gboolean always_trust)
{
g_return_if_fail (CAMEL_IS_GPG_CONTEXT (context));
if (context->priv->always_trust == always_trust)
return;
context->priv->always_trust = always_trust;
g_object_notify (G_OBJECT (context),... | 0 |
369,127 | static void ctx_flush_and_put(struct io_ring_ctx *ctx, bool *locked)
{
if (!ctx)
return;
if (*locked) {
io_submit_flush_completions(ctx);
mutex_unlock(&ctx->uring_lock);
*locked = false;
}
percpu_ref_put(&ctx->refs);
} | 0 |
343,313 | void doestp(void)
{
struct sockaddr_storage dataconn;
socklen_t socksize;
char hbuf[NI_MAXHOST];
char pbuf[NI_MAXSERV];
if (passive == 0 || datafd == -1) {
addreply_noformat(520, MSG_CANT_PASSIVE);
return;
}
if (xferfd == -1) {
opendata();
if (xferfd == -1) {... | 0 |
344,260 | l_noret luaG_callerror (lua_State *L, const TValue *o) {
CallInfo *ci = L->ci;
const char *name = NULL; /* to avoid warnings */
const char *kind = funcnamefromcall(L, ci, &name);
const char *extra = kind ? formatvarinfo(L, kind, name) : varinfo(L, o);
typeerror(L, o, "call", extra);
} | 0 |
512,677 | Print(Item *item, enum_query_type type)
{
item->print(this, type);
} | 0 |
195,391 | void Compute(tensorflow::OpKernelContext* context) override {
for (int ngram_width : ngram_widths_) {
OP_REQUIRES(
context, ngram_width > 0,
errors::InvalidArgument("ngram_widths must contain positive values"));
}
const tensorflow::Tensor* data;
OP_REQUIRES_OK(context, conte... | 1 |
289,237 | static int snd_pcm_oss_get_rate(struct snd_pcm_oss_file *pcm_oss_file)
{
struct snd_pcm_substream *substream;
int err;
err = snd_pcm_oss_get_active_substream(pcm_oss_file, &substream);
if (err < 0)
return err;
return substream->runtime->oss.rate;
} | 0 |
328,953 | R_API RBinJavaCPTypeObj *r_bin_java_clone_cp_item(RBinJavaCPTypeObj *obj) {
RBinJavaCPTypeObj *clone_obj = NULL;
if (!obj) {
return clone_obj;
}
clone_obj = R_NEW0 (RBinJavaCPTypeObj);
if (clone_obj) {
memcpy (clone_obj, obj, sizeof (RBinJavaCPTypeObj));
clone_obj->metas = (RBinJavaMetaInfo *) R_NEW0 (RBinJa... | 0 |
459,016 | http_TimeHeader(struct http *to, const char *fmt, vtim_real now)
{
char *p;
CHECK_OBJ_NOTNULL(to, HTTP_MAGIC);
if (to->nhd >= to->shd) {
VSLbs(to->vsl, SLT_LostHeader, TOSTRAND(fmt));
http_fail(to);
return;
}
p = WS_Alloc(to->ws, strlen(fmt) + VTIM_FORMAT_SIZE);
if (p == NULL) {
http_fail(to);
VSLbs(to... | 0 |
252,420 | static int ParseEXRHeader(HeaderInfo *info, bool *empty_header,
const EXRVersion *version, std::string *err,
const unsigned char *buf, size_t size) {
const char *marker = reinterpret_cast<const char *>(&buf[0]);
if (empty_header) {
(*empty_header) = false;
... | 0 |
512,786 | uint32 max_display_length() const { return field->max_display_length(); } | 0 |
301,420 | static bool vfswrap_is_offline(struct vfs_handle_struct *handle,
const struct smb_filename *fname,
SMB_STRUCT_STAT *sbuf)
{
NTSTATUS status;
char *path;
bool offline = false;
if (ISDOT(fname->base_name) || ISDOTDOT(fname->base_name)) {
return false;
}
if (!lp_dmapi_support(SNUM(hand... | 0 |
482,504 | compileString(const char *inString, TranslationTableHeader **table,
DisplayTableHeader **displayTable) {
/* This function can be used to make changes to tables on the fly. */
int k;
FileInfo file;
if (inString == NULL) return 0;
memset(&file, 0, sizeof(file));
file.fileName = inString;
file.encoding = noEncodi... | 0 |
274,862 | TEST(ComparisonsTest, LessFloat) {
ComparisonOpModel model({1, 1, 1, 4}, {1, 1, 1, 4}, TensorType_FLOAT32,
BuiltinOperator_LESS);
model.PopulateTensor<float>(model.input1(), {0.1, 0.9, 0.7, 0.3});
model.PopulateTensor<float>(model.input2(), {0.1, 0.2, 0.6, 0.5});
model.Invoke();
EXP... | 0 |
274,651 | callbacks_drawingarea_button_press_event (GtkWidget *widget, GdkEventButton *event)
{
GdkWindow *drawing_area_window = screen.drawing_area->window;
GdkCursor *cursor;
switch (event->button) {
case 1 :
if (screen.tool == POINTER) {
/* select */
/* selection will only work with cairo, so do nothing if i... | 0 |
195,741 | bool SingleComponentLSScan::ParseMCU(void)
{
#if ACCUSOFT_CODE
int lines = m_ulRemaining[0]; // total number of MCU lines processed.
UBYTE preshift = m_ucLowBit + FractionalColorBitsOf();
struct Line *line = CurrentLine(0);
//
// If a DNL marker is present, the number of remaining l... | 1 |
385,818 | int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
{
struct inode *inode = file_inode(file);
long ret;
if (offset < 0 || len <= 0)
return -EINVAL;
/* Return error if mode is not supported */
if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE))
return -EOPNOTSUPP;
/* Punch hole mu... | 0 |
329,920 | _cairo_image_scaled_glyph_fini (cairo_scaled_font_t *scaled_font,
cairo_scaled_glyph_t *scaled_glyph)
{
} | 0 |
503,989 | auth_request_get_var_expand_table(const struct auth_request *auth_request,
auth_request_escape_func_t *escape_func)
{
unsigned int count = 0;
return auth_request_get_var_expand_table_full(auth_request, escape_func,
&count);
} | 0 |
312,437 | qf_entry_on_or_before_pos(qfline_T *qfp, pos_T *pos, int linewise)
{
if (linewise)
return qfp->qf_lnum <= pos->lnum;
else
return (qfp->qf_lnum < pos->lnum ||
(qfp->qf_lnum == pos->lnum && qfp->qf_col <= pos->col));
} | 0 |
252,463 | mz_bool mz_zip_writer_add_mem_ex(mz_zip_archive *pZip,
const char *pArchive_name, const void *pBuf,
size_t buf_size, const void *pComment,
mz_uint16 comment_size,
mz_uint level_and_flags, ... | 0 |
348,434 | static void mkiss_receive_buf(struct tty_struct *tty, const unsigned char *cp,
const char *fp, int count)
{
struct mkiss *ax = mkiss_get(tty);
if (!ax)
return;
/*
* Argh! mtu change time! - costs us the packet part received
* at the change
*/
if (ax->mtu != ax->dev->mtu + 73)
ax_changedmtu(ax);
/* Re... | 0 |
359,289 | DEFUN (clear_ip_bgp_peer,
clear_ip_bgp_peer_cmd,
"clear ip bgp (A.B.C.D|X:X::X:X)",
CLEAR_STR
IP_STR
BGP_STR
"BGP neighbor IP address to clear\n"
"BGP IPv6 neighbor to clear\n")
{
return bgp_clear_vty (vty, NULL, 0, 0, clear_peer, BGP_CLEAR_SOFT_NONE, argv[0]);
} | 0 |
210,896 | void *memslot_get_virt(RedMemSlotInfo *info, QXLPHYSICAL addr, uint32_t add_size,
int group_id)
{
int slot_id;
int generation;
unsigned long h_virt;
MemSlot *slot;
if (group_id > info->num_memslots_groups) {
spice_critical("group_id too big");
return NULL;
... | 1 |
234,797 | void btrfs_close_devices(struct btrfs_fs_devices *fs_devices)
{
LIST_HEAD(list);
struct btrfs_fs_devices *tmp;
mutex_lock(&uuid_mutex);
close_fs_devices(fs_devices);
if (!fs_devices->opened)
list_splice_init(&fs_devices->seed_list, &list);
list_for_each_entry_safe(fs_devices, tmp, &list, seed_list) {
close_... | 0 |
226,322 | GF_Err gnrm_box_read(GF_Box *s, GF_BitStream *bs)
{
return GF_OK;
} | 0 |
225,630 |
GF_Err pcmC_box_write(GF_Box *s, GF_BitStream *bs)
{
GF_Err e;
GF_PCMConfigBox *ptr = (GF_PCMConfigBox *) s;
e = gf_isom_full_box_write(s, bs);
if (e) return e;
gf_bs_write_u8(bs, ptr->format_flags);
gf_bs_write_u8(bs, ptr->PCM_sample_size);
return GF_OK; | 0 |
405,396 | xfrm_pol_inexact_node_alloc(const xfrm_address_t *addr, u8 prefixlen)
{
struct xfrm_pol_inexact_node *node;
node = kzalloc(sizeof(*node), GFP_ATOMIC);
if (node)
xfrm_pol_inexact_node_init(node, addr, prefixlen);
return node;
} | 0 |
336,506 | static void reds_handle_ssl_accept(int fd, int event, void *data)
{
RedLinkInfo *link = (RedLinkInfo *)data;
RedStreamSslStatus return_code = red_stream_ssl_accept(link->stream);
switch (return_code) {
case RED_STREAM_SSL_STATUS_ERROR:
reds_link_free(link);
return;
c... | 0 |
332,392 | set_ref_in_opfunc(int copyID UNUSED)
{
int abort = FALSE;
abort = set_ref_in_callback(&opfunc_cb, copyID);
return abort;
} | 0 |
314,776 | cdf_read_sector(const cdf_info_t *info, void *buf, size_t offs, size_t len,
const cdf_header_t *h, cdf_secid_t id)
{
size_t ss = CDF_SEC_SIZE(h);
size_t pos = CDF_SEC_POS(h, id);
assert(ss == len);
return cdf_read(info, (off_t)pos, ((char *)buf) + offs, len);
} | 0 |
369,210 |
static struct file *io_file_get_normal(struct io_kiocb *req, int fd)
{
struct file *file = fget(fd);
trace_io_uring_file_get(req->ctx, req, req->user_data, fd);
/* we don't allow fixed io_uring files */
if (file && file->f_op == &io_uring_fops)
req->flags |= REQ_F_INFLIGHT;
return file; | 0 |
205,570 | RList *r_bin_ne_get_relocs(r_bin_ne_obj_t *bin) {
RList *segments = bin->segments;
if (!segments) {
return NULL;
}
RList *entries = bin->entries;
if (!entries) {
return NULL;
}
RList *symbols = bin->symbols;
if (!symbols) {
return NULL;
}
ut16 *modref = calloc (bin->ne_header->ModRefs, sizeof (ut16));
... | 1 |
259,601 | void HierarchicalBitmapRequester::PostImageHeight(ULONG lines)
{
BitmapCtrl::PostImageHeight(lines);
#if ACCUSOFT_CODE
assert(m_pulHeight);
if (m_pLargestScale)
m_pLargestScale->PostImageHeight(lines);
for(UBYTE i = 0;i < m_ucCount;i++) {
class Component *comp = m_pFrame->ComponentOf(i);
UBYTE s... | 0 |
226,258 |
GF_Err fdpa_box_write(GF_Box *s, GF_BitStream *bs)
{
GF_Err e;
u32 i;
GF_FDpacketBox *ptr = (GF_FDpacketBox *) s;
if (!s) return GF_BAD_PARAM;
e = gf_isom_box_write_header(s, bs);
if (e) return e;
gf_bs_write_int(bs, ptr->info.sender_current_time_present, 1);
gf_bs_write_int(bs, ptr->info.expected_residual_t... | 0 |
474,065 | st_insert(register st_table *table, register st_data_t key, st_data_t value)
{
st_index_t hash_val, bin_pos;
register st_table_entry *ptr;
if (table->entries_packed) {
st_index_t i;
for (i = 0; i < table->num_entries; i++) {
if ((st_data_t)table->bins[i*2] == key) {
... | 0 |
225,115 | void AddComma(string* s, bool* add_comma) {
if (*add_comma) {
strings::StrAppend(s, ", ");
} else {
*add_comma = true;
}
} | 0 |
309,824 | NCURSES_SP_NAME(vid_attr) (NCURSES_SP_DCLx
attr_t newmode,
NCURSES_PAIRS_T pair_arg,
void *opts)
{
T((T_CALLED("vid_attr(%s,%d)"), _traceattr(newmode), (int) pair_arg));
returnCode(NCURSES_SP_NAME(vid_puts) (NCURSES_SP_ARGx
newmode,
pair_arg,
opts,
NCURSES_SP_NAME(_... | 0 |
512,703 | virtual const char *full_name() const { return name.str ? name.str : "???"; } | 0 |
437,364 | setup_tree(Node* node, regex_t* reg, int state, ScanEnv* env)
{
int r = 0;
switch (NODE_TYPE(node)) {
case NODE_LIST:
{
Node* prev = NULL_NODE;
do {
r = setup_tree(NODE_CAR(node), reg, state, env);
if (IS_NOT_NULL(prev) && r == 0) {
r = next_setup(prev, NODE_CAR(node), r... | 0 |
459,213 | int tcf_qevent_validate_change(struct tcf_qevent *qe, struct nlattr *block_index_attr,
struct netlink_ext_ack *extack)
{
u32 block_index;
int err;
if (!block_index_attr)
return 0;
err = tcf_qevent_parse_block_index(block_index_attr, &block_index, extack);
if (err)
return err;
/* Bounce newly-conf... | 0 |
335,098 | static int skcipher_accept_parent_nokey(void *private, struct sock *sk)
{
struct skcipher_ctx *ctx;
struct alg_sock *ask = alg_sk(sk);
struct skcipher_tfm *tfm = private;
struct crypto_ablkcipher *skcipher = tfm->skcipher;
unsigned int len = sizeof(*ctx) + crypto_ablkcipher_reqsize(skcipher);
ctx = sock_kmalloc(... | 0 |
344,256 | static int l_strcmp (const TString *ls, const TString *rs) {
const char *l = getstr(ls);
size_t ll = tsslen(ls);
const char *r = getstr(rs);
size_t lr = tsslen(rs);
for (;;) { /* for each segment */
int temp = strcoll(l, r);
if (temp != 0) /* not equal? */
return temp; /* done */
else { ... | 0 |
500,685 | static sftp_message sftp_get_message(sftp_packet packet) {
sftp_session sftp = packet->sftp;
sftp_message msg = NULL;
sftp_enter_function();
msg = sftp_message_new(sftp);
if (msg == NULL) {
sftp_leave_function();
return NULL;
}
msg->sftp = packet->sftp;
msg->packet_type = packet->type;
if ... | 0 |
310,154 | wrap_cursor(NCURSES_SP_DCL0)
{
if (eat_newline_glitch) {
/*
* xenl can manifest two different ways. The vt100 way is that, when
* you'd expect the cursor to wrap, it stays hung at the right margin
* (on top of the character just emitted) and doesn't wrap until the
* *next* graphic char is emitted. The c1... | 0 |
262,022 | Proto_RequestNameToType(const gchar *name)
{
int i;
for (i = 0; i < G_N_ELEMENTS(reqNameList); i++) {
if (g_strcmp0(name, reqNameList[i].reqName) == 0) {
return reqNameList[i].type;
}
}
return PROTO_REQUEST_UNKNOWN;
} | 0 |
259,603 | void HierarchicalBitmapRequester::AddImageScale(class Frame *frame,bool expandh,bool expandv)
{
#if ACCUSOFT_CODE
if (m_pLargestScale == NULL) {
assert(m_pSmallestScale == NULL);
assert(expandh == false && expandv == false);
// Actually, this is the smallest scale... as it is the first we build.
m_pLa... | 0 |
264,673 | lexer_token_is_identifier (parser_context_t *context_p, /**< context */
const char *identifier_p, /**< identifier */
size_t identifier_length) /**< identifier length */
{
/* Checking has_escape is unnecessary because memcmp will fail if escape sequences are presen... | 0 |
492,672 | _vte_terminal_clear_above_current (VteTerminal *terminal)
{
VteRowData *rowdata;
long i;
VteScreen *screen;
screen = terminal->pvt->screen;
/* If the cursor is actually on the screen, clear data in the row
* which corresponds to the cursor. */
for (i = screen->insert_delta; i < screen->cursor_current.row; i++) ... | 0 |
221,515 | flatpak_run_get_pulse_runtime_dir (void)
{
const char *val = NULL;
val = g_getenv ("PULSE_RUNTIME_PATH");
if (val != NULL)
return realpath (val, NULL);
{
const char *user_runtime_dir = g_get_user_runtime_dir ();
if (user_runtime_dir != NULL)
{
g_autofree char *dir = g_build_filenam... | 0 |
301,500 | prof_init(void)
{
for (int i = 0; i <= STATE_FINAL; ++i)
{
profile_zero(×[i]);
counts[i] = 0;
}
profile_start(¤t);
profile_start(&total);
} | 0 |
366,204 | static bool check_for_nsfs_mounts(struct mount *subtree)
{
struct mount *p;
bool ret = false;
lock_mount_hash();
for (p = subtree; p; p = next_mnt(p, subtree))
if (mnt_ns_loop(p->mnt.mnt_root))
goto out;
ret = true;
out:
unlock_mount_hash();
return ret;
} | 0 |
231,635 | auto& idleTimeout() {
return idleTimeout_;
} | 0 |
211,522 | parse_cmd_address(exarg_T *eap, char **errormsg, int silent)
{
int address_count = 1;
linenr_T lnum;
// Repeat for all ',' or ';' separated addresses.
for (;;)
{
eap->line1 = eap->line2;
eap->line2 = default_address(eap);
eap->cmd = skipwhite(eap->cmd);
lnum = get_address(eap, &eap->cmd, eap->... | 1 |
254,064 | char* pop(const std::string& name)
{
char* ret = get(name);
if (ret != nullptr)
{
for (unsigned int i = 0; i < key_value_pairs_.size(); i++)
{
std::string str_item(key_value_pairs_[i]);
if (str_it... | 0 |
219,922 | GF_Err gf_isom_hint_sample_description_data(GF_ISOFile *the_file, u32 trackNumber, GF_ISOTrackID SourceTrackID, u32 StreamDescriptionIndex, u16 DataLength, u32 offsetInDescription, u8 AtBegin)
{
GF_TrackBox *trak;
GF_HintSampleEntryBox *entry;
u32 count;
u16 refIndex;
GF_HintPacket *pck;
GF_StreamDescDTE *dte;
G... | 0 |
359,458 | DEFUN (clear_bgp_all_rsclient,
clear_bgp_all_rsclient_cmd,
"clear bgp * rsclient",
CLEAR_STR
BGP_STR
"Clear all peers\n"
"Soft reconfig for rsclient RIB\n")
{
if (argc == 1)
return bgp_clear_vty (vty, argv[0], AFI_IP6, SAFI_UNICAST, clear_all,
BG... | 0 |
492,678 | vte_sequence_handler_cs (VteTerminal *terminal, GValueArray *params)
{
long start=-1, end=-1, rows;
GValue *value;
VteScreen *screen;
_vte_terminal_home_cursor (terminal);
/* We require two parameters. Anything less is a reset. */
screen = terminal->pvt->screen;
if ((params == NULL) || (params->n_values < 2))... | 0 |
437,293 | print_anchor(FILE* f, int anchor)
{
int q = 0;
fprintf(f, "[");
if (anchor & ANCHOR_BEGIN_BUF) {
fprintf(f, "begin-buf");
q = 1;
}
if (anchor & ANCHOR_BEGIN_LINE) {
if (q) fprintf(f, ", ");
q = 1;
fprintf(f, "begin-line");
}
if (anchor & ANCHOR_BEGIN_POSITION) {
if (q) fprintf(f,... | 0 |
513,106 | const Type_handler *type_handler() const { return (*ref)->type_handler(); } | 0 |
474,436 | GetQualifiedName(
TPMI_DH_OBJECT handle, // IN: handle of the object
TPM2B_NAME *qualifiedName // OUT: qualified name of the object
)
{
OBJECT *object;
switch(HandleGetType(handle))
{
case TPM_HT_PERMANENT:
qualifiedName->t.size = sizeof(TPM_HANDLE);
UINT32_TO_BYTE_ARR... | 0 |
512,364 | Item_bool(THD *thd, bool i) :Item_int(thd, (longlong) i, 1) { } | 0 |
482,553 | putChar(const FileInfo *file, widechar c, TranslationTableHeader **table,
TranslationTableOffset *characterOffset) {
/* See if a character is in the appropriate table. If not, insert it. In either case,
* return a pointer to it. */
TranslationTableCharacter *character;
TranslationTableOffset offset;
if ((charac... | 0 |
393,470 | static SQInteger get_slice_params(HSQUIRRELVM v,SQInteger &sidx,SQInteger &eidx,SQObjectPtr &o)
{
SQInteger top = sq_gettop(v);
sidx=0;
eidx=0;
o=stack_get(v,1);
if(top>1){
SQObjectPtr &start=stack_get(v,2);
if(sq_type(start)!=OT_NULL && sq_isnumeric(start)){
sidx=tointeg... | 0 |
264,675 | lexer_convert_literal_to_chars (parser_context_t *context_p, /**< context */
const lexer_lit_location_t *literal_p, /**< literal location */
uint8_t *local_byte_array_p, /**< local byte array to store chars */
lexer_string_o... | 0 |
508,908 | void LEX::cleanup_lex_after_parse_error(THD *thd)
{
/*
Delete sphead for the side effect of restoring of the original
LEX state, thd->lex, thd->mem_root and thd->free_list if they
were replaced when parsing stored procedure statements. We
will never use sphead object after a parse error, so it's okay... | 0 |
221,498 | add_ld_so_conf (FlatpakBwrap *bwrap,
GError **error)
{
const char *contents =
"include /run/flatpak/ld.so.conf.d/app-*.conf\n"
"include /app/etc/ld.so.conf\n"
"/app/lib\n"
"include /run/flatpak/ld.so.conf.d/runtime-*.conf\n";
return flatpak_bwrap_add_args_data (bwrap, "ld-so-co... | 0 |
226,027 |
GF_Err void_box_write(GF_Box *s, GF_BitStream *bs)
{
gf_bs_write_u32(bs, 0);
return GF_OK; | 0 |
226,361 |
GF_Box *tsro_box_new()
{
ISOM_DECL_BOX_ALLOC(GF_TimeOffHintEntryBox, GF_ISOM_BOX_TYPE_TSRO);
return (GF_Box *)tmp; | 0 |
209,802 | get_address(
exarg_T *eap UNUSED,
char_u **ptr,
cmd_addr_T addr_type,
int skip, // only skip the address, don't use it
int silent, // no errors or side effects
int to_other_file, // flag: may jump to other file
int address_count UNUSED) // 1 for first address, >1 after comma
{
int... | 1 |
448,560 | static uint8_t *bgp_notify_encapsulate_hard_reset(uint8_t code, uint8_t subcode,
uint8_t *data, size_t datalen)
{
uint8_t *message = XCALLOC(MTYPE_BGP_NOTIFICATION, datalen + 2);
/* ErrCode */
message[0] = code;
/* Subcode */
message[1] = subcode;
/* Data */
if (datalen)
memcpy(message + 2, data, data... | 0 |
255,928 | ShapeRefiner::~ShapeRefiner() {
// The lifetime of the tensors are bound to the GraphRunner, so the tensors
// should be deleted before it.
const_tensor_map_.clear();
} | 0 |
484,724 | void mobi_buffer_getraw(void *data, MOBIBuffer *buf, const size_t len) {
if (!data) {
buf->error = MOBI_PARAM_ERR;
return;
}
if (buf->offset + len > buf->maxlen) {
debug_print("%s", "End of buffer\n");
buf->error = MOBI_BUFFER_END;
return;
}
memcpy(data, buf->... | 0 |
238,635 | int check_ptr_off_reg(struct bpf_verifier_env *env,
const struct bpf_reg_state *reg, int regno)
{
return __check_ptr_off_reg(env, reg, regno, false);
} | 0 |
512,945 | void fix_charset_and_length(CHARSET_INFO *cs,
Derivation dv, Metadata metadata)
{
/*
We have to have a different max_length than 'length' here to
ensure that we get the right length if we do use the item
to create a new table. In this case max_length must be the m... | 0 |
386,560 | void DL_Dxf::addMText(DL_CreationInterface* creationInterface) {
double angle = 0.0;
if (hasValue(50)) {
if (libVersion<=0x02000200) {
// wrong but compatible with dxflib <=2.0.2.0 (angle stored in rad):
angle = getRealValue(50, 0.0);
} else {
angle = (getRea... | 0 |
502,724 | SSL_SESSION *SSL_get1_session(SSL *ssl)
/* variant of SSL_get_session: caller really gets something */
{
SSL_SESSION *sess;
/*
* Need to lock this all up rather than just use CRYPTO_add so that
* somebody doesn't free ssl->session between when we check it's non-null
* and when we up the reference... | 0 |
512,371 | Item_int(THD *thd, longlong i,size_t length= MY_INT64_NUM_DECIMAL_DIGITS):
Item_num(thd), value(i)
{ max_length=(uint32)length; } | 0 |
390,559 | _XkbFindNamedIndicatorMap(XkbSrvLedInfoPtr sli, Atom indicator,
int *led_return)
{
XkbIndicatorMapPtr map;
int led;
/* search for the right indicator */
map = NULL;
if (sli->names && sli->maps) {
for (led = 0; (led < XkbNumIndicators) && (map == NULL); le... | 0 |
503,857 | SCM_DEFINE (scm_open_fdes, "open-fdes", 2, 1, 0,
(SCM path, SCM flags, SCM mode),
"Similar to @code{open} but return a file descriptor instead of\n"
"a port.")
#define FUNC_NAME s_scm_open_fdes
{
int fd;
int iflags;
int imode;
iflags = SCM_NUM2INT (2, flags);
imode = SCM_NUM2INT_DEF (3... | 0 |
477,972 | void simplestring_clear(simplestring* string) {
if(string->str) {
string->str[0] = 0;
}
string->len = 0;
} | 0 |
214,335 | int RGWGetObj_ObjStore_S3::send_response_data(bufferlist& bl, off_t bl_ofs,
off_t bl_len)
{
const char *content_type = NULL;
string content_type_str;
map<string, string> response_attrs;
map<string, string>::iterator riter;
bufferlist metadata_bl;
string expires = get_s3_expiration_header(s, last... | 1 |
413,586 | static void hint_node_print(HintNode *node, int mode, PJ *pj) {
switch (mode) {
case '*':
#define HINTCMD_ADDR(hint,fmt,x) r_cons_printf (fmt" @ 0x%"PFMT64x"\n", x, (hint)->addr)
switch (node->type) {
case HINT_NODE_ADDR: {
const RAnalAddrHintRecord *record;
r_vector_foreach (node->addr_hints, record) {
... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.