idx int64 | func string | target int64 |
|---|---|---|
253,984 | static int vidioc_g_std(struct file *file, void *private_data, v4l2_std_id *norm)
{
if (norm)
*norm = V4L2_STD_ALL;
return 0;
} | 0 |
90,895 | void ClientUsageTracker::GetCachedOrigins(std::set<GURL>* origins) const {
DCHECK(origins);
for (HostUsageMap::const_iterator host_iter = cached_usage_.begin();
host_iter != cached_usage_.end(); host_iter++) {
const UsageMap& origin_map = host_iter->second;
for (UsageMap::const_iterator origin_ite... | 0 |
220,108 | static void __nfs42_ssc_close(struct file *filep)
{
struct nfs_open_context *ctx = nfs_file_open_context(filep);
ctx->state->flags = 0;
} | 0 |
294,686 | date_s_jd(int argc, VALUE *argv, VALUE klass)
{
VALUE vjd, vsg, jd, fr, fr2, ret;
double sg;
rb_scan_args(argc, argv, "02", &vjd, &vsg);
jd = INT2FIX(0);
fr2 = INT2FIX(0);
sg = DEFAULT_SG;
switch (argc) {
case 2:
val2sg(vsg, sg);
case 1:
check_numeric(vjd, "jd");
num... | 0 |
365,619 | _asn1_delete_list_and_nodes (void)
{
list_type *listElement;
while (firstElement)
{
listElement = firstElement;
firstElement = firstElement->next;
_asn1_remove_node (listElement->node, 0);
free (listElement);
}
} | 0 |
411,786 | handle_method_call (GDBusConnection *connection,
const gchar *sender,
const gchar *object_path,
const gchar *interface_name,
const gchar *method_name,
GVariant *... | 0 |
453,029 | int nft_flow_rule_stats(const struct nft_chain *chain,
const struct nft_rule *rule)
{
struct flow_cls_offload cls_flow = {};
struct nft_expr *expr, *next;
int err;
err = nft_flow_offload_cmd(chain, rule, NULL, FLOW_CLS_STATS,
&cls_flow);
if (err < 0)
return err;
nft_rule_for_each_expr(expr, next, ru... | 0 |
294,508 | decode_jd(VALUE jd, VALUE *nth, int *rjd)
{
*nth = f_idiv(jd, INT2FIX(CM_PERIOD));
if (f_zero_p(*nth)) {
*rjd = FIX2INT(jd);
return;
}
*rjd = FIX2INT(f_mod(jd, INT2FIX(CM_PERIOD)));
} | 0 |
236,156 | GF_Err href_box_write(GF_Box *s, GF_BitStream *bs)
{
u32 len;
GF_Err e;
GF_TextHyperTextBox*ptr = (GF_TextHyperTextBox*)s;
e = gf_isom_box_write_header(s, bs);
if (e) return e;
gf_bs_write_u16(bs, ptr->startcharoffset);
gf_bs_write_u16(bs, ptr->endcharoffset);
if (ptr->URL) {
len = (u32) strlen(ptr->URL);
... | 0 |
447,068 | void FileIo::transfer(BasicIo& src)
{
const bool wasOpen = (p_->fp_ != 0);
const std::string lastMode(p_->openMode_);
FileIo *fileIo = dynamic_cast<FileIo*>(&src);
if (fileIo) {
// Optimization if src is another instance of FileIo
fileIo->close();
... | 0 |
384,899 | getnextcomp(char_u *fname)
{
while (*fname && !vim_ispathsep(*fname))
MB_PTR_ADV(fname);
if (*fname)
++fname;
return fname;
} | 0 |
254,751 | njs_typed_array_prototype_slice(njs_vm_t *vm, njs_value_t *args,
njs_uint_t nargs, njs_index_t copy)
{
int64_t start, end, count, offset;
uint32_t i, element_size, length;
njs_int_t ret;
njs_value_t arguments[3], *this, *value;
njs_typed_array_t *array,... | 0 |
404,700 | int __close_fd_get_file(unsigned int fd, struct file **res)
{
struct files_struct *files = current->files;
struct file *file;
struct fdtable *fdt;
fdt = files_fdtable(files);
if (fd >= fdt->max_fds)
goto out_err;
file = fdt->fd[fd];
if (!file)
goto out_err;
rcu_assign_pointer(fdt->fd[fd], NULL);
__put_unu... | 0 |
261,230 | int MqttClient_NetConnect(MqttClient *client, const char* host,
word16 port, int timeout_ms, int use_tls, MqttTlsCb cb)
{
return MqttSocket_Connect(client, host, port, timeout_ms, use_tls, cb);
} | 0 |
352,980 | booleanMatch(
int *matchp,
slap_mask_t flags,
Syntax *syntax,
MatchingRule *mr,
struct berval *value,
void *assertedValue )
{
/* simplistic matching allowed by rigid validation */
struct berval *asserted = (struct berval *) assertedValue;
*matchp = (int) asserted->bv_len - (int) value->bv_len;
return LDAP_SUC... | 0 |
386,500 | void DL_Dxf::addVertex(DL_CreationInterface* creationInterface) {
// vertex defines a face of the mesh if its vertex flags group has the
// 128 bit set but not the 64 bit. 10, 20, 30 are irrelevant and set to
// 0 in this case
if ((getIntValue(70, 0)&128) && !(getIntValue(70, 0)&64)) {
return;
... | 0 |
449,293 | normal_cmd(
oparg_T *oap,
int toplevel UNUSED) // TRUE when called from main()
{
cmdarg_T ca; // command arguments
int c;
int ctrl_w = FALSE; // got CTRL-W command
int old_col = curwin->w_curswant;
#ifdef FEAT_CMDL_INFO
int need_flushbuf; // need to call out_flush()
#endif
pos_T... | 0 |
270,401 | static inline void ok_png_unpremultiply(uint8_t *dst) {
const uint8_t a = dst[3];
if (a > 0 && a < 255) {
dst[0] = 255 * dst[0] / a;
dst[1] = 255 * dst[1] / a;
dst[2] = 255 * dst[2] / a;
}
} | 0 |
313,804 | nv_kundo(cmdarg_T *cap)
{
if (!checkclearopq(cap->oap))
{
#ifdef FEAT_JOB_CHANNEL
if (bt_prompt(curbuf))
{
clearopbeep(cap->oap);
return;
}
#endif
u_undo((int)cap->count1);
curwin->w_set_curswant = TRUE;
}
} | 0 |
439,090 | static MagickBooleanType WriteYUVImage(const ImageInfo *image_info,Image *image)
{
Image
*chroma_image,
*yuv_image;
InterlaceType
interlace;
MagickBooleanType
status;
MagickOffsetType
scene;
register const PixelPacket
*p,
*s;
register ssize_t
x;
size_t
height,
... | 0 |
500,698 | sftp_statvfs_t sftp_fstatvfs(sftp_file file) {
sftp_status_message status = NULL;
sftp_message msg = NULL;
sftp_session sftp;
ssh_string ext;
ssh_buffer buffer;
uint32_t id;
if (file == NULL) {
return NULL;
}
sftp = file->sftp;
buffer = ssh_buffer_new();
if (buffer == NULL) {
ssh_set_err... | 0 |
250,679 | int HttpFile::save(const std::string &path) const
{
return implPtr_->save(path);
} | 0 |
279,926 | check_restricted(void)
{
if (restricted)
{
emsg(_(e_shell_commands_and_some_functionality_not_allowed_in_rvim));
return TRUE;
}
return FALSE;
} | 0 |
357,672 | SQInstance::SQInstance(SQSharedState *ss, SQClass *c, SQInteger memsize)
{
_memsize = memsize;
_class = c;
SQUnsignedInteger nvalues = _class->_defaultvalues.size();
for(SQUnsignedInteger n = 0; n < nvalues; n++) {
new (&_values[n]) SQObjectPtr(_class->_defaultvalues[n].val);
}
Init(ss);... | 0 |
455,394 | xfs_eofblocks_worker(
struct work_struct *work)
{
struct xfs_mount *mp = container_of(to_delayed_work(work),
struct xfs_mount, m_eofblocks_work);
xfs_icache_free_eofblocks(mp, NULL);
xfs_queue_eofblocks(mp);
} | 0 |
218,932 | Status GetAssetFileDefs(const MetaGraphDef& meta_graph_def,
std::vector<AssetFileDef>* asset_file_defs) {
// With SavedModel v2, we write asset file def into metagraph instead of
// collection, so read from metagraph first.
if (meta_graph_def.asset_file_def_size() > 0) {
for (const aut... | 0 |
442,791 | static ParameterError add2list(struct curl_slist **list,
char *ptr)
{
struct curl_slist *newlist = curl_slist_append(*list, ptr);
if(newlist)
*list = newlist;
else
return PARAM_NO_MEM;
return PARAM_OK;
} | 0 |
224,747 | void pitm_box_del(GF_Box *s)
{
GF_PrimaryItemBox *ptr = (GF_PrimaryItemBox *)s;
if (ptr == NULL) return;
gf_free(ptr);
} | 0 |
194,998 | Status ConstantFolding::IsSimplifiableReshape(
const NodeDef& node, const GraphProperties& properties) const {
if (!IsReshape(node)) {
return errors::Internal("Node ", node.name(), " is not a Reshape node");
}
if (2 > node.input_size()) {
return errors::Internal("Node ", node.name(),
... | 1 |
236,132 | GF_Box *href_box_new()
{
ISOM_DECL_BOX_ALLOC(GF_TextHyperTextBox, GF_ISOM_BOX_TYPE_HREF);
return (GF_Box *) tmp;
} | 0 |
474,039 | cp949_is_allowed_reverse_match(const UChar* s, const UChar* end ARG_UNUSED, OnigEncoding enc ARG_UNUSED)
{
const UChar c = *s;
return (CP949_ISMB_TRAIL(c) ? FALSE : TRUE);
} | 0 |
232,958 | static void client_close_writer(struct Curl_easy *data,
struct contenc_writer *writer)
{
(void) data;
(void) writer;
} | 0 |
364,765 | findtags_copy_matches(findtags_state_T *st, char_u ***matchesp)
{
int name_only = (st->flags & TAG_NAMES);
char_u **matches;
int mtt;
int i;
char_u *mfp;
char_u *p;
if (st->match_count > 0)
matches = ALLOC_MULT(char_u *, st->match_count);
else
matches = NULL;
st->match_count = ... | 0 |
293,751 | static int kernelcache_io_read(RIO *io, RIODesc *fd, ut8 *buf, int count) {
r_return_val_if_fail (io, -1);
RCore *core = (RCore*) io->corebind.core;
if (!fd || !core || !core->bin || !core->bin->binfiles) {
return -1;
}
RKernelCacheObj *cache = NULL;
RListIter *iter;
RBinFile *bf;
r_list_foreach (core->bin-... | 0 |
259,546 | static size_t strlen_url(const char *url, bool relative)
{
const unsigned char *ptr;
size_t newlen = 0;
bool left = TRUE; /* left side of the ? */
const unsigned char *host_sep = (const unsigned char *) url;
if(!relative)
host_sep = (const unsigned char *) find_host_sep(url);
for(ptr = (unsigned char ... | 0 |
521,452 | InputStream* ZipFile::createStreamForEntry (const int index)
{
InputStream* stream = nullptr;
if (auto* zei = entries[index])
{
stream = new ZipInputStream (*this, *zei);
if (zei->isCompressed)
{
stream = new GZIPDecompressorInputStream (stream, true,
... | 0 |
445,927 | fr_window_construct (FrWindow *window)
{
GtkWidget *toolbar;
GtkWidget *list_scrolled_window;
GtkWidget *location_box;
GtkStatusbar *statusbar;
GtkWidget *statusbar_box;
GtkWidget *filter_box;
GtkWidget *tree_scrolled_window;
GtkTreeSelection *select... | 0 |
344,815 | get_sock_af(int fd)
{
struct sockaddr_storage to;
socklen_t tolen = sizeof(to);
memset(&to, 0, sizeof(to));
if (getsockname(fd, (struct sockaddr *)&to, &tolen) == -1)
return -1;
#ifdef IPV4_IN_IPV6
if (to.ss_family == AF_INET6 &&
IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)&to)->sin6_addr))
return AF_I... | 0 |
248,753 | static struct curl_slist *cookie_list(struct Curl_easy *data)
{
struct curl_slist *list = NULL;
struct curl_slist *beg;
struct Cookie *c;
char *line;
unsigned int i;
if(!data->cookies || (data->cookies->numcookies == 0))
return NULL;
for(i = 0; i < COOKIE_HASH_SIZE; i++) {
for(c = data->cookies-... | 0 |
509,569 | int maria_checkpoint_state(handlerton *hton, bool disabled)
{
maria_checkpoint_disabled= (my_bool) disabled;
return 0;
} | 0 |
455,410 | xfs_queue_cowblocks(
struct xfs_mount *mp)
{
rcu_read_lock();
if (radix_tree_tagged(&mp->m_perag_tree, XFS_ICI_COWBLOCKS_TAG))
queue_delayed_work(mp->m_eofblocks_workqueue,
&mp->m_cowblocks_work,
msecs_to_jiffies(xfs_cowb_secs * 1000));
rcu_read_unlock();
} | 0 |
500,702 | const char *sftp_extensions_get_data(sftp_session sftp, unsigned int idx) {
if (sftp == NULL)
return NULL;
if (sftp->ext == NULL || sftp->ext->name == NULL) {
ssh_set_error_invalid(sftp->session, __FUNCTION__);
return NULL;
}
if (idx > sftp->ext->count) {
ssh_set_error_invalid(sftp->session, __... | 0 |
231,753 | TEST_P(
QuicServerTransportAllowMigrationTest,
MigrateToUnvalidatedPeerOverwritesCachedRttState) {
folly::SocketAddress newPeer("100.101.102.103", 23456);
server->getNonConstConn().migrationState.previousPeerAddresses.push_back(
newPeer);
CongestionAndRttState state;
state.peerAddress = newPeer;
... | 0 |
430,441 | static int parse_flow_mask_nlattrs(const struct nlattr *attr,
const struct nlattr *a[], u64 *attrsp,
bool log)
{
return __parse_flow_nlattrs(attr, a, attrsp, log, true);
} | 0 |
312,461 | qf_buf_add_line(
buf_T *buf, // quickfix window buffer
linenr_T lnum,
qfline_T *qfp,
char_u *dirname,
int first_bufline,
char_u *qftf_str)
{
int len;
buf_T *errbuf;
// If the 'quickfixtextfunc' function returned a non-empty custom string
// for this entry, then use it.
if (qftf_str != N... | 0 |
252,279 | static void tdefl_huffman_enforce_max_code_size(int *pNum_codes,
int code_list_len,
int max_code_size) {
int i;
mz_uint32 total = 0;
if (code_list_len <= 1) return;
for (i = max_code_size + 1; i <= TDEFL_MAX_SUPPORTE... | 0 |
222,576 | Status FunctionLibraryDefinition::RemoveFunction(const string& func) {
mutex_lock l(mu_);
TF_RETURN_IF_ERROR(RemoveFunctionHelper(func));
return Status::OK();
} | 0 |
389,698 | free_tv(typval_T *varp)
{
if (varp != NULL)
{
switch (varp->v_type)
{
case VAR_FUNC:
func_unref(varp->vval.v_string);
// FALLTHROUGH
case VAR_STRING:
vim_free(varp->vval.v_string);
break;
case VAR_PARTIAL:
partial_unref(varp->vval.v_partial);
break;
case VAR_BLOB:
blob_unref(... | 0 |
226,985 | IRC_PROTOCOL_CALLBACK(354)
{
char *pos_attr, *pos_hopcount, *pos_account, *pos_realname, *str_host;
int length;
struct t_irc_channel *ptr_channel;
struct t_irc_nick *ptr_nick;
IRC_PROTOCOL_MIN_ARGS(4);
ptr_channel = irc_channel_search (server, argv[3]);
/*
* if there are less than 11... | 0 |
221,500 | flatpak_run_add_session_dbus_args (FlatpakBwrap *app_bwrap,
FlatpakBwrap *proxy_arg_bwrap,
FlatpakContext *context,
FlatpakRunFlags flags,
const char *app_id)
{
static co... | 0 |
459,220 | static struct tcf_block *__tcf_block_find(struct net *net, struct Qdisc *q,
unsigned long cl, int ifindex,
u32 block_index,
struct netlink_ext_ack *extack)
{
struct tcf_block *block;
if (ifindex == TCM_IFINDEX_MAGIC_BLOCK) {
block = tcf_block_refcnt_get(net, block_index);
if (!block) {
NL... | 0 |
441,815 | SProcXkbGetIndicatorState(ClientPtr client)
{
REQUEST(xkbGetIndicatorStateReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xkbGetIndicatorStateReq);
swaps(&stuff->deviceSpec);
return ProcXkbGetIndicatorState(client);
} | 0 |
338,168 | void WasmBinaryBuilder::visitTryOrTryInBlock(Expression*& out) {
BYN_TRACE("zz node: Try\n");
auto* curr = allocator.alloc<Try>();
startControlFlow(curr);
// For simplicity of implementation, like if scopes, we create a hidden block
// within each try-body and catch-body, and let branches target those inner
... | 0 |
307,842 | int ciEnv::num_inlined_bytecodes() const {
return _num_inlined_bytecodes;
} | 0 |
220,935 | static GF_Err mpgviddmx_initialize(GF_Filter *filter)
{
GF_MPGVidDmxCtx *ctx = gf_filter_get_udta(filter);
ctx->hdr_store_size = 0;
ctx->hdr_store_alloc = 8;
ctx->hdr_store = gf_malloc(sizeof(char)*8);
return GF_OK;
} | 0 |
472,366 | ciConstant ciEnv::get_constant_by_index_impl(const constantPoolHandle& cpool,
int pool_index, int cache_index,
ciInstanceKlass* accessor) {
int index = pool_index;
if (cache_index >= 0) {
assert(index < 0, "only one kind o... | 0 |
253,589 | smb2_get_enc_key(struct TCP_Server_Info *server, __u64 ses_id, int enc, u8 *key)
{
struct cifs_ses *ses;
u8 *ses_enc_key;
spin_lock(&cifs_tcp_ses_lock);
list_for_each_entry(server, &cifs_tcp_ses_list, tcp_ses_list) {
list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
if (ses->Suid == ses_id) {
... | 0 |
413,674 | static int fcn_print_detail(RCore *core, RAnalFunction *fcn) {
const char *defaultCC = r_anal_cc_default (core->anal);
char *name = r_core_anal_fcn_name (core, fcn);
char *paren = strchr (name, '(');
if (paren) {
*paren = '\0';
}
r_cons_printf ("\"f %s %"PFMT64u" 0x%08"PFMT64x"\"\n", name, r_anal_function_linea... | 0 |
402,627 | get_str(Pe *pe, char *strnum)
{
size_t sz;
unsigned long num;
char *strtab;
uint32_t strtabsz;
/* no idea what the real max size for these is, so... we're not going
* to have 4B strings, and this can't be the end of the binary, so
* this is big enough. */
sz = strnlen(strnum, 11);
if (sz == 11)
return NUL... | 0 |
240,608 | void VarHandleOp::Compute(OpKernelContext* ctx) {
if (is_anonymous_) {
AllocatorAttributes attr;
attr.set_on_host(true);
Tensor handle;
OP_REQUIRES_OK(
ctx, ctx->allocate_temp(DT_RESOURCE, TensorShape({}), &handle, attr));
handle.scalar<ResourceHandle>()() = MakeResourceHandle<Var>(
... | 0 |
216,938 | bool open_table(THD *thd, TABLE_LIST *table_list, Open_table_context *ot_ctx)
{
TABLE *table;
const char *key;
uint key_length;
const char *alias= table_list->alias.str;
uint flags= ot_ctx->get_flags();
MDL_ticket *mdl_ticket;
TABLE_SHARE *share;
uint gts_flags;
bool from_share= false;
#ifdef WITH_PAR... | 1 |
294,715 | d_lite_rshift(VALUE self, VALUE other)
{
VALUE t, y, nth, rjd2;
int m, d, rjd;
double sg;
get_d1(self);
t = f_add3(f_mul(m_real_year(dat), INT2FIX(12)),
INT2FIX(m_mon(dat) - 1),
other);
if (FIXNUM_P(t)) {
long it = FIX2LONG(t);
y = LONG2NUM(DIV(it, 12));
it = MOD(it, 12);
m ... | 0 |
462,545 | void controller::import_read_information(const std::string& readinfofile) {
std::vector<std::string> guids;
std::ifstream f(readinfofile.c_str());
std::string line;
getline(f,line);
if (!f.is_open()) {
return;
}
while (f.is_open() && !f.eof()) {
guids.push_back(line);
getline(f, line);
}
rsscache->mark_... | 0 |
387,763 | void InstanceKlass::mark_newly_obsolete_methods(Array<Method*>* old_methods,
int emcp_method_count) {
int obsolete_method_count = old_methods->length() - emcp_method_count;
if (emcp_method_count != 0 && obsolete_method_count != 0 &&
_previous_versions != NULL) ... | 0 |
359,581 | peer_default_originate_set_vty (struct vty *vty, const char *peer_str,
afi_t afi, safi_t safi,
const char *rmap, int set)
{
int ret;
struct peer *peer;
peer = peer_and_group_lookup_vty (vty, peer_str);
if (! peer)
return CMD_WARNING;
if (... | 0 |
242,571 | if (datasize > SumOfBytesHashed) {
hashbase = data + SumOfBytesHashed;
hashsize = datasize - SumOfBytesHashed;
check_size(data, datasize, hashbase, hashsize);
if (!(Sha256Update(sha256ctx, hashbase, hashsize)) ||
!(Sha1Update(sha1ctx, hashbase, hashsize))) {
perror(L"Unable to generate hash\n");
... | 0 |
310,273 | dirserv_set_cached_consensus_networkstatus(const char *networkstatus,
const char *flavor_name,
const digests_t *digests,
time_t published)
{
cached_dir_t *new_networkstatus;
cached_dir_t ... | 0 |
508,359 | TABLE *open_ltable(THD *thd, TABLE_LIST *table_list, thr_lock_type lock_type,
uint lock_flags)
{
TABLE *table;
Open_table_context ot_ctx(thd, lock_flags);
bool error;
DBUG_ENTER("open_ltable");
/* Ignore temporary tables as they have already been opened. */
if (table_list->table)
DBU... | 0 |
256,168 | inline DSizes dsizes_10() { return DSizes(1, 0); } | 0 |
282,868 | static int rsi_load_9116_bootup_params(struct rsi_common *common)
{
struct sk_buff *skb;
struct rsi_boot_params_9116 *boot_params;
rsi_dbg(MGMT_TX_ZONE, "%s: Sending boot params frame\n", __func__);
skb = dev_alloc_skb(sizeof(struct rsi_boot_params_9116));
if (!skb)
return -ENOMEM;
memset(skb->data, 0, sizeof... | 0 |
197,719 | void Compute(OpKernelContext* context) override {
// Read ragged_splits inputs.
OpInputList ragged_nested_splits_in;
OP_REQUIRES_OK(context, context->input_list("rt_nested_splits",
&ragged_nested_splits_in));
const int ragged_nested_splits_len = ragged_n... | 1 |
328,983 | R_API void r_bin_java_print_rtv_annotations_attr_summary(RBinJavaAttrInfo *attr) {
if (attr && attr->type == R_BIN_JAVA_ATTR_TYPE_RUNTIME_VISIBLE_ANNOTATION_ATTR) {
printf ("Runtime Visible Annotations Attribute Information:\n");
printf (" Attribute Offset: 0x%08"PFMT64x "\n", attr->file_offset);
printf (" A... | 0 |
281,121 | static void xfrm_dst_hash_transfer(struct net *net,
struct hlist_head *list,
struct hlist_head *ndsttable,
unsigned int nhashmask,
int dir)
{
struct hlist_node *tmp, *entry0 = NULL;
struct xfrm_policy *pol;
unsigned int h0 = 0;
u8 dbits;
u8 sbits;
redo:
hlist_for_each_entry_safe(pol, ... | 0 |
513,159 | static char **mysql_sys_var_str(THD* thd, int offset)
{
return (char **) intern_sys_var_ptr(thd, offset, true);
} | 0 |
270,387 | static bool ok_inflater_inflate_huffman_tree(ok_inflater *inflater, ok_inflater_huffman_tree *tree,
ok_inflater_huffman_tree *code_length_huffman,
int num_codes) {
if (num_codes < 0 || num_codes >= MAX_NUM_CODES) {
ok_... | 0 |
220,906 | void DependencyOptimizer::GroupCrossDeviceControlEdges(bool host_granularity) {
VLOG(1)
<< "DependencyOptimizer::GroupCrossDeviceControlEdges host_granularity="
<< host_granularity;
const int num_nodes = optimized_graph_->node_size();
for (int i = 0; i < num_nodes; ++i) {
NodeDef* node = optimized... | 0 |
413,688 | static void loganal(ut64 from, ut64 to, int depth) {
r_cons_clear_line (1);
eprintf ("0x%08"PFMT64x" > 0x%08"PFMT64x" %d\r", from, to, depth);
} | 0 |
220,228 | const VersionDef& Graph::versions() const { return *versions_; } | 0 |
307,856 | ciInstance* ciEnv::the_null_string() {
if (_the_null_string == NULL) {
VM_ENTRY_MARK;
_the_null_string = get_object(Universe::the_null_string())->as_instance();
}
return _the_null_string;
} | 0 |
437,710 | static inline void control_tx_irq_watermark(struct cx23885_dev *dev,
enum tx_fifo_watermark level)
{
cx23888_ir_and_or4(dev, CX23888_IR_CNTRL_REG, ~CNTRL_TIC, level);
} | 0 |
225,975 |
GF_Err metx_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem)
{
GF_MetaDataSampleEntryBox *ptr = (GF_MetaDataSampleEntryBox *)s;
switch (a->type) {
case GF_ISOM_BOX_TYPE_TXTC:
//we allow the config box on metx
BOX_FIELD_ASSIGN(config, GF_TextConfigBox)
break;
}
return GF_OK; | 0 |
427,169 | static int explist (LexState *ls, expdesc *v) {
/* explist -> expr { ',' expr } */
int n = 1; /* at least one expression */
expr(ls, v);
while (testnext(ls, ',')) {
luaK_exp2nextreg(ls->fs, v);
expr(ls, v);
n++;
}
return n;
} | 0 |
430,454 | static inline void add_nested_action_end(struct sw_flow_actions *sfa,
int st_offset)
{
struct nlattr *a = (struct nlattr *) ((unsigned char *)sfa->actions +
st_offset);
a->nla_len = sfa->actions_len - st_offset;
} | 0 |
353,204 | SplashAxialPattern::~SplashAxialPattern() {
} | 0 |
310,134 | trace_normalized_cost(NCURSES_SP_DCLx const char *capname, const char *cap, int affcnt)
{
int result = normalized_cost(NCURSES_SP_ARGx cap, affcnt);
TR(TRACE_CHARPUT | TRACE_MOVE,
("NormalizedCost %s %d %s", capname, result, _nc_visbuf(cap)));
return result;
} | 0 |
246,730 | static void PrintHelp(char *arg_name, Bool search_desc, Bool no_match)
{
GF_FilterSession *fs;
Bool res;
fs = gf_fs_new_defaults(0);
if (arg_name[0]=='-')
arg_name++;
if (search_desc) {
char *_arg_name = gf_strdup(arg_name);
strlwr(_arg_name);
GF_LOG(GF_LOG_INFO, GF_LOG_APP, ("Possible options mentionni... | 0 |
484,764 | static int xennet_init_queue(struct netfront_queue *queue)
{
unsigned short i;
int err = 0;
char *devid;
spin_lock_init(&queue->tx_lock);
spin_lock_init(&queue->rx_lock);
spin_lock_init(&queue->rx_cons_lock);
timer_setup(&queue->rx_refill_timer, rx_refill_timeout, 0);
devid = strrchr(queue->info->xbdev->node... | 0 |
484,796 | static void add_id_to_list(unsigned *head, unsigned short *list,
unsigned short id)
{
list[id] = *head;
*head = id;
} | 0 |
221,499 | flatpak_run_add_ssh_args (FlatpakBwrap *bwrap)
{
static const char sandbox_auth_socket[] = "/run/flatpak/ssh-auth";
const char * auth_socket;
auth_socket = g_getenv ("SSH_AUTH_SOCK");
if (!auth_socket)
return; /* ssh agent not present */
if (!g_file_test (auth_socket, G_FILE_TEST_EXISTS))
{
/... | 0 |
366,200 | static void __put_mountpoint(struct mountpoint *mp, struct list_head *list)
{
if (!--mp->m_count) {
struct dentry *dentry = mp->m_dentry;
BUG_ON(!hlist_empty(&mp->m_list));
spin_lock(&dentry->d_lock);
dentry->d_flags &= ~DCACHE_MOUNTED;
spin_unlock(&dentry->d_lock);
dput_to_list(dentry, list);
hlist_del(... | 0 |
484,731 | void mobi_buffer_setpos(MOBIBuffer *buf, const size_t pos) {
if (pos <= buf->maxlen) {
buf->offset = pos;
return;
}
buf->error = MOBI_BUFFER_END;
debug_print("%s", "End of buffer\n");
} | 0 |
198,545 | static int do_i2c_md(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
{
uint chip;
uint addr, length;
int alen;
int j, nbytes, linebytes;
int ret;
#if CONFIG_IS_ENABLED(DM_I2C)
struct udevice *dev;
#endif
/* We use the last specified parameters, unless new ones are
* entered.
*/
chip ... | 1 |
500,672 | int sftp_async_read(sftp_file file, void *data, uint32_t size, uint32_t id){
sftp_session sftp = file->sftp;
sftp_message msg = NULL;
sftp_status_message status;
ssh_string datastring;
int err = SSH_OK;
uint32_t len;
sftp_enter_function();
if (file->eof) {
sftp_leave_function();
return 0;
}
... | 0 |
219,899 | Bool IsHintTrack(GF_TrackBox *trak)
{
if (trak->Media->handler->handlerType != GF_ISOM_MEDIA_HINT) return GF_FALSE;
//QT doesn't specify any InfoHeader on HintTracks
if (trak->Media->information->InfoHeader
&& (trak->Media->information->InfoHeader->type != GF_ISOM_BOX_TYPE_HMHD)
&& (trak->Media->in... | 0 |
267,958 | R_API ut64 r_bin_file_delete_all(RBin *bin) {
if (bin) {
ut64 counter = r_list_length (bin->binfiles);
r_list_purge (bin->binfiles);
bin->cur = NULL;
return counter;
}
return 0;
} | 0 |
512,513 | Item *get_copy(THD *thd)
{ return get_item_copy<Item_name_const>(thd, this); } | 0 |
365,616 | _asn1_remove_node (asn1_node node, unsigned int flags)
{
if (node == NULL)
return;
if (node->value != NULL)
{
if (flags & ASN1_DELETE_FLAG_ZEROIZE)
{
safe_memset(node->value, 0, node->value_len);
}
if (node->value != node->small_value)
free (node->value);
... | 0 |
205,870 | static RList *symbols(RBinFile *bf) {
RList *res = r_list_newf ((RListFree)r_bin_symbol_free);
r_return_val_if_fail (res && bf->o && bf->o->bin_obj, res);
RCoreSymCacheElement *element = bf->o->bin_obj;
size_t i;
HtUU *hash = ht_uu_new0 ();
if (!hash) {
return res;
}
bool found = false;
for (i = 0; i < eleme... | 1 |
446,111 | static int atusb_get_and_show_revision(struct atusb *atusb)
{
struct usb_device *usb_dev = atusb->usb_dev;
char *hw_name;
unsigned char *buffer;
int ret;
buffer = kmalloc(3, GFP_KERNEL);
if (!buffer)
return -ENOMEM;
/* Get a couple of the ATMega Firmware values */
ret = atusb_control_msg(atusb, usb_rcvctrlp... | 0 |
356,705 | void Statement::Finalize_(Baton* b) {
std::unique_ptr<Baton> baton(b);
Napi::Env env = baton->stmt->Env();
Napi::HandleScope scope(env);
baton->stmt->Finalize_();
// Fire callback in case there was one.
Napi::Function cb = baton->callback.Value();
if (!cb.IsUndefined() && cb.IsFunction()) ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.