idx int64 | func string | target int64 |
|---|---|---|
484,753 | static bool xennet_handle_rx(struct netfront_queue *queue, unsigned int *eoi)
{
unsigned int work_queued;
unsigned long flags;
if (unlikely(queue->info->broken))
return false;
spin_lock_irqsave(&queue->rx_cons_lock, flags);
work_queued = XEN_RING_NR_UNCONSUMED_RESPONSES(&queue->rx);
if (work_queued > queue->r... | 0 |
232,309 |
GF_Err gf_isom_box_read(GF_Box *a, GF_BitStream *bs)
{
if (!a) return GF_BAD_PARAM;
if (!a->registry) {
GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[iso file] Read invalid box type %s without registry\n", gf_4cc_to_str(a->type) ));
return GF_ISOM_INVALID_FILE;
}
return a->registry->read_fn(a, bs); | 0 |
482,514 | _lou_getDotsForChar(widechar c, const DisplayTableHeader *table) {
CharDotsMapping *cdPtr = getDotsForChar(c, table);
if (cdPtr) return cdPtr->found;
return LOU_DOTS;
} | 0 |
292,177 | void LinkResolver::resolve_invokeinterface(CallInfo& result, Handle recv, const constantPoolHandle& pool, int index, TRAPS) {
LinkInfo link_info(pool, index, CHECK);
Klass* recvrKlass = recv.is_null() ? (Klass*)NULL : recv->klass();
resolve_interface_call(result, recv, recvrKlass, link_info, true, CHECK);
} | 0 |
450,390 | static int send_rect_simple(VncState *vs, int x, int y, int w, int h,
bool split)
{
int max_size, max_width;
int max_sub_width, max_sub_height;
int dx, dy;
int rw, rh;
int n = 0;
max_size = tight_conf[vs->tight->compression].max_rect_size;
max_width = tight_conf[... | 0 |
512,750 | Item_cond::used_tables() const
{ // This caches used_tables
return used_tables_cache;
} | 0 |
348,441 | static void __exit mkiss_exit_driver(void)
{
tty_unregister_ldisc(&ax_ldisc);
} | 0 |
343,183 | static int esp6_init_state(struct xfrm_state *x)
{
struct crypto_aead *aead;
u32 align;
int err;
x->data = NULL;
if (x->aead)
err = esp_init_aead(x);
else
err = esp_init_authenc(x);
if (err)
goto error;
aead = x->data;
x->props.header_len = sizeof(struct ip_esp_hdr) +
crypto_aead_ivsize(aea... | 0 |
222,550 | Status FunctionCallFrame::ConsumeRetvals(std::vector<Tensor>* rets,
bool allow_dead_tensors) {
rets->clear();
rets->reserve(rets_.size());
for (size_t i = 0; i < rets_.size(); ++i) {
if (rets_[i].has_val) {
rets->emplace_back(std::move(rets_[i].val));
} else ... | 0 |
359,468 | DEFUN (neighbor_allowas_in,
neighbor_allowas_in_cmd,
NEIGHBOR_CMD2 "allowas-in",
NEIGHBOR_STR
NEIGHBOR_ADDR_STR2
"Accept as-path with my AS present in it\n")
{
int ret;
struct peer *peer;
unsigned int allow_num;
peer = peer_and_group_lookup_vty (vty, argv[0]);
if (! peer)
... | 0 |
498,157 | void cgit_print_snapshot_links(const char *repo, const char *head,
const char *hex, int snapshots)
{
const struct cgit_snapshot_format* f;
struct strbuf filename = STRBUF_INIT;
size_t prefixlen;
unsigned char sha1[20];
if (get_sha1(fmt("refs/tags/%s", hex), sha1) == 0 &&
(hex[0] == 'v' || hex[0] ==... | 0 |
246,747 | u32 parse_multi_rtp(char *arg_val, u32 opt)
{
hint_flags |= GP_RTP_PCK_USE_MULTI;
if (arg_val)
max_ptime = atoi(arg_val);
return 0;
} | 0 |
390,599 | XkbWriteVirtualModMap(XkbDescPtr xkb,xkbGetMapReply *rep,char *buf,
ClientPtr client)
{
unsigned i;
xkbVModMapWireDesc * wire;
unsigned short * pMap;
wire= (xkbVModMapWireDesc *)buf;
pMap= &xkb->server->vmodmap[rep->firstVModMapKey];
for (i=0;i<rep->nVModMapKeys-1;i++,pMap++) {
if (*pMap!=0) {
... | 0 |
253,522 | smb2_close_cached_fid(struct kref *ref)
{
struct cached_fid *cfid = container_of(ref, struct cached_fid,
refcount);
if (cfid->is_valid) {
cifs_dbg(FYI, "clear cached root file handle\n");
SMB2_close(0, cfid->tcon, cfid->fid->persistent_fid,
cfid->fid->volatile_fid);
}
/*
* We only check va... | 0 |
309,853 | mouse_server(unsigned long param)
#endif
{
SCREEN *sp = (SCREEN *) param;
unsigned short fWait = MOU_WAIT;
/* NOPTRRECT mourt = { 0,0,24,79 }; */
MOUEVENTINFO mouev;
HMOU hmou;
unsigned short mask = MOUSE_BN1_DOWN | MOUSE_BN2_DOWN | MOUSE_BN3_DOWN;
int nbuttons = 3;
int oldstate = 0;
... | 0 |
335,431 | ex_redir(exarg_T *eap)
{
char *mode;
char_u *fname;
char_u *arg = eap->arg;
#ifdef FEAT_EVAL
if (redir_execute)
{
emsg(_(e_cannot_use_redir_inside_execute));
return;
}
#endif
if (STRICMP(eap->arg, "END") == 0)
close_redir();
else
{
if (*arg == '>')
{
++arg;
if (*arg ... | 0 |
432,697 | static float lite_font_stringwidth( wmfAPI* API, wmfFont* font, char* str)
{
#if 0
wmf_magick_t
*ddata = WMF_MAGICK_GetData(API);
Image
*image = ddata->image;
DrawInfo
*draw_info;
ExceptionInfo
*exception;
TypeMetric
metrics;
float
stringwidth = 0;
double
orig_x_resolutio... | 0 |
231,781 | TEST_F(QuicUnencryptedServerTransportTest, TestSendHandshakeDone) {
getFakeHandshakeLayer()->allowZeroRttKeys();
setupClientReadCodec();
recvClientHello(true, QuicVersion::QUIC_DRAFT);
recvClientFinished(true, nullptr, QuicVersion::QUIC_DRAFT);
auto& packets = server->getConn().outstandings.packets;
ASSERT_... | 0 |
369,276 |
static void io_init_poll_iocb(struct io_poll_iocb *poll, __poll_t events,
wait_queue_func_t wake_func)
{
poll->head = NULL;
#define IO_POLL_UNMASK (EPOLLERR|EPOLLHUP|EPOLLNVAL|EPOLLRDHUP)
/* mask in events that we always want/need */
poll->events = events | IO_POLL_UNMASK;
INIT_LIST_HEAD(&poll->wait.entry... | 0 |
261,219 | int wm_SemInit(wm_Sem *s) {
*s = CreateSemaphore( NULL, 0, 1, NULL);
return 0;
} | 0 |
462,583 | void controller::mark_article_read(const std::string& guid, bool read) {
if (api) {
api->mark_article_read(guid, read);
}
} | 0 |
223,482 | static void read_char7_type(compiler_common *common, jump_list **backtracks, BOOL negated)
{
/* Reads the precise character type of a character into TMP1, if the character
is less than 128. Otherwise it returns with zero. Does not check STR_END. The
full_read argument tells whether characters above max are accepted or ... | 0 |
384,128 | raptor_xml_writer_end_element_common(raptor_xml_writer* xml_writer,
raptor_xml_element *element,
int is_empty)
{
raptor_iostream* iostr = xml_writer->iostr;
if(is_empty)
raptor_iostream_write_byte('/', iostr);
else {
raptor_io... | 0 |
432,173 | static void memory_region_update_container_subregions(MemoryRegion *subregion)
{
MemoryRegion *mr = subregion->container;
MemoryRegion *other;
memory_region_transaction_begin();
QTAILQ_FOREACH(other, &mr->subregions, subregions_link) {
QTAILQ_INSERT_BEFORE(other, subregion, subregions_link);
... | 0 |
359,494 | DEFUN (clear_bgp_all_soft_out,
clear_bgp_all_soft_out_cmd,
"clear bgp * soft out",
CLEAR_STR
BGP_STR
"Clear all peers\n"
"Soft reconfig\n"
"Soft reconfig outbound update\n")
{
if (argc == 1)
return bgp_clear_vty (vty, argv[0], AFI_IP6, SAFI_UNICAST, clear_all,
... | 0 |
222,597 | gen_call(codegen_scope *s, node *tree, int val, int safe)
{
mrb_sym sym = nsym(tree->cdr->car);
int skip = 0, n = 0, nk = 0, noop = 0, noself = 0, blk = 0, sp_save = cursp();
if (!tree->car) {
noself = noop = 1;
push();
}
else {
codegen(s, tree->car, VAL); /* receiver */
}
if (safe) {
int... | 0 |
226,369 | GF_Err padb_box_size(GF_Box *s)
{
GF_PaddingBitsBox *ptr = (GF_PaddingBitsBox *)s;
ptr->size += 4;
if (ptr->SampleCount) ptr->size += (ptr->SampleCount + 1) / 2;
return GF_OK;
} | 0 |
230,132 | static int generate_fake_user_id(json_t * j_params, const char * username, unsigned char * user_id) {
char * seed;
unsigned char seed_hash[32];
size_t seed_hash_len = 32, seed_hash_b64_len;
int ret;
if ((seed = msprintf("%s%s-user_id", username, json_string_value(json_object_get(j_params, "seed")))) != NULL)... | 0 |
252,397 | static void WriteAttributeToMemory(std::vector<unsigned char> *out,
const char *name, const char *type,
const unsigned char *data, int len) {
out->insert(out->end(), name, name + strlen(name) + 1);
out->insert(out->end(), type, type + strlen(type... | 0 |
256,391 | static void bio_copy_kern_endio_read(struct bio *bio)
{
char *p = bio->bi_private;
struct bio_vec *bvec;
struct bvec_iter_all iter_all;
bio_for_each_segment_all(bvec, bio, iter_all) {
memcpy_from_bvec(p, bvec);
p += bvec->bv_len;
}
bio_copy_kern_endio(bio);
} | 0 |
430,444 | static int masked_set_action_to_set_action_attr(const struct nlattr *a,
struct sk_buff *skb)
{
const struct nlattr *ovs_key = nla_data(a);
struct nlattr *nla;
size_t key_len = nla_len(ovs_key) / 2;
/* Revert the conversion we did from a non-masked set action to
* masked set action.
*/
nla = nla_nest_sta... | 0 |
509,566 | void ha_maria::get_auto_increment(ulonglong offset, ulonglong increment,
ulonglong nb_desired_values,
ulonglong *first_value,
ulonglong *nb_reserved_values)
{
ulonglong nr;
int error;
uchar key[MARIA_MAX_KEY_BUFF... | 0 |
353,015 | issuerAndThisUpdateCheck(
struct berval *in,
struct berval *is,
struct berval *tu,
void *ctx )
{
int numdquotes = 0;
struct berval x = *in;
struct berval ni = BER_BVNULL;
/* Parse GSER format */
enum {
HAVE_NONE = 0x0,
HAVE_ISSUER = 0x1,
HAVE_THISUPDATE = 0x2,
HAVE_ALL = ( HAVE_ISSUER | HAVE_THISUPDAT... | 0 |
247,094 | Bool gf_fs_solve_js_script(char *szPath, const char *file_name, const char *file_ext)
{
const char *js_dirs;
if (gf_opts_default_shared_directory(szPath)) {
strcat(szPath, "/scripts/jsf/");
GF_LOG(GF_LOG_DEBUG, GF_LOG_FILTER, ("Trying JS filter %s\n", szPath));
if (locate_js_script(szPath, file_name, file_ext))... | 0 |
343,129 | static int esp_output_tcp_encap_cb(struct net *net, struct sock *sk,
struct sk_buff *skb)
{
struct dst_entry *dst = skb_dst(skb);
struct xfrm_state *x = dst->xfrm;
return esp_output_tcp_finish(x, skb);
} | 0 |
234,704 | static void free_fs_devices(struct btrfs_fs_devices *fs_devices)
{
struct btrfs_device *device;
WARN_ON(fs_devices->opened);
while (!list_empty(&fs_devices->devices)) {
device = list_entry(fs_devices->devices.next,
struct btrfs_device, dev_list);
list_del(&device->dev_list);
btrfs_free_device(device);
... | 0 |
218,801 | static void XDrawMatteText(Display *display,const XWindowInfo *window_info,
XWidgetInfo *text_info)
{
const char
*text;
int
n,
x,
y;
int
i;
unsigned int
height,
width;
XFontStruct
*font_info;
XRectangle
crop_info;
/*
Clear the text area.
*/
XSetMatteColo... | 0 |
246,735 | u32 parse_cp_loc(char *arg_val, u32 opt)
{
if (!strcmp(arg_val, "both")) cp_location_mode = GF_DASH_CPMODE_BOTH;
else if (!strcmp(arg_val, "as")) cp_location_mode = GF_DASH_CPMODE_ADAPTATION_SET;
else if (!strcmp(arg_val, "rep")) cp_location_mode = GF_DASH_CPMODE_REPRESENTATION;
else {
M4_LOG(GF_LOG_ERROR, ("Unre... | 0 |
336,680 | SPICE_GNUC_VISIBLE int spice_server_set_listen_socket_fd(SpiceServer *s, int listen_fd)
{
s->config->spice_listen_socket_fd = listen_fd;
return 0;
} | 0 |
387,580 | struct snd_kcontrol *snd_ctl_new1(const struct snd_kcontrol_new *ncontrol,
void *private_data)
{
struct snd_kcontrol *kctl;
unsigned int count;
unsigned int access;
int err;
if (snd_BUG_ON(!ncontrol || !ncontrol->info))
return NULL;
count = ncontrol->count;
if (count == 0)
count = 1;
access = ncont... | 0 |
512,412 | Item *get_copy(THD *thd)
{ return get_item_copy<Item_int>(thd, this); } | 0 |
269,314 | static av_always_inline void add_yblock(SnowContext *s, int sliced, slice_buffer *sb, IDWTELEM *dst, uint8_t *dst8, const uint8_t *obmc, int src_x, int src_y, int b_w, int b_h, int w, int h, int dst_stride, int src_stride, int obmc_stride, int b_x, int b_y, int add, int offset_dst, int plane_index){
const int b_wid... | 0 |
229,268 | virtual void visit(const messages::result_message::set_keyspace& m) override {
_response.write_int(0x0003);
_response.write_string(m.get_keyspace());
} | 0 |
175,774 | void QuotaManager::DidOriginDataEvicted(
QuotaStatusCode status) {
DCHECK(io_thread_->BelongsToCurrentThread());
if (status != kQuotaStatusOk)
origins_in_error_[eviction_context_.evicted_origin]++;
eviction_context_.evict_origin_data_callback->Run(status);
eviction_context_.evict_origin_data_callback.... | 0 |
482,652 | xt_get_per_cpu_counter(struct xt_counters *cnt, unsigned int cpu)
{
if (nr_cpu_ids > 1)
return per_cpu_ptr((void __percpu *) (unsigned long) cnt->pcnt, cpu);
return cnt;
} | 0 |
453,043 | static int nft_flow_offload_chain(struct nft_chain *chain, u8 *ppolicy,
enum flow_block_command cmd)
{
struct nft_base_chain *basechain;
u8 policy;
if (!nft_is_base_chain(chain))
return -EOPNOTSUPP;
basechain = nft_base_chain(chain);
policy = ppolicy ? *ppolicy : basechain->policy;
/* Only default poli... | 0 |
271,525 | Status operator()(OpKernelContext *context, const TensorShape &input_shape,
const TensorShape &output_shape,
typename TTypes<int64>::ConstMatrix input_indices,
typename TTypes<int64>::Matrix output_indices) const {
(void)context; // Unused (only used in... | 0 |
356,701 | Napi::Value Statement::Bind(const Napi::CallbackInfo& info) {
Napi::Env env = info.Env();
Statement* stmt = this;
Baton* baton = stmt->Bind<Baton>(info);
if (baton == NULL) {
Napi::TypeError::New(env, "Data type is not supported").ThrowAsJavaScriptException();
return env.Null();
}
... | 0 |
204,017 | static struct dir *squashfs_opendir(unsigned int block_start, unsigned int offset,
struct inode **i)
{
squashfs_dir_header_3 dirh;
char buffer[sizeof(squashfs_dir_entry_3) + SQUASHFS_NAME_LEN + 1]
__attribute__((aligned));
squashfs_dir_entry_3 *dire = (squashfs_dir_entry_3 *) buffer;
long long start;
int bytes ... | 1 |
462,276 | static pj_status_t encode_msgint_attr(const void *a, pj_uint8_t *buf,
unsigned len,
const pj_stun_msg_hdr *msghdr,
unsigned *printed)
{
const pj_stun_msgint_attr *ca = (const pj_stun_msgint_attr*)a;
PJ_CHECK_STACK();
PJ_UNUSED_ARG(msghdr);
if (len < 24)
return PJ... | 0 |
282,883 | static int rsi_send_internal_mgmt_frame(struct rsi_common *common,
struct sk_buff *skb)
{
struct skb_info *tx_params;
struct rsi_cmd_desc *desc;
if (skb == NULL) {
rsi_dbg(ERR_ZONE, "%s: Unable to allocate skb\n", __func__);
return -ENOMEM;
}
desc = (struct rsi_cmd_desc *)skb->data;
desc->desc_dword0.le... | 0 |
221,509 | apply_exports (char **envp,
const ExportData *exports,
gsize n_exports)
{
int i;
for (i = 0; i < n_exports; i++)
{
const char *value = exports[i].val;
if (value)
envp = g_environ_setenv (envp, exports[i].env, value, TRUE);
else
... | 0 |
393,508 | static bool _hsort(HSQUIRRELVM v,SQObjectPtr &arr, SQInteger SQ_UNUSED_ARG(l), SQInteger SQ_UNUSED_ARG(r),SQInteger func)
{
SQArray *a = _array(arr);
SQInteger i;
SQInteger array_size = a->Size();
for (i = (array_size / 2); i >= 0; i--) {
if(!_hsort_sift_down(v,a, i, array_size - 1,func)) return... | 0 |
221,143 | GF_Err gf_odf_hevc_cfg_write_bs(GF_HEVCConfig *cfg, GF_BitStream *bs)
{
u32 i, count;
count = gf_list_count(cfg->param_array);
if (!cfg->write_annex_b) {
gf_bs_write_int(bs, cfg->configurationVersion, 8);
if (!cfg->is_lhvc) {
gf_bs_write_int(bs, cfg->profile_space, 2);
gf_bs_write_int(bs, cfg->tier_flag... | 0 |
234,152 | display_formatted_table (unsigned char *data,
unsigned char *start,
unsigned char *end,
const DWARF2_Internal_LineInfo *linfo,
struct dwarf_section *section,
bool is_dir)
{
unsigned char *format_start, format_count, *format, formati;
dwarf_vma data_count, datai;
unsigned int namepass, last_ent... | 0 |
427,738 | parse_options(const char *data, struct parsed_mount_info *parsed_info)
{
char *value = NULL;
char *equals = NULL;
char *next_keyword = NULL;
char *out = parsed_info->options;
unsigned long *filesys_flags = &parsed_info->flags;
int out_len = 0;
int word_len;
int rc = 0;
int got_bkupuid = 0;
int got_bkupgid = 0... | 0 |
274,648 | void callbacks_force_expose_event_for_screen (void)
{
GdkRectangle update_rect;
update_rect.x = 0;
update_rect.y = 0;
update_rect.width = screenRenderInfo.displayWidth;
update_rect.height = screenRenderInfo.displayHeight;
/* Calls expose_event */
gdk_window_invalidate_rect (screen.drawing_area->window, &updat... | 0 |
229,281 | cql_server::unadvertise_connection(shared_ptr<generic_server::connection> raw_conn) {
--_stats.connections;
if (auto conn = dynamic_pointer_cast<connection>(raw_conn)) {
const auto ip = conn->get_client_state().get_client_address().addr();
const auto port = conn->get_client_state().get_client_po... | 0 |
512,907 | longlong Item_func_dyncol_exists::val_int()
{
char buff[STRING_BUFFER_USUAL_SIZE], nmstrbuf[11];
String tmp(buff, sizeof(buff), &my_charset_bin),
nmbuf(nmstrbuf, sizeof(nmstrbuf), system_charset_info);
DYNAMIC_COLUMN col;
String *str;
LEX_STRING buf, *name= NULL;
ulonglong num= 0;
enum enum_dynco... | 0 |
253,558 | get_smb2_acl(struct cifs_sb_info *cifs_sb,
struct inode *inode, const char *path,
u32 *pacllen, u32 info)
{
struct cifs_ntsd *pntsd = NULL;
struct cifsFileInfo *open_file = NULL;
if (inode && !(info & SACL_SECINFO))
open_file = find_readable_file(CIFS_I(inode), true);
if (!open_file || (info & SACL_S... | 0 |
466,131 | static int em_push(struct x86_emulate_ctxt *ctxt)
{
struct segmented_address addr;
register_address_increment(ctxt, &ctxt->regs[VCPU_REGS_RSP], -ctxt->op_bytes);
addr.ea = register_address(ctxt, ctxt->regs[VCPU_REGS_RSP]);
addr.seg = VCPU_SREG_SS;
/* Disable writeback. */
ctxt->dst.type = OP_NONE;
return segme... | 0 |
450,361 | static int tight_init_stream(VncState *vs, int stream_id,
int level, int strategy)
{
z_streamp zstream = &vs->tight->stream[stream_id];
if (zstream->opaque == NULL) {
int err;
VNC_DEBUG("VNC: TIGHT: initializing zlib stream %d\n", stream_id);
VNC_DEBUG("VNC... | 0 |
252,466 | static mz_bool mz_zip_writer_add_put_buf_callback(const void *pBuf, int len,
void *pUser) {
mz_zip_writer_add_state *pState = (mz_zip_writer_add_state *)pUser;
if ((int)pState->m_pZip->m_pWrite(pState->m_pZip->m_pIO_opaque,
pState... | 0 |
337,786 | struct sctp_chunk *sctp_make_abort_violation(
const struct sctp_association *asoc,
const struct sctp_chunk *chunk,
const __u8 *payload,
const size_t paylen)
{
struct sctp_chunk *retval;
struct sctp_paramhdr phdr;
retval = sctp_make_abort(asoc, chunk, sizeof(struct sctp_errhdr) +
payl... | 0 |
309,918 | my_napms(int ms)
{
if (ms > 0) {
#if defined(_WIN32) || !HAVE_GETTIMEOFDAY
Sleep((DWORD) ms);
#else
struct timeval data;
data.tv_sec = 0;
data.tv_usec = ms * 1000;
select(0, NULL, NULL, NULL, &data);
#endif
}
} | 0 |
226,035 |
GF_Err dmlp_box_size(GF_Box *s)
{
s->size += 10;
return GF_OK; | 0 |
247,331 | int pgpPubKeyCertLen(const uint8_t *pkts, size_t pktslen, size_t *certlen)
{
const uint8_t *p = pkts;
const uint8_t *pend = pkts + pktslen;
struct pgpPkt pkt;
while (p < pend) {
if (decodePkt(p, (pend - p), &pkt))
return -1;
if (pkt.tag == PGPTAG_PUBLIC_KEY && pkts != p) {
*certlen = p - p... | 0 |
366,276 | static struct mountpoint *get_mountpoint(struct dentry *dentry)
{
struct mountpoint *mp, *new = NULL;
int ret;
if (d_mountpoint(dentry)) {
/* might be worth a WARN_ON() */
if (d_unlinked(dentry))
return ERR_PTR(-ENOENT);
mountpoint:
read_seqlock_excl(&mount_lock);
mp = lookup_mountpoint(dentry);
read_s... | 0 |
231,644 | TEST_F(QuicServerTransportTest, ReceivePacketAfterLocalError) {
ShortHeader header(
ProtectionType::KeyPhaseZero,
*server->getConn().serverConnectionId,
clientNextAppDataPacketNum++);
RegularQuicPacketBuilder builder(
server->getConn().udpSendPacketLen,
std::move(header),
0 /* la... | 0 |
512,795 | String *val_str(String*)
{
return (String*) &str_value;
} | 0 |
226,435 | string DebugString() const override {
return "SparseTensorSliceDatasetOp::Dataset";
} | 0 |
427,717 | cdf_print_elapsed_time(char *buf, size_t bufsiz, cdf_timestamp_t ts)
{
int len = 0;
int days, hours, mins, secs;
ts /= CDF_TIME_PREC;
secs = CAST(int, ts % 60);
ts /= 60;
mins = CAST(int, ts % 60);
ts /= 60;
hours = CAST(int, ts % 24);
ts /= 24;
days = CAST(int, ts);
if (days) {
len += snprintf(buf + len... | 0 |
231,022 | TaskHandle_t xQueueGetMutexHolderFromISR( QueueHandle_t xSemaphore )
{
TaskHandle_t pxReturn;
configASSERT( xSemaphore );
/* Mutexes cannot be used in interrupt service routines, so the mutex
* holder should not change in an ISR, and therefore a critical section is
... | 0 |
219,956 | int callback_glewlwyd_get_client_module_list (const struct _u_request * request, struct _u_response * response, void * client_data) {
UNUSED(request);
struct config_elements * config = (struct config_elements *)client_data;
json_t * j_module;
j_module = get_client_module_list(config);
if (check_result_valu... | 0 |
349,892 | int hw_atl_utils_mpi_get_link_status(struct aq_hw_s *self)
{
struct aq_hw_link_status_s *link_status = &self->aq_link_status;
u32 mpi_state;
u32 speed;
mpi_state = hw_atl_utils_mpi_get_state(self);
speed = mpi_state >> HW_ATL_MPI_SPEED_SHIFT;
if (!speed) {
link_status->mbps = 0U;
} else {
switch (speed) {
... | 0 |
345,127 | static inline void pxa3xx_gcu_init_debug_timer(struct pxa3xx_gcu_priv *priv) {} | 0 |
439,148 | static MagickBooleanType WriteICONImage(const ImageInfo *image_info,
Image *image)
{
const char
*option;
IconFile
icon_file;
IconInfo
icon_info;
Image
*images,
*next;
MagickBooleanType
status;
MagickOffsetType
offset,
scene;
register const IndexPacket
*indexes;
... | 0 |
481,794 | void qh_deinit(const char *path)
{
struct query_handler *qh = NULL;
for (qh = qhandlers; qh != NULL; qh = qh->next_qh) {
qh_deregister_handler(qh->name);
}
dkhash_destroy(qh_table);
qh_table = NULL;
qhandlers = NULL;
if (path == NULL) {
return;
}
unlink(path);
} | 0 |
274,713 | callbacks_window_key_release_event (GtkWidget *widget, GdkEventKey *event)
{
return TRUE;
} /* key_release_event */ | 0 |
263,497 | static int sco_connect(struct hci_dev *hdev, struct sock *sk)
{
struct sco_conn *conn;
struct hci_conn *hcon;
int err, type;
BT_DBG("%pMR -> %pMR", &sco_pi(sk)->src, &sco_pi(sk)->dst);
if (lmp_esco_capable(hdev) && !disable_esco)
type = ESCO_LINK;
else
type = SCO_LINK;
if (sco_pi(sk)->setting == BT_VOICE_... | 0 |
513,004 | void cmp_item_decimal::store_value(Item *item)
{
my_decimal *val= item->val_decimal(&value);
/* val may be zero if item is nnull */
if (val && val != &value)
my_decimal2decimal(val, &value);
m_null_value= item->null_value;
} | 0 |
338,188 | void WasmBinaryBuilder::readNextDebugLocation() {
if (!sourceMap) {
return;
}
while (nextDebugLocation.first && nextDebugLocation.first <= pos) {
debugLocation.clear();
// use debugLocation only for function expressions
if (currFunction) {
debugLocation.insert(nextDebugLocation.second);
... | 0 |
512,697 | int cmp_item_timestamp::cmp(Item *arg)
{
THD *thd= current_thd;
Timestamp_or_zero_datetime_native_null tmp(thd, arg, true);
return m_null_value || tmp.is_null() ? UNKNOWN :
type_handler_timestamp2.cmp_native(m_native, tmp) != 0;
} | 0 |
234,177 | fetch_indirect_line_string (dwarf_vma offset)
{
struct dwarf_section *section = &debug_displays [line_str].section;
const unsigned char * ret;
if (section->start == NULL)
return (const unsigned char *) _("<no .debug_line_str section>");
if (offset >= section->size)
{
warn (_("DW_FORM_line_strp o... | 0 |
313,768 | reset_VIsual_and_resel(void)
{
if (VIsual_active)
{
end_visual_mode();
redraw_curbuf_later(INVERTED); // delete the inversion later
}
VIsual_reselect = FALSE;
} | 0 |
225,053 | parse_connection_string(const char *connstr, PQExpBuffer errorMessage,
bool use_defaults)
{
/* Parse as URI if connection string matches URI prefix */
if (uri_prefix_length(connstr) != 0)
return conninfo_uri_parse(connstr, errorMessage, use_defaults);
/* Parse as default otherwise */
return conninfo_parse(... | 0 |
226,206 |
GF_Err vmhd_box_size(GF_Box *s)
{
GF_VideoMediaHeaderBox *ptr = (GF_VideoMediaHeaderBox *)s;
ptr->size += 8;
return GF_OK; | 0 |
409,478 | termcode_star(char_u *code, int len)
{
// Shortest is <M-O>*X. With ; shortest is <CSI>@;*X
if (len >= 3 && code[len - 2] == '*')
{
if (len >= 5 && code[len - 3] == ';')
return 2;
else
return 1;
}
return 0;
} | 0 |
474,462 | HandleCoRREBPP (rfbClient* client, int rx, int ry, int rw, int rh)
{
rfbRREHeader hdr;
int i;
CARDBPP pix;
uint8_t *ptr;
int x, y, w, h;
if (!ReadFromRFBServer(client, (char *)&hdr, sz_rfbRREHeader))
return FALSE;
hdr.nSubrects = rfbClientSwap32IfLE(hdr.nSubrects);
if (!ReadFromRFBSe... | 0 |
512,984 | Item *Item_cond_or::neg_transformer(THD *thd) /* NOT(a OR b OR ...) -> */
/* NOT a AND NOT b AND ... */
{
neg_arguments(thd);
Item *item= new (thd->mem_root) Item_cond_and(thd, list);
return item;
} | 0 |
277,478 | uint32_t mobi_get_orth_entry_length(const MOBIIndexEntry *entry) {
uint32_t entry_textlen;
MOBI_RET ret = mobi_get_indxentry_tagvalue(&entry_textlen, entry, INDX_TAG_ORTH_LENGTH);
if (ret != MOBI_SUCCESS) {
return MOBI_NOTSET;
}
return entry_textlen;
} | 0 |
310,272 | dirserv_load_fingerprint_file(void)
{
char *fname;
char *cf;
char *nickname, *fingerprint;
authdir_config_t *fingerprint_list_new;
int result;
config_line_t *front=NULL, *list;
or_options_t *options = get_options();
fname = get_datadir_fname("approved-routers");
log_info(LD_GENERAL,
"Reloa... | 0 |
513,112 | bool Item_func_in::fix_for_row_comparison_using_bisection(THD *thd)
{
if (unlikely(!(array= new (thd->mem_root) in_row(thd, arg_count-1, 0))))
return true;
cmp_item_row *cmp= &((in_row*)array)->tmp;
if (cmp->prepare_comparators(thd, func_name(), this, 0))
return true;
fix_in_vector();
return false;
} | 0 |
244,002 | GF_Box *txtc_box_new()
{
ISOM_DECL_BOX_ALLOC(GF_TextConfigBox, GF_ISOM_BOX_TYPE_TXTC);
return (GF_Box *)tmp;
} | 0 |
225,073 | PQtransactionStatus(const PGconn *conn)
{
if (!conn || conn->status != CONNECTION_OK)
return PQTRANS_UNKNOWN;
if (conn->asyncStatus != PGASYNC_IDLE)
return PQTRANS_ACTIVE;
return conn->xactStatus;
} | 0 |
254,873 | int DocumentSourceGroup::freeMemory() {
invariant(_groups);
int totalMemorySaved = 0;
for (auto&& group : *_groups) {
for (auto&& groupObj : group.second) {
auto prevMemUsage = groupObj->memUsageForSorter();
groupObj->reduceMemoryConsumptionIfAble();
// Update th... | 0 |
488,419 | static inline int remap_pmd_range(struct mm_struct *mm, pud_t *pud,
unsigned long addr, unsigned long end,
unsigned long pfn, pgprot_t prot)
{
pmd_t *pmd;
unsigned long next;
pfn -= addr >> PAGE_SHIFT;
pmd = pmd_alloc(mm, pud, addr);
if (!pmd)
return -ENOMEM;
do {
next = pmd_addr_end(addr, end);
if (... | 0 |
256,407 | PJ_DEF(pj_status_t) pjmedia_rtcp_fb_parse_sli(
const void *buf,
pj_size_t length,
unsigned *sli_cnt,
pjmedia_rtcp_fb_sli sli[])
{
pjmedia_rtcp_fb_common *hdr = (pjmedia_rtcp_fb_common*) buf;
pj_uint8_t *p;
unsigned cnt, i;
PJ_ASSERT_RETURN(buf && sli_cnt && sli, PJ_EINVAL);
PJ_A... | 0 |
432,254 | static MemoryRegionSection *phys_page_find(AddressSpaceDispatch *d, hwaddr addr)
{
#ifdef TARGET_ARM
struct uc_struct *uc = d->uc;
#endif
PhysPageEntry lp = d->phys_map, *p;
Node *nodes = d->map.nodes;
MemoryRegionSection *sections = d->map.sections;
hwaddr index = addr >> TARGET_PAGE_BITS;
int ... | 0 |
289,242 | static inline void snd_pcm_oss_proc_init(struct snd_pcm *pcm)
{
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.