idx int64 | func string | target int64 |
|---|---|---|
385,903 | static int load_dh_params(SSL_CTX *ctx, char *file)
{
DH *dh = NULL;
BIO *bio;
if (!file) return 0;
if ((bio = BIO_new_file(file, "r")) == NULL) {
ERROR(LOG_PREFIX ": Unable to open DH file - %s", file);
return -1;
}
dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL);
BIO_free(bio);
if (!dh) {
WARN(LOG_... | 0 |
330,419 | static int do_packet_auto_bsf(AVFormatContext *s, AVPacket *pkt) {
AVStream *st = s->streams[pkt->stream_index];
int i, ret;
if (!(s->flags & AVFMT_FLAG_AUTO_BSF))
return 1;
if (s->oformat->check_bitstream) {
if (!st->internal->bitstream_checked) {
if ((ret = s->of... | 0 |
174,143 | const AtomicString& DocumentLoader::ResponseMIMEType() const {
return response_.MimeType();
}
| 0 |
248,439 | void LayerTreeHostImpl::AnimateInternal(bool active_tree) {
DCHECK(task_runner_provider_->IsImplThread());
base::TimeTicks monotonic_time = CurrentBeginFrameArgs().frame_time;
bool did_animate = false;
if (input_handler_client_) {
bool ignore_fling =
settings_.ignore_root_layer_flings && IsCurren... | 0 |
272,622 | f_str2nr(typval_T *argvars, typval_T *rettv)
{
int base = 10;
char_u *p;
varnumber_T n;
int what;
int isneg;
if (argvars[1].v_type != VAR_UNKNOWN)
{
base = (int)tv_get_number(&argvars[1]);
if (base != 2 && base != 8 && base != 10 && base != 16)
{
emsg(_(e_invarg));
return;
... | 0 |
127,804 | GF_Err dimm_Read(GF_Box *s, GF_BitStream *bs)
{
GF_DIMMBox *ptr = (GF_DIMMBox *)s;
ptr->nbBytes = gf_bs_read_u64(bs);
return GF_OK;
} | 0 |
314,909 | WebURLLoaderImpl::WebURLLoaderImpl(WebKitPlatformSupportImpl* platform)
: context_(new Context(this)),
platform_(platform) {
}
| 0 |
259,277 | static int get_passwd_by_systemd(const char *prompt, char *input, int capacity)
{
int fd[2];
pid_t pid;
int offs = 0;
int rc = 1;
if (pipe(fd) == -1) {
fprintf(stderr, "Failed to create pipe: %s\n", strerror(errno));
return 1;
}
pid = fork();
if (pid == -1) {
fprintf(stderr, "Unable to fork: %s\n", stre... | 0 |
41,435 | struct sk_buff *__netdev_alloc_skb(struct net_device *dev,
unsigned int length, gfp_t gfp_mask)
{
struct sk_buff *skb = NULL;
unsigned int fragsz = SKB_DATA_ALIGN(length + NET_SKB_PAD) +
SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
if (fragsz <= PAGE_SIZE && !(gfp_mask & (__GFP_WAIT | GFP_DMA))) ... | 0 |
502,601 | int HevcSpsUnit::scaling_list_data()
{
for (int sizeId = 0; sizeId < 4; sizeId++)
{
for (int matrixId = 0; matrixId < 6; matrixId += (sizeId == 3) ? 3 : 1)
{
bool flag = m_reader.getBit();
if (!flag)
{
unsigned scaling_list_pred_matrix_id_delta... | 0 |
46,829 | int sqlite3ExprImpliesNonNullRow(Expr *p, int iTab){
Walker w;
p = sqlite3ExprSkipCollateAndLikely(p);
if( p==0 ) return 0;
if( p->op==TK_NOTNULL ){
p = p->pLeft;
}else{
while( p->op==TK_AND ){
if( sqlite3ExprImpliesNonNullRow(p->pLeft, iTab) ) return 1;
p = p->pRight;
}
}
w.xExprC... | 0 |
483,428 | bool css_has_online_children(struct cgroup_subsys_state *css)
{
struct cgroup_subsys_state *child;
bool ret = false;
rcu_read_lock();
css_for_each_child(child, css) {
if (child->flags & CSS_ONLINE) {
ret = true;
break;
}
}
rcu_read_unlock();
return ret;
} | 0 |
174,746 | RGBGrayEncoder::~RGBGrayEncoder() {
if (str->isEncoder())
delete str;
}
| 0 |
263,044 | static int copy_from_read_buf(struct tty_struct *tty,
unsigned char __user **b,
size_t *nr)
{
struct n_tty_data *ldata = tty->disc_data;
int retval;
size_t n;
bool is_eof;
size_t tail = ldata->read_tail & (N_TTY_BUF_SIZE - 1);
retval = 0;
n = min(read_cnt(ldata), N_TTY_BUF_SIZE - tail);
n ... | 0 |
488,883 | uint8_t avdtp_error_category(struct avdtp_error *err)
{
return err->category;
} | 0 |
521,237 | int Arg_comparator::compare_decimal()
{
VDec val1(*a);
if (!val1.is_null())
{
VDec val2(*b);
if (!val2.is_null())
{
if (set_null)
owner->null_value= 0;
val1.round_self_if_needed((*a)->decimals, HALF_UP);
val2.round_self_if_needed((*b)->decimals, HALF_UP);
return val1.cm... | 0 |
310,999 | Browser* browser() { return browser_.get(); }
| 0 |
156,540 | authDigestNonceLastRequest(digest_nonce_h * nonce)
{
if (!nonce)
return -1;
if (nonce->nc == 99999997) {
debugs(29, 4, "Nonce count about to overflow");
return -1;
}
if (nonce->nc >= static_cast<Auth::Digest::Config*>(Auth::Config::Find("digest"))->noncemaxuses - 1) {
d... | 0 |
97,255 | static int __init init_f2fs_fs(void)
{
int err;
f2fs_build_trace_ios();
err = init_inodecache();
if (err)
goto fail;
err = create_node_manager_caches();
if (err)
goto free_inodecache;
err = create_segment_manager_caches();
if (err)
goto free_node_manager_caches;
err = create_checkpoint_caches();
if (e... | 0 |
312,434 | Node::InsertionNotificationRequest HTMLFormControlElement::insertedInto(ContainerNode* insertionPoint)
{
m_ancestorDisabledState = AncestorDisabledStateUnknown;
m_dataListAncestorState = Unknown;
setNeedsWillValidateCheck();
HTMLElement::insertedInto(insertionPoint);
FormAssociatedElement::insertedI... | 0 |
283,188 | ImageResourceFactory(const FetchParameters& fetch_params)
: NonTextResourceFactory(Resource::kImage),
fetch_params_(&fetch_params) {}
| 0 |
438,190 | bool Segment::QueueFrame(Frame* frame) {
const int32_t new_size = frames_size_ + 1;
if (new_size > frames_capacity_) {
// Add more frames.
const int32_t new_capacity = (!frames_capacity_) ? 2 : frames_capacity_ * 2;
if (new_capacity < 1)
return false;
Frame** const frames = new (std::nothro... | 0 |
360,030 | filesystem_info_start (NautilusDirectory *directory,
NautilusFile *file,
gboolean *doing_io)
{
GFile *location;
FilesystemInfoState *state;
if (directory->details->filesystem_info_state != NULL) {
*doing_io = TRUE;
return;
}
if (!is_needy (file,
lacks_filesystem_info,
REQU... | 0 |
515,576 | static int equal_wildcard(const unsigned char *pattern, size_t pattern_len,
const unsigned char *subject, size_t subject_len,
unsigned int flags)
{
const unsigned char *star = NULL;
/*
* Subject names starting with '.' can only match a wildcard pattern
... | 0 |
46,965 | f_strtrans(typval_T *argvars, typval_T *rettv)
{
rettv->v_type = VAR_STRING;
rettv->vval.v_string = transstr(tv_get_string(&argvars[0]));
} | 0 |
486,069 | check_special_mountprog(const char *spec, const char *node, const char *type, int flags,
char *extra_opts, int *status) {
char search_path[] = FS_SEARCH_PATH;
char *path, mountprog[150];
struct stat statbuf;
int res;
if (!external_allowed)
return 0;
if (type == NULL || strcmp(type, "none") == 0)
return 0... | 0 |
516,044 | save_number(const char *fmt, int number, int len)
{
size_t s_len = (size_t) len + 30 + strlen(fmt);
get_space(s_len + 1);
_nc_SPRINTF(TPS(out_buff) + TPS(out_used),
_nc_SLIMIT(TPS(out_size) - TPS(out_used))
fmt, number);
TPS(out_used) += strlen(TPS(out_buff) + TPS(out_used));
} | 0 |
126,641 | static int em_mov(struct x86_emulate_ctxt *ctxt)
{
memcpy(ctxt->dst.valptr, ctxt->src.valptr, sizeof(ctxt->src.valptr));
return X86EMUL_CONTINUE;
} | 0 |
30,309 | static int hls_read_packet(AVFormatContext *s, AVPacket *pkt)
{
HLSContext *c = s->priv_data;
int ret, i, minvariant = -1;
if (c->first_packet) {
recheck_discard_flags(s, 1);
c->first_packet = 0;
}
start:
c->end_of_segment = 0;
for (i = 0; i < c->n_variants; i++) {
... | 1 |
408,284 | static void handler_chain(struct uprobe *uprobe, struct pt_regs *regs)
{
struct uprobe_consumer *uc;
int remove = UPROBE_HANDLER_REMOVE;
bool need_prep = false; /* prepare return uprobe, when needed */
down_read(&uprobe->register_rwsem);
for (uc = uprobe->consumers; uc; uc = uc->next) {
int rc = 0;
if (uc->h... | 0 |
165,731 | static bool parse_args(int argc, char **argv) {
while (1) {
int option_index = 0;
int c = getopt_long_only(argc, argv, "", long_options, &option_index);
if (c != 0)
break;
switch (c) {
case 0:
if (option_index == 0) {
if (!string_to_bdaddr(optarg, &bt_remote_bdaddr)) {
return false;
}
}
if (option_index =... | 0 |
155,813 | pixOctcubeQuantMixedWithGray(PIX *pixs,
l_int32 depth,
l_int32 graylevels,
l_int32 delta)
{
l_int32 w, h, wpls, wpld, i, j, size, octlevels;
l_int32 rval, gval, bval, del, val, midval;
l_int32 *carray, *rarray, *garray... | 0 |
227,383 | eval_number(uschar **sptr, BOOL decimal, uschar **error)
{
register int c;
int_eximarith_t n;
uschar *s = *sptr;
while (isspace(*s)) s++;
c = *s;
if (isdigit(c))
{
int count;
(void)sscanf(CS s, (decimal? SC_EXIM_DEC "%n" : SC_EXIM_ARITH "%n"), &n, &count);
s += count;
switch (tolower(*s))
{
default: b... | 0 |
206,607 | TemplateURL::AssociatedExtensionInfo::~AssociatedExtensionInfo() {
}
| 0 |
16,614 | PHP_FUNCTION ( uwsgi_masterpid ) {
if ( uwsgi . master_process ) {
RETURN_LONG ( uwsgi . workers [ 0 ] . pid ) ;
}
RETURN_LONG ( 0 ) ;
} | 0 |
522,816 | static COND* substitute_for_best_equal_field(THD *thd, JOIN_TAB *context_tab,
COND *cond,
COND_EQUAL *cond_equal,
void *table_join_idx,
bool... | 0 |
291,786 | messageSetMimeType(message *mess, const char *type)
{
#ifdef CL_THREAD_SAFE
static pthread_mutex_t mime_mutex = PTHREAD_MUTEX_INITIALIZER;
#endif
const struct mime_map *m;
int typeval;
static table_t *mime_table;
assert(mess != NULL);
if(type == NULL) {
cli_dbgmsg("Empty content-type field\n");
return 0;
}
... | 0 |
483,878 | void unregister_memory_notifier(struct notifier_block *nb)
{
blocking_notifier_chain_unregister(&memory_chain, nb);
} | 0 |
123,593 | static inline struct crypto_ahash *crypto_spawn_ahash(
struct crypto_ahash_spawn *spawn)
{
return crypto_spawn_tfm2(&spawn->base);
} | 0 |
495,037 | static void snd_pcm_post_reset(struct snd_pcm_substream *substream,
snd_pcm_state_t state)
{
struct snd_pcm_runtime *runtime = substream->runtime;
runtime->control->appl_ptr = runtime->status->hw_ptr;
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
runtime->silence_size > 0)
snd_pcm_playback_s... | 0 |
90,533 | void _yr_re_print_node(
RE_NODE* re_node)
{
int i;
if (re_node == NULL)
return;
switch(re_node->type)
{
case RE_NODE_ALT:
printf("Alt(");
_yr_re_print_node(re_node->left);
printf(", ");
_yr_re_print_node(re_node->right);
printf(")");
break;
case RE_NODE_CONCAT:
printf(... | 0 |
475,748 | static int nft_set_elem_expr_setup(struct nft_ctx *ctx,
const struct nft_set_ext *ext,
struct nft_expr *expr_array[],
u32 num_exprs)
{
struct nft_set_elem_expr *elem_expr = nft_set_ext_expr(ext);
struct nft_expr *expr;
int i, err;
for (i = 0; i < num_exprs; i++) {
expr = nft_setelem_expr_at(... | 0 |
114,024 | static ssize_t ati_remote2_show_channel_mask(struct device *dev,
struct device_attribute *attr,
char *buf)
{
struct usb_device *udev = to_usb_device(dev);
struct usb_interface *intf = usb_ifnum_to_if(udev, 0);
struct ati_remote2 *ar2 = usb_get_intfdata(intf);
return sprintf(buf, "0x%04x\n", ar2... | 0 |
129,816 | static MagickBooleanType ReadPSDChannelPixels(Image *image,
const size_t channels,const size_t row,const ssize_t type,
const unsigned char *pixels,ExceptionInfo *exception)
{
Quantum
pixel;
register const unsigned char
*p;
register Quantum
*q;
register ssize_t
x;
size_t
packet_size... | 0 |
461,288 | static bool sanity_check(struct ip_udp_dhcp_packet *packet, int bytes)
{
if (packet->ip.protocol != IPPROTO_UDP)
return false;
if (packet->ip.version != IPVERSION)
return false;
if (packet->ip.ihl != sizeof(packet->ip) >> 2)
return false;
if (packet->udp.dest != htons(CLIENT_PORT))
return false;
if (nt... | 0 |
70,483 | _archive_write_disk_data_block(struct archive *_a,
const void *buff, size_t size, int64_t offset)
{
struct archive_write_disk *a = (struct archive_write_disk *)_a;
ssize_t r;
archive_check_magic(&a->archive, ARCHIVE_WRITE_DISK_MAGIC,
ARCHIVE_STATE_DATA, "archive_write_data_block");
a->offset = offset;
i... | 0 |
325,588 | static int mov_write_stbl_tag(ByteIOContext *pb, MOVTrack* track)
{
offset_t pos = url_ftell(pb);
put_be32(pb, 0); /* size */
put_tag(pb, "stbl");
mov_write_stsd_tag(pb, track);
mov_write_stts_tag(pb, track);
if (track->enc->codec_type == CODEC_TYPE_VIDEO &&
track->hasKeyframes <... | 0 |
184,366 | unsigned HTMLCanvasElement::GetMSAASampleCountFor2dContext() const {
if (!GetDocument().GetSettings())
return 0;
return GetDocument().GetSettings()->GetAccelerated2dCanvasMSAASampleCount();
}
| 0 |
429,829 | smpl_t aubio_onset_get_awhitening (aubio_onset_t *o)
{
return o->apply_awhitening;
} | 0 |
244,552 | void red_client_set_migration_seamless(RedClient *client) // dest
{
RingItem *link;
pthread_mutex_lock(&client->lock);
client->seamless_migrate = TRUE;
/* update channel clients that got connected before the migration
* type was set. red_client_add_channel will handle newer channel clients */
R... | 0 |
338,292 | static void RENAME(swScale)(SwsContext *c, uint8_t* srcParam[], int srcStrideParam[], int srcSliceY,
int srcSliceH, uint8_t* dstParam[], int dstStride[]){
/* load a few things into local vars to make the code more readable? and faster */
const int srcW= c->srcW;
const int dstW= c->dstW;
const in... | 0 |
273,875 | selftest_fips_192 (int extended, selftest_report_func_t report)
{
const char *what;
const char *errtxt;
(void)extended; /* No extended tests available. */
what = "low-level";
errtxt = selftest_basic_192 ();
if (errtxt)
goto failed;
return 0; /* Succeeded. */
failed:
if (report)
report ("c... | 0 |
461,454 | static int stat_to_qid(V9fsPDU *pdu, const struct stat *stbuf, V9fsQID *qidp)
{
int err;
size_t size;
if (pdu->s->ctx.export_flags & V9FS_REMAP_INODES) {
/* map inode+device to qid path (fast path) */
err = qid_path_suffixmap(pdu, stbuf, &qidp->path);
if (err == -ENFILE) {
... | 0 |
210,543 | void Browser::FocusLocationBar() {
UserMetrics::RecordAction(UserMetricsAction("FocusLocation"));
window_->SetFocusToLocationBar(true);
}
| 0 |
88,983 | static struct mempolicy *mpol_new(unsigned short mode, unsigned short flags,
nodemask_t *nodes)
{
struct mempolicy *policy;
pr_debug("setting mode %d flags %d nodes[0] %lx\n",
mode, flags, nodes ? nodes_addr(*nodes)[0] : NUMA_NO_NODE);
if (mode == MPOL_DEFAULT) {
if (nodes && !nodes_empty(*nodes))
re... | 0 |
472,889 | static int hw_atl_utils_init_ucp(struct aq_hw_s *self,
const struct aq_hw_caps_s *aq_hw_caps)
{
int err = 0;
if (!aq_hw_read_reg(self, 0x370U)) {
unsigned int rnd = 0U;
unsigned int ucp_0x370 = 0U;
get_random_bytes(&rnd, sizeof(unsigned int));
ucp_0x370 = 0x02020202U | (0xFEFEFEFEU & rnd);
aq_hw_wri... | 0 |
40,572 | static int recheck_discard_flags(AVFormatContext *s, int first)
{
HLSContext *c = s->priv_data;
int i, changed = 0;
/* Check if any new streams are needed */
for (i = 0; i < c->n_playlists; i++)
c->playlists[i]->cur_needed = 0;
for (i = 0; i < s->nb_streams; i++) {
AVStream *st = s... | 0 |
520,104 | subselect_rowid_merge_engine::cmp_keys_by_cur_rownum(void *arg,
uchar *k1, uchar *k2)
{
rownum_t r1= ((Ordered_key*) k1)->current();
rownum_t r2= ((Ordered_key*) k2)->current();
return (r1 < r2) ? -1 : (r1 > r2) ? 1 : 0;
} | 0 |
264,016 | void ext4_ext_init(struct super_block *sb)
{
/*
* possible initialization would be here
*/
if (ext4_has_feature_extents(sb)) {
#if defined(AGGRESSIVE_TEST) || defined(CHECK_BINSEARCH) || defined(EXTENTS_STATS)
printk(KERN_INFO "EXT4-fs: file extents enabled"
#ifdef AGGRESSIVE_TEST
", aggressive tests"... | 0 |
209,076 | static void iscsi_detach_aio_context(BlockDriverState *bs)
{
IscsiLun *iscsilun = bs->opaque;
aio_set_fd_handler(iscsilun->aio_context, iscsi_get_fd(iscsilun->iscsi),
false, NULL, NULL, NULL);
iscsilun->events = 0;
if (iscsilun->nop_timer) {
timer_del(iscsilun->nop_timer... | 0 |
520,823 | void set_param_func(uchar **pos, ulong len)
{
/*
To avoid Item_param::set_xxx() asserting on data type mismatch,
we set the value type handler here:
- It can not be initialized yet after Item_param::setup_conversion().
- Also, for LIMIT clause parameters, the value type handler might hav... | 0 |
390,173 | long SSL_CTX_get_session_cache_mode(SSL_CTX*)
{
// always 0, unlimited size for now
return 0;
} | 0 |
182,831 | CastTrayView::~CastTrayView() {
}
| 0 |
21,717 | static uint query_cache_hits ( MYSQL * conn ) {
MYSQL_RES * res ;
MYSQL_ROW row ;
int rc ;
uint result ;
rc = mysql_query ( conn , "show status like 'qcache_hits'" ) ;
myquery ( rc ) ;
res = mysql_use_result ( conn ) ;
DIE_UNLESS ( res ) ;
row = mysql_fetch_row ( res ) ;
DIE_UNLESS ( row ) ;
result = atoi ( ... | 0 |
422,998 |
static int process_backlog(struct napi_struct *napi, int quota)
{
int work = 0;
struct softnet_data *sd = container_of(napi, struct softnet_data, backlog);
#ifdef CONFIG_RPS
/* Check if we have pending ipi, its better to send them now,
* not waiting net_rx_action() end.
*/
if (sd->rps_ipi_list) {
local_irq_... | 0 |
316,400 | void DownloadFilesToReadonlyFolder(size_t count,
DownloadInfo* download_info) {
DownloadFilesCheckErrorsSetup();
base::FilePath destination_folder = GetDownloadDirectory(browser());
DVLOG(1) << " " << __FUNCTION__ << "()"
<< " folder = '" << destination_f... | 0 |
477,485 | static void tcf_proto_get(struct tcf_proto *tp)
{
refcount_inc(&tp->refcnt);
} | 0 |
386,806 | static OPJ_BOOL opj_j2k_read_siz(opj_j2k_t *p_j2k,
OPJ_BYTE * p_header_data,
OPJ_UINT32 p_header_size,
opj_event_mgr_t * p_manager
)
{
OPJ_UINT32 i;
OPJ_UINT32 l_nb_comp;
... | 0 |
193,048 | void RenderFrameHostCreatedObserver::RenderFrameCreated(
RenderFrameHost* render_frame_host) {
frames_created_++;
if (frames_created_ == expected_frame_count_) {
message_loop_runner_->Quit();
}
}
| 0 |
285,909 | ResourceDispatcherHostImpl::ResourceDispatcherHostImpl()
: download_file_manager_(new DownloadFileManager(NULL)),
save_file_manager_(new SaveFileManager()),
request_id_(-1),
is_shutdown_(false),
max_outstanding_requests_cost_per_process_(
kMaxOutstandingRequestsCostPerProcess),
... | 0 |
273,018 | static int adts_write_trailer(AVFormatContext *s)
{
ADTSContext *adts = s->priv_data;
if (adts->apetag)
ff_ape_write_tag(s);
return 0;
} | 0 |
140,095 | static void *setup_temp_malloc(vorb *f, int sz)
{
sz = (sz+3) & ~3;
if (f->alloc.alloc_buffer) {
if (f->temp_offset - sz < f->setup_offset) return NULL;
f->temp_offset -= sz;
return (char *) f->alloc.alloc_buffer + f->temp_offset;
}
return malloc(sz);
} | 0 |
455,515 | TEST_F(RenameCollectionTest, RenameCollectionAcrossDatabaseDropsTemporaryCollectionOnException) {
_createCollection(_opCtx.get(), _sourceNss);
_createIndexOnEmptyCollection(_opCtx.get(), _sourceNss, "a_1");
_insertDocument(_opCtx.get(), _sourceNss, BSON("_id" << 0));
_opObserver->onInsertsThrows = true;... | 0 |
47,254 | static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns,
struct pid *pid, struct task_struct *task)
{
if (unlikely(!sched_info_on()))
seq_printf(m, "0 0 0\n");
else
seq_printf(m, "%llu %llu %lu\n",
(unsigned long long)task->se.sum_exec_runtime,
(unsigned long long)task->sched... | 0 |
207,135 | void V8Console::lastEvaluationResultCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
{
ConsoleHelper helper(info);
InspectedContext* context = helper.ensureInspectedContext();
if (!context)
return;
if (InjectedScript* injectedScript = context->getInjectedScript())
info.GetReturn... | 0 |
74,610 | static int close_user_core(int user_core_fd, off_t core_size)
{
if (user_core_fd >= 0 && (fsync(user_core_fd) != 0 || close(user_core_fd) != 0 || core_size < 0))
{
perror_msg("Error writing '%s' at '%s'", core_basename, user_pwd);
return -1;
}
return 0;
} | 0 |
268,244 | void do_append_file(struct st_command *command)
{
do_write_file_command(command, TRUE);
} | 0 |
510,707 | bool ha_partition::initialize_partition(MEM_ROOT *mem_root)
{
handler **file_array, *file;
ulonglong check_table_flags;
DBUG_ENTER("ha_partition::initialize_partition");
if (m_create_handler)
{
m_tot_parts= m_part_info->get_tot_partitions();
DBUG_ASSERT(m_tot_parts > 0);
if (new_handlers_from_par... | 0 |
424,384 | int unit_add_two_dependencies(Unit *u, UnitDependency d, UnitDependency e, Unit *other, bool add_reference, UnitDependencyMask mask) {
int r;
assert(u);
r = unit_add_dependency(u, d, other, add_reference, mask);
if (r < 0)
return r;
return unit_add_dependency(u... | 0 |
81,926 | hfs_cat_read_thread_record(HFS_INFO * hfs, TSK_OFF_T off,
hfs_thread * thread)
{
TSK_FS_INFO *fs = (TSK_FS_INFO *) & (hfs->fs_info);
uint16_t uni_len;
ssize_t cnt;
memset(thread, 0, sizeof(hfs_thread));
cnt = tsk_fs_attr_read(hfs->catalog_attr, off, (char *) thread, 10, 0);
if (cnt != 10) {... | 0 |
58,026 | static DWORD get_win32_connect_timeout(MYSQL *mysql)
{
DWORD timeout_ms;
uint timeout_sec;
/*
A timeout of 0 means no timeout. Also, the connect_timeout
option value is in seconds, while WIN32 timeouts are in
milliseconds. Hence, check for a possible overflow. In case
of overflow, set to no timeo... | 0 |
7,442 | static bool check_underflow(const struct ip6t_entry *e)
{
const struct xt_entry_target *t;
unsigned int verdict;
if (!unconditional(&e->ipv6))
return false;
t = ip6t_get_target_c(e);
if (strcmp(t->u.user.name, XT_STANDARD_TARGET) != 0)
return false;
verdict = ((struct xt_standard_target *)t)->verdict;
verdi... | 1 |
479,179 | static double mp_image_whds(_cimg_math_parser& mp) {
unsigned int ind = (unsigned int)mp.opcode[2];
if (ind!=~0U) {
if (!mp.imglist.width()) return cimg::type<double>::nan();
ind = (unsigned int)cimg::mod((int)_mp_arg(2),mp.imglist.width());
}
const CImg<T> &img... | 0 |
222,071 | bool RenderViewImpl::GetPpapiPluginCaretBounds(gfx::Rect* rect) {
if (!pepper_delegate_.IsPluginFocused())
return false;
*rect = pepper_delegate_.GetCaretBounds();
return true;
}
| 0 |
493,547 | HIDDEN int mailbox_changequotaroot(struct mailbox *mailbox,
const char *root, int silent)
{
int r = 0;
int res;
quota_t quota_usage[QUOTA_NUMRESOURCES];
mailbox_get_usage(mailbox, quota_usage);
if (mailbox->h.quotaroot) {
quota_t quota_diff[QUOTA_NUMRESOU... | 0 |
182,383 | void RenderFrameImpl::DidChangePerformanceTiming() {
for (auto& observer : observers_)
observer.DidChangePerformanceTiming();
}
| 0 |
391,052 | static int ntop_get_interface_find_user_flows(lua_State* vm) {
NetworkInterfaceView *ntop_interface = getCurrentInterface(vm);
char *key;
ntop->getTrace()->traceEvent(TRACE_INFO, "%s() called", __FUNCTION__);
if(!Utils::isUserAdministrator(vm)) return(CONST_LUA_ERROR);
if(ntop_lua_check(vm, __FUNCTION__, 1... | 0 |
355,127 | static int pipe_to_file(struct pipe_inode_info *pipe, struct pipe_buffer *buf,
struct splice_desc *sd)
{
struct file *file = sd->u.file;
struct address_space *mapping = file->f_mapping;
unsigned int offset, this_len;
struct page *page;
void *fsdata;
int ret;
/*
* make sure the data in this buffer is uptoda... | 0 |
426,998 | xsltFreeNsAliasList(xsltNsAliasPtr item)
{
xsltNsAliasPtr tmp;
while (item) {
tmp = item;
item = item->next;
xmlFree(tmp);
}
return;
} | 0 |
360,703 | int do_print(const char *path_p, const struct stat *st, int walk_flags, void *unused)
{
const char *default_prefix = NULL;
acl_t acl = NULL, default_acl = NULL;
int error = 0;
if (walk_flags & WALK_TREE_FAILED) {
fprintf(stderr, "%s: %s: %s\n", progname, xquote(path_p, "\n\r"),
strerror(errno));
return 1;
... | 0 |
231,119 | GahpClient::condor_job_stage_in(const char *schedd_name, ClassAd *job_ad)
{
static const char* command = "CONDOR_JOB_STAGE_IN";
MyString ad_string;
if (server->m_commands_supported->contains_anycase(command)==FALSE) {
return GAHPCLIENT_COMMAND_NOT_SUPPORTED;
}
if (!schedd_name) schedd_name=NULLSTRING;
if (!... | 0 |
82,721 | vim_regexec_string(
regmatch_T *rmp,
char_u *line, // string to match against
colnr_T col, // column to start looking for match
int nl)
{
int result;
regexec_T rex_save;
int rex_in_use_save = rex_in_use;
// Cannot use the same prog recursively, it contains state.
if (rmp->reg... | 0 |
43,800 | static void dump_vmcs(void)
{
u32 vmentry_ctl = vmcs_read32(VM_ENTRY_CONTROLS);
u32 vmexit_ctl = vmcs_read32(VM_EXIT_CONTROLS);
u32 cpu_based_exec_ctrl = vmcs_read32(CPU_BASED_VM_EXEC_CONTROL);
u32 pin_based_exec_ctrl = vmcs_read32(PIN_BASED_VM_EXEC_CONTROL);
u32 secondary_exec_control = 0;
unsigned long cr4 = vm... | 0 |
106,098 | TRIO_PUBLIC trio_pointer_t trio_register TRIO_ARGS2((callback, name), trio_callback_t callback,
TRIO_CONST char* name)
{
trio_userdef_t* def;
trio_userdef_t* prev = NULL;
if (callback == NULL)
return NULL;
if (name)
{
/* Handle built-in namespaces */
if (... | 0 |
323,642 | static void vc1_inv_trans_4x8_c(uint8_t *dest, int linesize, DCTELEM *block)
{
int i;
register int t1,t2,t3,t4,t5,t6,t7,t8;
DCTELEM *src, *dst;
const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
src = block;
dst = block;
for(i = 0; i < 8; i++){
t1 = 17 * (src[0] + src[2]) + 4;... | 0 |
139,842 | ram_addr_t memory_region_get_ram_addr(MemoryRegion *mr)
{
return mr->ram_block ? mr->ram_block->offset : RAM_ADDR_INVALID;
} | 0 |
186,641 | int NavigationControllerImpl::GetIndexOfEntry(
const NavigationEntryImpl* entry) const {
const NavigationEntries::const_iterator i(std::find(
entries_.begin(),
entries_.end(),
entry));
return (i == entries_.end()) ? -1 : static_cast<int>(i - entries_.begin());
}
| 0 |
27,272 | static void dtap_sms_cp_data ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
curr_len = len ;
is_uplink = IS_UPLINK_TRUE ;
ELEM_MAND_LV ( GSM_A_PDU_TYPE_DTAP , DE_CP_USER_DATA , NULL )... | 0 |
161,186 | unsigned int getNumber() const {
return number;
} | 0 |
381,797 | CopySendString(CopyState cstate, const char *str)
{
appendBinaryStringInfo(cstate->fe_msgbuf, str, strlen(str));
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.