idx int64 | func string | target int64 |
|---|---|---|
502,242 | WERROR dns_common_extract(struct ldb_context *samdb,
const struct ldb_message_element *el,
TALLOC_CTX *mem_ctx,
struct dnsp_DnssrvRpcRecord **records,
uint16_t *num_records)
{
uint16_t ri;
struct dnsp_DnssrvRpcRecord *recs;
*records = NULL;
*num_records = 0;
recs = talloc_zero_array(mem_ctx, ... | 0 |
218,305 | void OnDestroy(GtkDialog* dialog, PageInfoWindowGtk* page_info) {
delete page_info;
}
| 0 |
18,915 | static char * * subsystems_from_mount_options ( const char * mount_options , char * * kernel_list ) {
char * token , * str , * saveptr = NULL ;
char * * result = NULL ;
size_t result_capacity = 0 ;
size_t result_count = 0 ;
int saved_errno ;
int r ;
str = alloca ( strlen ( mount_options ) + 1 ) ;
strcpy ( str ,... | 0 |
439,304 | static u8 dccp_feat_sp_list_ok(u8 feat_num, u8 const *sp_list, u8 sp_len)
{
if (sp_list == NULL || sp_len < 1)
return 0;
while (sp_len--)
if (!dccp_feat_is_valid_sp_val(feat_num, *sp_list++))
return 0;
return 1;
} | 0 |
339,643 | static void mov_update_dts_shift(MOVStreamContext *sc, int duration)
{
if (duration < 0) {
sc->dts_shift = FFMAX(sc->dts_shift, -duration);
| 1 |
176,772 | static void RunAutofocusTask(ExecutionContext* context) {
if (!context)
return;
Document* document = To<Document>(context);
if (Element* element = document->AutofocusElement()) {
document->SetAutofocusElement(nullptr);
element->focus();
}
}
| 0 |
348,426 | static struct db_arg_chain_tree *_db_tree_get(struct db_arg_chain_tree *tree)
{
struct db_arg_chain_tree *iter;
if (tree->nxt_t) {
iter = tree->nxt_t;
while (iter->lvl_prv != NULL)
iter = iter->lvl_prv;
do {
_db_tree_get(iter);
iter = iter->lvl_nxt;
} while (iter != NULL);
}
if (tree->nxt_f) {
... | 1 |
364,574 | int service_init(int argc __attribute__((unused)),
char **argv __attribute__((unused)),
char **envp __attribute__((unused)))
{
int opt;
const char *prefix;
initialize_nntp_error_table();
if (geteuid() == 0) fatal("must run as the Cyrus user", EC_USAGE);
setproctitle_init(argc, argv, envp);
... | 0 |
97,737 | static int r_cmd_java_print_field_summary (RBinJavaObj *obj, ut16 idx) {
int res = r_bin_java_print_field_idx_summary (obj, idx);
if (res == false) {
eprintf ("Error: Field or Method @ index (%d) not found in the RBinJavaObj.\n", idx);
res = true;
}
return res;
} | 0 |
235,500 | void InstallTemplateURLWithNewTabPage(GURL new_tab_page_url) {
TemplateURLServiceFactory::GetInstance()->SetTestingFactoryAndUse(
profile(),
base::BindRepeating(&TemplateURLServiceFactory::BuildInstanceFor));
TemplateURLService* template_url_service =
TemplateURLServiceFactory::GetForP... | 0 |
72,081 | static int _sx_sasl_gsasl_callback(Gsasl *gsasl_ctx, Gsasl_session *sd, Gsasl_property prop) {
_sx_sasl_sess_t sctx = gsasl_session_hook_get(sd);
_sx_sasl_t ctx = NULL;
struct sx_sasl_creds_st creds = {NULL, NULL, NULL, NULL};
char *value, *node, *host;
int len, i;
/*
* session hook data i... | 0 |
137,696 | void ConvolutionOpBuilder::FillCoreMLWeights() {
if (conv_type_ == ConvolutionType::kDepthwiseConv) {
layer_->mutable_convolution()->set_kernelchannels(1);
layer_->mutable_convolution()->set_outputchannels(weights_->dims->data[3]);
} else {
layer_->mutable_convolution()->set_kernelchannels(weights_->dim... | 0 |
174,860 | InspectorOverlay::InspectorOverlay(Page* page, InspectorClient* client)
: m_page(page)
, m_client(client)
, m_inspectModeEnabled(false)
, m_drawViewSize(false)
, m_drawViewSizeWithGrid(false)
, m_timer(this, &InspectorOverlay::onTimer)
, m_overlayHost(InspectorOverlayHost::create())
{
}... | 0 |
268,816 | TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
const TfLiteEvalTensor* input =
tflite::micro::GetEvalInput(context, node, kInputTensor);
TfLiteEvalTensor* output =
tflite::micro::GetEvalOutput(context, node, kOutputTensor);
reference_ops::Ceil(tflite::micro::GetTensorShape(input),
... | 0 |
152,152 | const Model* GetSimpleStatefulModel() {
static Model* model = nullptr;
if (!model) {
model = const_cast<Model*>(BuildSimpleStatefulModel());
}
return model;
} | 0 |
395,123 | vmxnet3_io_bar1_read(void *opaque, hwaddr addr, unsigned size)
{
VMXNET3State *s = opaque;
uint64_t ret = 0;
switch (addr) {
/* Vmxnet3 Revision Report Selection */
case VMXNET3_REG_VRRS:
VMW_CBPRN("Read BAR1 [VMXNET3_REG_VRRS], size %d", size);
ret = VMX... | 0 |
30,776 | TSReturnCode TSCacheKeyHostNameSet ( TSCacheKey key , const char * hostname , int host_len ) {
sdk_assert ( sdk_sanity_check_cachekey ( key ) == TS_SUCCESS ) ;
sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) hostname ) == TS_SUCCESS ) ;
sdk_assert ( host_len > 0 ) ;
if ( ( ( CacheInfo * ) key ) -> magic != CACH... | 0 |
70,633 | static int b44_uncompress(EXRContext *s, const uint8_t *src, int compressed_size,
int uncompressed_size, EXRThreadData *td) {
const int8_t *sr = src;
int stay_to_uncompress = compressed_size;
int nb_b44_block_w, nb_b44_block_h;
int index_tl_x, index_tl_y, index_out, index_tmp;
... | 0 |
191,186 | bool LaunchBrowser(const CommandLine& command_line, Profile* profile,
const std::wstring& cur_dir, bool process_startup,
int* return_code, BrowserInit* browser_init) {
in_startup = process_startup;
DCHECK(profile);
if (command_line.HasSwitch(switches::kIncognito))
profil... | 0 |
37,667 | static void kvm_vcpu_ioctl_x86_get_xcrs(struct kvm_vcpu *vcpu,
struct kvm_xcrs *guest_xcrs)
{
if (!cpu_has_xsave) {
guest_xcrs->nr_xcrs = 0;
return;
}
guest_xcrs->nr_xcrs = 1;
guest_xcrs->flags = 0;
guest_xcrs->xcrs[0].xcr = XCR_XFEATURE_ENABLED_MASK;
guest_xcrs->xcrs[0].value = vcpu->arch.xcr0;
} | 0 |
274,855 | osd_stat_t get_osd_stat() {
Mutex::Locker l(stat_lock);
++seq;
osd_stat.up_from = up_epoch;
osd_stat.seq = ((uint64_t)osd_stat.up_from << 32) + seq;
return osd_stat;
} | 0 |
459,733 | dissect_kafka_offset_delete_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset,
kafka_api_version_t api_version)
{
proto_item *subti;
proto_tree *subtree;
offset = dissect_kafka_string(tree, hf_kafka_consumer_group, tvb, pinfo, offset, 0, NULL, N... | 0 |
434,823 | pdf_filter_Do_image(fz_context *ctx, pdf_processor *proc, const char *name, fz_image *image)
{
pdf_filter_processor *p = (pdf_filter_processor*)proc;
filter_flush(ctx, p, FLUSH_ALL);
if (p->chain->op_Do_image)
p->chain->op_Do_image(ctx, p->chain, name, image);
copy_resource(ctx, p, PDF_NAME(XObject), name);
} | 0 |
161,554 | generic_arguments_respect_constraints (VerifyContext *ctx, MonoGenericContainer *gc, MonoGenericContext *context, MonoGenericInst *ginst)
{
int i;
for (i = 0; i < ginst->type_argc; ++i) {
MonoType *type = ginst->type_argv [i];
MonoGenericParam *target = mono_generic_container_get_param (gc, i);
MonoGenericParam... | 0 |
103,065 | void xmc4400EthInitGpio(NetInterface *interface)
{
uint32_t temp;
//Configure ETH0.TX_EN (P0.4)
temp = PORT0->IOCR4;
temp &= ~PORT0_IOCR4_PC4_Msk;
temp |= (17UL << PORT0_IOCR4_PC4_Pos);
PORT0->IOCR4 = temp;
//Configure ETH0.MDIO (P2.0), ETH0.RXD0A (P2.2) and ETH0.RXD1A (P2.3)
temp = PORT2->IOC... | 0 |
165,512 | ProCamera2Client::ProCamera2Client(const sp<CameraService>& cameraService,
const sp<IProCameraCallbacks>& remoteCallback,
const String16& clientPackageName,
int cameraId,
int cameraFacing,
int clientPid,
uid_t clientUid,
int servicePid) :
Camera2ClientBase(cameraService, remoteCallback, clientPackageName,
... | 0 |
418,854 | poppler_document_set_modification_date (PopplerDocument *document,
time_t modification_date)
{
g_return_if_fail (POPPLER_IS_DOCUMENT (document));
GooString *str = modification_date == (time_t)-1 ? nullptr : timeToDateString (&modification_date);
document->doc->setDocInfoMo... | 0 |
35,171 | DeepScanLineInputFile::lastScanLineInChunk(int y) const
{
int minY = firstScanLineInChunk(y);
return min(minY+_data->linesInBuffer-1,_data->maxY);
} | 0 |
401,044 | jbig2_sd_glyph(Jbig2SymbolDict *dict, unsigned int id)
{
if (dict == NULL)
return NULL;
return dict->glyphs[id];
} | 0 |
490,438 | static GFINLINE void check_filter_error(GF_Filter *filter, GF_Err e, Bool for_reconnection)
{
GF_Err out_e = e;
Bool kill_filter = GF_FALSE;
if (e>GF_OK) e = GF_OK;
else if (e==GF_IP_NETWORK_EMPTY) e = GF_OK;
if (e) {
u64 diff;
filter->session->last_process_error = e;
filter->nb_errors ++;
if (!filter->n... | 0 |
400,316 | scheme_leading_string (enum url_scheme scheme)
{
return supported_schemes[scheme].leading_string;
} | 0 |
352,943 | 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... | 1 |
166,935 | static void perform_renew(void)
{
bb_info_msg("Performing a DHCP renew");
switch (state) {
case BOUND:
change_listen_mode(LISTEN_KERNEL);
case RENEWING:
case REBINDING:
state = RENEW_REQUESTED;
break;
case RENEW_REQUESTED: /* impatient are we? fine, square 1 */
udhcp_run_script(NULL, "deconfig");
case RE... | 0 |
165,499 | RenderFrameHostImpl::GetNavigationClientFromInterfaceProvider() {
mojom::NavigationClientAssociatedPtr navigation_client_ptr;
GetRemoteAssociatedInterfaces()->GetInterface(&navigation_client_ptr);
return navigation_client_ptr;
}
| 0 |
238,714 | bool Allowed(const Extension* extension, const GURL& url) {
return Allowed(extension, url, -1);
}
| 0 |
300,917 | void requestInit() override {
current_language = language;
current_internal_encoding = internal_encoding;
current_http_output_encoding = http_output_encoding;
current_filter_illegal_mode = filter_illegal_mode;
current_filter_illegal_substchar = filter_illegal_substchar;
if (!encoding_translati... | 0 |
390,973 | static int ntop_host_reset_periodic_stats(lua_State* vm) {
NetworkInterfaceView *ntop_interface = getCurrentInterface(vm);
char *host_ip;
u_int16_t vlan_id = 0;
char buf[64];
Host *h;
ntop->getTrace()->traceEvent(TRACE_INFO, "%s() called", __FUNCTION__);
if(ntop_lua_check(vm, __FUNCTION__, 1, LUA_TSTRIN... | 0 |
419,532 | int sa_fread(int ifd, void *buffer, size_t size, int mode, int oneof)
{
ssize_t n;
if ((n = read(ifd, buffer, size)) < 0) {
fprintf(stderr, _("Error while reading system activity file: %s\n"),
strerror(errno));
close(ifd);
exit(2);
}
if (!n && (mode == SOFT_SIZE))
return 1; /* EOF */
if (n < size) {
... | 0 |
179,140 | ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC)
{
php_stream *tmpstream = NULL;
databuf_t *data = NULL;
char *ptr;
int ch, lastch;
size_t size, rcvd;
size_t lines;
char **ret = NULL;
char **entry;
char *text;
if ((tmpstream = php_stream_fopen_tmpfile()) == NULL) {
php_error_... | 0 |
428,558 | g_file_unmount_mountable_with_operation_finish (GFile *file,
GAsyncResult *result,
GError **error)
{
GFileIface *iface;
g_return_val_if_fail (G_IS_FILE (file), FALSE);
g_return_val_if_fail (G_IS_ASYNC_R... | 0 |
205,843 | explicit FrameFactoryImpl(const service_manager::BindSourceInfo& source_info)
: source_info_(source_info), routing_id_highmark_(-1) {}
| 0 |
348,515 | void brcmf_rx_event(struct device *dev, struct sk_buff *skb)
{
struct brcmf_if *ifp;
struct brcmf_bus *bus_if = dev_get_drvdata(dev);
struct brcmf_pub *drvr = bus_if->drvr;
brcmf_dbg(EVENT, "Enter: %s: rxp=%p\n", dev_name(dev), skb);
if (brcmf_rx_hdrpull(drvr, skb, &ifp))
return;
brcmf_fweh_process_skb(ifp->... | 1 |
67,585 | void TNEFInitAttachment(Attachment *p) {
INITDTR(p->Date);
INITVARLENGTH(p->Title);
INITVARLENGTH(p->MetaFile);
INITDTR(p->CreateDate);
INITDTR(p->ModifyDate);
INITVARLENGTH(p->TransportFilename);
INITVARLENGTH(p->FileData);
INITVARLENGTH(p->IconData);
memset(&(p->RenderData), 0, sizeof(renddata));
... | 0 |
440,245 | str_node_split_last_char(Node* node, OnigEncoding enc)
{
const UChar *p;
Node* rn;
StrNode* sn;
sn = STR_(node);
rn = NULL_NODE;
if (sn->end > sn->s) {
p = onigenc_get_prev_char_head(enc, sn->s, sn->end);
if (p && p > sn->s) { /* can be split. */
rn = node_new_str(p, sn->end);
CHECK_NUL... | 0 |
80,526 | static pj_bool_t ssock_on_accept_complete (pj_ssl_sock_t *ssock_parent,
pj_sock_t newsock,
void *newconn,
const pj_sockaddr_t *src_addr,
int src_addr_len,
pj_status_t accept_status)
{
pj_ssl_sock_t *ssock;
#ifndef SSL_SOCK_IMP_USE_OWN_NETWORK
pj_activesock_cb asock_cb;
#e... | 0 |
265,300 | rfbBool rfbSendFileTransferChunk(rfbClientPtr cl)
{
/* Allocate buffer for compression */
char readBuf[sz_rfbBlockSize];
int bytesRead=0;
int retval=0;
fd_set wfds;
struct timeval tv;
int n;
#ifdef LIBVNCSERVER_HAVE_LIBZ
unsigned char compBuf[sz_rfbBlockSize + 1024];
unsigned long nM... | 0 |
178,631 | void js_setglobal(js_State *J, const char *name)
{
jsR_setproperty(J, J->G, name);
js_pop(J, 1);
}
| 0 |
385,667 | PHP_NAMED_FUNCTION(php_inet_ntop)
{
char *address;
int address_len, af = AF_INET;
char buffer[40];
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &address, &address_len) == FAILURE) {
RETURN_FALSE;
}
#ifdef HAVE_IPV6
if (address_len == 16) {
af = AF_INET6;
} else
#endif
if (address_len != 4) {
... | 0 |
89,451 | bool HHVM_FUNCTION(image2wbmp, const Resource& image,
const String& filename /* = null_string */,
int64_t threshold /* = -1 */) {
return _php_image_output(image, filename, threshold, -1,
PHP_GDIMG_CONVERT_WBM, "WBMP",
(void (*... | 0 |
114,541 | SWFRect SWFShape_getEdgeBounds(SWFShape shape)
{
if(shape->useVersion == SWF_SHAPE4)
return shape->edgeBounds;
else
return NULL;
} | 0 |
207,475 | xsltApplyFallbacks(xsltTransformContextPtr ctxt, xmlNodePtr node,
xmlNodePtr inst) {
xmlNodePtr child;
int ret = 0;
if ((ctxt == NULL) || (node == NULL) || (inst == NULL) ||
(inst->children == NULL))
return(0);
child = inst->children;
while (child != NULL) {
if ((IS_XSLT_ELE... | 0 |
435,830 | static char *guess_dir_name(const char *repo, int is_bundle, int is_bare)
{
const char *end = repo + strlen(repo), *start, *ptr;
size_t len;
char *dir;
/*
* Skip scheme.
*/
start = strstr(repo, "://");
if (start == NULL)
start = repo;
else
start += 3;
/*
* Skip authentication data. The stripping doe... | 0 |
146,490 | int8_t GASpecificConfig(bitfile *ld, mp4AudioSpecificConfig *mp4ASC,
program_config *pce_out)
{
program_config pce;
/* 1024 or 960 */
mp4ASC->frameLengthFlag = faad_get1bit(ld
DEBUGVAR(1,138,"GASpecificConfig(): FrameLengthFlag"));
#ifndef ALLOW_SMALL_FRAMELENGTH
if (mp4... | 0 |
434,416 | static int do_insert_tree(struct quota_handle *h, struct dquot *dquot,
unsigned int * treeblk, int depth)
{
dqbuf_t buf;
int newson = 0, newact = 0;
__le32 *ref;
unsigned int newblk;
int ret = 0;
log_debug("inserting in tree: treeblk=%u, depth=%d", *treeblk, depth);
buf = getdqbuf();
if (!buf)
return -E... | 0 |
386,925 | dns_sd_resolver_changed (GVfsDnsSdResolver *resolver,
GVfsBackendDav *dav_backend)
{
/* TODO: handle when DNS-SD data changes */
} | 0 |
514,167 | _fill_a8_lerp_spans (void *abstract_renderer, int y, int h,
const cairo_half_open_span_t *spans, unsigned num_spans)
{
cairo_image_span_renderer_t *r = abstract_renderer;
if (num_spans == 0)
return CAIRO_STATUS_SUCCESS;
if (likely(h == 1)) {
do {
uint8_t a = mul8_8 (spans[0].coverage, r->bpp... | 0 |
107,383 | SWFInput_length(SWFInput input)
{
int pos = SWFInput_tell(input);
SWFInput_seek(input, 0, SEEK_END);
SWFInput_seek(input, pos, SEEK_SET);
return input->length;
} | 0 |
358,179 | static inline unsigned int dt_type(struct inode *inode)
{
return (inode->i_mode >> 12) & 15;
} | 0 |
98,413 | static int jpc_siz_getparms(jpc_ms_t *ms, jpc_cstate_t *cstate,
jas_stream_t *in)
{
jpc_siz_t *siz = &ms->parms.siz;
unsigned int i;
uint_fast8_t tmp;
/* Eliminate compiler warning about unused variables. */
cstate = 0;
if (jpc_getuint16(in, &siz->caps) ||
jpc_getuint32(in, &siz->width) ||
jpc_getuint32... | 0 |
423,634 | dns_zone_set_parentcatz(dns_zone_t *zone, dns_catz_zone_t *catz) {
REQUIRE(DNS_ZONE_VALID(zone));
REQUIRE(catz != NULL);
LOCK_ZONE(zone);
INSIST(zone->parentcatz == NULL || zone->parentcatz == catz);
zone->parentcatz = catz;
UNLOCK_ZONE(zone);
} | 0 |
204,240 | http_Setup(struct http *hp, struct ws *ws)
{
uint16_t shd;
txt *hd;
unsigned char *hdf;
/* XXX: This is not elegant, is it efficient ? */
shd = hp->shd;
hd = hp->hd;
hdf = hp->hdf;
memset(hp, 0, sizeof *hp);
memset(hd, 0, sizeof *hd * shd);
memset(hdf, 0, sizeof *hdf * shd);
hp->magic = HTTP_MAGIC;
hp->ws ... | 0 |
337,848 | static inline uint32_t reloc_26_val(tcg_insn_unit *pc, tcg_insn_unit *target)
{
assert((((uintptr_t)pc ^ (uintptr_t)target) & 0xf0000000) == 0);
return ((uintptr_t)target >> 2) & 0x3ffffff;
}
| 0 |
354,796 | void make_bad_inode(struct inode *inode)
{
remove_inode_hash(inode);
inode->i_mode = S_IFREG;
inode->i_atime = inode->i_mtime = inode->i_ctime =
current_fs_time(inode->i_sb);
inode->i_op = &bad_inode_ops;
inode->i_fop = &bad_file_ops;
} | 0 |
186,571 | bool RenderProcessHostImpl::FastShutdownForPageCount(size_t count) {
if (render_widget_hosts_.size() == count)
return FastShutdownIfPossible();
return false;
}
| 0 |
428,237 | static bool tcp_has_tx_tstamp(const struct sk_buff *skb)
{
return TCP_SKB_CB(skb)->txstamp_ack ||
(skb_shinfo(skb)->tx_flags & SKBTX_ANY_TSTAMP);
} | 0 |
355,177 | int raw_notifier_chain_unregister(struct raw_notifier_head *nh,
struct notifier_block *n)
{
return notifier_chain_unregister(&nh->head, n);
} | 0 |
377,927 | static void cgw_csum_xor_pos(struct can_frame *cf, struct cgw_csum_xor *xor)
{
u8 val = xor->init_xor_val;
int i;
for (i = xor->from_idx; i <= xor->to_idx; i++)
val ^= cf->data[i];
cf->data[xor->result_idx] = val;
} | 0 |
64,880 | void __cpuinit set_uncached_handler(unsigned long offset, void *addr,
unsigned long size)
{
unsigned long uncached_ebase = CKSEG1ADDR(ebase);
if (!addr)
panic(panic_null_cerr);
memcpy((void *)(uncached_ebase + offset), addr, size);
} | 0 |
65,458 | ExprResolveInteger(struct xkb_context *ctx, const ExprDef *expr,
int *val_rtrn)
{
return ExprResolveIntegerLookup(ctx, expr, val_rtrn, NULL, NULL);
} | 0 |
113,049 | ModuleExport void UnregisterPDBImage(void)
{
(void) UnregisterMagickInfo("PDB");
} | 0 |
133,176 | sec_dist_func4 (xd3_stream *stream, xd3_output *data)
{
int i, ret, x;
for (i = 0; i < ALPHABET_SIZE*20; i += 1)
{
x = mt_exp_rand (10, ALPHABET_SIZE/2);
if ((ret = xd3_emit_byte (stream, & data, x))) { return ret; }
}
return 0;
} | 0 |
259,036 | static void reparent_thread(struct task_struct *p, struct task_struct *father)
{
if (p->pdeath_signal)
/* We already hold the tasklist_lock here. */
group_send_sig_info(p->pdeath_signal, SEND_SIG_NOINFO, p);
list_move_tail(&p->sibling, &p->real_parent->children);
/* If this is a threaded reparent there is no ... | 0 |
436,087 | onig_free_shared_cclass_table(void)
{
if (IS_NOT_NULL(OnigTypeCClassTable)) {
onig_st_foreach(OnigTypeCClassTable, i_free_shared_class, 0);
onig_st_free_table(OnigTypeCClassTable);
OnigTypeCClassTable = NULL;
}
return 0;
} | 0 |
369,595 | PHP_FUNCTION(openssl_cipher_iv_length)
{
char *method;
int method_len;
const EVP_CIPHER *cipher_type;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &method, &method_len) == FAILURE) {
return;
}
if (!method_len) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown cipher algorithm");
RETURN_F... | 0 |
33,000 | static void get_kvmclock(struct kvm *kvm, struct kvm_clock_data *data)
{
struct kvm_arch *ka = &kvm->arch;
unsigned seq;
do {
seq = read_seqcount_begin(&ka->pvclock_sc);
__get_kvmclock(kvm, data);
} while (read_seqcount_retry(&ka->pvclock_sc, seq));
} | 0 |
177,576 | void RenderFrameImpl::didHandleOnloadEvents(blink::WebLocalFrame* frame) {
DCHECK(!frame_ || frame_ == frame);
if (!frame->parent()) {
FrameMsg_UILoadMetricsReportType::Value report_type =
static_cast<FrameMsg_UILoadMetricsReportType::Value>(
frame->dataSource()->request().inputPerfMetricRep... | 0 |
424,150 | void exec_status_dump(const ExecStatus *s, FILE *f, const char *prefix) {
char buf[FORMAT_TIMESTAMP_MAX];
assert(s);
assert(f);
if (s->pid <= 0)
return;
prefix = strempty(prefix);
fprintf(f,
"%sPID: "PID_FMT"\n",
prefix,... | 0 |
195,790 | UNCURL_EXPORT int32_t uncurl_ws_close(struct uncurl_conn *ucc, uint16_t status_code)
{
uint16_t status_code_be = htons(status_code);
return uncurl_ws_write(ucc, (char *) &status_code_be, sizeof(uint16_t), UNCURL_WSOP_CLOSE);
}
| 0 |
277,870 | nfsd4_free_slabs(void)
{
kmem_cache_destroy(odstate_slab);
kmem_cache_destroy(openowner_slab);
kmem_cache_destroy(lockowner_slab);
kmem_cache_destroy(file_slab);
kmem_cache_destroy(stateid_slab);
kmem_cache_destroy(deleg_slab);
}
| 0 |
408,223 | int uprobe_apply(struct inode *inode, loff_t offset,
struct uprobe_consumer *uc, bool add)
{
struct uprobe *uprobe;
struct uprobe_consumer *con;
int ret = -ENOENT;
uprobe = find_uprobe(inode, offset);
if (WARN_ON(!uprobe))
return ret;
down_write(&uprobe->register_rwsem);
for (con = uprobe->consumers; con ... | 0 |
370,461 | int stats_check_uri(struct stream_interface *si, struct http_txn *txn, struct proxy *backend)
{
struct uri_auth *uri_auth = backend->uri_auth;
struct http_msg *msg = &txn->req;
const char *uri = msg->chn->buf->p+ msg->sl.rq.u;
const char *h;
if (!uri_auth)
return 0;
if (txn->meth != HTTP_METH_GET && txn->meth... | 0 |
120,002 | static int genl_lock_done(struct netlink_callback *cb)
{
/* our ops are always const - netlink API doesn't propagate that */
const struct genl_ops *ops = cb->data;
int rc = 0;
if (ops->done) {
genl_lock();
rc = ops->done(cb);
genl_unlock();
}
return rc;
} | 0 |
488,426 | static void ma_put(struct ifmcaddr6 *mc)
{
if (refcount_dec_and_test(&mc->mca_refcnt)) {
in6_dev_put(mc->idev);
kfree_rcu(mc, rcu);
}
} | 0 |
240,906 | static MagickBooleanType SkipDXTMipmaps(Image *image,DDSInfo *dds_info,
int texel_size,ExceptionInfo *exception)
{
register ssize_t
i;
MagickOffsetType
offset;
size_t
h,
w;
/*
Only skip mipmaps for textures and cube maps
*/
if (EOFBlob(image) != MagickFalse)
{
ThrowFileExc... | 0 |
519,646 | longlong Field_datetime_with_dec::val_int(void)
{
MYSQL_TIME ltime;
get_date(<ime, 0);
return TIME_to_ulonglong_datetime(<ime);
} | 0 |
130,873 | static int shash_async_update(struct ahash_request *req)
{
return shash_ahash_update(req, ahash_request_ctx(req));
} | 0 |
149,366 | int64_t timerlistgroup_deadline_ns(QEMUTimerListGroup *tlg)
{
int64_t deadline = -1;
QEMUClockType type;
bool play = replay_mode == REPLAY_MODE_PLAY;
for (type = 0; type < QEMU_CLOCK_MAX; type++) {
if (qemu_clock_use_for_deadline(type)) {
if (!play || type == QEMU_CLOCK_REALTI... | 0 |
373,096 | void PostgreSqlStorage::removeIdentity(UserId user, IdentityId identityId)
{
QSqlDatabase db = logDb();
if (!db.transaction()) {
qWarning() << "PostgreSqlStorage::removeIdentity(): Unable to start Transaction!";
qWarning() << " -" << qPrintable(db.lastError().text());
return;
}
... | 0 |
382,605 | keydb_search_fpr (KEYDB_HANDLE hd, const byte *fpr)
{
KEYDB_SEARCH_DESC desc;
memset (&desc, 0, sizeof desc);
desc.mode = KEYDB_SEARCH_MODE_FPR;
memcpy (desc.u.fpr, fpr, MAX_FINGERPRINT_LEN);
return keydb_search (hd, &desc, 1, NULL);
} | 0 |
32,564 | ParamsRegions ParamsWeightRegions() const override {
return params_desc_.params_weights();
} | 0 |
398,510 | static void megasas_write_sense(MegasasCmd *cmd, SCSISense sense)
{
uint8_t sense_buf[SCSI_SENSE_BUF_SIZE];
uint8_t sense_len = 18;
memset(sense_buf, 0, sense_len);
sense_buf[0] = 0xf0;
sense_buf[2] = sense.key;
sense_buf[7] = 10;
sense_buf[12] = sense.asc;
sense_buf[13] = sense.ascq;
... | 0 |
391,159 | init_ecdh(SSL_CTX * sctx, host_item * host)
{
EC_KEY * ecdh;
uschar * exp_curve;
int nid;
BOOL rv;
#ifdef OPENSSL_NO_ECDH
return TRUE;
#else
if (host) /* No ECDH setup for clients, only for servers */
return TRUE;
# ifndef EXIM_HAVE_ECDH
DEBUG(D_tls)
debug_printf("No OpenSSL API to define ECDH parameters, skippi... | 0 |
404,235 | static int ethtool_set_coalesce(struct net_device *dev, void __user *useraddr)
{
struct ethtool_coalesce coalesce;
if (!dev->ethtool_ops->set_coalesce)
return -EOPNOTSUPP;
if (copy_from_user(&coalesce, useraddr, sizeof(coalesce)))
return -EFAULT;
return dev->ethtool_ops->set_coalesce(dev, &coalesce);
} | 0 |
24,186 | static VALUE ossl_cipher_initialize ( VALUE self , VALUE str ) {
EVP_CIPHER_CTX * ctx ;
const EVP_CIPHER * cipher ;
char * name ;
name = StringValueCStr ( str ) ;
GetCipherInit ( self , ctx ) ;
if ( ctx ) {
ossl_raise ( rb_eRuntimeError , "Cipher already inititalized!" ) ;
}
AllocCipher ( self , ctx ) ;
if ( ... | 0 |
42,316 | int wc_ecc_export_private_raw(ecc_key* key, byte* qx, word32* qxLen,
byte* qy, word32* qyLen, byte* d, word32* dLen)
{
return wc_ecc_export_ex(key, qx, qxLen, qy, qyLen, d, dLen,
WC_TYPE_UNSIGNED_BIN);
} | 0 |
301,691 | static gboolean property_get_roles(const GDBusPropertyTable *property,
DBusMessageIter *iter, void *user_data)
{
struct btd_adapter *adapter = user_data;
DBusMessageIter entry;
dbus_message_iter_open_container(iter, DBUS_TYPE_ARRAY,
DBUS_TYPE_STRING_AS_STRING, &entry);
if (adapter->supported_settings & ... | 0 |
94,310 | LineBitmapRequester::~LineBitmapRequester(void)
{
UBYTE i;
if (m_ppDownsampler) {
for(i = 0;i < m_ucCount;i++) {
delete m_ppDownsampler[i];
}
m_pEnviron->FreeMem(m_ppDownsampler,m_ucCount * sizeof(class DownsamplerBase *));
}
if (m_ppUpsampler) {
for(i = 0;i < m_ucCount;i++) {
dele... | 0 |
408,880 | page_objects_dump(pdf_write_state *opts)
{
page_objects_list *pol = opts->page_object_lists;
int i, j;
for (i = 0; i < pol->len; i++)
{
page_objects *p = pol->page[i];
fprintf(stderr, "Page %d\n", i+1);
for (j = 0; j < p->len; j++)
{
int o = p->object[j];
fprintf(stderr, "\tObject %d: use=%x\n", o, o... | 0 |
513,581 | uint8_t SSL_SESSION_get_max_fragment_length(const SSL_SESSION *session)
{
return session->ext.max_fragment_len_mode;
} | 0 |
429,621 | MagickExport Image *NewMagickImage(const ImageInfo *image_info,
const size_t width,const size_t height,const PixelInfo *background,
ExceptionInfo *exception)
{
CacheView
*image_view;
Image
*image;
MagickBooleanType
status;
ssize_t
y;
assert(image_info != (const ImageInfo *) NULL);
if... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.