idx int64 | func string | target int64 |
|---|---|---|
94,959 | static void get_fs_root_rcu(struct fs_struct *fs, struct path *root)
{
unsigned seq;
do {
seq = read_seqcount_begin(&fs->seq);
*root = fs->root;
} while (read_seqcount_retry(&fs->seq, seq));
} | 0 |
434,177 | int vrend_renderer_execute(void *execute_args, uint32_t execute_size)
{
struct virgl_renderer_hdr *hdr = execute_args;
if (hdr->stype_version != 0)
return -EINVAL;
switch (hdr->stype) {
case VIRGL_RENDERER_STRUCTURE_TYPE_SUPPORTED_STRUCTURES:
return vrend_renderer_supported_structures(exe... | 0 |
43,921 | void CLASS derror()
{
if (!data_error) {
dcraw_message (DCRAW_WARNING, "%s: ", ifname_display);
if (feof(ifp))
dcraw_message (DCRAW_WARNING,_("Unexpected end of file\n"));
else
#ifdef HAVE_FSEEKO
dcraw_message (DCRAW_WARNING,_("Corrupt data near 0x%llx\n"),
(INT64) ftello(ifp));
#else
... | 0 |
167,625 | SYSCALL_DEFINE2(sethostname, char __user *, name, int, len)
{
int errno;
char tmp[__NEW_UTS_LEN];
if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN))
return -EPERM;
if (len < 0 || len > __NEW_UTS_LEN)
return -EINVAL;
down_write(&uts_sem);
errno = -EFAULT;
if (!copy_from_user(tmp, name, len)) {... | 0 |
361,152 | NTSTATUS smb_set_file_time(connection_struct *conn,
files_struct *fsp,
const struct smb_filename *smb_fname,
struct smb_file_time *ft,
bool setting_write_time)
{
struct smb_filename smb_fname_base;
uint32 action =
FILE_NOTIFY_CHANGE_LAST_ACCESS
|FILE_NOTIFY_CHANGE_LAST_WRITE
|FILE_NOTIFY... | 0 |
50,229 | fptr_finalize(mrb_state *mrb, struct mrb_io *fptr, int quiet)
{
int saved_errno = 0;
if (fptr == NULL) {
return;
}
if (fptr->fd > 2) {
#ifdef _WIN32
if (fptr->is_socket) {
if (closesocket(fptr->fd) != 0) {
saved_errno = WSAGetLastError();
}
fptr->fd = -1;
}
#endif
if ... | 0 |
136,344 | short CLASS guess_byte_order(int words)
{
uchar test[4][2];
int t = 2, msb;
double diff, sum[2] = {0, 0};
fread(test[0], 2, 2, ifp);
for (words -= 2; words--;)
{
fread(test[t], 2, 1, ifp);
for (msb = 0; msb < 2; msb++)
{
diff = (test[t ^ 2][msb] << 8 | test[t ^ 2][!msb]) - (test[t][msb] <... | 0 |
46,071 | TEST_P(DownstreamProtocolIntegrationTest, LargeRequestUrlAccepted) {
// Send one 95 kB URL with limit 96 kB headers.
testLargeRequestUrl(95, 96);
} | 0 |
199,560 | coolkey_logout(sc_card_t *card)
{
/* when we add multi pin support here, how do we know which pin to logout? */
coolkey_private_data_t * priv = COOLKEY_DATA(card);
u8 pin_ref = 0;
(void) coolkey_apdu_io(card, COOLKEY_CLASS, COOLKEY_INS_LOGOUT, pin_ref, 0, NULL, 0, NULL, NULL,
priv->nonce, sizeof(priv->nonce));
... | 0 |
477,435 | FNAME(prefetch_gpte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
u64 *spte, pt_element_t gpte, bool no_dirty_log)
{
struct kvm_memory_slot *slot;
unsigned pte_access;
gfn_t gfn;
kvm_pfn_t pfn;
if (FNAME(prefetch_invalid_gpte)(vcpu, sp, spte, gpte))
return false;
pgprintk("%s: gpte %llx spte %p\n", ... | 0 |
481,868 | static void extract_umask(ProcessHandle sandbox) {
int fd = process_rootfs_open(sandbox, RUN_UMASK_FILE);
if (fd < 0) {
fprintf(stderr, "Error: cannot open umask file\n");
exit(1);
}
FILE *fp = fdopen(fd, "r");
if (!fp)
errExit("fdopen");
if (fscanf(fp, "%3o", &orig_umask) != 1) {
fprintf(stderr, "Error... | 0 |
267,704 | struct inode *ilookup5_nowait(struct super_block *sb, unsigned long hashval,
int (*test)(struct inode *, void *), void *data)
{
struct hlist_head *head = inode_hashtable + hash(sb, hashval);
struct inode *inode;
spin_lock(&inode_hash_lock);
inode = find_inode(sb, head, test, data);
spin_unlock(&inode_hash_lock)... | 0 |
88,303 | static int vfat_hashi(const struct dentry *dentry, const struct inode *inode,
struct qstr *qstr)
{
struct nls_table *t = MSDOS_SB(dentry->d_sb)->nls_io;
const unsigned char *name;
unsigned int len;
unsigned long hash;
name = qstr->name;
len = vfat_striptail_len(qstr);
hash = init_name_hash();
while (len--)
... | 0 |
231,187 | spnego_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)
{
OM_uint32 ret;
ret = gss_wrap(minor_status,
context_handle,
conf_req_flag,
qop_req,
... | 0 |
277,771 | void CairoOutputDev::clearSoftMask(GfxState * /*state*/) {
if (mask)
cairo_pattern_destroy(mask);
mask = NULL;
}
| 0 |
323,612 | OP(zerof64)
{
set_opf64(PARAM1, 0);
FORCE_RET();
}
| 0 |
278,158 | SAPI_API char *sapi_getenv(char *name, size_t name_len TSRMLS_DC)
{
if (sapi_module.getenv) {
char *value, *tmp = sapi_module.getenv(name, name_len TSRMLS_CC);
if (tmp) {
value = estrdup(tmp);
} else {
return NULL;
}
if (sapi_module.input_filter) {
sapi_module.input_filter(PARSE_STRING, name, &valu... | 0 |
427,276 | remove_thumbnailer (GnomeDesktopThumbnailFactory *factory,
const gchar *path)
{
GnomeDesktopThumbnailFactoryPrivate *priv = factory->priv;
GList *l;
Thumbnailer *thumb;
g_mutex_lock (&priv->lock);
for (l = priv->thumbnailers; l; l = g_list_next (l))
{
thumb = (... | 0 |
355,527 | pick_next(struct cfs_rq *cfs_rq, struct sched_entity *se)
{
if (!cfs_rq->next)
return se;
if (wakeup_preempt_entity(cfs_rq->next, se) != 0)
return se;
return cfs_rq->next;
} | 0 |
142,418 | TIFFCvtNativeToIEEEDouble(TIFF* tif, u_int n, double* f)
{
double_t* fp = (double_t*) f;
while (n-- > 0) {
NATIVE2IEEEDOUBLE(fp);
fp++;
}
} | 0 |
310,112 | void ResourceDispatcherHostImpl::MarkAsTransferredNavigation(
const GlobalRequestID& id) {
GetLoader(id)->MarkAsTransferring();
}
| 0 |
507,664 | static int rsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2)
{
X509_ALGOR *alg = NULL;
switch (op) {
case ASN1_PKEY_CTRL_PKCS7_SIGN:
if (arg1 == 0)
PKCS7_SIGNER_INFO_get0_algs(arg2, NULL, NULL, &alg);
break;
case ASN1_PKEY_CTRL_PKCS7_ENCRYPT:
if (arg1 == ... | 0 |
296,293 | nv_down(cmdarg_T *cap)
{
if (mod_mask & MOD_MASK_SHIFT)
{
// <S-Down> is page down
cap->arg = FORWARD;
nv_page(cap);
}
#if defined(FEAT_QUICKFIX)
// Quickfix window only: view the result under the cursor.
else if (bt_quickfix(curbuf) && cap->cmdchar == CAR)
qf_view_result(FALSE);
#endif
else... | 0 |
114,783 | static inline int hpel_motion_lowres(MpegEncContext *s,
uint8_t *dest, uint8_t *src,
int field_based, int field_select,
int src_x, int src_y,
int width, int height, ptrdiff... | 0 |
122,376 | void ByteCodeGenerator::EndStatement(ParseNode* node)
{
m_writer.EndStatement(node);
} | 0 |
404,617 | ModuleExport void UnregisterSFWImage(void)
{
(void) UnregisterMagickInfo("SFW");
} | 0 |
59,397 | ngx_http_lua_process_vars_option(ngx_http_request_t *r, lua_State *L,
int table, ngx_array_t **varsp)
{
ngx_array_t *vars;
ngx_keyval_t *var;
if (table < 0) {
table = lua_gettop(L) + table + 1;
}
vars = *varsp;
if (vars == NULL) {
vars = ngx_array_create(r-... | 0 |
449,813 | static Token *set_text(struct Token *t, const char *text, size_t len)
{
char *textp;
if (t->len > INLINE_TEXT)
nasm_free(t->text.p.ptr);
nasm_zero(t->text);
t->len = len = tok_check_len(len);
textp = (len > INLINE_TEXT)
? (t->text.p.ptr = nasm_malloc(len+1)) : t->text.a;
memcpy(textp, text,... | 0 |
411,871 | __zzip_parse_root_directory(int fd,
struct _disk_trailer *trailer,
struct zzip_dir_hdr **hdr_return,
zzip_plugin_io_t io)
{
auto struct zzip_disk_entry dirent;
struct zzip_dir_hdr *hdr;
struct zzip_dir_hdr *hdr0;
uint16_... | 0 |
148,046 | xmlValidCtxtPtr xmlNewValidCtxt(void) {
xmlValidCtxtPtr ret;
if ((ret = xmlMalloc(sizeof (xmlValidCtxt))) == NULL) {
xmlVErrMemory(NULL, "malloc failed");
return (NULL);
}
(void) memset(ret, 0, sizeof (xmlValidCtxt));
return (ret);
} | 0 |
39,426 | template<typename T>
CImgDisplay& display(const CImg<T>& img) {
return assign(img); | 0 |
294,577 | static MagickBooleanType WritePTIFImage(const ImageInfo *image_info,
Image *image,ExceptionInfo *exception)
{
Image
*images,
*next,
*pyramid_image;
ImageInfo
*write_info;
MagickBooleanType
status;
PointInfo
resolution;
size_t
columns,
rows;
/*
Create pyramid-encode... | 0 |
224,592 | void HttpProxyClientSocket::Disconnect() {
if (transport_.get())
transport_->socket()->Disconnect();
next_state_ = STATE_NONE;
user_callback_.Reset();
}
| 0 |
221,225 | void CancelUnlockOperation() { cancel_unlock_ = true; }
| 0 |
138,024 | inline String& String::operator=(const StaticString& v) {
m_str = req::ptr<StringData>::attach(v.m_str.get());
return *this;
} | 0 |
149,347 | static int check_map_prog_compatibility(struct bpf_verifier_env *env,
struct bpf_map *map,
struct bpf_prog *prog)
{
/*
* Validate that trace type programs use preallocated hash maps.
*
* For programs attached to PERF events this is mandatory as the
* perf NMI can hit any arbitrary code sequence.
*... | 0 |
123,015 | static void add_timer_randomness(struct timer_rand_state *state, unsigned num)
{
struct entropy_store *r;
struct {
long jiffies;
unsigned cycles;
unsigned num;
} sample;
long delta, delta2, delta3;
sample.jiffies = jiffies;
sample.cycles = random_get_entropy();
sample.num = num;
r = &input_pool;
mix_poo... | 0 |
84,952 | static int pcd_reset(struct pcd_unit *cd)
{
int i, k, flg;
int expect[5] = { 1, 1, 1, 0x14, 0xeb };
pi_connect(cd->pi);
write_reg(cd, 6, 0xa0 + 0x10 * cd->drive);
write_reg(cd, 7, 8);
pcd_sleep(20 * HZ / 1000); /* delay a bit */
k = 0;
while ((k++ < PCD_RESET_TMO) && (status_reg(cd) & IDE_BUSY))
pcd_sleep(... | 0 |
10,364 | const AXObject* AXObject::ariaHiddenRoot() const {
for (const AXObject* object = this; object; object = object->parentObject()) {
if (equalIgnoringCase(object->getAttribute(aria_hiddenAttr), "true"))
return object;
}
return 0;
}
| 1 |
121,123 | void QSvgHandler::pushColorCopy()
{
if (m_colorTagCount.count())
++m_colorTagCount.top();
else
pushColor(Qt::black);
} | 0 |
252,170 | void RenderWidgetHostImpl::IncrementInFlightEventCount() {
++in_flight_event_count_;
if (!is_hidden_)
StartHangMonitorTimeout(hung_renderer_delay_);
}
| 0 |
265,676 | win_setminwidth(void)
{
int room;
int needed;
int first = TRUE;
// loop until there is a 'winminheight' that is possible
while (p_wmw > 0)
{
room = Columns;
needed = frame_minwidth(topframe, NULL);
if (room >= needed)
break;
--p_wmw;
if (first)
{
emsg(_(e_not_enough_room));
... | 0 |
483,691 | int driver_probe_device(struct device_driver *drv, struct device *dev)
{
int ret = 0;
if (!device_is_registered(dev))
return -ENODEV;
pr_debug("bus: '%s': %s: matched device %s with driver %s\n",
drv->bus->name, __func__, dev_name(dev), drv->name);
pm_runtime_get_suppliers(dev);
if (dev->parent)
pm_runti... | 0 |
228,040 | AffineTransform& AffineTransform::multiply(const AffineTransform& other)
{
if (other.isIdentityOrTranslation()) {
if (other.m_transform[4] || other.m_transform[5])
translate(other.m_transform[4], other.m_transform[5]);
return *this;
}
AffineTransform trans;
doMultiply(*this,... | 0 |
509,735 | static uint get_table_structure(char *table, char *db, char *table_type,
char *ignore_flag)
{
my_bool init=0, delayed, write_data, complete_insert;
my_ulonglong num_fields;
char *result_table, *opt_quoted_table;
const char *insert_option;
char name_buff[NAME_LEN+3... | 0 |
267,557 | static int follow_automount(struct path *path, struct nameidata *nd,
bool *need_mntput)
{
struct vfsmount *mnt;
int err;
if (!path->dentry->d_op || !path->dentry->d_op->d_automount)
return -EREMOTE;
/* We don't want to mount if someone's just doing a stat -
* unless they're stat'ing a directory and app... | 0 |
258,036 | const char * keyring_get_resource_name ( KEYRING_HANDLE hd ) {
if ( ! hd || ! hd -> resource ) return NULL ;
return hd -> resource -> fname ;
} | 0 |
224,503 | static void activityLoggedInIsolatedWorldMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
{
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext());
if (contextData && contextData->activityLogge... | 0 |
484,741 | static int read_tlv_buf(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id,
unsigned int __user *buf, unsigned int size)
{
struct snd_kcontrol_volatile *vd = &kctl->vd[snd_ctl_get_ioff(kctl, id)];
unsigned int len;
if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_TLV_READ))
return -ENXIO;
if (kctl->tlv.p == NULL)... | 0 |
285,214 | void FFmpegVideoDecodeEngine::DecodeFrame(scoped_refptr<Buffer> buffer) {
scoped_refptr<VideoFrame> video_frame;
AVPacket packet;
av_init_packet(&packet);
packet.data = const_cast<uint8*>(buffer->GetData());
packet.size = buffer->GetDataSize();
PipelineStatistics statistics;
statistics.video_bytes_decod... | 0 |
319,791 | static void monitor_data_destroy(Monitor *mon)
{
QDECREF(mon->outbuf);
qemu_mutex_destroy(&mon->out_lock);
| 1 |
288,325 | int32_t PepperFlashRendererHost::OnNavigate(
ppapi::host::HostMessageContext* host_context,
const ppapi::URLRequestInfoData& data,
const std::string& target,
bool from_user_action) {
content::PepperPluginInstance* plugin_instance =
host_->GetPluginInstance(pp_instance());
if (!plugin_instance... | 1 |
91,535 | extern "C" void slave_io_thread_detach_vio()
{
THD *thd= current_thd;
if (thd && thd->slave_thread)
thd->clear_active_vio();
} | 0 |
157,001 | static const char *dd_check(struct dump_dir *dd)
{
dd->dd_time = parse_time_file_at(dd->dd_fd, FILENAME_TIME);
if (dd->dd_time < 0)
{
log_warning("Missing file: "FILENAME_TIME);
return FILENAME_TIME;
}
dd->dd_type = load_text_file_at(dd->dd_fd, FILENAME_TYPE, DD_LOAD_TEXT_RETURN_NUL... | 0 |
337,931 | static int svq1_decode_frame_header(GetBitContext *bitbuf, MpegEncContext *s)
{
int frame_size_code;
skip_bits(bitbuf, 8); /* temporal_reference */
/* frame type */
s->pict_type = get_bits(bitbuf, 2) + 1;
if (s->pict_type == 4)
return AVERROR_INVALIDDATA;
if (s->pict_type =... | 0 |
121,463 | void sc_mem_clear(void *ptr, size_t len)
{
if (len > 0) {
#ifdef ENABLE_OPENSSL
OPENSSL_cleanse(ptr, len);
#else
memset(ptr, 0, len);
#endif
}
} | 0 |
394,537 | static int mb86a20s_reset_counters(struct dvb_frontend *fe)
{
struct mb86a20s_state *state = fe->demodulator_priv;
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
int rc, val;
dev_dbg(&state->i2c->dev, "%s called.\n", __func__);
/* Reset the counters, if the channel changed */
if (state->last_frequ... | 0 |
194,987 | void RenderWidgetHostViewAndroid::SetCachedBackgroundColor(SkColor color) {
cached_background_color_ = color;
}
| 0 |
34,974 | void CModule::OnNick(const CNick& Nick, const CString& sNewNick,
const vector<CChan*>& vChans) {} | 0 |
72,521 | load_binpersid(UnpicklerObject *self)
{
PyObject *pid, *obj;
if (self->pers_func) {
PDATA_POP(self->stack, pid);
if (pid == NULL)
return -1;
obj = call_method(self->pers_func, self->pers_func_self, pid);
Py_DECREF(pid);
if (obj == NULL)
return -1... | 0 |
331,103 | static void spapr_nvram_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
VIOsPAPRDeviceClass *k = VIO_SPAPR_DEVICE_CLASS(klass);
k->realize = spapr_nvram_realize;
k->devnode = spapr_nvram_devnode;
k->dt_name = "nvram";
k->dt_type = "nvram";
k->dt_... | 1 |
470,910 | void outflush(const gs_memory_t *mem)
{
gs_lib_ctx_core_t *core = mem->gs_lib_ctx->core;
if (core->stdout_is_redirected) {
if (core->stdout_to_stderr) {
if (!core->stderr_fn)
fflush(core->fstderr);
}
else
gp_fflush(core->fstdout2);
}
else i... | 0 |
445,262 | LogRecordingSink::LogRecordingSink(Logger::DelegatingLogSinkSharedPtr log_sink)
: Logger::SinkDelegate(log_sink) {} | 0 |
54,199 | flatpak_dir_get_config_strv (FlatpakDir *self, char *key)
{
GKeyFile *config = flatpak_dir_get_repo_config (self);
g_auto(GStrv) lang = NULL;
if (config)
{
if (g_key_file_has_key (config, "core", key, NULL))
{
lang = g_key_file_get_string_list (config, "core", key, NULL, NULL);
... | 0 |
55,241 | static inline int apic_test_vector(int vec, void *bitmap)
{
return test_bit(VEC_POS(vec), (bitmap) + REG_POS(vec));
} | 0 |
221,904 | void RenderBox::willBeDestroyed()
{
clearOverrideSize();
if (style() && (style()->logicalHeight().isPercent() || style()->logicalMinHeight().isPercent() || style()->logicalMaxHeight().isPercent()))
RenderBlock::removePercentHeightDescendant(this);
ASSERT(!RenderBlock::hasPercentHeightDescendant(th... | 0 |
19,421 | int xmlHashRemoveEntry ( xmlHashTablePtr table , const xmlChar * name , xmlHashDeallocator f ) {
return ( xmlHashRemoveEntry3 ( table , name , NULL , NULL , f ) ) ;
} | 0 |
225,289 | unsigned HTMLInputElement::width() const
{
return m_inputType->width();
}
| 0 |
51,872 | static int MP4_ReadBox_dac3( stream_t *p_stream, MP4_Box_t *p_box )
{
MP4_Box_data_dac3_t *p_dac3;
MP4_READBOX_ENTER( MP4_Box_data_dac3_t );
p_dac3 = p_box->data.p_dac3;
unsigned i_header;
MP4_GET3BYTES( i_header );
p_dac3->i_fscod = ( i_header >> 22 ) & 0x03;
p_dac3->i_bsid = ( i_header... | 0 |
414,133 | work_address_populate (EContact *card,
gchar **values)
{
address_populate (card, values, E_CONTACT_ADDRESS_LABEL_WORK, E_CONTACT_ADDRESS_WORK);
} | 0 |
62,139 | static void default_print_str(WriterContext *wctx, const char *key, const char *value)
{
DefaultContext *def = wctx->priv;
if (!def->nokey)
printf("%s%s=", wctx->section_pbuf[wctx->level].str, key);
printf("%s\n", value);
} | 0 |
144,328 | virtual void clean() { dirty = false; } | 0 |
200,092 | OMX_ERRORTYPE SoftMPEG4Encoder::releaseEncoder() {
if (mEncParams) {
delete mEncParams;
mEncParams = NULL;
}
if (mHandle) {
delete mHandle;
mHandle = NULL;
}
return OMX_ErrorNone;
}
| 0 |
377,873 | static int audit_set_enabled(u32 state)
{
int rc;
if (state < AUDIT_OFF || state > AUDIT_LOCKED)
return -EINVAL;
rc = audit_do_config_change("audit_enabled", &audit_enabled, state);
if (!rc)
audit_ever_enabled |= !!state;
return rc;
} | 0 |
184,863 | bool RenderLayerCompositor::allocateOrClearCompositedLayerMapping(RenderLayer* layer)
{
bool compositedLayerMappingChanged = false;
bool nonCompositedReasonChanged = updateLayerIfViewportConstrained(layer);
CompositingStateTransitionType compositedLayerUpdate = computeCompositedLayerUpdate(layer);
swit... | 0 |
365,738 | g_delete_wait_obj_from_socket(tbus wait_obj)
{
#ifdef _WIN32
if (wait_obj == 0)
{
return;
}
WSACloseEvent((HANDLE)wait_obj);
#else
#endif
} | 0 |
229,775 | RenderFrameImpl::CreatePortal(mojo::ScopedInterfaceEndpointHandle pipe) {
int proxy_routing_id = MSG_ROUTING_NONE;
base::UnguessableToken portal_token;
GetFrameHost()->CreatePortal(
blink::mojom::PortalAssociatedRequest(std::move(pipe)), &proxy_routing_id,
&portal_token);
RenderFrameProxy* proxy =
... | 0 |
361,145 | static void call_trans2findnotifyfirst(connection_struct *conn,
struct smb_request *req,
char **pparams, int total_params,
char **ppdata, int total_data,
unsigned int max_data_bytes)
{
char *params = *pparams;
uint16 info_level;
if (total_params < 6) {
reply_nterror(req... | 0 |
459,419 | static int uvc_resume(struct usb_interface *intf)
{
return __uvc_resume(intf, 0);
} | 0 |
258,842 | PackOpenBSDElf32x86::generateElfHdr(
OutputFile *fo,
void const *proto,
unsigned const brka
)
{
cprElfHdr3 *const h3 = (cprElfHdr3 *)(void *)&elfout;
memcpy(h3, proto, sizeof(*h3)); // reads beyond, but OK
h3->ehdr.e_ident[Elf32_Ehdr::EI_OSABI] = ei_osabi;
assert(2==get_te16(&h3->ehdr.e_phn... | 0 |
403,691 | static void xfrm_policy_fini(struct net *net)
{
unsigned int sz;
int dir;
flush_work(&net->xfrm.policy_hash_work);
#ifdef CONFIG_XFRM_SUB_POLICY
xfrm_policy_flush(net, XFRM_POLICY_TYPE_SUB, false);
#endif
xfrm_policy_flush(net, XFRM_POLICY_TYPE_MAIN, false);
WARN_ON(!list_empty(&net->xfrm.policy_all));
for (d... | 0 |
372,693 | void CLASS lin_interpolate()
{
int code[16][16][32], size=16, *ip, sum[4];
int f, c, x, y, row, col, shift, color;
#ifdef DCRAW_VERBOSE
if (verbose) fprintf (stderr,_("Bilinear interpolation...\n"));
#endif
#ifdef LIBRAW_LIBRARY_BUILD
RUN_CALLBACK(LIBRAW_PROGRESS_INTERPOLATE,0,3);
#endif
if (filters == 9) ... | 0 |
122,402 | int ethereum_message_verify(const EthereumVerifyMessage *msg) {
if (msg->signature.size != 65 || msg->address.size != 20) {
fsm_sendFailure(FailureType_Failure_SyntaxError, _("Malformed data"));
return 1;
}
uint8_t pubkey[65];
uint8_t hash[32];
ethereum_message_hash(msg->message.bytes, msg->message.... | 0 |
120,973 | INST_HANDLER (add) { // ADD Rd, Rr
// LSL Rd
int d = ((buf[0] >> 4) & 0xf) | ((buf[1] & 1) << 4);
int r = (buf[0] & 0xf) | ((buf[1] & 2) << 3);
ESIL_A ("r%d,r%d,+,", r, d); // Rd + Rr
__generic_add_update_flags_rr(op, d, r); // FLAGS
ESIL_A ("r%d,=,", d); // Rd = result
} | 0 |
326,428 | static int get_cluster_duration(MOVTrack *track, int cluster_idx)
{
int64_t next_dts;
if (cluster_idx >= track->entry)
return 0;
if (cluster_idx + 1 == track->entry)
next_dts = track->track_duration + track->start_dts;
else
next_dts = track->cluster[cluster_idx + 1].d... | 0 |
271,391 | TEST_P(ConnectTerminationIntegrationTest, UpstreamClose) {
initialize();
setUpConnection();
sendBidirectionalData();
// Tear down by closing the upstream connection.
ASSERT_TRUE(fake_raw_upstream_connection_->close());
if (downstream_protocol_ == Http::CodecType::HTTP3) {
// In HTTP/3 end stream will ... | 0 |
277,382 | SandboxPolicyFuchsia::~SandboxPolicyFuchsia() {
if (service_directory_) {
service_directory_task_runner_->DeleteSoon(FROM_HERE,
std::move(service_directory_));
}
}
| 0 |
504,919 | rsvg_filter_set_args (RsvgNode * self, RsvgHandle * ctx, RsvgPropertyBag * atts)
{
const char *value;
RsvgFilter *filter;
filter = (RsvgFilter *) self;
if (rsvg_property_bag_size (atts)) {
if ((value = rsvg_property_bag_lookup (atts, "filterUnits"))) {
if (!strcmp (value, "userSpac... | 0 |
241,863 | void GpuProcessHost::OnAcceleratedSurfaceBuffersSwapped(
const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params) {
TRACE_EVENT0("gpu", "GpuProcessHost::OnAcceleratedSurfaceBuffersSwapped");
base::ScopedClosureRunner scoped_completion_runner(
base::Bind(&AcceleratedSurfaceBuffersSwappedComple... | 0 |
328,237 | void qdev_prop_set_drive(DeviceState *dev, const char *name,
BlockBackend *value, Error **errp)
{
object_property_set_str(OBJECT(dev), value ? blk_name(value) : "",
name, errp);
}
| 1 |
394,459 | static void cli_connect_sock_done(struct tevent_req *subreq)
{
struct tevent_req *req = tevent_req_callback_data(
subreq, struct tevent_req);
struct cli_connect_sock_state *state = tevent_req_data(
req, struct cli_connect_sock_state);
NTSTATUS status;
status = smbsock_any_connect_recv(subreq, &state->fd, NULL,... | 0 |
123,682 | int btrfs_remove_chunk(struct btrfs_trans_handle *trans, u64 chunk_offset)
{
struct btrfs_fs_info *fs_info = trans->fs_info;
struct extent_map *em;
struct map_lookup *map;
u64 dev_extent_len = 0;
int i, ret = 0;
struct btrfs_fs_devices *fs_devices = fs_info->fs_devices;
em = btrfs_get_chunk_map(fs_info, chunk_o... | 0 |
261,410 | static void l2cap_sock_destruct(struct sock *sk)
{
BT_DBG("sk %p", sk);
l2cap_chan_put(l2cap_pi(sk)->chan);
if (l2cap_pi(sk)->rx_busy_skb) {
kfree_skb(l2cap_pi(sk)->rx_busy_skb);
l2cap_pi(sk)->rx_busy_skb = NULL;
}
skb_queue_purge(&sk->sk_receive_queue);
skb_queue_purge(&sk->sk_write_queue);
} | 0 |
20,095 | IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , PayloadSizeChildFrame ) {
ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;
auto waiter = CreatePageLoadMetricsWaiter ( ) ;
waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;
ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server (... | 0 |
357,746 | unsigned long sock_i_ino(struct sock *sk)
{
unsigned long ino;
read_lock(&sk->sk_callback_lock);
ino = sk->sk_socket ? SOCK_INODE(sk->sk_socket)->i_ino : 0;
read_unlock(&sk->sk_callback_lock);
return ino;
} | 0 |
236,277 | void Browser::OpenBookmarkManagerWindow(Profile* profile) {
Browser* browser = Browser::Create(profile);
browser->ShowBookmarkManagerTab();
browser->window()->Show();
}
| 0 |
43,313 | load_dummy_buffer(
char_u *fname,
char_u *dirname_start, // in: old directory
char_u *resulting_dir) // out: new directory
{
buf_T *newbuf;
bufref_T newbufref;
bufref_T newbuf_to_wipe;
int failed = TRUE;
aco_save_T aco;
int readfile_result;
// Allocate a buffer without putti... | 0 |
285,456 | static js_Ast *funexp(js_State *J)
{
js_Ast *a, *b, *c;
a = identifieropt(J);
jsP_expect(J, '(');
b = parameters(J);
jsP_expect(J, ')');
c = funbody(J);
return EXP3(FUN, a, b, c);
}
| 0 |
230,345 | NavigatorServiceWorker* NavigatorServiceWorker::from(Document& document)
{
if (!document.frame() || !document.frame()->domWindow())
return nullptr;
Navigator& navigator = *document.frame()->domWindow()->navigator();
return &from(navigator);
}
| 0 |
315,506 | void AudioOutputController::Close(Task* closed_task) {
DCHECK(closed_task);
DCHECK(message_loop_);
message_loop_->PostTask(
FROM_HERE,
NewRunnableMethod(this, &AudioOutputController::DoClose, closed_task));
}
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.