idx int64 | func string | target int64 |
|---|---|---|
273,454 | static void mark_ptr_not_null_reg(struct bpf_reg_state *reg)
{
switch (reg->type) {
case PTR_TO_MAP_VALUE_OR_NULL: {
const struct bpf_map *map = reg->map_ptr;
if (map->inner_map_meta) {
reg->type = CONST_PTR_TO_MAP;
reg->map_ptr = map->inner_map_meta;
} else if (map->map_type == BPF_MAP_TYPE_XSKMAP) {
... | 0 |
397,083 | ircam_type_find (GstTypeFind * tf, gpointer ununsed)
{
const guint8 *data = gst_type_find_peek (tf, 0, 4);
guint8 mask[4] = { 0xFF, 0xFF, 0xF8, 0xFF };
guint8 match[4] = { 0x64, 0xA3, 0x00, 0x00 };
gint x;
gboolean matched = TRUE;
if (!data) {
return;
}
for (x = 0; x < 4; x++) {
if ((data[x] & ... | 0 |
496,710 | static bool is_partition_in_criterias(
const std::string& partition,
const std::vector<Criteria>& criterias)
{
bool returned_value = false;
for (auto criteria_it = criterias.begin(); !returned_value &&
criteria_it != criterias.end(); ++criteria_it)
{
for (auto part : (*c... | 0 |
433,891 | bool encode(FilterChar * & in0, FilterChar * & stop,
FilterCharVector & out) const {
FilterChar * in = in0;
for (; in != stop; ++in)
*in = lookup(*in);
return true;
} | 0 |
409,183 | static js_Ast *unary(js_State *J)
{
js_Ast *a;
INCREC();
if (jsP_accept(J, TK_DELETE)) a = EXP1(DELETE, unary(J));
else if (jsP_accept(J, TK_VOID)) a = EXP1(VOID, unary(J));
else if (jsP_accept(J, TK_TYPEOF)) a = EXP1(TYPEOF, unary(J));
else if (jsP_accept(J, TK_INC)) a = EXP1(PREINC, unary(J));
else if (jsP_acc... | 0 |
216,772 | void ScrollableShelfView::ScrollToXOffset(float x_target_offset,
bool animating) {
x_target_offset = CalculateClampedScrollOffset(x_target_offset);
const float old_x = scroll_offset_.x();
scroll_offset_.set_x(x_target_offset);
Layout();
const float diff = x_target_off... | 0 |
41,652 | static inline Quantum GetPixela(const Image *restrict image,
const Quantum *restrict pixel)
{
return(pixel[image->channel_map[aPixelChannel].offset]);
} | 0 |
198,414 | void OxideQQuickWebViewPrivate::DownloadRequested(
const OxideQDownloadRequest& download_request) {
Q_Q(OxideQQuickWebView);
emit q->downloadRequested(download_request);
}
| 0 |
488,783 | static gboolean avdtp_parse_cmd(struct avdtp *session, uint8_t transaction,
uint8_t signal_id, void *buf, int size)
{
switch (signal_id) {
case AVDTP_DISCOVER:
DBG("Received DISCOVER_CMD");
return avdtp_discover_cmd(session, transaction, buf, size);
case AVDTP_GET_CAPABILITIES:
DBG("Received GET_CAPABILIT... | 0 |
521,284 | With_sum_func_cache(const Item *a, const Item *b, const Item *c)
:m_with_sum_func(a->with_sum_func() || b->with_sum_func() ||
c->with_sum_func())
{ } | 0 |
354,787 | static int bad_file_flock(struct file *filp, int cmd, struct file_lock *fl)
{
return -EIO;
} | 0 |
488,201 | static inline int ok_jpg_load_next_bits(ok_jpg_decoder *decoder, int num_bits) {
ok_jpg_load_bits(decoder, num_bits);
int mask = (1 << num_bits) - 1;
decoder->input_buffer_bit_count -= num_bits;
return (int)(decoder->input_buffer_bits >> decoder->input_buffer_bit_count) & mask;
} | 0 |
257,821 | static int nntp_mbox_sync ( struct Context * ctx , int * index_hint ) {
struct NntpData * nntp_data = ctx -> data ;
int rc ;
# ifdef USE_HCACHE header_cache_t * hc = NULL ;
# endif nntp_data -> nserv -> check_time = 0 ;
rc = check_mailbox ( ctx ) ;
if ( rc ) return rc ;
# ifdef USE_HCACHE nntp_data -> last_cache... | 0 |
182,571 | unsigned long AudioHandler::ChannelCount() {
return channel_count_;
}
| 0 |
210,635 | void BrowserView::ToggleBookmarkBar() {
bookmark_utils::ToggleWhenVisible(browser_->profile());
}
| 0 |
241,237 | void RenderWidgetHostImpl::OnSnapshotReceived(int snapshot_id,
gfx::Image image) {
PendingSnapshotMap::iterator it = pending_browser_snapshots_.begin();
while (it != pending_browser_snapshots_.end()) {
if (it->first <= snapshot_id) {
it->second.Run(image);
... | 0 |
254,885 | static int spl_filesystem_file_read_csv ( spl_filesystem_object * intern , char delimiter , char enclosure , char escape , zval * return_value TSRMLS_DC ) {
int ret = SUCCESS ;
do {
ret = spl_filesystem_file_read ( intern , 1 TSRMLS_CC ) ;
}
while ( ret == SUCCESS && ! intern -> u . file . current_line_len && SPL_... | 1 |
34,013 | static bool netlink_tx_is_mmaped(struct sock *sk)
{
return nlk_sk(sk)->tx_ring.pg_vec != NULL;
} | 0 |
319,165 | void helper_dcbz(CPUPPCState *env, target_ulong addr, uint32_t is_dcbzl)
{
int dcbz_size = env->dcache_line_size;
#if defined(TARGET_PPC64)
if (!is_dcbzl &&
(env->excp_model == POWERPC_EXCP_970) &&
((env->spr[SPR_970_HID5] >> 7) & 0x3) == 1) {
dcbz_size = 32;
}
#endif
... | 1 |
333,918 | static void write_fp_dreg(DisasContext *s, int reg, TCGv_i64 v)
{
TCGv_i64 tcg_zero = tcg_const_i64(0);
tcg_gen_st_i64(v, cpu_env, fp_reg_offset(reg, MO_64));
tcg_gen_st_i64(tcg_zero, cpu_env, fp_reg_hi_offset(reg));
tcg_temp_free_i64(tcg_zero);
}
| 0 |
40,951 | int ssl_connect(struct tunnel *tunnel)
{
ssl_disconnect(tunnel);
tunnel->ssl_socket = tcp_connect(tunnel);
if (tunnel->ssl_socket == -1)
return 1;
// registration is deprecated from OpenSSL 1.1.0 onward
#if OPENSSL_API_COMPAT < 0x10100000L
// Register the error strings for libcrypto & libssl
SSL_load_error_st... | 0 |
138,897 | bool CIRCNetwork::PutIRC(const CMessage& Message) {
CIRCSock* pIRCSock = GetIRCSock();
if (!pIRCSock) {
return false;
}
pIRCSock->PutIRC(Message);
return true;
} | 0 |
252,066 | SingleThreadTaskGraphRunner() {
Start("CompositorTileWorker1", base::SimpleThread::Options());
}
| 0 |
148,793 | set_bound_node_opt_info(OptNode* opt, MinMax* plen)
{
copy_mml(&(opt->sb.mmd), plen);
copy_mml(&(opt->spr.mmd), plen);
copy_mml(&(opt->map.mmd), plen);
} | 0 |
186,914 | on_fileselector_done(void *user_data, Evas_Object *file_selector, void *event_info)
{
FileSelectorData *fs_data = (FileSelectorData *)user_data;
const char *selected = (const char *)event_info;
if (selected && *selected)
ewk_file_chooser_request_file_choose(fs_data->request, selected);
close_f... | 0 |
142,477 | static void i40e_pci_error_reset_prepare(struct pci_dev *pdev)
{
struct i40e_pf *pf = pci_get_drvdata(pdev);
i40e_prep_for_reset(pf, false);
} | 0 |
154,904 | get_login_name()
{
static char buf[BUFSZ];
struct passwd *pw = get_unix_pw();
buf[0] = '\0';
if (pw)
(void)strcpy(buf, pw->pw_name);
return buf;
} | 0 |
52,441 | std::size_t num_entries() const { return ix_.dim_size(0); } | 0 |
102,430 | TfLiteRegistration* Register_BIDIRECTIONAL_SEQUENCE_RNN() {
static TfLiteRegistration r = {
bidirectional_sequence_rnn::Init, bidirectional_sequence_rnn::Free,
bidirectional_sequence_rnn::Prepare, bidirectional_sequence_rnn::Eval};
return &r;
} | 0 |
41,565 | static struct extent_map *defrag_lookup_extent(struct inode *inode, u64 start)
{
struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree;
struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
struct extent_map *em;
u64 len = PAGE_CACHE_SIZE;
/*
* hopefully we have this extent in the tree already, tr... | 0 |
231,554 | ofputil_nx_flow_format_is_valid(enum nx_flow_format flow_format)
{
return ofputil_nx_flow_format_to_protocol(flow_format) != 0;
}
| 0 |
471,722 | unsigned long zslGetRank(zskiplist *zsl, double score, sds ele) {
zskiplistNode *x;
unsigned long rank = 0;
int i;
x = zsl->header;
for (i = zsl->level-1; i >= 0; i--) {
while (x->level[i].forward &&
(x->level[i].forward->score < score ||
(x->level[i].forward->sc... | 0 |
247,628 | LayoutRect RenderBlock::rectWithOutlineForRepaint(const RenderLayerModelObject* repaintContainer, LayoutUnit outlineWidth) const
{
LayoutRect r(RenderBox::rectWithOutlineForRepaint(repaintContainer, outlineWidth));
if (isAnonymousBlockContinuation())
r.inflateY(collapsedMarginBefore()); // FIXME: This i... | 0 |
433,583 | static int iwl_pcie_load_section(struct iwl_trans *trans, u8 section_num,
const struct fw_desc *section)
{
u8 *v_addr;
dma_addr_t p_addr;
u32 offset, chunk_sz = min_t(u32, FH_MEM_TB_MAX_LENGTH, section->len);
int ret = 0;
IWL_DEBUG_FW(trans, "[%d] uCode section being loaded...\n",
section_num);
v_... | 0 |
18,464 | static int mpeg_decode_postinit ( AVCodecContext * avctx ) {
Mpeg1Context * s1 = avctx -> priv_data ;
MpegEncContext * s = & s1 -> mpeg_enc_ctx ;
uint8_t old_permutation [ 64 ] ;
if ( ( s1 -> mpeg_enc_ctx_allocated == 0 ) || avctx -> coded_width != s -> width || avctx -> coded_height != s -> height || s1 -> save_wi... | 0 |
469,299 | int xfrm_dev_state_flush(struct net *net, struct net_device *dev, bool task_valid)
{
int i, err = 0, cnt = 0;
spin_lock_bh(&net->xfrm.xfrm_state_lock);
err = xfrm_dev_state_flush_secctx_check(net, dev, task_valid);
if (err)
goto out;
err = -ESRCH;
for (i = 0; i <= net->xfrm.state_hmask; i++) {
struct xfrm_s... | 0 |
145,847 | static int check_bpf_snprintf_call(struct bpf_verifier_env *env,
struct bpf_reg_state *regs)
{
struct bpf_reg_state *fmt_reg = ®s[BPF_REG_3];
struct bpf_reg_state *data_len_reg = ®s[BPF_REG_5];
struct bpf_map *fmt_map = fmt_reg->map_ptr;
int err, fmt_map_off, num_args;
u64 fmt_addr;
char *fmt;
/* d... | 0 |
285,136 | static void CollectScrollbarUpdates(
ScrollAndScaleSet* scroll_info,
std::unordered_map<int, std::unique_ptr<ScrollbarAnimationController>>*
controllers) {
scroll_info->scrollbars.reserve(controllers->size());
for (auto& pair : *controllers) {
scroll_info->scrollbars.push_back(LayerTreeHostCommo... | 0 |
172,481 | void gscms_set_icc_range(cmm_profile_t **icc_profile)
{
int num_comp = (*icc_profile)->num_comps;
int k;
for ( k = 0; k < num_comp; k++) {
(*icc_profile)->Range.ranges[k].rmin = 0.0;
(*icc_profile)->Range.ranges[k].rmax = 1.0;
}
}
| 0 |
138,890 | static int set_procfs_val(const char *path, const char *val)
{
int rc = -1;
FILE *fp = fopen(path, "w");
if (fp) {
if (fprintf(fp, "%s", val) > 0)
rc = 0;
fclose(fp);
}
return rc;
} | 0 |
125,580 | uint32_t writeFieldBegin(
const char* name,
const TType fieldType,
const int16_t fieldId) {
T_VIRTUAL_CALL();
return writeFieldBegin_virt(name, fieldType, fieldId);
} | 0 |
31,721 | static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns,
struct pid *pid, struct task_struct *task)
{
unsigned int i;
unsigned long flags;
struct rlimit rlim[RLIM_NLIMITS];
if (!lock_task_sighand(task, &flags))
return 0;
memcpy(rlim, task->signal->rlim, sizeof(struct rlimit) * RLIM_NLIMIT... | 0 |
522,874 | static int rc4_hmac_md5_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)vctx;
const OSSL_PARAM *p;
size_t sz;
if (params == NULL)
return 1;
p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN);
if (p != NULL) {
... | 0 |
52,618 | int mp_invmod_mont_ct (mp_int * a, mp_int * b, mp_int * c, mp_digit mp)
{
return fp_invmod_mont_ct(a, b, c, mp);
} | 0 |
44,472 | void c_SimpleXMLElementIterator::set_parent(c_SimpleXMLElement* parent) {
m_parent = parent;
reset_iterator();
} | 0 |
28,533 | static void flush ( AVCodecContext * avctx ) {
WMAProDecodeCtx * s = avctx -> priv_data ;
int i ;
for ( i = 0 ;
i < avctx -> channels ;
i ++ ) memset ( s -> channel [ i ] . out , 0 , s -> samples_per_frame * sizeof ( * s -> channel [ i ] . out ) ) ;
s -> packet_loss = 1 ;
} | 0 |
395,567 | static int binlog_savepoint_set(handlerton *hton, THD *thd, void *sv)
{
DBUG_ENTER("binlog_savepoint_set");
binlog_trans_log_savepos(thd, (my_off_t*) sv);
// buffer to store quoted identifier
char* buffer= (char *)my_malloc(sizeof("SAVEPOINT ")+ 1 + NAME_LEN * 2 + 2,
MYF(0));... | 0 |
453,223 | static bool address_char(int const c)
{
return filename_char(c) ||
(c == ':') || (c == '[') || (c == ']') || (c == '/');
} | 0 |
49,699 | nfs_commit_list(struct inode *inode, struct list_head *head, int how,
struct nfs_commit_info *cinfo)
{
struct nfs_commit_data *data;
data = nfs_commitdata_alloc();
if (!data)
goto out_bad;
/* Set up the argument struct */
nfs_init_commit(data, head, NULL, cinfo);
atomic_inc(&cinfo->mds->rpcs_out);
return ... | 0 |
458,767 | conntrack_flush(struct conntrack *ct, const uint16_t *zone)
{
for (unsigned i = 0; i < CONNTRACK_BUCKETS; i++) {
struct conntrack_bucket *ctb = &ct->buckets[i];
ovs_mutex_lock(&ctb->cleanup_mutex);
ct_lock_lock(&ctb->lock);
for (unsigned j = 0; j < N_CT_TM; j++) {
struct ... | 0 |
306,903 | void Document::moveNodeIteratorsToNewDocument(Node& node, Document& newDocument)
{
WillBeHeapHashSet<RawPtrWillBeWeakMember<NodeIterator>> nodeIteratorsList = m_nodeIterators;
for (NodeIterator* ni : nodeIteratorsList) {
if (ni->root() == node) {
detachNodeIterator(ni);
newDocume... | 0 |
414,613 | static int __mb_check_buddy(struct ext4_buddy *e4b, char *file,
const char *function, int line)
{
struct super_block *sb = e4b->bd_sb;
int order = e4b->bd_blkbits + 1;
int max;
int max2;
int i;
int j;
int k;
int count;
struct ext4_group_info *grp;
int fragments = 0;
int fstart;
struct list_head *cur;
v... | 0 |
301,805 | menu_add_link(WebKitWebView *page, GArray *argv, GString *result) {
(void) page;
(void) result;
add_to_menu(argv, WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK);
} | 0 |
356,033 | int udplite_get_port(struct sock *sk, unsigned short p,
int (*c)(const struct sock *, const struct sock *))
{
return __udp_lib_get_port(sk, p, udplite_hash, c);
} | 0 |
331,819 | int av_opt_set_pixel_fmt(void *obj, const char *name, enum AVPixelFormat fmt, int search_flags)
{
return set_format(obj, name, fmt, search_flags, AV_OPT_TYPE_PIXEL_FMT, "pixel", AV_PIX_FMT_NB-1);
}
| 0 |
105,635 | static void ExportGrayQuantum(const Image *image,QuantumInfo *quantum_info,
const MagickSizeType number_pixels,const Quantum *magick_restrict p,
unsigned char *magick_restrict q,ExceptionInfo *exception)
{
QuantumAny
range;
ssize_t
x;
assert(exception != (ExceptionInfo *) NULL);
assert(exception->... | 0 |
379,886 | static int ZEND_FASTCALL ZEND_FETCH_OBJ_RW_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
{
zend_op *opline = EX(opline);
zend_free_op free_op1;
zval *property = _get_zval_ptr_cv(&opline->op2, EX(Ts), BP_VAR_R TSRMLS_CC);
zval **container = _get_zval_ptr_ptr_cv(&opline->op1, EX(Ts), BP_VAR_RW TSRMLS_CC);
if (0) {
... | 0 |
368,683 | eat_whitespace_no_nl(const char *s)
{
while (*s == ' ' || *s == '\t' || *s == '\r')
++s;
return s;
} | 0 |
512,216 | const char *imap_parser_read_word(struct imap_parser *parser)
{
const unsigned char *data;
size_t i, data_size;
data = i_stream_get_data(parser->input, &data_size);
for (i = 0; i < data_size; i++) {
if (data[i] == ' ' || data[i] == '\r' || data[i] == '\n')
break;
}
if (i < data_size) {
data_size = i + (... | 0 |
351,254 | void ServerSecurityFeature::collectOptions(
std::shared_ptr<ProgramOptions> options) {
options
->addOption(
"--server.harden",
"lock down REST APIs that reveal version information or server "
"internals for non-admin users",
new BooleanParameter(&_hardenedRestApi))
... | 1 |
321,682 | static always_inline void gen_arith3 (void *helper,
int ra, int rb, int rc,
int islit, uint8_t lit)
{
if (unlikely(rc == 31))
return;
if (ra != 31) {
if (islit) {
TCGv tmp = tcg_const_i64(lit);
... | 0 |
305,778 | schannel_recv(struct Curl_easy *data, int sockindex,
char *buf, size_t len, CURLcode *err)
{
size_t size = 0;
ssize_t nread = -1;
struct connectdata *conn = data->conn;
struct ssl_connect_data *connssl = &conn->ssl[sockindex];
unsigned char *reallocated_buffer;
size_t reallocated_length;
boo... | 0 |
449,468 | HttpHeader::getByNameListMember(const char *name, const char *member, const char separator) const
{
String header;
const char *pos = NULL;
const char *item;
int ilen;
int mlen = strlen(member);
assert(name);
header = getByName(name);
String result;
while (strListGetItem(&header, ... | 0 |
424,472 | add_opt_anc_info(OptAncInfo* to, int anc)
{
if (is_left_anchor(anc))
to->left_anchor |= anc;
else
to->right_anchor |= anc;
} | 0 |
144,435 | COMPS_HSList* comps_mrtree_keys(COMPS_MRTree * rt) {
COMPS_HSList *tmplist, *tmp_subnodes, *ret;
COMPS_HSListItem *it;
struct Pair {
COMPS_HSList * subnodes;
char * key;
char added;
} *pair, *parent_pair;
pair = malloc(sizeof(struct Pair));
pair->subnodes = rt->subnodes;... | 0 |
340,773 | static int mov_write_packet(AVFormatContext *s, AVPacket *pkt)
{
MOVContext *mov = s->priv_data;
ByteIOContext *pb = s->pb;
MOVTrack *trk = &mov->tracks[pkt->stream_index];
AVCodecContext *enc = trk->enc;
unsigned int samplesInChunk = 0;
int size= pkt->size;
if (url_is_streamed(s->... | 0 |
461,369 | static void send_packet_to_client(GDHCPServer *dhcp_server,
struct dhcp_packet *dhcp_pkt)
{
const uint8_t *chaddr;
uint32_t ciaddr;
if ((dhcp_pkt->flags & htons(BROADCAST_FLAG))
|| dhcp_pkt->ciaddr == 0) {
debug(dhcp_server, "Broadcasting packet to client");
ciaddr = INADDR_BROADCAST;
chaddr = MAC_BCA... | 0 |
350,386 | serialNumberAndIssuerSerialCheck(
struct berval *in,
struct berval *sn,
struct berval *is,
struct berval *i_sn, /* contain serial of baseCertificateID */
void *ctx )
{
/* Parse GSER format */
enum {
HAVE_NONE = 0x0,
HAVE_SN = 0x1,
HAVE_ISSUER = 0x2,
HAVE_ALL = ( HAVE_SN | HAVE_ISSUER )
} have = HAVE_NO... | 1 |
392,150 | int check_password_policy(String *password)
{
plugin_ref plugin;
String empty_string;
if (!password)
password= &empty_string;
plugin= my_plugin_lock_by_name(0, &validate_password_plugin_name,
MYSQL_VALIDATE_PASSWORD_PLUGIN);
if (plugin)
{
st_mysql_validate_password... | 0 |
12,514 | void WebSocketExperimentRunner::DoLoop() {
if (next_state_ == STATE_NONE) {
if (task_.get()) {
AddRef(); // Release in OnTaskCompleted.
task_->Cancel();
}
return;
}
State state = next_state_;
task_state_ = STATE_NONE;
next_state_ = STATE_NONE;
switch (state) {
case STATE... | 1 |
406,264 | ModuleExport void UnregisterCAPTIONImage(void)
{
(void) UnregisterMagickInfo("CAPTION");
} | 0 |
330,967 | VirtIOSCSIReq *virtio_scsi_pop_req_vring(VirtIOSCSI *s,
VirtIOSCSIVring *vring)
{
VirtIOSCSIReq *req = virtio_scsi_init_req(s, NULL);
int r;
req->vring = vring;
r = vring_pop((VirtIODevice *)s, &vring->vring, &req->elem);
if (r < 0) {
virtio... | 0 |
184,973 | void tracing_reset_online_cpus(struct trace_buffer *buf)
{
struct ring_buffer *buffer = buf->buffer;
int cpu;
if (!buffer)
return;
ring_buffer_record_disable(buffer);
/* Make sure all commits have finished */
synchronize_sched();
buf->time_start = buffer_ftrace_now(buf, buf->cpu);
for_each_online_cpu(cpu... | 0 |
471,441 | void addReplyArrayLen(client *c, long length) {
addReplyAggregateLen(c,length,'*');
} | 0 |
202,360 | void FrameBuffer::Destroy() {
if (id_ != 0) {
ScopedGLErrorSuppressor suppressor(decoder_);
glDeleteFramebuffersEXT(1, &id_);
id_ = 0;
}
}
| 0 |
313,375 | void GLES2DecoderImpl::ProcessFinishedAsyncTransfers() {
ProcessPendingReadPixels(false);
}
| 0 |
444,741 | TEST_F(Http1ServerConnectionImplTest, UnsupportedEncoding) {
initialize();
InSequence sequence;
MockRequestDecoder decoder;
EXPECT_CALL(callbacks_, newStream(_, _)).WillOnce(ReturnRef(decoder));
Buffer::OwnedImpl buffer("GET / HTTP/1.1\r\ntransfer-encoding: gzip\r\n\r\n");
EXPECT_CALL(decoder, sendLocalR... | 0 |
37,299 | MagickExport MagickBooleanType XPreferencesWidget(Display *display,
XResourceInfo *resource_info,XWindows *windows)
{
#define ApplyButtonText "Apply"
#define CacheButtonText "%lu mega-bytes of memory in the undo edit cache "
#define CancelButtonText "Cancel"
#define NumberPreferences 8
static const char
... | 0 |
228,236 | FolderHeaderView::FolderHeaderView(FolderHeaderViewDelegate* delegate)
: folder_item_(NULL),
back_button_(new views::ImageButton(this)),
folder_name_view_(new FolderNameView),
folder_name_placeholder_text_(
ui::ResourceBundle::GetSharedInstance().GetLocalizedString(
IDS_APP... | 0 |
288,646 | int SRP_VBASE_init ( SRP_VBASE * vb , char * verifier_file ) {
int error_code ;
STACK_OF ( SRP_gN ) * SRP_gN_tab = sk_SRP_gN_new_null ( ) ;
char * last_index = NULL ;
int i ;
char * * pp ;
SRP_gN * gN = NULL ;
SRP_user_pwd * user_pwd = NULL ;
TXT_DB * tmpdb = NULL ;
BIO * in = BIO_new ( BIO_s_file ( ) ) ;
err... | 0 |
288,025 | void FileManagerBrowserTestBase::SetUpCommandLine(
base::CommandLine* command_line) {
command_line->AppendSwitch(switches::kDisableAudioOutput);
if (!GetRequiresStartupBrowser()) {
command_line->AppendSwitch(switches::kNoStartupWindow);
set_exit_when_last_browser_closes(false);
}
if (IsGuestModeT... | 1 |
135,608 | static int mov_write_vmhd_tag(AVIOContext *pb)
{
avio_wb32(pb, 0x14); /* size (always 0x14) */
ffio_wfourcc(pb, "vmhd");
avio_wb32(pb, 0x01); /* version & flags */
avio_wb64(pb, 0); /* reserved (graphics mode = copy) */
return 0x14;
} | 0 |
231,345 | void ServiceWorkerContextCore::UnprotectVersion(int64_t version_id) {
DCHECK(protected_versions_.find(version_id) != protected_versions_.end());
protected_versions_.erase(version_id);
}
| 0 |
5,211 | TEE_Result syscall_authenc_init(unsigned long state, const void *nonce,
size_t nonce_len, size_t tag_len,
size_t aad_len, size_t payload_len)
{
TEE_Result res;
struct tee_cryp_state *cs;
struct tee_ta_session *sess;
struct tee_obj *o;
struct tee_cryp_obj_secret *key;
res = tee_ta_get_current_session(&sess)... | 1 |
425,082 | static int init_lookup(void)
{
int v, s, h;
/* These ones are constant */
lookup_colors[0] = CACA_BLACK;
lookup_colors[1] = CACA_DARKGRAY;
lookup_colors[2] = CACA_LIGHTGRAY;
lookup_colors[3] = CACA_WHITE;
/* These ones will be overwritten */
lookup_colors[4] = CACA_MAGENTA;
lookup_... | 0 |
398,248 | js_Value *js_tovalue(js_State *J, int idx)
{
return stackidx(J, idx);
} | 0 |
96,955 | static int semctl_nolock(struct ipc_namespace *ns, int semid,
int cmd, int version, void __user *p)
{
int err;
struct sem_array *sma;
switch(cmd) {
case IPC_INFO:
case SEM_INFO:
{
struct seminfo seminfo;
int max_id;
err = security_sem_semctl(NULL, cmd);
if (err)
return err;
memset(&seminfo,0... | 0 |
372,159 | auth_shadow (
const char *login __attribute__((unused)),
const char *passwd __attribute__((unused)),
const char *service __attribute__((unused)),
const char *realm __attribute__((unused))
)
{
return NULL;
} | 0 |
439,616 | decodeModifyOtherKeys(int c)
{
char_u *p = typebuf.tb_buf + typebuf.tb_off;
int idx;
int form = 0;
int argidx = 0;
int arg[2] = {0, 0};
// Recognize:
// form 0: {lead}{key};{modifier}u
// form 1: {lead}27;{modifier};{key}~
if ((c == CSI || (c == ESC && *p == '[')) &... | 0 |
66,940 | GF_Err moof_box_size(GF_Box *s)
{
u32 pos=0;
GF_MovieFragmentBox *ptr = (GF_MovieFragmentBox *) s;
if (!s) return GF_BAD_PARAM;
//Header First
gf_isom_check_position(s, (GF_Box *)ptr->mfhd, &pos);
//then PSSH
gf_isom_check_position_list(s, ptr->PSSHs, &pos);
//then the track list
gf_isom_check_position_list(s,... | 0 |
293,662 | __read_extent_tree_block(const char *function, unsigned int line,
struct inode *inode, ext4_fsblk_t pblk, int depth,
int flags)
{
struct buffer_head *bh;
int err;
bh = sb_getblk(inode->i_sb, pblk);
if (unlikely(!bh))
return ERR_PTR(-ENOMEM);
if (!bh_uptodate_or_lock(bh)) {
trace_ext4_ext_load_ext... | 0 |
231,342 | virtual status_t listModules(struct sound_trigger_module_descriptor *modules,
uint32_t *numModules)
{
if (numModules == NULL || (*numModules != 0 && modules == NULL)) {
return BAD_VALUE;
}
Parcel data, reply;
data.writeInterfaceToken(ISoundTriggerHwService::getInterfaceDescriptor());
unsigned int numMod... | 0 |
357,404 | static struct inotify_watch *inode_find_handle(struct inode *inode,
struct inotify_handle *ih)
{
struct inotify_watch *watch;
list_for_each_entry(watch, &inode->inotify_watches, i_list) {
if (watch->ih == ih)
return watch;
}
return NULL;
} | 0 |
176,024 | my_object_get_hash (MyObject *obj, GHashTable **ret, GError **error)
| 0 |
45,584 | int bcf_add_id(const bcf_hdr_t *hdr, bcf1_t *line, const char *id)
{
if ( !id ) return 0;
if ( !(line->unpacked & BCF_UN_STR) ) bcf_unpack(line, BCF_UN_STR);
kstring_t tmp;
tmp.l = 0; tmp.s = line->d.id; tmp.m = line->d.m_id;
int len = strlen(id);
char *dst = line->d.id;
while ( *dst && (d... | 0 |
446,548 | virDomainVcpuParse(virDomainDefPtr def,
xmlXPathContextPtr ctxt,
virDomainXMLOptionPtr xmlopt)
{
int n;
xmlNodePtr vcpuNode;
size_t i;
unsigned int maxvcpus;
unsigned int vcpus;
g_autofree char *tmp = NULL;
g_autofree xmlNodePtr *nodes = NULL;
vcpus... | 0 |
167,900 | void AsyncFileSystemChromium::move(const KURL& sourcePath, const KURL& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks> callbacks)
{
m_webFileSystem->move(sourcePath, destinationPath, new WebKit::WebFileSystemCallbacksImpl(callbacks));
}
| 0 |
416,574 | gx_default_finish_copydevice(gx_device *dev, const gx_device *from_dev)
{
/* Only allow copying the prototype. */
return (from_dev->memory ? gs_note_error(gs_error_rangecheck) : 0);
} | 0 |
308,528 | favicon::MockFaviconService* favicon_service() {
return mock_favicon_service_.get();
}
| 0 |
265,356 | static void __report_tpr_access(struct kvm_lapic *apic, bool write)
{
struct kvm_vcpu *vcpu = apic->vcpu;
struct kvm_run *run = vcpu->run;
kvm_make_request(KVM_REQ_REPORT_TPR_ACCESS, vcpu);
run->tpr_access.rip = kvm_rip_read(vcpu);
run->tpr_access.is_write = write;
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.