idx int64 | func string | target int64 |
|---|---|---|
338,087 | void WasmBinaryWriter::writeMemory() {
if (!wasm->memory.exists || wasm->memory.imported()) {
return;
}
BYN_TRACE("== writeMemory\n");
auto start = startSection(BinaryConsts::Section::Memory);
o << U32LEB(1); // Define 1 memory
writeResizableLimits(wasm->memory.initial,
wasm->memo... | 0 |
405,337 | int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl)
{
struct net *net = xp_net(policy);
struct xfrm_policy *delpol;
struct hlist_head *chain;
spin_lock_bh(&net->xfrm.xfrm_policy_lock);
chain = policy_hash_bysel(net, &policy->selector, policy->family, dir);
if (chain)
delpol = xfrm_policy_inse... | 0 |
413,652 | static void print_hint_tree(RBTree tree, int mode) {
#define END_ADDR if (mode == 'j') { pj_end (pj); } else if (mode != '*') { r_cons_newline (); }
PJ *pj = NULL;
if (mode == 'j') {
pj = pj_new ();
pj_a (pj);
}
RBIter it;
HintNode *node;
ut64 last_addr = 0;
bool in_addr = false;
r_rbtree_foreach (tree, it,... | 0 |
516,255 | static DeviceState *failover_find_primary_device(VirtIONet *n)
{
char *id = failover_find_primary_device_id(n);
if (!id) {
return NULL;
}
return qdev_find_recursive(sysbus_get_default(), id);
} | 0 |
317,093 | static int selinux_kernel_module_from_file(struct file *file)
{
struct common_audit_data ad;
struct inode_security_struct *isec;
struct file_security_struct *fsec;
u32 sid = current_sid();
int rc;
/* init_module */
if (file == NULL)
return avc_has_perm(&selinux_state,
sid, sid, SECCLASS_SYSTEM,
S... | 0 |
383,330 | gdImageCopyMergeGray (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h, int pct)
{
int c, dc;
int x, y;
int tox, toy;
int ncR, ncG, ncB;
float g;
toy = dstY;
for (y = srcY; (y < (srcY + h)); y++) {
tox = dstX;
for (x = srcX; (x < (srcX + w)); x++) {
int nc;
c = gdIm... | 0 |
313,841 | nv_window(cmdarg_T *cap)
{
if (cap->nchar == ':')
{
// "CTRL-W :" is the same as typing ":"; useful in a terminal window
cap->cmdchar = ':';
cap->nchar = NUL;
nv_colon(cap);
}
else if (!checkclearop(cap->oap))
do_window(cap->nchar, cap->count0, NUL); // everything is in window.c
} | 0 |
216,906 | void ha_maria::drop_table(const char *name)
{
DBUG_ASSERT(file->s->temporary);
(void) ha_close();
(void) maria_delete_table_files(name, 1, MY_WME);
} | 1 |
379,654 | R_API RAnalVar *r_anal_function_get_var(RAnalFunction *fcn, char kind, int delta) {
r_return_val_if_fail (fcn, NULL);
void **it;
r_pvector_foreach (&fcn->vars, it) {
RAnalVar *var = *it;
if (var->kind == kind && var->delta == delta) {
return var;
}
}
return NULL;
} | 0 |
389,708 | check_for_number_arg(typval_T *args, int idx)
{
if (args[idx].v_type != VAR_NUMBER)
{
semsg(_(e_number_required_for_argument_nr), idx + 1);
return FAIL;
}
return OK;
} | 0 |
521,471 | bool isExhausted() override
{
return headerSize <= 0 || pos >= zipEntryHolder.compressedSize;
}
| 0 |
427,192 | static void codeclosure (LexState *ls, expdesc *v) {
FuncState *fs = ls->fs->prev;
init_exp(v, VRELOC, luaK_codeABx(fs, OP_CLOSURE, 0, fs->np - 1));
luaK_exp2nextreg(fs, v); /* fix it at the last register */
} | 0 |
222,836 | void ExtractValue(DimensionHandle d, int64_t* result) {
if (!InferenceContext::ValueKnown(d)) {
*result = -counter;
counter++;
} else {
int64_t val = InferenceContext::Value(d);
if (val >= 0) {
*result = val;
} else {
// A shape inference function generated an inv... | 0 |
265,536 | int mempool_create_with_shared_mem(
size_t pool_item_size, size_t pool_initial_size, size_t pool_expansion_size,
func_mem_available_callback_type mem_get_free_space_func,
func_mark_mem_used_callback_type mem_mark_used_space_func,
func_mark_mem_free_callback_type mem_mark_free_space_func,
func_log_ca... | 0 |
387,729 | Method* InstanceKlass::method_with_orig_idnum(int idnum, int version) {
InstanceKlass* holder = get_klass_version(version);
if (holder == NULL) {
return NULL; // The version of klass is gone, no method is found
}
Method* method = holder->method_with_orig_idnum(idnum);
return method;
} | 0 |
406,215 | static void __attribute__((__noreturn__)) usage(FILE *out)
{
fputs(USAGE_HEADER, out);
fprintf(out, _(
" %1$s [-lhV]\n"
" %1$s -a [options]\n"
" %1$s [options] [--source] <source> | [--target] <directory>\n"
" %1$s [options] <source> <directory>\n"
" %1$s <operation> <mountpoint> [<target>]\n"),
program_i... | 0 |
410,712 | static int packet_release(struct socket *sock)
{
struct sock *sk = sock->sk;
struct packet_sock *po;
struct packet_fanout *f;
struct net *net;
union tpacket_req_u req_u;
if (!sk)
return 0;
net = sock_net(sk);
po = pkt_sk(sk);
mutex_lock(&net->packet.sklist_lock);
sk_del_node_init_rcu(sk);
mutex_unlock(&... | 0 |
247,123 | static void gf_fs_print_filter_outputs(GF_Filter *f, GF_List *filters_done, u32 indent, GF_FilterPid *pid, GF_Filter *alias_for, u32 src_num_tiled_pids, Bool skip_print)
{
u32 i=0;
u32 num_tile_pids = 0;
if (!skip_print) {
while (i<indent) {
GF_LOG(GF_LOG_INFO, GF_LOG_APP, ("-"));
i++;
}
if (src_num_ti... | 0 |
259,542 | bool Curl_is_absolute_url(const char *url, char *buf, size_t buflen)
{
int i;
DEBUGASSERT(!buf || (buflen > MAX_SCHEME_LEN));
(void)buflen; /* only used in debug-builds */
if(buf)
buf[0] = 0; /* always leave a defined value in buf */
#ifdef WIN32
if(STARTS_WITH_DRIVE_PREFIX(url))
return FALSE;
#endif
... | 0 |
270,120 | TfLiteStatus CalculateActivationRangeQuantized(TfLiteContext* context,
TfLiteFusedActivation activation,
TfLiteTensor* output,
int32_t* act_min,
... | 0 |
398,487 | RZ_API const char *rz_bin_dwarf_get_lang_name(ut64 lang) {
if (lang >= RZ_ARRAY_SIZE(dwarf_langs)) {
return NULL;
}
return dwarf_langs[lang];
} | 0 |
309,822 | drv_initcolor(TERMINAL_CONTROL_BLOCK * TCB,
int color, int r, int g, int b)
{
SCREEN *sp = TCB->csp;
AssertTCB();
if (initialize_color != NULL) {
NCURSES_PUTP2("initialize_color",
TIPARM_4(initialize_color, color, r, g, b));
}
} | 0 |
232,291 | bool SampleInterleavedLSScan::WriteMCU(void)
{
#if ACCUSOFT_CODE
int lines = m_ulRemaining[0]; // total number of MCU lines processed.
UBYTE preshift = m_ucLowBit + FractionalColorBitsOf();
struct Line *line[4];
UBYTE cx;
//
// A "MCU" in respect to the code organization is eight lines... | 0 |
336,136 | static int ip6gre_tunnel_ioctl(struct net_device *dev,
struct ifreq *ifr, int cmd)
{
int err = 0;
struct ip6_tnl_parm2 p;
struct __ip6_tnl_parm p1;
struct ip6_tnl *t = netdev_priv(dev);
struct net *net = t->net;
struct ip6gre_net *ign = net_generic(net, ip6gre_net_id);
memset(&p1, 0, sizeof(p1));
switch (cmd... | 0 |
316,957 | static int selinux_tun_dev_attach_queue(void *security)
{
struct tun_security_struct *tunsec = security;
return avc_has_perm(&selinux_state,
current_sid(), tunsec->sid, SECCLASS_TUN_SOCKET,
TUN_SOCKET__ATTACH_QUEUE, NULL);
} | 0 |
233,952 | DocumentSourceUnionWith::~DocumentSourceUnionWith() {
if (_pipeline && _pipeline->getContext()->explain) {
_pipeline->dispose(pExpCtx->opCtx);
_pipeline.reset();
}
} | 0 |
264,255 | static void vnc_dpy_update(DisplayChangeListener *dcl,
int x, int y, int w, int h)
{
VncDisplay *vd = container_of(dcl, VncDisplay, dcl);
struct VncSurface *s = &vd->guest;
int width = surface_width(vd->ds);
int height = surface_height(vd->ds);
/* this is needed this to e... | 0 |
317,082 | static int selinux_move_mount(const struct path *from_path,
const struct path *to_path)
{
const struct cred *cred = current_cred();
return path_has_perm(cred, to_path, FILE__MOUNTON);
} | 0 |
344,265 | static const char *formatvarinfo (lua_State *L, const char *kind,
const char *name) {
if (kind == NULL)
return ""; /* no information */
else
return luaO_pushfstring(L, " (%s '%s')", kind, name);
} | 0 |
506,433 | static bool verify_credentials(struct rpa_auth_request *request,
const unsigned char *credentials, size_t size)
{
unsigned char response[MD5_RESULTLEN];
if (size != sizeof(request->pwd_md5)) {
e_error(request->auth_request.mech_event,
"invalid credentials length");
return FALSE;
}
m... | 0 |
482,546 | _lou_getTranslationTable(const char *tableList) {
TranslationTableHeader *table;
getTable(tableList, NULL, &table, NULL);
if (table)
if (!finalizeTable(table)) table = NULL;
return table;
} | 0 |
455,396 | xfs_reinit_inode(
struct xfs_mount *mp,
struct inode *inode)
{
int error;
uint32_t nlink = inode->i_nlink;
uint32_t generation = inode->i_generation;
uint64_t version = inode_peek_iversion(inode);
umode_t mode = inode->i_mode;
dev_t dev = inode->i_rdev;
error = inode_init_always(mp->m_super, inode);
set... | 0 |
275,959 | int uECC_shared_secret(const uint8_t *public_key,
const uint8_t *private_key,
uint8_t *secret,
uECC_Curve curve) {
uECC_word_t _public[uECC_MAX_WORDS * 2];
uECC_word_t _private[uECC_MAX_WORDS];
uECC_word_t tmp[uECC_MAX_WORDS];
uECC_wo... | 0 |
256,939 | static void InsertBroadcastLabels(int num_bcast_dims, int num_named_labels,
int ellipsis_axis, Labels* labels,
LabelCounts* label_counts) {
labels->erase(labels->begin() + ellipsis_axis);
labels->insert(labels->begin() + ellipsis_axis, nu... | 0 |
226,058 | GF_Err moof_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem)
{
GF_MovieFragmentBox *ptr = (GF_MovieFragmentBox *)s;
switch (a->type) {
case GF_ISOM_BOX_TYPE_MFHD:
BOX_FIELD_ASSIGN(mfhd, GF_MovieFragmentHeaderBox)
return GF_OK;
case GF_ISOM_BOX_TYPE_TRAF:
BOX_FIELD_LIST_ASSIGN(TrackList)
return GF_OK;
case G... | 0 |
221,472 | flatpak_run_add_system_dbus_args (FlatpakBwrap *app_bwrap,
FlatpakBwrap *proxy_arg_bwrap,
FlatpakContext *context,
FlatpakRunFlags flags)
{
gboolean unrestricted, no_proxy;
const char *dbus_address = g_getenv (... | 0 |
312,586 | qf_parse_dir_pfx(int idx, qffields_T *fields, qf_list_T *qfl)
{
if (idx == 'D') // enter directory
{
if (*fields->namebuf == NUL)
{
emsg(_(e_missing_or_empty_directory_name));
return QF_FAIL;
}
qfl->qf_directory =
qf_push_dir(fields->namebuf, &qfl->qf_dir_stack, FALSE);
if (qfl->qf_direct... | 0 |
197,095 | inline void BinaryBroadcastFiveFold(const ArithmeticParams& unswitched_params,
const RuntimeShape& unswitched_input1_shape,
const T* unswitched_input1_data,
const RuntimeShape& unswitched_input2_shape,
... | 1 |
498,122 | void cgit_print_docstart(void)
{
if (ctx.cfg.embedded) {
if (ctx.cfg.header)
html_include(ctx.cfg.header);
return;
}
char *host = cgit_hosturl();
html(cgit_doctype);
html("<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>\n");
html("<head>\n");
html("<title>");
html_txt(ctx.page.title)... | 0 |
234,816 | static int update_dev_stat_item(struct btrfs_trans_handle *trans,
struct btrfs_device *device)
{
struct btrfs_fs_info *fs_info = trans->fs_info;
struct btrfs_root *dev_root = fs_info->dev_root;
struct btrfs_path *path;
struct btrfs_key key;
struct extent_buffer *eb;
struct btrfs_dev_stats_item *ptr;
int ret;... | 0 |
369,169 |
static __cold int io_register_iowq_aff(struct io_ring_ctx *ctx,
void __user *arg, unsigned len)
{
struct io_uring_task *tctx = current->io_uring;
cpumask_var_t new_mask;
int ret;
if (!tctx || !tctx->io_wq)
return -EINVAL;
if (!alloc_cpumask_var(&new_mask, GFP_KERNEL))
return -ENOMEM;
cpumask_cl... | 0 |
465,853 | int nfcmrvl_parse_dt(struct device_node *node,
struct nfcmrvl_platform_data *pdata)
{
int reset_n_io;
reset_n_io = of_get_named_gpio(node, "reset-n-io", 0);
if (reset_n_io < 0) {
pr_info("no reset-n-io config\n");
} else if (!gpio_is_valid(reset_n_io)) {
pr_err("invalid reset-n-io GPIO\n");
return res... | 0 |
446,419 | static HtPU *create_path_to_index(RzBuffer *cache_buf, cache_img_t *img, cache_hdr_t *hdr) {
HtPU *path_to_idx = ht_pu_new0();
if (!path_to_idx) {
return NULL;
}
for (size_t i = 0; i != hdr->imagesCount; i++) {
char file[256];
if (rz_buf_read_at(cache_buf, img[i].pathFileOffset, (ut8 *)&file, sizeof(file)) !=... | 0 |
261,378 | bool alloc_and_init_significant_coeff_ctxIdx_lookupTable_OLD()
{
int tableSize = 2*2*4*(4*4 + 8*8 + 16*16 + 32*32);
uint8_t* p = (uint8_t*)malloc(tableSize);
if (p==NULL) {
return false;
}
for (int log2w=2; log2w<=5 ; log2w++)
for (int cIdx=0;cIdx<2;cIdx++)
for (int scanIdx=0;scanIdx<2;scanIdx+... | 0 |
468,368 | g_socket_client_get_tls_validation_flags (GSocketClient *client)
{
return client->priv->tls_validation_flags;
} | 0 |
384,826 | pstrcmp(const void *a, const void *b)
{
return (pathcmp(*(char **)a, *(char **)b, -1));
} | 0 |
497,806 | kwsexec (kwset_t kwset, char const *text, size_t size,
struct kwsmatch *kwsmatch)
{
if (kwset->words == 1)
{
size_t ret = bmexec (kwset, text, size);
if (ret != (size_t) -1)
{
kwsmatch->index = 0;
kwsmatch->offset[0] = ret;
kwsmatch->size[0] = kwset->mind... | 0 |
349,899 | static u32 hw_atl_utils_mpi_get_state(struct aq_hw_s *self)
{
return aq_hw_read_reg(self, HW_ATL_MPI_STATE_ADR);
} | 0 |
513,105 | Type_geometry_attributes(const Type_handler *handler,
const Type_all_attributes *gattr)
:m_geometry_type(m_geometry_type_unknown)
{
copy(handler, gattr);
} | 0 |
207,826 | inline int nci_request(struct nci_dev *ndev,
void (*req)(struct nci_dev *ndev,
const void *opt),
const void *opt, __u32 timeout)
{
int rc;
if (!test_bit(NCI_UP, &ndev->flags))
return -ENETDOWN;
/* Serialize all requests */
mutex_lock(&ndev->req_lock);
rc = __nci_request(ndev, req, opt,... | 1 |
264,252 | static void pointer_event(VncState *vs, int button_mask, int x, int y)
{
static uint32_t bmap[INPUT_BUTTON_MAX] = {
[INPUT_BUTTON_LEFT] = 0x01,
[INPUT_BUTTON_MIDDLE] = 0x02,
[INPUT_BUTTON_RIGHT] = 0x04,
[INPUT_BUTTON_WHEEL_UP] = 0x08,
[INPUT_BUTTON_WHEEL_DOWN... | 0 |
254,708 | njs_typed_array_compare(double a, double b)
{
if (njs_slow_path(isnan(a))) {
if (isnan(b)) {
return 0;
}
return 1;
}
if (njs_slow_path(isnan(b))) {
return -1;
}
if (a < b) {
return -1;
}
if (a > b) {
return 1;
}
return ... | 0 |
463,121 | static void annotate_closedb(annotate_db_t *d)
{
annotate_db_t *dx, *prev = NULL;
int r;
/* detach from the global list */
for (dx = all_dbs_head ; dx && dx != d ; prev = dx, dx = dx->next)
;
assert(dx);
assert(d == dx);
detach_db(prev, d);
#if DEBUG
syslog(LOG_ERR, "Closing an... | 0 |
227,035 | IRC_PROTOCOL_CALLBACK(whois_nick_msg)
{
IRC_PROTOCOL_MIN_ARGS(5);
weechat_printf_date_tags (
irc_msgbuffer_get_target_buffer (
server, argv[3], command, "whois", NULL),
date,
irc_protocol_tags (command, "irc_numeric", NULL, NULL),
"%s%s[%s%s%s] %s%s",
weechat... | 0 |
300,729 | static void tipc_write_space(struct sock *sk)
{
struct socket_wq *wq;
rcu_read_lock();
wq = rcu_dereference(sk->sk_wq);
if (skwq_has_sleeper(wq))
wake_up_interruptible_sync_poll(&wq->wait, EPOLLOUT |
EPOLLWRNORM | EPOLLWRBAND);
rcu_read_unlock();
} | 0 |
274,680 | callbacks_get_selected_row_index (void)
{
GtkTreeSelection *selection;
GtkTreeIter iter;
GtkListStore *list_store = (GtkListStore *) gtk_tree_view_get_model
((GtkTreeView *) screen.win.layerTree);
gint index=-1,i=0;
/* This will only work in single or browse selection mode! */
selection = gtk_tree_view_... | 0 |
247,531 | const std::string& expectedOcspResponse() const { return expected_ocsp_response_; } | 0 |
196,231 | void TensorSliceReader::LoadShard(int shard) const {
CHECK_LT(shard, sss_.size());
if (sss_[shard] || !status_.ok()) {
return; // Already loaded, or invalid.
}
string value;
SavedTensorSlices sts;
const string fname = fnames_[shard];
VLOG(1) << "Reading meta data from file " << fname << "...";
Tabl... | 1 |
424,512 | static UINT video_control_on_data_received(IWTSVirtualChannelCallback* pChannelCallback, wStream* s)
{
VIDEO_CHANNEL_CALLBACK* callback = (VIDEO_CHANNEL_CALLBACK*)pChannelCallback;
VIDEO_PLUGIN* video;
VideoClientContext* context;
UINT ret = CHANNEL_RC_OK;
UINT32 cbSize, packetType;
video = (VIDEO_PLUGIN*)callba... | 0 |
430,407 | int ovs_nla_get_match(struct net *net, struct sw_flow_match *match,
const struct nlattr *nla_key,
const struct nlattr *nla_mask,
bool log)
{
const struct nlattr *a[OVS_KEY_ATTR_MAX + 1];
struct nlattr *newmask = NULL;
u64 key_attrs = 0;
u64 mask_attrs = 0;
int err;
err = parse_flow_nlattr... | 0 |
376,333 | gpg_encrypt_sync (CamelCipherContext *context,
const gchar *userid,
GPtrArray *recipients,
CamelMimePart *ipart,
CamelMimePart *opart,
GCancellable *cancellable,
GError **error)
{
CamelCipherContextClass *class;... | 0 |
384,839 | f_getcwd(typval_T *argvars, typval_T *rettv)
{
win_T *wp = NULL;
tabpage_T *tp = NULL;
char_u *cwd;
int global = FALSE;
rettv->v_type = VAR_STRING;
rettv->vval.v_string = NULL;
if (in_vim9script()
&& (check_for_opt_number_arg(argvars, 0) == FAIL
|| (argvars[0].v_type != VAR_UNKNOWN... | 0 |
223,452 | static void peek_char_back(compiler_common *common, sljit_u32 max, jump_list **backtracks)
{
/* Reads one character back without moving STR_PTR. TMP2 must
contain the start of the subject buffer. Affects TMP1, TMP2, and RETURN_ADDR. */
DEFINE_COMPILER;
#if defined SUPPORT_UNICODE && PCRE2_CODE_UNIT_WIDTH != 32
struct ... | 0 |
223,392 | static PCRE2_SPTR compile_char1_matchingpath(compiler_common *common, PCRE2_UCHAR type, PCRE2_SPTR cc, jump_list **backtracks, BOOL check_str_ptr)
{
DEFINE_COMPILER;
int length;
unsigned int c, oc, bit;
compare_context context;
struct sljit_jump *jump[3];
jump_list *end_list;
#ifdef SUPPORT_UNICODE
PCRE2_UCHAR propdata... | 0 |
436,157 |
static int io_register_rsrc(struct io_ring_ctx *ctx, void __user *arg,
unsigned int size, unsigned int type)
{
struct io_uring_rsrc_register rr;
/* keep it extendible */
if (size != sizeof(rr))
return -EINVAL;
memset(&rr, 0, sizeof(rr));
if (copy_from_user(&rr, arg, size))
return -EFAULT;
if (!rr.nr... | 0 |
349,267 | int check_name(char *name, int size)
{
char *start = name;
if(name[0] == '.') {
if(name[1] == '.')
name++;
if(name[1] == '/' || name[1] == '\0')
return FALSE;
}
while(name[0] != '/' && name[0] != '\0')
name ++;
if(name[0] == '/')
return FALSE;
if((name - start) != size)
return FALSE;
return ... | 0 |
473,895 | select_str_opcode(int mb_len, OnigDistance str_len, int ignore_case)
{
int op;
if (ignore_case) {
switch (str_len) {
case 1: op = OP_EXACT1_IC; break;
default: op = OP_EXACTN_IC; break;
}
}
else {
switch (mb_len) {
case 1:
switch (str_len) {
case 1: op = OP_EXACT1; break;
... | 0 |
343,215 | void dosize(const char *name)
{
struct stat st;
if (!name || !*name) {
addreply_noformat(501, MSG_MISSING_ARG);
} else if (stat(name, &st)) {
#ifdef DEBUG
if (debug != 0) {
addreply(0, "arg: %s, wd: %s", name, wd);
}
#endif
addreply_noformat(550, MSG_STAT_FAILURE... | 0 |
513,206 | static int item_is_unsigned(struct st_mysql_value *value)
{
Item *item= ((st_item_value_holder*)value)->item;
return item->unsigned_flag;
} | 0 |
253,547 | smb2_find_mid(struct TCP_Server_Info *server, char *buf)
{
return __smb2_find_mid(server, buf, false);
} | 0 |
308,176 | static int fastrpc_init_create_process(struct fastrpc_user *fl,
char __user *argp)
{
struct fastrpc_init_create init;
struct fastrpc_invoke_args *args;
struct fastrpc_phy_page pages[1];
struct fastrpc_map *map = NULL;
struct fastrpc_buf *imem = NULL;
int memlen;
int err;
struct {
int pgid;
u32 namelen;... | 0 |
225,071 | PQconnectionNeedsPassword(const PGconn *conn)
{
char *password;
if (!conn)
return false;
password = PQpass(conn);
if (conn->password_needed &&
(password == NULL || password[0] == '\0'))
return true;
else
return false;
} | 0 |
282,865 | int rsi_send_block_unblock_frame(struct rsi_common *common, bool block_event)
{
struct rsi_block_unblock_data *mgmt_frame;
struct sk_buff *skb;
rsi_dbg(MGMT_TX_ZONE, "%s: Sending block/unblock frame\n", __func__);
skb = dev_alloc_skb(FRAME_DESC_SZ);
if (!skb) {
rsi_dbg(ERR_ZONE, "%s: Failed in allocation of sk... | 0 |
508,898 | bool LEX::only_view_structure()
{
switch (sql_command) {
case SQLCOM_SHOW_CREATE:
case SQLCOM_SHOW_TABLES:
case SQLCOM_SHOW_FIELDS:
case SQLCOM_REVOKE_ALL:
case SQLCOM_REVOKE:
case SQLCOM_GRANT:
case SQLCOM_CREATE_VIEW:
return TRUE;
default:
return FALSE;
}
} | 0 |
259,242 | static int mov_read_dac3(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
enum AVAudioServiceType *ast;
int ac3info, acmod, lfeon, bsmod;
uint64_t mask;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams-1];
ast = (enum AVAudioServiceType*)av_st... | 0 |
441,816 | SProcXkbUseExtension(ClientPtr client)
{
REQUEST(xkbUseExtensionReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xkbUseExtensionReq);
swaps(&stuff->wantedMajor);
swaps(&stuff->wantedMinor);
return ProcXkbUseExtension(client);
} | 0 |
225,600 |
GF_Err subs_box_size(GF_Box *s)
{
GF_SubSampleInformationBox *ptr = (GF_SubSampleInformationBox *) s;
u32 entry_count, i;
u16 subsample_count;
// add 4 byte for entry_count
ptr->size += 4;
entry_count = gf_list_count(ptr->Samples);
for (i=0; i<entry_count; i++) {
GF_SubSampleInfoEntry *pSamp = (GF_SubSampleI... | 0 |
317,070 | static int smack_task_setscheduler(struct task_struct *p)
{
return smk_curacc_on_task(p, MAY_WRITE, __func__);
} | 0 |
210,904 | static void warnf(struct Configurable *config, const char *fmt, ...)
{
if(!(config->conf & CONF_MUTE)) {
va_list ap;
int len;
char *ptr;
char print_buffer[256];
va_start(ap, fmt);
va_start(ap, fmt);
len = vsnprintf(print_buffer, sizeof(print_buffer), fmt, ap);
va_end(ap);
ptr = p... | 1 |
294,718 | c_gregorian_leap_p(int y)
{
return (MOD(y, 4) == 0 && y % 100 != 0) || MOD(y, 400) == 0;
} | 0 |
512,645 | Item_func_ifnull::str_op(String *str)
{
DBUG_ASSERT(fixed == 1);
String *res =args[0]->val_str(str);
if (!args[0]->null_value)
{
null_value=0;
res->set_charset(collation.collation);
return res;
}
res=args[1]->val_str(str);
if ((null_value=args[1]->null_value))
return 0;
res->set_charset... | 0 |
294,722 | local_df(union DateData *x)
{
assert(complex_dat_p(x));
assert(have_df_p(x));
return df_utc_to_local(x->c.df, x->c.of);
} | 0 |
313,749 | nv_gv_cmd(cmdarg_T *cap)
{
pos_T tpos;
int i;
if (checkclearop(cap->oap))
return;
if (curbuf->b_visual.vi_start.lnum == 0
|| curbuf->b_visual.vi_start.lnum > curbuf->b_ml.ml_line_count
|| curbuf->b_visual.vi_end.lnum == 0)
{
beep_flush();
return;
}
// set w_cursor to the sta... | 0 |
317,316 | static int smack_msg_queue_msgctl(struct kern_ipc_perm *isp, int cmd)
{
int may;
switch (cmd) {
case IPC_STAT:
case MSG_STAT:
case MSG_STAT_ANY:
may = MAY_READ;
break;
case IPC_SET:
case IPC_RMID:
may = MAY_READWRITE;
break;
case IPC_INFO:
case MSG_INFO:
/*
* System level information
*/
retu... | 0 |
484,062 | START_TEST(SecureChannel_sendSymmetricMessage_modeSignAndEncrypt)
{
// initialize dummy message
UA_ReadRequest dummyMessage;
UA_ReadRequest_init(&dummyMessage);
UA_DataType dummyType = UA_TYPES[UA_TYPES_READREQUEST];
testChannel.securityMode = UA_MESSAGESECURITYMODE_SIGNANDENCRYPT;
UA_StatusCo... | 0 |
359,213 | static int ringbuf_map_get_next_key(struct bpf_map *map, void *key,
void *next_key)
{
return -ENOTSUPP;
} | 0 |
310,191 | _nc_real_mvcur(NCURSES_SP_DCLx
int yold, int xold,
int ynew, int xnew,
NCURSES_SP_OUTC myOutCh,
int ovw)
{
NCURSES_CH_T oldattr;
int code;
TR(TRACE_CALLS | TRACE_MOVE, (T_CALLED("_nc_tinfo_mvcur(%p,%d,%d,%d,%d)"),
(void *) SP_PARM, yold, xold, ynew, xnew));
if (SP... | 0 |
318,104 | static int rsi_usb_read_register_multiple(struct rsi_hw *adapter, u32 addr,
u8 *data, u16 count)
{
struct rsi_91x_usbdev *dev = (struct rsi_91x_usbdev *)adapter->rsi_dev;
u8 *buf;
u16 transfer;
int status;
if (!addr)
return -EINVAL;
buf = kzalloc(RSI_USB_BUF_SIZE, GFP_KERNEL);
if (!buf)
return -ENOM... | 0 |
486,813 | static void gem_receive_updatestats(CadenceGEMState *s, const uint8_t *packet,
unsigned bytes)
{
uint64_t octets;
/* Total octets (bytes) received */
octets = ((uint64_t)(s->regs[GEM_OCTRXLO]) << 32) |
s->regs[GEM_OCTRXHI];
octets += bytes;
s->regs[G... | 0 |
446,056 | codeLoop(TIFF* tif, const char* module)
{
TIFFErrorExt(tif->tif_clientdata, module,
"Bogus encoding, loop in the code table; scanline %d",
tif->tif_row);
} | 0 |
222,555 | bool operator<(const AttrKeyAndValue& b) const {
if (key_name_ != b.key_name_) {
return key_name_ < b.key_name_;
} else if (key_suffix_ != b.key_suffix_) {
return key_suffix_ < b.key_suffix_;
} else {
return value_ < b.value_;
}
} | 0 |
317,101 | static int smk_bu_note(char *note, struct smack_known *sskp,
struct smack_known *oskp, int mode, int rc)
{
char acc[SMK_NUM_ACCESS_TYPE + 1];
if (rc <= 0)
return rc;
if (rc > SMACK_UNCONFINED_OBJECT)
rc = 0;
smk_bu_mode(mode, acc);
pr_info("Smack %s: (%s %s %s) %s\n", smk_bu_mess[rc],
sskp->smk_kn... | 0 |
486,827 | static uint16_t gem_phy_read(CadenceGEMState *s, unsigned reg_num)
{
DB_PRINT("reg: %d value: 0x%04x\n", reg_num, s->phy_regs[reg_num]);
return s->phy_regs[reg_num];
} | 0 |
225,838 | GF_Box *co64_box_new()
{
ISOM_DECL_BOX_ALLOC(GF_ChunkLargeOffsetBox, GF_ISOM_BOX_TYPE_CO64);
return (GF_Box *)tmp;
} | 0 |
246,654 | static void naldmx_bs_log(void *udta, const char *field_name, u32 nb_bits, u64 field_val, s32 idx1, s32 idx2, s32 idx3)
{
GF_NALUDmxCtx *ctx = (GF_NALUDmxCtx *) udta;
GF_LOG(GF_LOG_DEBUG, GF_LOG_MEDIA, (" %s", field_name));
if (idx1>=0) {
GF_LOG(GF_LOG_DEBUG, GF_LOG_MEDIA, ("_%d", idx1));
if (idx2>=0) {
GF_LO... | 0 |
328,991 | R_API RBinJavaAttrInfo *r_bin_java_synthetic_attr_new(RBinJavaObj *bin, ut8 *buffer, ut64 sz, ut64 buf_offset) {
if (sz < 8) {
return NULL;
}
RBinJavaAttrInfo *attr = r_bin_java_default_attr_new (bin, buffer, sz, buf_offset);
if (!attr) {
return NULL;
}
attr->type = R_BIN_JAVA_ATTR_TYPE_SYNTHETIC_ATTR;
attr-... | 0 |
246,718 | static Bool strstr_nocase(const char *text, const char *subtext, u32 subtext_len)
{
if (!*text || !subtext || !subtext_len)
return GF_FALSE;
while (*text) {
if (tolower(*text) == *subtext) {
if (!strnicmp(text, subtext, subtext_len))
return GF_TRUE;
}
text++;
}
return GF_FALSE;
} | 0 |
252,429 | void *tinfl_decompress_mem_to_heap(const void *pSrc_buf, size_t src_buf_len,
size_t *pOut_len, int flags) {
tinfl_decompressor decomp;
void *pBuf = NULL, *pNew_buf;
size_t src_buf_ofs = 0, out_buf_capacity = 0;
*pOut_len = 0;
tinfl_init(&decomp);
for (;;) {
size_t src_... | 0 |
512,749 | bool get_date_from_item(THD *thd, Item *item,
MYSQL_TIME *ltime, date_mode_t fuzzydate)
{
bool rc= item->get_date(thd, ltime, fuzzydate);
null_value= MY_TEST(rc || item->null_value);
return rc;
} | 0 |
276,916 | static void decode_bits (u_char const b, char const *str[], int const do_once)
{
u_char mask;
for (mask = 0x80; mask != 0x00; mask >>= 1, ++str) {
if (b & mask) {
puts (*str);
if (do_once)
return;
}
}
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.