idx int64 | func string | target int64 |
|---|---|---|
14,496 | SiteInstance* parent_site_instance() const {
return parent_site_instance_.get();
}
| 1 |
69,304 | static unsigned long nested_ept_get_cr3(struct kvm_vcpu *vcpu)
{
/* return the page table to be shadowed - in our case, EPT12 */
return get_vmcs12(vcpu)->ept_pointer;
} | 0 |
499,114 | static void extract_arg(RzAnalysis *analysis, RzAnalysisFunction *fcn, RzAnalysisOp *op, const char *reg, const char *sign, char type) {
st64 ptr = 0;
char *addr, *esil_buf = NULL;
rz_return_if_fail(analysis && fcn && op && reg);
size_t i;
for (i = 0; i < RZ_ARRAY_SIZE(op->src); i++) {
if (op->src[i] && op->sr... | 0 |
82,212 | R_API bool r_bin_file_set_cur_by_fd(RBin *bin, ut32 bin_fd) {
RBinFile *bf = r_bin_file_find_by_fd (bin, bin_fd);
return bf? r_bin_file_set_cur_binfile (bin, bf): false;
} | 0 |
144,464 | static __always_inline void vmcs_write16(unsigned long field, u16 value)
{
vmcs_check16(field);
if (static_branch_unlikely(&enable_evmcs))
return evmcs_write16(field, value);
__vmcs_writel(field, value);
} | 0 |
104,021 | int wvlan_set_netname(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu,
char *extra)
{
struct wl_private *lp = wl_priv(dev);
unsigned long flags;
int ret = 0;
/*------------------------------------------------------------------------*/
DBG_FUNC("wvlan_set_netna... | 0 |
168,174 | ULONG FormatEtcEnumerator::Release() {
if (InterlockedDecrement(&ref_count_) == 0) {
ULONG copied_refcnt = ref_count_;
delete this;
return copied_refcnt;
}
return ref_count_;
}
| 0 |
242,214 | bool WebContentsImpl::HasActiveEffectivelyFullscreenVideo() const {
return media_web_contents_observer_->HasActiveEffectivelyFullscreenVideo();
}
| 0 |
384,808 | static char *list_of_tainted_modules(const char *proc_modules)
{
struct strbuf *result = strbuf_new();
const char *p = proc_modules;
for (;;)
{
const char *end = strchrnul(p, '\n');
const char *paren = strchrnul(p, '(');
/* We look for a line with this format:
* "kvm_in... | 0 |
304,266 | static void l2cap_sock_init(struct sock *sk, struct sock *parent)
{
struct l2cap_pinfo *pi = l2cap_pi(sk);
struct l2cap_chan *chan = pi->chan;
BT_DBG("sk %p", sk);
if (parent) {
struct l2cap_chan *pchan = l2cap_pi(parent)->chan;
sk->sk_type = parent->sk_type;
bt_sk(sk)->flags = bt_sk(parent)->flags;
cha... | 0 |
35,360 | static int _regulator_is_enabled(struct regulator_dev *rdev)
{
/* A GPIO control always takes precedence */
if (rdev->ena_pin)
return rdev->ena_gpio_state;
/* If we don't know then assume that the regulator is always on */
if (!rdev->desc->ops->is_enabled)
return 1;
return rdev->desc->ops->is_enabled(rdev);
... | 0 |
176,236 | void RenderFrameImpl::OnSerializeAsMHTML(
const FrameMsg_SerializeAsMHTML_Params& params) {
TRACE_EVENT0("page-serialization", "RenderFrameImpl::OnSerializeAsMHTML");
base::TimeTicks start_time = base::TimeTicks::Now();
base::File file = IPC::PlatformFileForTransitToFile(params.destination_file);
const WebS... | 0 |
61,897 | **/
iterator begin() {
return _data; | 0 |
394,180 | int blkid_is_nested_dimension(blkid_partition par,
uint64_t start, uint64_t size)
{
uint64_t pstart;
uint64_t psize;
if (!par)
return 0;
pstart = blkid_partition_get_start(par);
psize = blkid_partition_get_size(par);
if (start < pstart || start + size > pstart + psize)
return 0;
return 1;
} | 0 |
173,763 | void RenderWidgetHostViewGuest::DidUpdateBackingStore(
const gfx::Rect& scroll_rect,
const gfx::Vector2d& scroll_delta,
const std::vector<gfx::Rect>& copy_rects) {
NOTIMPLEMENTED();
}
| 0 |
60,453 | void CL_Connect_f( void ) {
char *server;
const char *serverString;
int argc = Cmd_Argc();
netadrtype_t family = NA_UNSPEC;
if ( argc != 2 && argc != 3 ) {
Com_Printf( "usage: connect [-4|-6] server\n");
return;
}
if(argc == 2)
server = Cmd_Argv(1);
else
{
if(!strcmp(Cmd_Argv(1), "-4"))
family ... | 0 |
426,785 | int rtnl_open_byproto(struct rtnl_handle *rth, unsigned int subscriptions,
int protocol)
{
socklen_t addr_len;
int sndbuf = 32768;
int one = 1;
memset(rth, 0, sizeof(*rth));
rth->proto = protocol;
rth->fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, protocol);
if (rth->fd < 0) {
perror("Cannot open ... | 0 |
135,205 | static int __net_init xfrm6_tunnel_net_init(struct net *net)
{
struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net);
unsigned int i;
for (i = 0; i < XFRM6_TUNNEL_SPI_BYADDR_HSIZE; i++)
INIT_HLIST_HEAD(&xfrm6_tn->spi_byaddr[i]);
for (i = 0; i < XFRM6_TUNNEL_SPI_BYSPI_HSIZE; i++)
INIT_HLIST_HEAD(&xfrm6_t... | 0 |
1,026 | static void _SCSUReset ( UConverter * cnv , UConverterResetChoice choice ) {
SCSUData * scsu = ( SCSUData * ) cnv -> extraInfo ;
if ( choice <= UCNV_RESET_TO_UNICODE ) {
uprv_memcpy ( scsu -> toUDynamicOffsets , initialDynamicOffsets , 32 ) ;
scsu -> toUIsSingleByteMode = TRUE ;
scsu -> toUState = readCommand ;
s... | 1 |
295,653 | const char *X86_group_name(csh handle, unsigned int id)
{
#ifndef CAPSTONE_DIET
return id2name(group_name_maps, ARR_SIZE(group_name_maps), id);
#else
return NULL;
#endif
} | 0 |
205,990 | void BluetoothOptionsHandler::ValidatePasskeyCallback(
const base::ListValue* args) {
}
| 0 |
279,917 | bool SimplifiedBackwardsTextIterator::handleReplacedElement()
{
unsigned index = m_node->nodeIndex();
emitCharacter(',', m_node->parentNode(), index, index + 1);
return true;
}
| 0 |
52,182 | static noinline int hiddev_ioctl_usage(struct hiddev *hiddev, unsigned int cmd, void __user *user_arg)
{
struct hid_device *hid = hiddev->hid;
struct hiddev_report_info rinfo;
struct hiddev_usage_ref_multi *uref_multi = NULL;
struct hiddev_usage_ref *uref;
struct hid_report *report;
struct hid_field *field;
int ... | 0 |
117,154 | static void credential_apply_config(struct credential *c)
{
if (!c->host)
die(_("refusing to work with credential missing host field"));
if (!c->protocol)
die(_("refusing to work with credential missing protocol field"));
if (c->configured)
return;
git_config(credential_config_callback, c);
c->configured = ... | 0 |
385,766 | void TY_(InitMap)(void)
{
MapStr("\r\n\f", newline|white);
MapStr(" \t", white);
MapStr("-.:_", namechar);
MapStr("0123456789", digit|digithex|namechar);
MapStr("abcdefghijklmnopqrstuvwxyz", lowercase|letter|namechar);
MapStr("ABCDEFGHIJKLMNOPQRSTUVWXYZ", uppercase|letter|namechar);
MapStr("... | 0 |
122,570 | explicit UnravelIndexOp(OpKernelConstruction* ctx)
: OpKernel(ctx), dtidx_(DataTypeToEnum<Tidx>::v()) {} | 0 |
75,697 | TfLiteStatus LogicalImpl(TfLiteContext* context, TfLiteNode* node,
bool (*func)(bool, bool)) {
OpData* data = reinterpret_cast<OpData*>(node->user_data);
const TfLiteTensor* input1;
TF_LITE_ENSURE_OK(context,
GetInputSafe(context, node, kInputTensor1, &input1));
con... | 0 |
393,271 | xmlSchemaResolveAttrGroupReferences(xmlSchemaQNameRefPtr ref,
xmlSchemaParserCtxtPtr ctxt)
{
xmlSchemaAttributeGroupPtr group;
if (ref->item != NULL)
return(0);
group = xmlSchemaGetAttributeGroup(ctxt->schema,
ref->name,
ref->targetNamespace);
if (group == NULL) {
xmlSchemaPResCompAt... | 0 |
339,572 | static void s390_pcihost_init_as(S390pciState *s)
{
int i;
S390PCIBusDevice *pbdev;
for (i = 0; i < PCI_SLOT_MAX; i++) {
pbdev = &s->pbdev[i];
memory_region_init(&pbdev->mr, OBJECT(s),
"iommu-root-s390", UINT64_MAX);
address_space_init(&pbdev->as,... | 0 |
46,926 | static void start_cfs_slack_bandwidth(struct cfs_bandwidth *cfs_b)
{
u64 min_left = cfs_bandwidth_slack_period + min_bandwidth_expiration;
/* if there's a quota refresh soon don't bother with slack */
if (runtime_refresh_within(cfs_b, min_left))
return;
/* don't push forwards an existing deferred unthrottle */
... | 0 |
107,801 | static struct task_struct *dup_task_struct(struct task_struct *orig)
{
struct task_struct *tsk;
struct thread_info *ti;
unsigned long *stackend;
int node = tsk_fork_get_node(orig);
int err;
tsk = alloc_task_struct_node(node);
if (!tsk)
return NULL;
ti = alloc_thread_info_node(tsk, node);
if (!ti)
goto fr... | 0 |
92,207 | size_t Magick::Image::scene(void) const
{
return(constImage()->scene);
} | 0 |
33,971 | TEST_F(NgramKernelTest, TestSinglyPadded5gramsWithPreserveShort) {
MakeOp("|", {5}, "LP", "RP", 1, true);
// Batch items are:
// 0: "a", "b", "c", "d"
// 1: "e", "f"
AddInputFromArray<tstring>(TensorShape({6}), {"a", "b", "c", "d", "e", "f"});
AddInputFromArray<int64>(TensorShape({3}), {0, 4, 6});
TF_ASSE... | 0 |
521,785 | Field *Type_handler_double::make_conversion_table_field(TABLE *table,
uint metadata,
const Field *target)
const
{
return new (table->in_use->mem_root)... | 0 |
77,306 | static void __init daring(int *ints, int param, int param2)
{
int i;
for (i = 0; i < ARRAY_SIZE(default_drive_params); i++) {
if (param) {
default_drive_params[i].params.select_delay = 0;
default_drive_params[i].params.flags |=
FD_SILENT_DCL_CLEAR;
} else {
default_drive_params[i].params.select_d... | 0 |
447,764 | idle_thread_data_free (gpointer ptr)
{
IdleThreadData *itd = ptr;
if (itd) {
g_clear_object (&itd->is);
g_clear_object (&itd->idle_cancellable);
g_slice_free (IdleThreadData, itd);
}
} | 0 |
8,459 | file_rlookup(const char *filename) /* I - Filename */
{
int i; /* Looping var */
cache_t *wc; /* Current cache file */
for (i = web_files, wc = web_cache; i > 0; i --, wc ++)
if (!strcmp(wc->name, filename))
return (wc->url);
return (filename);
} | 1 |
166,806 | void WebGLRenderingContextBase::vertexAttrib4fv(GLuint index,
const Vector<GLfloat>& v) {
if (isContextLost())
return;
if (v.size() < 4) {
SynthesizeGLError(GL_INVALID_VALUE, "vertexAttrib4fv", "invalid array");
return;
}
ContextGL()->VertexAttrib4fv(i... | 0 |
77,886 | GF_Box *trex_New()
{
ISOM_DECL_BOX_ALLOC(GF_TrackExtendsBox, GF_ISOM_BOX_TYPE_TREX);
return (GF_Box *)tmp;
} | 0 |
440,608 | static int vxlan_sock_add(struct vxlan_dev *vxlan)
{
bool metadata = vxlan->cfg.flags & VXLAN_F_COLLECT_METADATA;
bool ipv6 = vxlan->cfg.flags & VXLAN_F_IPV6 || metadata;
bool ipv4 = !ipv6 || metadata;
int ret = 0;
RCU_INIT_POINTER(vxlan->vn4_sock, NULL);
#if IS_ENABLED(CONFIG_IPV6)
RCU_INIT_POINTER(vxlan->vn6_s... | 0 |
114,064 | void put_task_stack(struct task_struct *tsk)
{
if (atomic_dec_and_test(&tsk->stack_refcount))
release_task_stack(tsk);
} | 0 |
66,576 | GF_Err gf_isom_clone_pssh(GF_ISOFile *output, GF_ISOFile *input, Bool in_moof) {
GF_Box *a;
u32 i;
i = 0;
while ((a = (GF_Box *)gf_list_enum(input->moov->child_boxes, &i))) {
if (a->type == GF_ISOM_BOX_TYPE_PSSH) {
GF_List **child_boxes = &output->moov->child_boxes;
#ifndef GPAC_DISABLE_ISOM_FRAGMENTS
if (... | 0 |
294,022 | main(int argc, char* argv[])
{
#if !HAVE_DECL_OPTARG
extern int optind;
#endif
uint16 defconfig = (uint16) -1;
uint16 deffillorder = 0;
uint32 deftilewidth = (uint32) 0;
uint32 deftilelength = (uint32) 0;
uint32 defrowsperstrip = (uint32) 0;
uint32 dirnum = 0;
TIFF *in = NULL;
TIFF *out = NULL;
... | 0 |
307,017 | void log_error(const char *mesg)
{
fprintf(stderr, "%s%s", get_commonlog_time(), mesg);
}
| 0 |
202,183 | bool Document::ParseQualifiedName(const AtomicString& qualified_name,
AtomicString& prefix,
AtomicString& local_name,
ExceptionState& exception_state) {
unsigned length = qualified_name.length();
if (!length) {
... | 0 |
385,048 | static size_t curl_write_header(char *data, size_t size, size_t nmemb, void *ctx)
{
php_curl *ch = (php_curl *) ctx;
php_curl_write *t = ch->handlers->write_header;
size_t length = size * nmemb;
TSRMLS_FETCH_FROM_CTX(ch->thread_ctx);
switch (t->method) {
case PHP_CURL_STDOUT:
/* Handle spec... | 0 |
79,521 | static void __collapse_huge_page_copy(pte_t *pte, struct page *page,
struct vm_area_struct *vma,
unsigned long address,
spinlock_t *ptl)
{
pte_t *_pte;
for (_pte = pte; _pte < pte+HPAGE_PMD_NR; _pte++) {
pte_t pteval = *_pte;
struct page *src_page;
if (pte_none(pteval)) {
clear... | 0 |
462,438 | static inline void ConvertXYZToAdobe98(const double X,const double Y,
const double Z,double *red,double *green,double *blue)
{
double
b,
g,
r;
assert(red != (double *) NULL);
assert(green != (double *) NULL);
assert(blue != (double *) NULL);
r=2.041587903810746500*X-0.56500697427885960*Y-0.3447... | 0 |
512,669 | char *ssh_get_user_home_dir(void)
{
char *szPath = NULL;
struct passwd pwd;
struct passwd *pwdbuf = NULL;
char buf[NSS_BUFLEN_PASSWD] = {0};
int rc;
rc = getpwuid_r(getuid(), &pwd, buf, NSS_BUFLEN_PASSWD, &pwdbuf);
if (rc != 0 || pwdbuf == NULL ) {
szPath = getenv("HOME");
i... | 0 |
188,030 | void DevToolsWindow::SetWindowBounds(int x, int y, int width, int height) {
if (!IsDocked())
browser_->window()->SetBounds(gfx::Rect(x, y, width, height));
}
| 0 |
204,884 | void Document::write(const SegmentedString& text, Document* ownerDocument)
{
NestingLevelIncrementer nestingLevelIncrementer(m_writeRecursionDepth);
m_writeRecursionIsTooDeep = (m_writeRecursionDepth > 1) && m_writeRecursionIsTooDeep;
m_writeRecursionIsTooDeep = (m_writeRecursionDepth > cMaxWriteRecursionD... | 0 |
446,505 | virDomainDefGetIOThreadSched(virDomainDefPtr def,
unsigned int iothread)
{
virDomainIOThreadIDDefPtr iothrinfo;
if (!(iothrinfo = virDomainIOThreadIDFind(def, iothread))) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("Cannot find 'iothread' : %u"),
... | 0 |
106,862 | static void vop_bh_handler(struct work_struct *work)
{
struct vop_vdev *vdev = container_of(work, struct vop_vdev,
virtio_bh_work);
if (vdev->dc->used_address_updated)
vop_virtio_init_post(vdev);
if (vdev->dc->vdev_reset)
vop_virtio_device_reset(vdev);
vdev->poll_wake = 1;
wake_up(&vdev->waitq);
} | 0 |
516,361 | MaybeLocal<Value> GetCipherVersion(Environment* env, const SSL_CIPHER* cipher) {
return GetCipherValue(env, cipher, SSL_CIPHER_get_version);
} | 0 |
16,324 | void irq_info ( Monitor * mon ) {
} | 0 |
35,046 | static ssize_t ib_ucm_event(struct ib_ucm_file *file,
const char __user *inbuf,
int in_len, int out_len)
{
struct ib_ucm_context *ctx;
struct ib_ucm_event_get cmd;
struct ib_ucm_event *uevent;
int result = 0;
if (out_len < sizeof(struct ib_ucm_event_resp))
return -ENOSPC;
if (copy_from_user(&cmd... | 0 |
113,919 | static int mailimf_minute_parse(const char * message, size_t length,
size_t * indx, int * result)
{
uint32_t minute;
int r;
r = mailimf_number_parse(message, length, indx, &minute);
if (r != MAILIMF_NO_ERROR)
return r;
* result = minute;
return MAILIMF_NO_ERROR;
} | 0 |
19,068 | static void e1000e_set_rxcsum ( E1000ECore * core , int index , uint32_t val ) {
core -> mac [ RXCSUM ] = val ;
e1000e_update_rx_offloads ( core ) ;
} | 0 |
424,973 | libssh2_hostkey_methods(void)
{
return hostkey_methods;
} | 0 |
346,183 | PHP_METHOD(Phar, addFile)
{
char *fname, *localname = NULL;
size_t fname_len, localname_len = 0;
php_stream *resource;
zval zresource;
PHAR_ARCHIVE_OBJECT();
if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|s", &fname, &fname_len, &localname, &localname_len) == FAILURE) {
return;
}
#if PHP_API_VERSION < 201004... | 1 |
408,173 | stdin_ungetc(int c)
{
return ungetc(c, stdin);
} | 0 |
104,251 | static MagickBooleanType WriteJPEGImage(const ImageInfo *image_info,
Image *image,ExceptionInfo *exception)
{
const char
*option,
*sampling_factor,
*value;
ErrorManager
error_manager;
Image
*volatile volatile_image;
int
colorspace,
quality;
JSAMPLE
*volatile jpeg_pixels;
... | 0 |
94,842 | String StringUtil::UUDecode(const String& input) {
if (!input.empty()) {
return string_uudecode(input.data(), input.size());
}
return String();
} | 0 |
210,645 | bool ThreadSafeMatch(const Vector<UChar, inlineCapacity>& vector,
const QualifiedName& qname) {
return EqualIgnoringNullity(vector, qname.LocalName().Impl());
}
| 0 |
439,702 | void SplashOutputDev::paintTransparencyGroup(GfxState *state, const double *bbox) {
SplashBitmap *tBitmap;
SplashTransparencyGroup *transpGroup;
bool isolated;
int tx, ty;
tx = transpGroupStack->tx;
ty = transpGroupStack->ty;
tBitmap = transpGroupStack->tBitmap;
isolated = transpGroupStack->isolated;
... | 0 |
312,411 | GLES2DecoderPassthroughImpl::GLES2DecoderPassthroughImpl(
DecoderClient* client,
CommandBufferServiceBase* command_buffer_service,
Outputter* outputter,
ContextGroup* group)
: GLES2Decoder(client, command_buffer_service, outputter),
commands_to_process_(0),
debug_marker_manager_(),
... | 0 |
35,003 | sc_get_iasecc_driver(void)
{
return sc_get_driver();
} | 0 |
282,324 | bool IsReparentedNode(const AXNode* node) {
return IsNewNode(node) && IsRemovedNode(node);
}
| 0 |
203,412 | void JSArray::visitChildren(SlotVisitor& visitor)
{
ASSERT_GC_OBJECT_INHERITS(this, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(structure()->typeInfo().overridesVisitChildren());
visitChildrenDirect(visitor);
}
| 0 |
37,454 | writeCustomTiffTags(TIFF *tif,
NUMA *natags,
SARRAY *savals,
SARRAY *satypes,
NUMA *nasizes)
{
char *sval, *type;
l_int32 i, n, ns, size, tagval, val;
l_float64 dval;
l_uint32 uval, uval2;
PROCNAME("writeCustomTif... | 0 |
362,325 | static void svm_complete_interrupts(struct vcpu_svm *svm)
{
u8 vector;
int type;
u32 exitintinfo = svm->vmcb->control.exit_int_info;
unsigned int3_injected = svm->int3_injected;
svm->int3_injected = 0;
if (svm->vcpu.arch.hflags & HF_IRET_MASK)
svm->vcpu.arch.hflags &= ~(HF_NMI_MASK | HF_IRET_MASK);
svm->vcp... | 0 |
452,937 | void notify_callback(struct smbd_server_connection *sconn,
void *private_data, struct timespec when,
const struct notify_event *e)
{
struct notify_fsp_state state = {
.notified_fsp = private_data, .when = when, .e = e
};
files_forall(sconn, notify_fsp_cb, &state);
} | 0 |
324,288 | void helper_ldda_asi(target_ulong addr, int asi, int rd)
{
if ((asi < 0x80 && (env->pstate & PS_PRIV) == 0)
|| ((env->def->features & CPU_FEATURE_HYPV)
&& asi >= 0x30 && asi < 0x80
&& !(env->hpstate & HS_PRIV)))
raise_exception(TT_PRIV_ACT);
switch (asi) {
c... | 1 |
213,486 | base::string16 ChromeContentBrowserClient::GetAppContainerSidForSandboxType(
int sandbox_type) const {
switch (sandbox_type) {
case service_manager::SANDBOX_TYPE_RENDERER:
return base::string16(install_static::GetSandboxSidPrefix()) +
L"129201922";
case service_manager::SANDBOX_TYPE_UTI... | 0 |
252,252 | TransportDIB::Id TransportDIB::id() const {
return key_;
}
| 0 |
366,580 | MP4::Properties::~Properties()
{
delete d;
} | 0 |
212,356 | bool OMX::isSecure(node_id node) {
OMXNodeInstance *instance = findInstance(node);
return (instance == NULL ? false : instance->isSecure());
}
| 0 |
385,673 | ftp_rmdir(ftpbuf_t *ftp, const char *dir)
{
if (ftp == NULL) {
return 0;
}
if (!ftp_putcmd(ftp, "RMD", dir)) {
return 0;
}
if (!ftp_getresp(ftp) || ftp->resp != 250) {
return 0;
}
return 1;
} | 0 |
441,911 | void task_join_group_stop(struct task_struct *task)
{
/* Have the new thread join an on-going signal group stop */
unsigned long jobctl = current->jobctl;
if (jobctl & JOBCTL_STOP_PENDING) {
struct signal_struct *sig = current->signal;
unsigned long signr = jobctl & JOBCTL_STOP_SIGMASK;
unsigned long gstop = J... | 0 |
54,002 | append_ga_line(garray_T *gap)
{
// Remove trailing CR.
if (gap->ga_len > 0
&& !curbuf->b_p_bin
&& ((char_u *)gap->ga_data)[gap->ga_len - 1] == CAR)
--gap->ga_len;
ga_append(gap, NUL);
ml_append(curwin->w_cursor.lnum++, gap->ga_data, 0, FALSE);
gap->ga_len = 0;
} | 0 |
70,117 | f_assert_report(typval_T *argvars, typval_T *rettv)
{
rettv->vval.v_number = assert_report(argvars);
} | 0 |
482,086 | static long ToL(unsigned char *puffer)
{
return (puffer[0] | puffer[1] << 8 | puffer[2] << 16 | puffer[3] << 24);
} | 0 |
324,308 | static uint16_t nvme_dma_read_prp(NvmeCtrl *n, uint8_t *ptr, uint32_t len,
uint64_t prp1, uint64_t prp2)
{
QEMUSGList qsg;
QEMUIOVector iov;
uint16_t status = NVME_SUCCESS;
if (nvme_map_prp(&qsg, &iov, prp1, prp2, len, n)) {
return NVME_INVALID_FIELD | NVME_DNR;
}
if (qsg.... | 1 |
401,984 | xmlFreeElementTable(xmlElementTablePtr table) {
xmlHashFree(table, (xmlHashDeallocator) xmlFreeElement);
} | 0 |
495,074 | piv_cache_internal_data(sc_card_t *card, int enumtag)
{
piv_private_data_t * priv = PIV_DATA(card);
const u8* tag;
const u8* body;
size_t taglen;
size_t bodylen;
int compressed = 0;
/* if already cached */
if (priv->obj_cache[enumtag].internal_obj_data && priv->obj_cache[enumtag].internal_obj_len) {
sc_log(c... | 0 |
462,167 | static void sungem_reset_rx(SunGEMState *s)
{
trace_sungem_rx_reset();
/* XXX Do RXCFG */
/* XXX Check value */
s->rxdmaregs[RXDMA_FSZ >> 2] = 0x140;
s->rxdmaregs[RXDMA_DONE >> 2] = 0;
s->rxdmaregs[RXDMA_KICK >> 2] = 0;
s->rxdmaregs[RXDMA_CFG >> 2] = 0x1000010;
s->rxdmaregs[RXDMA_PTHRES... | 0 |
68,031 | static void cassignop2(JF, js_Ast *lhs, int postfix)
{
switch (lhs->type) {
case EXP_IDENTIFIER:
emitline(J, F, lhs);
if (postfix) emit(J, F, OP_ROT2);
emitlocal(J, F, OP_SETLOCAL, OP_SETVAR, lhs);
break;
case EXP_INDEX:
emitline(J, F, lhs);
if (postfix) emit(J, F, OP_ROT4);
emit(J, F, OP_SETPROP);
b... | 0 |
317,091 | void DidGetModifiedOrigins(const std::set<GURL>& origins, StorageType type) {
modified_origins_ = origins;
modified_origins_type_ = type;
}
| 0 |
81,071 | bit_read_BL (Bit_Chain *dat)
{
const unsigned char two_bit_code = bit_read_BB (dat);
if (two_bit_code == 0)
return bit_read_RL (dat);
else if (two_bit_code == 1)
return bit_read_RC (dat) & 0xFF;
else if (two_bit_code == 2)
return 0;
else /* if (two_bit_code == 3) */
{
loglevel = dat->opt... | 0 |
91,215 | int generic_key_instantiate(struct key *key, struct key_preparsed_payload *prep)
{
int ret;
pr_devel("==>%s()\n", __func__);
ret = key_payload_reserve(key, prep->quotalen);
if (ret == 0) {
key->type_data.p[0] = prep->type_data[0];
key->type_data.p[1] = prep->type_data[1];
rcu_assign_keypointer(key, prep->pa... | 0 |
441,266 | void RGWGetBucketPolicyStatus_ObjStore_S3::send_response()
{
if (op_ret) {
set_req_state_err(s, op_ret);
}
dump_errno(s);
end_header(s, this, "application/xml");
dump_start(s);
s->formatter->open_object_section_in_ns("PolicyStatus", XMLNS_AWS_S3);
// https://docs.aws.amazon.com/AmazonS3/latest/API/RE... | 0 |
493,897 | static CURLcode expect100(struct Curl_easy *data,
struct connectdata *conn,
struct dynbuf *req)
{
CURLcode result = CURLE_OK;
data->state.expect100header = FALSE; /* default to false unless it is set
to TRUE below */
if(... | 0 |
399,786 | static int vnc_update_client(VncState *vs, int has_dirty)
{
if (vs->need_update && vs->csock != -1) {
VncDisplay *vd = vs->vd;
VncJob *job;
int y;
int width, height;
int n = 0;
if (vs->output.offset && !vs->audio_cap && !vs->force_update)
/* kernel send ... | 0 |
112,971 | explicit SSLAcceptDestroyRunner(EventBase* evb, SSLHandshakeBase* base)
: SSLAcceptEvbRunner(evb), sslBase_(base) {} | 0 |
347,057 | MemTxResult address_space_read_continue(AddressSpace *as, hwaddr addr,
MemTxAttrs attrs, uint8_t *buf,
int len, hwaddr addr1, hwaddr l,
MemoryRegion *mr)
{
uint8_t *ptr;
uint64_t val;
MemT... | 1 |
188,945 | NPObjectAccessorWithIdentifier::~NPObjectAccessorWithIdentifier() {
Var::PluginReleasePPVar(identifier_);
}
| 0 |
320,582 | static void pmac_ide_writeb (void *opaque,
target_phys_addr_t addr, uint32_t val)
{
MACIOIDEState *d = opaque;
addr = (addr & 0xFFF) >> 4;
switch (addr) {
case 1 ... 7:
ide_ioport_write(&d->bus, addr, val);
break;
case 8:
case 22:
... | 0 |
176,688 | CSSPaintValue::CSSPaintValue(
CSSCustomIdentValue* name,
Vector<scoped_refptr<CSSVariableData>>& variable_data)
: CSSPaintValue(name) {
argument_variable_data_.swap(variable_data);
}
| 0 |
485,337 | DEFUN (clear_ip_bgp_instance_all_ipv4_soft_in,
clear_ip_bgp_instance_all_ipv4_soft_in_cmd,
"clear ip bgp view WORD * ipv4 (unicast|multicast) soft in",
CLEAR_STR
IP_STR
BGP_STR
"BGP view\n"
"view name\n"
"Clear all peers\n"
"Address family\n"
"Addres... | 0 |
320,275 | static void dvbsub_parse_region_segment(AVCodecContext *avctx,
const uint8_t *buf, int buf_size)
{
DVBSubContext *ctx = avctx->priv_data;
const uint8_t *buf_end = buf + buf_size;
int region_id, object_id;
DVBSubRegion *region;
DVBSubObject *object;
... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.