idx int64 | func string | target int64 |
|---|---|---|
508,364 | bool close_cached_connection_tables(THD *thd, LEX_STRING *connection)
{
close_cached_connection_tables_arg argument;
DBUG_ENTER("close_cached_connections");
DBUG_ASSERT(thd);
argument.thd= thd;
argument.connection= connection;
argument.tables= NULL;
if (tdc_iterate(thd,
(my_hash_walk_a... | 0 |
225,896 |
GF_Err udta_box_read(GF_Box *s, GF_BitStream *bs)
{
GF_Err e = gf_isom_box_array_read(s, bs);
if (e) return e;
if (s->size==4) {
u32 val = gf_bs_read_u32(bs);
s->size = 0;
if (val) {
GF_LOG(GF_LOG_WARNING, GF_LOG_CONTAINER, ("[iso file] udta has 4 remaining bytes set to %08X but they should be 0\n", val));... | 0 |
308,180 | static void fastrpc_map_put(struct fastrpc_map *map)
{
if (map)
kref_put(&map->refcount, fastrpc_free_map);
} | 0 |
387,748 | ModuleEntry* InstanceKlass::module() const {
if (!in_unnamed_package()) {
return _package_entry->module();
}
const Klass* host = host_klass();
if (host == NULL) {
return class_loader_data()->unnamed_module();
}
return host->class_loader_data()->unnamed_module();
} | 0 |
513,109 | inline void TABLE::mark_virtual_column_deps(Field *field)
{
DBUG_ASSERT(field->vcol_info);
DBUG_ASSERT(field->vcol_info->expr);
field->vcol_info->expr->walk(&Item::register_field_in_read_map, 1, 0);
} | 0 |
246,749 | static GF_Err do_export_tracks_non_isobmf()
{
u32 i;
GF_MediaExporter mdump;
char szFile[GF_MAX_PATH+24];
for (i=0; i<nb_track_act; i++) {
GF_Err e;
TrackAction *tka = &tracks[i];
if (tka->act_type != TRAC_ACTION_RAW_EXTRACT) continue;
memset(&mdump, 0, sizeof(mdump));
mdump.in_name = inName;
mdump.fla... | 0 |
242,656 | static void isoffin_purge_mem(ISOMReader *read, u64 min_offset)
{
u32 i, count;
u64 top_offset;
u32 nb_bytes_to_purge;
u64 bytes_missing;
//purge every
if (read->mstore_purge && (min_offset - read->last_min_offset < read->mstore_purge))
return;
if (read->frag_type) {
//get position of current box being par... | 0 |
261,246 | void MqttClient_DeInit(MqttClient *client)
{
if (client != NULL) {
#ifdef WOLFMQTT_MULTITHREAD
(void)wm_SemFree(&client->lockSend);
(void)wm_SemFree(&client->lockRecv);
(void)wm_SemFree(&client->lockClient);
#endif
}
#ifdef WOLFMQTT_V5
(void)MqttProps_ShutDown();
#endif
} | 0 |
225,866 | GF_Err tpyl_box_read(GF_Box *s, GF_BitStream *bs)
{
GF_NTYLBox *ptr = (GF_NTYLBox *)s;
if (ptr == NULL) return GF_BAD_PARAM;
ISOM_DECREASE_SIZE(ptr, 8);
ptr->nbBytes = gf_bs_read_u64(bs);
return GF_OK;
} | 0 |
458,917 | cin_isfuncdecl(
char_u **sp,
linenr_T first_lnum,
linenr_T min_lnum)
{
char_u *s;
linenr_T lnum = first_lnum;
linenr_T save_lnum = curwin->w_cursor.lnum;
int retval = FALSE;
pos_T *trypos;
int just_started = TRUE;
if (sp == NULL)
s = ml_get(lnum);
else
s = *sp;
curw... | 0 |
473,938 | onigenc_not_support_get_ctype_code_range(OnigCtype ctype,
OnigCodePoint* sb_out, const OnigCodePoint* ranges[],
OnigEncoding enc)
{
return ONIG_NO_SUPPORT_CONFIG;
} | 0 |
348,431 | static struct mkiss *mkiss_get(struct tty_struct *tty)
{
struct mkiss *ax;
read_lock(&disc_data_lock);
ax = tty->disc_data;
if (ax)
refcount_inc(&ax->refcnt);
read_unlock(&disc_data_lock);
return ax;
} | 0 |
336,011 | static int sr9700_bind(struct usbnet *dev, struct usb_interface *intf)
{
struct net_device *netdev;
struct mii_if_info *mii;
u8 addr[ETH_ALEN];
int ret;
ret = usbnet_get_endpoints(dev, intf);
if (ret)
goto out;
netdev = dev->net;
netdev->netdev_ops = &sr9700_netdev_ops;
netdev->ethtool_ops = &sr9700_ethto... | 0 |
508,878 | bool st_select_lex::test_limit()
{
if (select_limit != 0)
{
my_error(ER_NOT_SUPPORTED_YET, MYF(0),
"LIMIT & IN/ALL/ANY/SOME subquery");
return(1);
}
return(0);
} | 0 |
312,469 | f_getqflist(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
{
# ifdef FEAT_QUICKFIX
if (in_vim9script() && check_for_opt_dict_arg(argvars, 0) == FAIL)
return;
get_qf_loc_list(TRUE, NULL, &argvars[0], rettv);
# endif
} | 0 |
225,500 | MutableGraphView::GetFanout(const GraphView::OutputPort& port) const {
return GetFanout(MutableGraphView::OutputPort(const_cast<NodeDef*>(port.node),
port.port_id));
} | 0 |
251,513 | static inline void RelinquishDCMMemory(DCMInfo *info,DCMMap *map,
DCMStreamInfo *stream_info,LinkedListInfo *stack,unsigned char *data)
{
if (info->scale != (Quantum *) NULL)
info->scale=(Quantum *) RelinquishMagickMemory(info->scale);
if (map->gray != (int *) NULL)
map->gray=(int *) RelinquishMagickMemor... | 0 |
359,316 | DEFUN (ip_community_list_name_standard,
ip_community_list_name_standard_cmd,
"ip community-list standard WORD (deny|permit) .AA:NN",
IP_STR
COMMUNITY_LIST_STR
"Add a standard community-list entry\n"
"Community list name\n"
"Specify community to reject\n"
"Specify ... | 0 |
512,396 | Item *get_copy(THD *thd)
{ return get_item_copy<Item_cache_str>(thd, this); } | 0 |
484,057 | START_TEST(Securechannel_sendAsymmetricOPNMessage_extraPaddingPresentWhenKeyLargerThan2048Bits) {
keySizes.asym_rmt_enc_key_size = 4096;
keySizes.asym_rmt_blocksize = 4096;
keySizes.asym_rmt_ptext_blocksize = 4096;
UA_OpenSecureChannelResponse dummyResponse;
createDummyResponse(&dummyResponse);
... | 0 |
248,274 | DLLIMPORT signed long cfg_getint(cfg_t *cfg, const char *name)
{
return cfg_getnint(cfg, name, 0);
} | 0 |
209,102 | do_mouse(
oparg_T *oap, // operator argument, can be NULL
int c, // K_LEFTMOUSE, etc
int dir, // Direction to 'put' if necessary
long count,
int fixindent) // PUT_FIXINDENT if fixing indent necessary
{
static int do_always = FALSE; // ignore 'mouse' setting next time
static int got_cli... | 1 |
387,621 | static int snd_ctl_elem_info(struct snd_ctl_file *ctl,
struct snd_ctl_elem_info *info)
{
struct snd_card *card = ctl->card;
struct snd_kcontrol *kctl;
int result;
down_read(&card->controls_rwsem);
kctl = snd_ctl_find_id(card, &info->id);
if (kctl == NULL)
result = -ENOENT;
else
result = __snd_ctl_el... | 0 |
369,310 | static int io_mkdirat(struct io_kiocb *req, unsigned int issue_flags)
{
struct io_mkdir *mkd = &req->mkdir;
int ret;
if (issue_flags & IO_URING_F_NONBLOCK)
return -EAGAIN;
ret = do_mkdirat(mkd->dfd, mkd->filename, mkd->mode);
req->flags &= ~REQ_F_NEED_CLEANUP;
if (ret < 0)
req_set_fail(req);
io_req_comple... | 0 |
452,388 | static MagickBooleanType WriteGROUP4Image(const ImageInfo *image_info,
Image *image)
{
char
filename[MaxTextExtent];
FILE
*file;
Image
*huffman_image;
ImageInfo
*write_info;
int
unique_file;
MagickBooleanType
status;
ssize_t
i;
ssize_t
count;
TIFF
*tiff;
... | 0 |
507,780 | ECPARAMETERS *EC_GROUP_get_ecparameters(const EC_GROUP *group,
ECPARAMETERS *params)
{
size_t len = 0;
ECPARAMETERS *ret = NULL;
const BIGNUM *tmp;
unsigned char *buffer = NULL;
const EC_POINT *point = NULL;
point_conversion_form_t form;
ASN1_IN... | 0 |
289,317 | static int _snd_pcm_hw_param_min(struct snd_pcm_hw_params *params,
snd_pcm_hw_param_t var, unsigned int val,
int dir)
{
int changed;
int open = 0;
if (dir) {
if (dir > 0) {
open = 1;
} else if (dir < 0) {
if (val > 0) {
open = 1;
val--;
}
}
}
if (hw_is_mask(var))
changed = snd_ma... | 0 |
384,812 | byte2cells(int b)
{
if (enc_utf8 && b >= 0x80)
return 0;
return (g_chartab[b] & CT_CELL_MASK);
} | 0 |
522,362 | int GmfGotoKwd(int64_t MshIdx, int KwdCod)
{
GmfMshSct *msh = (GmfMshSct *)MshIdx;
KwdSct *kwd = &msh->KwdTab[ KwdCod ];
if( (KwdCod < 1) || (KwdCod > GmfMaxKwd) || !kwd->NmbLin )
return(0);
return(SetFilPos(msh, kwd->pos));
} | 0 |
227,031 | irc_protocol_recv_command (struct t_irc_server *server,
const char *irc_message,
const char *msg_command,
const char *msg_channel)
{
int i, cmd_found, return_code, argc, decode_color, keep_trailing_spaces;
int message_ignored, flag... | 0 |
242,976 | static int ssl_flight_append( mbedtls_ssl_context *ssl )
{
mbedtls_ssl_flight_item *msg;
MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> ssl_flight_append" ) );
MBEDTLS_SSL_DEBUG_BUF( 4, "message appended to flight",
ssl->out_msg, ssl->out_msglen );
/* Allocate space for current message */
... | 0 |
432,165 | RAMBlock *qemu_ram_alloc(struct uc_struct *uc, ram_addr_t size, MemoryRegion *mr)
{
return qemu_ram_alloc_from_ptr(uc, size, NULL, mr);
} | 0 |
353,193 | bool SplashOutputDev::imageMaskSrc(void *data, SplashColorPtr line) {
SplashOutImageMaskData *imgMaskData = (SplashOutImageMaskData *)data;
unsigned char *p;
SplashColorPtr q;
int x;
if (imgMaskData->y == imgMaskData->height) {
return false;
}
if (!(p = imgMaskData->imgStr->getLine())) {
return f... | 0 |
458,998 | http_GetHdrToken(const struct http *hp, hdr_t hdr,
const char *token, const char **pb, const char **pe)
{
const char *h, *b, *e;
if (pb != NULL)
*pb = NULL;
if (pe != NULL)
*pe = NULL;
if (!http_GetHdr(hp, hdr, &h))
return (0);
AN(h);
while (http_split(&h, NULL, ",", &b, &e))
if (http_istoken(&b, e,... | 0 |
238,412 | static bool reg_type_may_be_refcounted_or_null(enum bpf_reg_type type)
{
return base_type(type) == PTR_TO_SOCKET ||
base_type(type) == PTR_TO_TCP_SOCK ||
base_type(type) == PTR_TO_MEM;
} | 0 |
326,643 | set_mode(struct archive_write_disk *a, int mode)
{
int r = ARCHIVE_OK;
int r2;
mode &= 07777; /* Strip off file type bits. */
if (a->todo & TODO_SGID_CHECK) {
/*
* If we don't know the GID is right, we must stat()
* to verify it. We can't just check the GID of this
* process, since systems sometimes se... | 0 |
248,246 | static char *parse_title(const char *name, size_t *len)
{
const char *escapes = "'\\";
char *title;
char *end;
char *ch;
if (*name != '\'') {
*len = strcspn(name, "|");
if (!*len)
return NULL;
return strndup(name, *len);
}
title = strdup(name + 1);
if (!title)
return NULL;
*len = 1;
ch = title;
... | 0 |
300,778 | static bool tipc_sk_connected(struct sock *sk)
{
return sk->sk_state == TIPC_ESTABLISHED;
} | 0 |
343,312 | static int create_home_and_chdir(const char * const home)
{
char *pathcomp;
char *z;
size_t len;
const char delim = '/';
if (home == NULL || *home != '/') {
return -1;
}
if (chdir(home) == 0) {
return 0;
}
if (create_home == 0) {
return -1;
}
len = st... | 0 |
421,389 | static void puna(int d, int p, js_Ast *exp, const char *pre, const char *suf)
{
ps(pre);
pexpi(d, p, exp->a);
ps(suf);
} | 0 |
219,903 | GF_Err gf_isom_sdp_add_track_line(GF_ISOFile *the_file, u32 trackNumber, const char *text)
{
GF_TrackBox *trak;
GF_UserDataMap *map;
GF_HintTrackInfoBox *hnti;
GF_SDPBox *sdp;
GF_Err e;
char *buf;
trak = gf_isom_get_track_from_file(the_file, trackNumber);
if (!trak) return GF_BAD_PARAM;
//currently, only RTP... | 0 |
220,842 | log_x_for_x_greater_than_or_equal_to_1_impl(
gemmlowp::FixedPoint<int32_t, InputIntegerBits> input_val) {
// assert(__builtin_clz(0u) >= std::numeric_limits<uint32_t>::digits - 1);
// assert(__builtin_clz(0u) <= std::numeric_limits<uint32_t>::digits);
using FixedPoint0 = gemmlowp::FixedPoint<int32_t, 0>;
//... | 0 |
125,901 | v8::Handle<v8::Value> V8ThrowException::createRangeError(v8::Isolate* isolate, const String& message)
{
return v8::Exception::RangeError(v8String(isolate, message.isNull() ? "Range error" : message));
}
| 0 |
437,292 | update_string_node_case_fold(regex_t* reg, Node *node)
{
UChar *p, *end, buf[ONIGENC_MBC_CASE_FOLD_MAXLEN];
UChar *sbuf, *ebuf, *sp;
int r, i, len, sbuf_size;
StrNode* sn = STR_(node);
end = sn->end;
sbuf_size = (int )(end - sn->s) * 2;
sbuf = (UChar* )xmalloc(sbuf_size);
CHECK_NULL_RETURN_MEMERR(sbuf)... | 0 |
345,207 | int con_set_trans_old(unsigned char __user * arg)
{
int i;
unsigned short inbuf[E_TABSZ];
unsigned char ubuf[E_TABSZ];
if (copy_from_user(ubuf, arg, E_TABSZ))
return -EFAULT;
for (i = 0; i < E_TABSZ ; i++)
inbuf[i] = UNI_DIRECT_BASE | ubuf[i];
console_lock();
memcpy(translations[USER_MAP], inbuf, sizeof(i... | 0 |
473,888 | onig_compile(regex_t* reg, const UChar* pattern, const UChar* pattern_end,
OnigErrorInfo* einfo, const char *sourcefile, int sourceline)
{
#define COMPILE_INIT_SIZE 20
int r;
OnigDistance init_size;
Node* root;
ScanEnv scan_env = {0};
#ifdef USE_SUBEXP_CALL
UnsetAddrList uslist;
#endif
if (IS_N... | 0 |
238,619 | static int add_subprog(struct bpf_verifier_env *env, int off)
{
int insn_cnt = env->prog->len;
int ret;
if (off >= insn_cnt || off < 0) {
verbose(env, "call to invalid destination\n");
return -EINVAL;
}
ret = find_subprog(env, off);
if (ret >= 0)
return ret;
if (env->subprog_cnt >= BPF_MAX_SUBPROGS) {
v... | 0 |
442,788 | static int myprogress (void *clientp,
double dltotal,
double dlnow,
double ultotal,
double ulnow)
{
/* The original progress-bar source code was written for curl by Lars Aas,
and this new edition inherits some of his conc... | 0 |
453,001 | static int nft_dup_netdev_offload(struct nft_offload_ctx *ctx,
struct nft_flow_rule *flow,
const struct nft_expr *expr)
{
const struct nft_dup_netdev *priv = nft_expr_priv(expr);
int oif = ctx->regs[priv->sreg_dev].data.data[0];
return nft_fwd_dup_netdev_offload(ctx, flow, FLOW_ACTION_MIRRED, oif);
} | 0 |
310,281 | dirserv_should_launch_reachability_test(routerinfo_t *ri, routerinfo_t *ri_old)
{
if (!authdir_mode_handles_descs(get_options(), ri->purpose))
return 0;
if (!ri_old) {
/* New router: Launch an immediate reachability test, so we will have an
* opinion soon in case we're generating a consensus soon */
... | 0 |
383,311 | void gdImageCopyResampled (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH)
{
int x, y;
if (!dst->trueColor) {
gdImageCopyResized (dst, src, dstX, dstY, srcX, srcY, dstW, dstH, srcW, srcH);
return;
}
for (y = dstY; (y < dstY + dstH); y++) {
for (x... | 0 |
445,922 | overwrite_dialog_response_cb (GtkDialog *dialog,
int response_id,
gpointer user_data)
{
OverwriteData *odata = user_data;
gboolean do_not_extract = FALSE;
switch (response_id) {
case _FR_RESPONSE_OVERWRITE_YES_ALL:
odata->edata->overwrite = FR_OVERWRITE_YES;
break;
case _FR_R... | 0 |
90,760 | void DidGetHostQuota(QuotaStatusCode status,
const std::string& host,
StorageType type,
int64 quota) {
DCHECK_EQ(host_, host);
DCHECK_EQ(type_, type);
quota_status_ = status;
quota_ = quota;
CheckCompleted();
}
| 0 |
225,012 | conninfo_parse(const char *conninfo, PQExpBuffer errorMessage,
bool use_defaults)
{
char *pname;
char *pval;
char *buf;
char *cp;
char *cp2;
PQconninfoOption *options;
/* Make a working copy of PQconninfoOptions */
options = conninfo_init(errorMessage);
if (options == NULL)
return NULL;... | 0 |
225,093 | uint64 OpDefHash(const OpDef& o) {
uint64 h = RepeatedAttrDefHash(o.attr());
// Compute deterministic order-independent control outputs hash.
std::set<string> control_output(o.control_output().begin(),
o.control_output().end());
for (const auto& co : control_output) h = Hash64... | 0 |
437,380 | setup_call_node_call(CallNode* cn, ScanEnv* env, int state)
{
MemEnv* mem_env = SCANENV_MEMENV(env);
if (cn->by_number != 0) {
int gnum = cn->group_num;
if (env->num_named > 0 &&
IS_SYNTAX_BV(env->syntax, ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP) &&
! ONIG_IS_OPTION_ON(env->options, ONIG_OPTION_C... | 0 |
512,702 | bool Item_in_optimizer::is_expensive_processor(void *arg)
{
DBUG_ASSERT(fixed);
return args[0]->is_expensive_processor(arg) ||
args[1]->is_expensive_processor(arg);
} | 0 |
413,335 | PHP_FUNCTION(snmp_set_enum_print)
{
long a1;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &a1) == FAILURE) {
RETURN_FALSE;
}
netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_PRINT_NUMERIC_ENUM, (int) a1);
RETURN_TRUE;
} | 0 |
359,428 | peer_flag_set_vty (struct vty *vty, const char *ip_str, u_int16_t flag)
{
return peer_flag_modify_vty (vty, ip_str, flag, 1);
} | 0 |
247,627 | void testUtil(const TestUtilOptions& options) {
Event::SimulatedTimeSystem time_system;
Stats::TestUtil::TestStore server_stats_store;
Api::ApiPtr server_api = Api::createApiForTest(server_stats_store, time_system);
NiceMock<Runtime::MockLoader> runtime;
testing::NiceMock<Server::Configuration::MockTransport... | 0 |
232,325 |
void gf_isom_box_dump_done(const char *name, GF_Box *ptr, FILE *trace)
{
if (ptr && ptr->child_boxes) {
gf_isom_box_array_dump(ptr->child_boxes, trace);
}
if (name)
gf_fprintf(trace, "</%s>\n", name); | 0 |
481,262 | static void mlx5_fpga_conn_free_recv_bufs(struct mlx5_fpga_conn *conn)
{
int ix;
for (ix = 0; ix < conn->qp.rq.size; ix++) {
if (!conn->qp.rq.bufs[ix])
continue;
mlx5_fpga_conn_unmap_buf(conn, conn->qp.rq.bufs[ix]);
kfree(conn->qp.rq.bufs[ix]);
conn->qp.rq.bufs[ix] = NULL;
}
} | 0 |
316,951 | static void delayed_superblock_init(struct super_block *sb, void *unused)
{
selinux_set_mnt_opts(sb, NULL, 0, NULL);
} | 0 |
509,493 | uint ha_maria::max_supported_key_length() const
{
return maria_max_key_length();
} | 0 |
261,242 | int SN_Client_WillTopicUpdate(MqttClient *client, SN_Will *will)
{
int rc = 0, len = 0;
/* Validate required arguments */
if (client == NULL) {
return MQTT_CODE_ERROR_BAD_ARG;
}
if (will->stat == MQTT_MSG_BEGIN) {
#ifdef WOLFMQTT_MULTITHREAD
/* Lock send socket mutex */
... | 0 |
270,411 | static bool ok_png_read_palette(ok_png_decoder *decoder, uint32_t chunk_length) {
ok_png *png = decoder->png;
decoder->palette_length = chunk_length / 3;
if (decoder->palette_length > 256 || decoder->palette_length * 3 != chunk_length) {
ok_png_error(png, OK_PNG_ERROR_INVALID, "Invalid palette chun... | 0 |
199,681 | static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd,
unsigned long param)
{
int drive = (long)bdev->bd_disk->private_data;
int type = ITYPE(drive_state[drive].fd_device);
int i;
int ret;
int size;
union inparam {
struct floppy_struct g; /* geometry */
struct format_descr... | 1 |
238,552 | static bool verifier_state_scratched(const struct bpf_verifier_env *env)
{
return env->scratched_regs || env->scratched_stack_slots;
} | 0 |
442,803 | static size_t my_fread(void *buffer, size_t sz, size_t nmemb, void *userp)
{
size_t rc;
struct InStruct *in=(struct InStruct *)userp;
rc = fread(buffer, sz, nmemb, in->stream);
return rc;
} | 0 |
404,714 | static void __free_fdtable(struct fdtable *fdt)
{
kvfree(fdt->fd);
kvfree(fdt->open_fds);
kfree(fdt);
} | 0 |
242,579 | shim_mem_attrs_to_uefi_mem_attrs (uint64_t attrs)
{
uint64_t ret = EFI_MEMORY_RP |
EFI_MEMORY_RO |
EFI_MEMORY_XP;
if (attrs & MEM_ATTR_R)
ret &= ~EFI_MEMORY_RP;
if (attrs & MEM_ATTR_W)
ret &= ~EFI_MEMORY_RO;
if (attrs & MEM_ATTR_X)
ret &= ~EFI_MEMORY_XP;
return ret;
} | 0 |
257,000 | static int route4_delete(struct tcf_proto *tp, void *arg, bool *last,
bool rtnl_held, struct netlink_ext_ack *extack)
{
struct route4_head *head = rtnl_dereference(tp->root);
struct route4_filter *f = arg;
struct route4_filter __rcu **fp;
struct route4_filter *nf;
struct route4_bucket *b;
unsigned int h = 0;
... | 0 |
225,474 | bool CanDedupControlWithRegularInput(const MutableGraphView& graph,
const NodeDef& control_node) {
return !IsIdentityConsumingSwitch(graph, control_node);
} | 0 |
225,419 | static int vidioc_g_fmt_out(struct file *file, void *priv,
struct v4l2_format *fmt)
{
struct v4l2_loopback_device *dev;
MARK();
dev = v4l2loopback_getdevice(file);
/*
* LATER: this should return the currently valid format
* gstreamer doesn't like it, if this returns -EINVAL, as it
* then concludes th... | 0 |
348,426 | static void mkiss_put(struct mkiss *ax)
{
if (refcount_dec_and_test(&ax->refcnt))
complete(&ax->dead);
} | 0 |
348,425 | static int mkiss_open(struct tty_struct *tty)
{
struct net_device *dev;
struct mkiss *ax;
int err;
if (!capable(CAP_NET_ADMIN))
return -EPERM;
if (tty->ops->write == NULL)
return -EOPNOTSUPP;
dev = alloc_netdev(sizeof(struct mkiss), "ax%d", NET_NAME_UNKNOWN,
ax_setup);
if (!dev) {
err = -ENOMEM;
... | 0 |
197,893 | TfLiteStatus Gather(const TfLiteGatherParams& params, const TfLiteTensor* input,
const TfLiteTensor* positions, TfLiteTensor* output) {
tflite::GatherParams op_params;
op_params.axis = params.axis;
op_params.batch_dims = params.batch_dims;
optimized_ops::Gather(op_params, GetTensorShape(inpu... | 1 |
225,645 | void mfra_box_del(GF_Box *s)
{
GF_MovieFragmentRandomAccessBox *ptr = (GF_MovieFragmentRandomAccessBox *)s;
if (ptr == NULL) return;
gf_list_del(ptr->tfra_list);
gf_free(ptr);
} | 0 |
338,056 | HeapType WasmBinaryBuilder::getIndexedHeapType() {
auto index = getU32LEB();
if (index >= types.size()) {
throwError("invalid heap type index: " + std::to_string(index));
}
return types[index];
} | 0 |
473,983 | utf32le_code_to_mbclen(OnigCodePoint code ARG_UNUSED,
OnigEncoding enc ARG_UNUSED)
{
return 4;
} | 0 |
459,028 | http_ForceField(struct http *to, unsigned n, const char *t)
{
int i;
CHECK_OBJ_NOTNULL(to, HTTP_MAGIC);
assert(n < HTTP_HDR_FIRST);
assert(n == HTTP_HDR_METHOD || n == HTTP_HDR_PROTO);
AN(t);
/* NB: method names and protocol versions are case-sensitive. */
if (to->hd[n].b == NULL || strcmp(to->hd[n].b, t)) {
... | 0 |
244,263 | void udta_box_del(GF_Box *s)
{
u32 i;
GF_UserDataMap *map;
GF_UserDataBox *ptr = (GF_UserDataBox *)s;
if (ptr == NULL) return;
i=0;
while ((map = (GF_UserDataMap *)gf_list_enum(ptr->recordList, &i))) {
gf_isom_box_array_del(map->boxes);
gf_free(map);
}
gf_list_del(ptr->recordList);
gf_free(ptr);
} | 0 |
458,296 | SYSCALL_DEFINE2(ioprio_get, int, which, int, who)
{
struct task_struct *g, *p;
struct user_struct *user;
struct pid *pgrp;
kuid_t uid;
int ret = -ESRCH;
int tmpio;
rcu_read_lock();
switch (which) {
case IOPRIO_WHO_PROCESS:
if (!who)
p = current;
else
p = find_task_by_vpid(who);
if (p)
re... | 0 |
90,858 | void GetTemporaryGlobalQuota() {
quota_status_ = kQuotaStatusUnknown;
quota_ = -1;
quota_manager_->GetTemporaryGlobalQuota(
callback_factory_.NewCallback(
&QuotaManagerTest::DidGetQuota));
}
| 0 |
356,708 | void Statement::Work_BeginReset(Baton* baton) {
STATEMENT_BEGIN(Reset);
} | 0 |
500,069 | kssl_krb5_mk_req_extended (krb5_context CO,
krb5_auth_context * pACO,
krb5_const krb5_flags F,
krb5_data * pD1,
krb5_creds * pC,
krb5_data * pD2)
{
if (!krb5_loaded)
load_krb5_dll();... | 0 |
503,986 | static const char *field_get_default(const char *data)
{
const char *p;
p = strchr(data, ':');
if (p == NULL)
return "";
else {
/* default value given */
return p+1;
}
} | 0 |
512,923 | bool make_copy_field() const { return m_make_copy_field; } | 0 |
218,999 | Status ConstantFolding::RemoveReverse(const GraphProperties& properties,
bool use_shape_info,
GraphDef* optimized_graph,
NodeDef* node) {
if (!use_shape_info || node->op() != "ReverseV2") return Status::O... | 0 |
261,887 | njs_string_prototype_repeat(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
njs_index_t unused)
{
u_char *p;
int64_t n, max;
uint64_t size, length;
njs_int_t ret;
njs_value_t *this;
njs_string_prop_t string;
this = njs_argument(args, ... | 0 |
231,656 | void accept(std::shared_ptr<ServerTransportParametersExtension>) override {} | 0 |
427,159 | static l_noret jumpscopeerror (LexState *ls, Labeldesc *gt) {
const char *varname = getstr(getlocalvardesc(ls->fs, gt->nactvar)->vd.name);
const char *msg = "<goto %s> at line %d jumps into the scope of local '%s'";
msg = luaO_pushfstring(ls->L, msg, getstr(gt->name), gt->line, varname);
luaK_semerror(ls, msg);... | 0 |
424,947 | void iwl_trans_pcie_dbgfs_register(struct iwl_trans *trans)
{
struct dentry *dir = trans->dbgfs_dir;
DEBUGFS_ADD_FILE(rx_queue, dir, 0400);
DEBUGFS_ADD_FILE(tx_queue, dir, 0400);
DEBUGFS_ADD_FILE(interrupt, dir, 0600);
DEBUGFS_ADD_FILE(csr, dir, 0200);
DEBUGFS_ADD_FILE(fh_reg, dir, 0400);
DEBUGFS_ADD_FILE(rfkil... | 0 |
381,878 | static void udf_merge_extents(struct inode *inode, struct kernel_long_ad *laarr,
int *endnum)
{
int i;
unsigned long blocksize = inode->i_sb->s_blocksize;
unsigned char blocksize_bits = inode->i_sb->s_blocksize_bits;
for (i = 0; i < (*endnum - 1); i++) {
struct kernel_long_ad *li /*l[i]*/ = &laarr[i];
... | 0 |
477,291 | static char *tipc_key_change_dump(struct tipc_key old, struct tipc_key new,
char *buf)
{
struct tipc_key *key = &old;
int k, i = 0;
char *s;
/* Output format: "[%s %s %s] -> [%s %s %s]", max len = 32 */
again:
i += scnprintf(buf + i, 32 - i, "[");
for (k = KEY_1; k <= KEY_3; k++) {
if (k == key->passive)... | 0 |
269,513 | static void TIFFGetGPSProperties(TIFF *tiff,Image *image,
const ImageInfo* image_info,ExceptionInfo *exception)
{
#if defined(MAGICKCORE_HAVE_TIFFREADGPSDIRECTORY)
const char
*option;
tdir_t
directory;
#if defined(TIFF_VERSION_BIG)
uint64
#else
uint32
#endif
offset;
/*
Read GPS properties... | 0 |
506,434 | mech_rpa_auth_phase3(struct auth_request *auth_request,
const unsigned char *data, size_t data_size)
{
static const unsigned char client_ack[3] = { 0x60, 0x01, 0x00 };
if ((data_size != sizeof(client_ack)) ||
(memcmp(data, client_ack, sizeof(client_ack)) != 0)) {
e_info(auth_request->mech_event,
... | 0 |
221,406 | static void nested_svm_triple_fault(struct kvm_vcpu *vcpu)
{
nested_svm_simple_vmexit(to_svm(vcpu), SVM_EXIT_SHUTDOWN);
} | 0 |
231,782 | TEST_F(QuicServerTransportTest, PingIsTreatedAsRetransmittable) {
PingFrame pingFrame;
ShortHeader header(
ProtectionType::KeyPhaseZero,
*server->getConn().serverConnectionId,
clientNextAppDataPacketNum++);
RegularQuicPacketBuilder builder(
server->getConn().udpSendPacketLen,
std::mo... | 0 |
259,616 | void HierarchicalBitmapRequester::FetchRegion(LONG x,const struct Line *const *line,LONG *buffer)
{
int cnt = 8;
do {
if (*line)
memcpy(buffer,(*line)->m_pData + (x << 3),8 * sizeof(LONG));
buffer += 8;
line++;
} while(--cnt);
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.