idx int64 | func string | target int64 |
|---|---|---|
411,912 | int ncp_dirhandle_free(struct ncp_server* server, __u8 dirhandle) {
int result;
ncp_init_request_s(server, 20);
ncp_add_byte(server, dirhandle);
result = ncp_request(server, 22);
ncp_unlock_server(server);
return result;
} | 0 |
209,619 | bool MemBackendImpl::HasExceededStorageSize() const {
return current_size_ > max_size_;
}
| 0 |
220,695 | void ContentSecurityPolicy::EnforceStrictMixedContentChecking() {
insecure_request_policy_ |= kBlockAllMixedContent;
}
| 0 |
201,599 | void NavigationControllerImpl::CancelPendingReload() {
DCHECK(pending_reload_ != ReloadType::NONE);
pending_reload_ = ReloadType::NONE;
}
| 0 |
463,038 | Command* CommandHelpers::findCommand(StringData name) {
return globalCommandRegistry()->findCommand(name);
} | 0 |
483,823 | static ssize_t online_show(struct device *dev, struct device_attribute *attr,
char *buf)
{
bool val;
device_lock(dev);
val = !dev->offline;
device_unlock(dev);
return sysfs_emit(buf, "%u\n", val);
} | 0 |
217,331 | void GLES2Implementation::BufferSubDataHelperImpl(
GLenum target,
GLintptr offset,
GLsizeiptr size,
const void* data,
ScopedTransferBufferPtr* buffer) {
DCHECK(buffer);
DCHECK_GT(size, 0);
auto DoBufferSubData = [&](const std::array<uint32_t, 1>&,
uint32_t copy_of... | 0 |
152,290 | static int uas_use_uas_driver(struct usb_interface *intf,
const struct usb_device_id *id,
unsigned long *flags_ret)
{
struct usb_host_endpoint *eps[4] = { };
struct usb_device *udev = interface_to_usbdev(intf);
struct usb_hcd *hcd = bus_to_hcd(udev->bus);
unsigned long flags = id->driver_info;
st... | 0 |
17,406 | static unsigned char * extra_open_record ( unsigned char * bp , int dr_len , struct isoent * isoent , struct ctl_extr_rec * ctl ) {
ctl -> bp = bp ;
if ( bp != NULL ) bp += dr_len ;
ctl -> use_extr = 0 ;
ctl -> isoent = isoent ;
ctl -> ce_ptr = NULL ;
ctl -> cur_len = ctl -> dr_len = dr_len ;
ctl -> limit = DR_L... | 0 |
298,129 | int ptrace_getregs(struct task_struct *child, void __user *uregs)
{
struct pt_regs *regs = task_pt_regs(child);
xtensa_gregset_t __user *gregset = uregs;
unsigned long wm = regs->wmask;
unsigned long wb = regs->windowbase;
int live, i;
if (!access_ok(VERIFY_WRITE, uregs, sizeof(xtensa_gregset_t)))
return -EIO;... | 0 |
248,887 | void CleanUp(DownloadId id) {
MockDownloadFile* file = download_file_factory_->GetExistingFile(id);
ASSERT_TRUE(file != NULL);
EXPECT_CALL(*file, Cancel());
download_file_manager_->CancelDownload(id);
EXPECT_EQ(NULL, download_file_manager_->GetDownloadFile(id));
}
| 0 |
8,962 | static int php_var_unserialize_internal(UNSERIALIZE_PARAMETER)
{
const unsigned char *cursor, *limit, *marker, *start;
zval *rval_ref;
limit = max;
cursor = *p;
if (YYCURSOR >= YYLIMIT) {
return 0;
}
if (var_hash && (*p)[0] != 'R') {
var_push(var_hash, rval);
}
start = cursor;
#line 554 "ext/standard... | 1 |
450,172 | static int ctnetlink_dump_use(struct sk_buff *skb, const struct nf_conn *ct)
{
if (nla_put_be32(skb, CTA_USE, htonl(atomic_read(&ct->ct_general.use))))
goto nla_put_failure;
return 0;
nla_put_failure:
return -1;
} | 0 |
331,746 | static inline TCGv gen_ld16s(TCGv addr, int index)
{
TCGv tmp = new_tmp();
tcg_gen_qemu_ld16s(tmp, addr, index);
return tmp;
}
| 1 |
326,110 | QString *qstring_from_substr(const char *str, int start, int end)
{
QString *qstring;
qstring = g_malloc(sizeof(*qstring));
qstring->length = end - start + 1;
qstring->capacity = qstring->length;
qstring->string = g_malloc(qstring->capacity + 1);
memcpy(qstring->string, str + start,... | 0 |
223,759 | static int lua_websocket_read(lua_State *L)
{
apr_socket_t *sock;
apr_status_t rv;
int do_read = 1;
int n = 0;
apr_size_t len = 1;
apr_size_t plen = 0;
unsigned short payload_short = 0;
apr_uint64_t payload_long = 0;
unsigned char *mask_bytes;
char byte;
int plaintext;... | 0 |
226,111 | Element* Document::createElement(const QualifiedName& q_name,
CreateElementFlags flags) {
Element* e = nullptr;
if (q_name.NamespaceURI() == xhtmlNamespaceURI)
e = HTMLElementFactory::createHTMLElement(q_name.LocalName(), *this, flags);
else if (q_name.NamespaceURI() == SVGNa... | 0 |
161,524 | static void iter_from_extension(pb_field_iter_t *iter, pb_extension_t *extension)
{
/* Fake a field iterator for the extension field.
* It is not actually safe to advance this iterator, but decode_field
* will not even try to. */
const pb_field_t *field = (const pb_field_t*)extension->type->arg;
(... | 0 |
425,240 | iommu_support_dev_iotlb (struct dmar_domain *domain, struct intel_iommu *iommu,
u8 bus, u8 devfn)
{
struct device_domain_info *info;
assert_spin_locked(&device_domain_lock);
if (!iommu->qi)
return NULL;
list_for_each_entry(info, &domain->devices, link)
if (info->iommu == iommu && info->bus == bus &&
... | 0 |
254,819 | WORK_STATE ossl_statem_server_pre_work ( SSL * s , WORK_STATE wst ) {
OSSL_STATEM * st = & s -> statem ;
switch ( st -> hand_state ) {
case TLS_ST_SW_HELLO_REQ : s -> shutdown = 0 ;
if ( SSL_IS_DTLS ( s ) ) dtls1_clear_record_buffer ( s ) ;
break ;
case DTLS_ST_SW_HELLO_VERIFY_REQUEST : s -> shutdown = 0 ;
if ( ... | 1 |
213,395 | size_t HevcParameterSets::getSize(size_t index) {
CHECK_LT(index, mNalUnits.size());
return mNalUnits[index]->size();
}
| 0 |
184,570 | bool OSExchangeData::HasString() const {
return provider_->HasString();
}
| 0 |
132,070 | QPDFWriter::QPDFWriter(QPDF& pdf, char const* filename) :
pdf(pdf)
{
init();
setOutputFilename(filename);
} | 0 |
434,311 | int mutt_remove_from_rx_list (RX_LIST **l, const char *str)
{
RX_LIST *p, *last = NULL;
int rv = -1;
if (mutt_strcmp ("*", str) == 0)
{
mutt_free_rx_list (l); /* ``unCMD *'' means delete all current entries */
rv = 0;
}
else
{
p = *l;
last = NULL;
while (p)
{
if (ascii_st... | 0 |
119,136 | dbd_st_FETCH_internal(
SV *sth,
int what,
MYSQL_RES *res,
int cacheit
)
{
dTHX;
D_imp_sth(sth);
AV *av= Nullav;
MYSQL_FIELD *curField;
/* Are we asking for a legal value? */
if (what < 0 || what >= AV_ATTRIB_LAST)
do_error(sth, JW_ERR_NOT_IMPLEMENTED, "Not implemented", NULL);
/* Return cac... | 0 |
91,518 | void SetOpAttrListDefault(
TFE_Context* ctx, TFE_Op* op, const tensorflow::OpDef::AttrDef& attr,
const char* key, TF_AttrType type,
tensorflow::gtl::FlatMap<string, int64_t>* attr_list_sizes,
TF_Status* status) {
if (type == TF_ATTR_STRING) {
int num_values = attr.default_value().list().s_size();
... | 0 |
476,662 | struct buffer_head *udf_expand_dir_adinicb(struct inode *inode,
udf_pblk_t *block, int *err)
{
udf_pblk_t newblock;
struct buffer_head *dbh = NULL;
struct kernel_lb_addr eloc;
uint8_t alloctype;
struct extent_position epos;
struct udf_fileident_bh sfibh, dfibh;
loff_t f_pos = udf_ext0_offset(inode);
i... | 0 |
272,232 | TEST(TensorSliceTest, UpdateToCover) {
// [2:4, :, 3:]
TensorSlice s({{2, 2}, {0, -1}, {3, 7}});
// [:, 1:4, 2:4]
TensorSlice other({{0, -1}, {1, 3}, {2, 2}});
s.UpdateToCover(other);
// [:, :, 2:]
EXPECT_EQ("-:-:2,8", s.DebugString());
} | 0 |
393,268 | xmlCharStrdup(const char *cur) {
const char *p = cur;
if (cur == NULL) return(NULL);
while (*p != '\0') p++; /* non input consuming */
return(xmlCharStrndup(cur, p - cur));
} | 0 |
509,407 | size_t EC_GROUP_get_seed_len(const EC_GROUP *group)
{
return group->seed_len;
} | 0 |
4,752 | int x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len)
{
int rc = X86EMUL_CONTINUE;
int mode = ctxt->mode;
int def_op_bytes, def_ad_bytes, goffset, simd_prefix;
bool op_prefix = false;
bool has_seg_override = false;
struct opcode opcode;
ctxt->memop.type = OP_NONE;
ctxt->memopp = NULL;
c... | 1 |
152,805 | static int jpeg2000_read_bitstream_packets(Jpeg2000DecoderContext *s)
{
int ret = 0;
int tileno;
for (tileno = 0; tileno < s->numXtiles * s->numYtiles; tileno++) {
Jpeg2000Tile *tile = s->tile + tileno;
if (ret = init_tile(s, tileno))
return ret;
s->g = tile->tile_part... | 0 |
460,613 | LDAPDN_rewrite( LDAPDN dn, unsigned flags, void *ctx )
{
int iRDN;
int rc;
assert( dn != NULL );
for ( iRDN = 0; dn[ iRDN ]; iRDN++ ) {
rc = LDAPRDN_rewrite( dn[ iRDN ], flags, ctx );
if ( rc != LDAP_SUCCESS ) {
return rc;
}
}
return LDAP_SUCCESS;
} | 0 |
512,239 | void imap_parser_enable_literal_minus(struct imap_parser *parser)
{
parser->literal_minus = TRUE;
} | 0 |
7,970 | block_insert(
oparg_T *oap,
char_u *s,
int b_insert,
struct block_def *bdp)
{
int ts_val;
int count = 0; // extra spaces to replace a cut TAB
int spaces = 0; // non-zero if cutting a TAB
colnr_T offset; // pointer along new line
colnr_T startcol; // column where insert starts... | 1 |
24,094 | static void imdct_and_window ( TwinContext * tctx , enum FrameType ftype , int wtype , float * in , float * prev , int ch ) {
FFTContext * mdct = & tctx -> mdct_ctx [ ftype ] ;
const ModeTab * mtab = tctx -> mtab ;
int bsize = mtab -> size / mtab -> fmode [ ftype ] . sub ;
int size = mtab -> size ;
float * buf1 = ... | 0 |
450,436 | static void nfs4_open_done(struct rpc_task *task, void *calldata)
{
struct nfs4_opendata *data = calldata;
data->rpc_status = task->tk_status;
if (!nfs4_sequence_process(task, &data->o_res.seq_res))
return;
if (task->tk_status == 0) {
if (data->o_res.f_attr->valid & NFS_ATTR_FATTR_TYPE) {
switch (data->o_... | 0 |
206,645 | void RenderWidgetHostImpl::WasResized(bool scroll_focused_node_into_view) {
if (resize_ack_pending_ || !process_->HasConnection() || !view_ ||
!view_->HasSize() || !renderer_initialized_ || auto_resize_enabled_ ||
!delegate_) {
return;
}
std::unique_ptr<ResizeParams> params(new ResizeParams);
i... | 0 |
329,497 | static void virtio_device_free_virtqueues(VirtIODevice *vdev)
{
int i;
if (!vdev->vq) {
return;
}
for (i = 0; i < VIRTIO_QUEUE_MAX; i++) {
VRingMemoryRegionCaches *caches;
if (vdev->vq[i].vring.num == 0) {
break;
}
caches = atomic_read(&vd... | 1 |
139,484 | static bool checkreturn decode_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *field)
{
#ifdef PB_ENABLE_MALLOC
/* When decoding an oneof field, check if there is old data that must be
* released first. */
if (PB_HTYPE(field->type) == PB_HTYPE_ONEOF)
{
if (!pb_release_uni... | 0 |
295,834 | static int set_bitmap_file(struct mddev *mddev, int fd)
{
int err = 0;
if (mddev->pers) {
if (!mddev->pers->quiesce || !mddev->thread)
return -EBUSY;
if (mddev->recovery || mddev->sync_thread)
return -EBUSY;
/* we should be able to change the bitmap.. */
}
if (fd >= 0) {
struct inode *inode;
struc... | 0 |
3,753 | static boolean ReadICCProfile(j_decompress_ptr jpeg_info)
{
char
magick[12];
ErrorManager
*error_manager;
ExceptionInfo
*exception;
Image
*image;
MagickBooleanType
status;
register ssize_t
i;
register unsigned char
*p;
size_t
length;
StringInfo
*icc_profile,... | 1 |
81,795 | void Compute(OpKernelContext* ctx) override TF_LOCKS_EXCLUDED(mu_) {
mutex_lock l(mu_);
if (!initialized_) {
ResourceMgr* mgr = ctx->resource_manager();
OP_REQUIRES_OK(ctx, cinfo_.Init(mgr, def()));
ThreadPoolResource* resource;
OP_REQUIRES_OK(ctx, mgr->LookupOrCreate<ThreadPoolResourc... | 0 |
417,274 | static void update_child_status(h2_session *session, int status, const char *msg)
{
/* Assume that we also change code/msg when something really happened and
* avoid updating the scoreboard in between */
if (session->last_status_code != status
|| session->last_status_msg != msg) {
apr_snpr... | 0 |
190,910 | bool btif_config_get_str(const char *section, const char *key, char *value, int *size_bytes) {
assert(config != NULL);
assert(section != NULL);
assert(key != NULL);
assert(value != NULL);
assert(size_bytes != NULL);
pthread_mutex_lock(&lock);
const char *stored_value = config_get_string(config, section, k... | 0 |
357,707 | static status ParseList (AFfilehandle filehandle, AFvirtualfile *fp,
uint32_t id, size_t size)
{
uint32_t typeID;
af_fread(&typeID, 4, 1, fp);
size-=4;
if (memcmp(&typeID, "adtl", 4) == 0)
{
/* Handle adtl sub-chunks. */
return ParseADTLSubChunk(filehandle, fp, typeID, size);
}
else if (memcmp(&typeID, "I... | 0 |
220,017 | MockInvalidationStateTracker::~MockInvalidationStateTracker() {}
| 0 |
143,784 | __mem_cgroup_remove_exceeded(struct mem_cgroup *memcg,
struct mem_cgroup_per_zone *mz,
struct mem_cgroup_tree_per_zone *mctz)
{
if (!mz->on_tree)
return;
rb_erase(&mz->tree_node, &mctz->rb_root);
mz->on_tree = false;
} | 0 |
387,335 | crypto_mv(
struct exten *ep, /* extension pointer */
struct peer *peer /* peer structure pointer */
)
{
DSA *dsa; /* MV parameters */
DSA *sdsa; /* DSA parameters */
BN_CTX *bctx; /* BIGNUM context */
BIGNUM *k, *u, *v;
u_int len;
const u_char *ptr;
int temp;
/*
* If the MV parameters are not valid or ... | 0 |
462,931 | Status InMatchExpression::init(StringData path) {
return setPath(path);
} | 0 |
35,382 | s32 gf_hevc_parse_nalu(u8 *data, u32 size, HEVCState *hevc, u8 *nal_unit_type, u8 *temporal_id, u8 *layer_id)
{
GF_BitStream *bs = NULL;
s32 ret = -1;
if (!hevc) {
if (nal_unit_type) (*nal_unit_type) = (data[0] & 0x7E) >> 1;
if (layer_id) {
u8 id = data[0] & 1;
id <<= 5;
id |= (data[1] >> 3) & 0x1F;
... | 0 |
270,305 | GF_Err chan_box_write(GF_Box *s, GF_BitStream *bs)
{
GF_Err e;
u32 i;
GF_ChannelLayoutInfoBox *ptr = (GF_ChannelLayoutInfoBox *)s;
e = gf_isom_full_box_write(s, bs);
if (e) return e;
gf_bs_write_u32(bs, ptr->layout_tag);
gf_bs_write_u32(bs, ptr->bitmap);
gf_bs_write_u32(bs, ptr->num_audio_description);
for ... | 0 |
376,762 | HInstruction* HGraphBuilder::BuildLoadKeyedGeneric(HValue* object,
HValue* key) {
HValue* context = environment()->LookupContext();
return new(zone()) HLoadKeyedGeneric(context, object, key);
} | 0 |
282,160 | OutdatedPluginInfoBarDelegate::~OutdatedPluginInfoBarDelegate() {
UserMetrics::RecordAction(UserMetricsAction("OutdatedPluginInfobar.Closed"));
}
| 0 |
204,567 | xmlParseStartTag2(xmlParserCtxtPtr ctxt, const xmlChar **pref,
const xmlChar **URI, int *tlen) {
const xmlChar *localname;
const xmlChar *prefix;
const xmlChar *attname;
const xmlChar *aprefix;
const xmlChar *nsname;
xmlChar *attvalue;
const xmlChar **atts = ctxt->atts;
int maxatts = ctxt->maxatts;
int nra... | 0 |
33,816 | TEST_P(JSITest, FunctionTest) {
// test move ctor
Function fmove = function("function() { return 1 }");
{
Function g = function("function() { return 2 }");
fmove = std::move(g);
}
EXPECT_EQ(fmove.call(rt).getNumber(), 2);
// This tests all the function argument converters, and all the
// non-lval... | 0 |
329,306 | int qemu_get_buffer(QEMUFile *f, uint8_t *buf, int size1)
{
int size, l;
if (f->is_write) {
abort();
}
size = size1;
while (size > 0) {
l = f->buf_size - f->buf_index;
if (l == 0) {
qemu_fill_buffer(f);
l = f->buf_size - f->buf_index;
... | 1 |
335,251 | static void test_visitor_in_native_list_uint64(TestInputVisitorData *data,
const void *unused)
{
test_native_list_integer_helper(data, unused,
USER_DEF_NATIVE_LIST_UNION_KIND_U64);
}
| 0 |
42,616 | buf_slack(const buf_t *buf)
{
if (!buf->tail)
return 0;
else
return CHUNK_REMAINING_CAPACITY(buf->tail);
} | 0 |
479,254 | inline float abs(const float a) {
return (float)std::fabs((double)a);
} | 0 |
168,687 | void WebRTCVoidRequest::requestFailed(const WebString& error) const
{
ASSERT(m_private.get());
m_private->requestFailed(error);
}
| 0 |
266,538 | static OPJ_BOOL opj_j2k_init_info( opj_j2k_t *p_j2k,
struct opj_stream_private *p_stream,
struct opj_event_mgr * p_manager )
{
opj_codestream_info_t * l_cstr_info = 00;
/* preconditions */
assert... | 0 |
481,042 | static bool is_obsolete_sp(struct kvm *kvm, struct kvm_mmu_page *sp)
{
if (sp->role.invalid)
return true;
/* TDP MMU pages due not use the MMU generation. */
return !sp->tdp_mmu_page &&
unlikely(sp->mmu_valid_gen != kvm->arch.mmu_valid_gen);
} | 0 |
5,715 | int AES_decrypt(uint8_t *encr_message, uint64_t length, char *message, uint64_t msgLen) {
if (!message) {
LOG_ERROR("Null message in AES_encrypt");
return -1;
}
if (!encr_message) {
LOG_ERROR("Null encr message in AES_encrypt");
return -2;
}
if (length < SGX_AESGCM_... | 1 |
51,225 | static int adjust_ptr_min_max_vals(struct bpf_verifier_env *env,
struct bpf_insn *insn,
const struct bpf_reg_state *ptr_reg,
const struct bpf_reg_state *off_reg)
{
struct bpf_verifier_state *vstate = env->cur_state;
struct bpf_func_state *state = vstate->frame[vstate->curframe];
struct bpf_reg_s... | 0 |
52,165 | int drm_framebuffer_init(struct drm_device *dev, struct drm_framebuffer *fb,
const struct drm_framebuffer_funcs *funcs)
{
int ret;
ret = drm_mode_object_get(dev, &fb->base, DRM_MODE_OBJECT_FB);
if (ret) {
return ret;
}
fb->dev = dev;
fb->funcs = funcs;
dev->mode_config.num_fb++;
list_add(&fb->head, &dev... | 0 |
79,450 | uint Jsi_ListSize(Jsi_List *list) {
SIGASSERT(list, LIST);
return list->numEntries;
} | 0 |
502,195 | int samdb_msg_add_hash(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct ldb_message *msg,
const char *attr_name, const struct samr_Password *hash)
{
struct ldb_val val;
val.data = talloc_memdup(mem_ctx, hash->hash, 16);
if (!val.data) {
return ldb_oom(sam_ldb);
}
val.length = 16;
return ldb_msg... | 0 |
150,820 | SrcList *sqlite3SrcListDup(sqlite3 *db, SrcList *p, int flags){
SrcList *pNew;
int i;
int nByte;
assert( db!=0 );
if( p==0 ) return 0;
nByte = sizeof(*p) + (p->nSrc>0 ? sizeof(p->a[0]) * (p->nSrc-1) : 0);
pNew = sqlite3DbMallocRawNN(db, nByte );
if( pNew==0 ) return 0;
pNew->nSrc = pNew->nAlloc = p->n... | 0 |
474,711 | int nfc_tm_data_received(struct nfc_dev *dev, struct sk_buff *skb)
{
/* Only LLCP target mode for now */
if (dev->dep_link_up == false) {
kfree_skb(skb);
return -ENOLINK;
}
return nfc_llcp_data_received(dev, skb);
} | 0 |
433,491 | static int rsi_mac80211_set_antenna(struct ieee80211_hw *hw,
u32 tx_ant, u32 rx_ant)
{
struct rsi_hw *adapter = hw->priv;
struct rsi_common *common = adapter->priv;
u8 antenna = 0;
if (tx_ant > 1 || rx_ant > 1) {
rsi_dbg(ERR_ZONE,
"Invalid antenna selection (tx: %d, rx:%d)\n",
tx_ant, rx_ant);
rs... | 0 |
48,143 | mismatch_cnt_show(struct mddev *mddev, char *page)
{
return sprintf(page, "%llu\n",
(unsigned long long)
atomic64_read(&mddev->resync_mismatches));
} | 0 |
294,281 | void prefetch_table(const void *tab, size_t len)
{
const volatile byte *vtab = tab;
size_t i;
for (i = 0; len - i >= 8 * 32; i += 8 * 32)
{
(void)vtab[i + 0 * 32];
(void)vtab[i + 1 * 32];
(void)vtab[i + 2 * 32];
(void)vtab[i + 3 * 32];
(void)vtab[i + 4 * 32];
(void)vtab[i ... | 0 |
132,567 | ZipFile::ZipFile (InputStream& stream) : inputStream (&stream)
{
init();
}
| 0 |
31,614 | install_sublevel_end_handler(void (*handler) (void))
{
int i = 0;
keyword_t *keyword;
/* fetch last keyword */
keyword = vector_slot(keywords, vector_size(keywords) - 1);
if (!keyword->active)
return;
/* position to last sub level */
for (i = 0; i < sublevel; i++)
keyword = vector_slot(keyword->sub, vecto... | 0 |
12,527 | void AcceleratedStaticBitmapImage::EnsureMailbox(MailboxSyncMode mode,
GLenum filter) {
if (!texture_holder_->IsMailboxTextureHolder()) {
TRACE_EVENT0("blink", "AcceleratedStaticBitmapImage::EnsureMailbox");
if (!original_skia_image_) {
RetainOrigin... | 1 |
483,593 | static inline void device_links_write_lock(void)
{
mutex_lock(&device_links_lock);
} | 0 |
196,497 | SitePerProcessHighDPIBrowserTest() {}
| 0 |
523,511 | void st_select_lex::add_statistics(SELECT_LEX_UNIT *unit)
{
for (;
unit;
unit= unit->next_unit())
for(SELECT_LEX *child= unit->first_select();
child;
child= child->next_select())
{
/*
A subselect can add fields to an outer select.
Reserve space for them.
... | 0 |
455,528 | TEST_F(RenameCollectionTest, RenameDifferentDatabaseStayTempFalseSourceNotTemporary) {
_testRenameCollectionStayTemp(_opCtx.get(), _sourceNss, _targetNssDifferentDb, false, false);
} | 0 |
145,047 | nghttp2_stream *nghttp2_session_open_stream(nghttp2_session *session,
int32_t stream_id, uint8_t flags,
nghttp2_priority_spec *pri_spec_in,
nghttp2_stream_state initial_state,
... | 0 |
82,258 | SAPI_API SAPI_POST_HANDLER_FUNC(php_std_post_handler)
{
zval *arr = (zval *) arg;
php_stream *s = SG(request_info).request_body;
post_var_data_t post_data;
if (s && SUCCESS == php_stream_rewind(s)) {
memset(&post_data, 0, sizeof(post_data));
while (!php_stream_eof(s)) {
char buf[SAPI_POST_HANDLER_BUFSIZ] =... | 0 |
160,949 | void WebContents::WebContentsCreatedWithFullParams(
content::WebContents* source_contents,
int opener_render_process_id,
int opener_render_frame_id,
const content::mojom::CreateNewWindowParams& params,
content::WebContents* new_contents) {
ChildWebContentsTracker::CreateForWebContents(new_contents... | 0 |
486,526 | get_gss_name(struct connectdata *conn, bool proxy,
struct negotiatedata *neg_ctx)
{
const char* service;
size_t length;
if(proxy && !conn->proxy.name)
/* proxy auth requested but no given proxy name, error out! */
return -1;
/* GSSAPI implementation by Globus (known as GSI) requires the n... | 0 |
355,873 | const char *arch_vma_name(struct vm_area_struct *vma)
{
if (vma->vm_mm && vma->vm_start == vma->vm_mm->context.vdso_base)
return "[vdso]";
return NULL;
} | 0 |
417,551 | bool MonCap::parse(const string& str, ostream *err)
{
string s = str;
string::iterator iter = s.begin();
string::iterator end = s.end();
MonCapParser<string::iterator> g;
bool r = qi::parse(iter, end, g, *this);
//MonCapGrant foo;
//bool r = qi::phrase_parse(iter, end, g, ascii::space, foo);
if (r && i... | 0 |
201,669 | const URLPatternSet PermissionsData::policy_allowed_hosts() const {
base::AutoLock auto_lock(runtime_lock_);
return PolicyAllowedHostsUnsafe().Clone();
}
| 0 |
252,755 | WebPluginDelegatePepper::WebPluginDelegatePepper(
const base::WeakPtr<RenderView>& render_view,
NPAPI::PluginInstance *instance)
: render_view_(render_view),
plugin_(NULL),
instance_(instance),
nested_delegate_(NULL),
#if defined(ENABLE_GPU)
command_buffer_(NULL),
#endif
find_i... | 0 |
369,274 | print_import_check (PKT_public_key * pk, PKT_user_id * id)
{
char * buf;
byte fpr[24];
u32 keyid[2];
size_t i, pos = 0, n;
buf = xmalloc (17+41+id->len+32);
keyid_from_pk (pk, keyid);
sprintf (buf, "%08X%08X ", keyid[0], keyid[1]);
pos = 17;
fingerprint_from_pk (pk, fpr, &n);
fo... | 0 |
97,320 | int gridfs_find_query( gridfs *gfs, bson *query,
gridfile *gfile ) {
bson uploadDate;
bson finalQuery;
bson out;
int i;
bson_init( &uploadDate );
bson_append_int( &uploadDate, "uploadDate", -1 );
bson_finish( &uploadDate );
bson_init( &finalQuery );
bson_app... | 0 |
160,400 | static int crypto_rsa_common(const BYTE* input, int length, UINT32 key_length, const BYTE* modulus,
const BYTE* exponent, int exponent_size, BYTE* output)
{
BN_CTX* ctx = NULL;
int output_length = -1;
BYTE* input_reverse = NULL;
BYTE* modulus_reverse = NULL;
BYTE* exponent_reverse = NU... | 0 |
16,042 | bool contain_mutable_functions ( Node * clause ) {
return contain_mutable_functions_walker ( clause , NULL ) ;
} | 0 |
411,922 | static inline u8 BVAL(const void *data)
{
return *(const u8 *)data;
} | 0 |
214,263 | BrowserChildProcessHost* BrowserChildProcessHost::FromID(int child_process_id) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
BrowserChildProcessHostImpl::BrowserChildProcessList* process_list =
g_child_process_list.Pointer();
for (BrowserChildProcessHostImpl* host : *process_list) {
if (host->GetData().id =... | 0 |
494,034 | bool TinyGLTF::LoadASCIIFromString(Model *model, std::string *err,
std::string *warn, const char *str,
unsigned int length,
const std::string &base_dir,
unsigned int check_sections... | 0 |
267,830 | iakerb_gss_wrap(OM_uint32 *minor_status, gss_ctx_id_t context_handle,
int conf_req_flag, gss_qop_t qop_req,
gss_buffer_t input_message_buffer, int *conf_state,
gss_buffer_t output_message_buffer)
{
iakerb_ctx_id_t ctx = (iakerb_ctx_id_t)context_handle;
if (ctx->g... | 0 |
421,832 | flatpak_run_setup_base_argv (FlatpakBwrap *bwrap,
GFile *runtime_files,
GFile *app_id_dir,
const char *arch,
FlatpakRunFlags flags,
GError **err... | 0 |
200,448 | int EmbedStream::getChars(int nChars, Guchar *buffer) {
if (nChars <= 0) {
return 0;
}
if (limited && length < (Guint)nChars) {
nChars = (int)length;
}
return str->doGetChars(nChars, buffer);
}
| 0 |
499,700 | QPDFWriter::prepareFileForWrite()
{
// Do a traversal of the entire PDF file structure replacing all
// indirect objects that QPDFWriter wants to be direct. This
// includes stream lengths, stream filtering parameters, and
// document extension level information.
this->m->pdf.fixDanglingReferences... | 0 |
98,888 | check_if_same_cert (gnutls_x509_crt_t cert1, gnutls_x509_crt_t cert2)
{
gnutls_datum_t cert1bin = { NULL, 0 }, cert2bin =
{
NULL, 0};
int result;
result = _gnutls_x509_der_encode (cert1->cert, "", &cert1bin, 0);
if (result < 0)
{
gnutls_assert ();
goto cleanup;
}
result = _gnutls_x50... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.