idx int64 | func string | target int64 |
|---|---|---|
375,799 | static void aer_log_del_err(PCIEAERLog *aer_log, PCIEAERErr *err)
{
assert(aer_log->log_num);
*err = aer_log->log[0];
aer_log->log_num--;
memmove(&aer_log->log[0], &aer_log->log[1],
aer_log->log_num * sizeof *err);
} | 0 |
156,733 | mono_image_register_token (MonoDynamicImage *assembly, guint32 token, MonoObject *obj)
{
MonoObject *prev = mono_g_hash_table_lookup (assembly->tokens, GUINT_TO_POINTER (token));
if (prev) {
/* There could be multiple MethodInfo objects with the same token */
//g_assert (prev == obj);
} else {
mono_g_hash_tabl... | 0 |
93,297 | static MagickBooleanType IsJ2K(const unsigned char *magick,const size_t length)
{
if (length < 4)
return(MagickFalse);
if (memcmp(magick,"\xff\x4f\xff\x51",4) == 0)
return(MagickTrue);
return(MagickFalse);
} | 0 |
344,017 | rfbBool rfbProcessFileTransfer(rfbClientPtr cl, uint8_t contentType, uint8_t contentParam, uint32_t size, uint32_t length)
{
char *buffer=NULL, *p=NULL;
int retval=0;
char filename1[MAX_PATH];
char filename2[MAX_PATH];
char szFileTime[MAX_PATH];
struct stat statbuf;
uint32_t sizeHtmp=0;
... | 1 |
344,806 | xps_parse_gradient_stops(xps_document *doc, char *base_uri, fz_xml *node,
struct stop *stops, int maxcount)
{
fz_colorspace *colorspace;
float sample[8];
float rgb[3];
int before, after;
int count;
int i;
/* We may have to insert 2 extra stops when postprocessing */
maxcount -= 2;
count = 0;
while (node &&... | 1 |
316,581 | static MagickBooleanType WriteJNGImage(const ImageInfo *image_info,Image *image)
{
MagickBooleanType
logging,
status;
MngInfo
*mng_info;
/*
Open image file.
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickSignature);
assert(image != (Image *) NULL... | 0 |
222,903 | void Document::processViewport(const String& features, ViewportArguments::Type origin)
{
ASSERT(!features.isNull());
if (origin < m_viewportArguments.type)
return;
m_viewportArguments = ViewportArguments(origin);
processArguments(features, (void*)&m_viewportArguments, &setViewportFeature);
... | 0 |
496,521 | moreLeft(T D) : T(D) {} | 0 |
458,487 | flow_compose_l7(struct dp_packet *p, const void *l7, size_t l7_len)
{
if (l7_len) {
if (l7) {
dp_packet_put(p, l7, l7_len);
} else {
uint8_t *payload = dp_packet_put_uninit(p, l7_len);
for (size_t i = 0; i < l7_len; i++) {
payload[i] = i;
... | 0 |
383,324 | ecdsa_qbits_from_Q (unsigned int qbits)
{
if ((qbits%8) > 3)
{
log_error (_("ECDSA public key is expected to be in SEC encoding "
"multiple of 8 bits\n"));
return 0;
}
qbits -= qbits%8;
qbits /= 2;
return qbits;
} | 0 |
400,964 | static int audit_null_notify(MYSQL_THD thd,
mysql_event_class_t event_class,
const void *event)
{
char buffer[2000]= { 0, };
int buffer_data= 0;
unsigned long event_subclass= (unsigned long)*(int *)event;
const char *order_str= (const char *)THDVAR(thd, ... | 0 |
485,245 | safi2str (safi_t safi)
{
if (safi == SAFI_UNICAST)
return "SAFI_UNICAST";
else if (safi == SAFI_MULTICAST)
return "SAFI_MULTICAST";
else if (safi == SAFI_MPLS_VPN || safi == BGP_SAFI_VPNV4)
return "SAFI_MPLS_VPN";
else
return "Unknown SAFI";
} | 0 |
107,670 | //! Load image from a PANDORE-5 file \newinstance.
static CImg<T> get_load_pandore(const char *const filename) {
return CImg<T>().load_pandore(filename); | 0 |
277,380 | void AutomationProvider::OnChannelConnected(int pid) {
is_connected_ = true;
LOG(INFO) << "Testing channel connected, sending hello message";
channel_->Send(new AutomationMsg_Hello(GetProtocolVersion()));
if (initial_loads_complete_)
Send(new AutomationMsg_InitialLoadsComplete());
}
| 0 |
244,866 | int ff_h263_decode_picture_header(MpegEncContext *s)
{
int format, width, height, i, ret;
uint32_t startcode;
align_get_bits(&s->gb);
startcode= get_bits(&s->gb, 22-8);
for(i= get_bits_left(&s->gb); i>24; i-=8) {
startcode = ((startcode << 8) | get_bits(&s->gb, 8)) & 0x003FFFFF;
... | 0 |
239,768 | free_realm_contexts(krb5_context context, pkinit_kdc_context *realm_contexts)
{
int i;
if (realm_contexts == NULL)
return;
for (i = 0; realm_contexts[i] != NULL; i++)
pkinit_server_plugin_fini_realm(context, realm_contexts[i]);
pkiDebug("%s: freeing context at %p\n", __FUNCTION__, realm... | 0 |
354,270 | static int sqlite_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC)
{
pdo_sqlite_db_handle *H = (pdo_sqlite_db_handle *)dbh->driver_data;
pdo_sqlite_stmt *S = ecalloc(1, sizeof(pdo_sqlite_stmt));
int i;
const char *tail;
S->H = H;
stmt->driver_data =... | 0 |
164,729 | XML_SetParamEntityParsing(XML_Parser parser,
enum XML_ParamEntityParsing peParsing)
{
if (parser == NULL)
return 0;
/* block after XML_Parse()/XML_ParseBuffer() has been called */
if (parser->m_parsingStatus.parsing == XML_PARSING || parser->m_parsingStatus.parsing == XML_SUSPENDED)
... | 0 |
246,572 | static void _php_curl_close(zend_resource *rsrc)
{
php_curl *ch = (php_curl *) rsrc->ptr;
_php_curl_close_ex(ch);
}
| 0 |
346,394 | static size_t php_bz2iop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC)
{
struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *) stream->abstract;
return BZ2_bzwrite(self->bz_file, (char*)buf, count);
} | 1 |
11,661 | void NaClProcessHost::OnProcessLaunched() {
FilePath irt_path;
const char* irt_path_var = getenv("NACL_IRT_LIBRARY");
if (irt_path_var != NULL) {
FilePath::StringType string(irt_path_var,
irt_path_var + strlen(irt_path_var));
irt_path = FilePath(string);
} else {
File... | 1 |
187,912 | String8::String8(const char32_t* o, size_t len)
: mString(allocFromUTF32(o, len))
{
}
| 0 |
315,678 | void GLES2Implementation::BindBufferRangeHelper(GLenum target,
GLuint index,
GLuint buffer_id,
GLintptr offset,
GLsizeiptr size)... | 0 |
45,156 | best_effort_strncat_from_utf16le(struct archive_string *as, const void *_p,
size_t bytes, struct archive_string_conv *sc)
{
return (best_effort_strncat_from_utf16(as, _p, bytes, sc, 0));
} | 0 |
116,784 | static void derive_crypt_complete(struct crypto_async_request *req, int rc)
{
struct fscrypt_completion_result *ecr = req->data;
if (rc == -EINPROGRESS)
return;
ecr->res = rc;
complete(&ecr->completion);
} | 0 |
289,262 | long jas_stream_length ( jas_stream_t * stream ) {
long oldpos ;
long pos ;
if ( ( oldpos = jas_stream_tell ( stream ) ) < 0 ) {
return - 1 ;
}
if ( jas_stream_seek ( stream , 0 , SEEK_END ) < 0 ) {
return - 1 ;
}
if ( ( pos = jas_stream_tell ( stream ) ) < 0 ) {
return - 1 ;
}
if ( jas_stream_seek ( stream... | 0 |
54,373 | QPDF::getWarnings()
{
std::vector<QPDFExc> result = this->m->warnings;
this->m->warnings.clear();
return result;
} | 0 |
340,558 | static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
{
MOVContext *mov = s->priv_data;
MOVStreamContext *sc;
AVIndexEntry *sample;
AVStream *st = NULL;
int ret;
mov->fc = s;
retry:
sample = mov_find_next_sample(s, &st);
if (!sample) {
mov->found_mdat = 0;
if (!m... | 1 |
281,297 | bool Extension::LoadManifestVersion(string16* error) {
if (manifest_->value()->HasKey(keys::kManifestVersion)) {
int manifest_version = 1;
if (!manifest_->GetInteger(keys::kManifestVersion, &manifest_version) ||
manifest_version < 1) {
*error = ASCIIToUTF16(errors::kInvalidManifestVersion);
... | 0 |
104,983 | rdpsnd_queue_init(void)
{
queue_pending = queue_lo = queue_hi = 0;
} | 0 |
21,447 | static void balloon_page(void *addr, int deflate)
{
#if defined(__linux__)
if (!kvm_enabled() || kvm_has_sync_mmu())
madvise(addr, TARGET_PAGE_SIZE,
deflate ? MADV_WILLNEED : MADV_DONTNEED);
#endif
}
| 1 |
370,351 | int http_wait_for_request(struct session *s, struct buffer *req, int an_bit)
{
/*
* We will parse the partial (or complete) lines.
* We will check the request syntax, and also join multi-line
* headers. An index of all the lines will be elaborated while
* parsing.
*
* For the parsing, we use a 28 states FS... | 0 |
353,757 | static int dump_tablespaces(char* ts_where)
{
MYSQL_ROW row;
MYSQL_RES *tableres;
char buf[FN_REFLEN];
DYNAMIC_STRING sqlbuf;
int first= 0;
/*
The following are used for parsing the EXTRA field
*/
char extra_format[]= "UNDO_BUFFER_SIZE=";
char *ubs;
char *endsemi;
DBUG_ENTER("dump_tablespaces"... | 1 |
57,333 | int ext4_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
__u64 start, __u64 len)
{
ext4_lblk_t start_blk;
int error = 0;
/* fallback to generic here if not in extents fmt */
if (!(ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)))
return generic_block_fiemap(inode, fieinfo, start, len,
ext4_g... | 0 |
236,749 | void RenderWidgetHostViewAura::OnInputMethodChanged() {
if (!host_)
return;
if (GetInputMethod())
host_->SetInputMethodActive(GetInputMethod()->IsActive());
}
| 0 |
334,847 | static void mv88w8618_audio_write(void *opaque, target_phys_addr_t offset,
uint64_t value, unsigned size)
{
mv88w8618_audio_state *s = opaque;
switch (offset) {
case MP_AUDIO_PLAYBACK_MODE:
if (value & MP_AUDIO_PLAYBACK_EN &&
!(s->playback_mode ... | 0 |
512,909 | CairoImageOutputDev::~CairoImageOutputDev()
{
int i;
for (i = 0; i < numImages; i++)
delete images[i];
gfree (images);
} | 0 |
324,146 | static inline int svq3_decode_block(GetBitContext *gb, DCTELEM *block,
int index, const int type)
{
static const uint8_t *const scan_patterns[4] =
{ luma_dc_zigzag_scan, zigzag_scan, svq3_scan, chroma_dc_scan };
int run, level, sign, vlc, limit;
const int intr... | 0 |
235,931 | bool GetTabFunction::RunImpl() {
int tab_id;
EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &tab_id));
TabStripModel* tab_strip = NULL;
TabContents* contents = NULL;
int tab_index = -1;
if (!GetTabById(tab_id, profile(), include_incognito(),
NULL, &tab_strip, &contents, &tab_index, &err... | 0 |
280,550 | ExportTIFF_Date ( const SXMPMeta & xmp, const char * xmpNS, const char * xmpProp, TIFF_Manager * tiff, XMP_Uns16 mainID )
{
XMP_Uns8 mainIFD = kTIFF_ExifIFD;
XMP_Uns16 fracID=0;
switch ( mainID ) {
case kTIFF_DateTime : mainIFD = kTIFF_PrimaryIFD; fracID = kTIFF_SubSecTime; break;
case kTIFF_DateTimeOriginal : ... | 0 |
301,961 | check_entry(const struct ip6t_entry *e)
{
const struct xt_entry_target *t;
if (!ip6_checkentry(&e->ipv6))
return -EINVAL;
if (e->target_offset + sizeof(struct xt_entry_target) >
e->next_offset)
return -EINVAL;
t = ip6t_get_target_c(e);
if (e->target_offset + t->u.target_size > e->next_offset)
return ... | 0 |
518,341 | longlong Item_cache_temporal::val_time_packed()
{
DBUG_ASSERT(fixed == 1);
if (Item_cache_temporal::field_type() != MYSQL_TYPE_TIME)
return Item::val_time_packed(); // DATETIME-to-TIME conversion needed
if ((!value_cached && !cache_value()) || null_value)
{
null_value= TRUE;
return 0;
}
return v... | 0 |
296,156 | AP_DECLARE(const char*) ap_get_server_protocol(server_rec* s)
{
core_server_config *conf = ap_get_core_module_config(s->module_config);
return conf->protocol;
} | 0 |
439,535 | skb_flow_dissect_tunnel_info(const struct sk_buff *skb,
struct flow_dissector *flow_dissector,
void *target_container)
{
struct ip_tunnel_info *info;
struct ip_tunnel_key *key;
/* A quick check to see if there might be something to do. */
if (!dissector_uses_key(flow_dissector,
FLOW_DISSECTOR_K... | 0 |
450,896 | bool is_nonempty() const { return (len > 0); } | 0 |
277,449 | issuer_key_hash (ksba_cert_t cert, unsigned char *sha1_buffer)
{
gpg_error_t err;
const unsigned char *ptr;
size_t length, dummy;
err = _ksba_cert_get_public_key_ptr (cert, &ptr, &length);
if (!err)
{
err = _ksba_hash_buffer (NULL, ptr, length, 20, sha1_buffer, &dummy);
if (!err && dummy != 2... | 0 |
164,589 | RTCPeerConnectionHandler::RemoveTrackUnifiedPlan(
blink::WebRTCRtpSender* web_sender) {
DCHECK(task_runner_->RunsTasksInCurrentSequence());
DCHECK_EQ(configuration_.sdp_semantics, webrtc::SdpSemantics::kUnifiedPlan);
auto it = FindSender(web_sender->Id());
if (it == rtp_senders_.end())
return webrtc::RT... | 0 |
106,415 | void put_transaction(struct btrfs_transaction *transaction)
{
WARN_ON(atomic_read(&transaction->use_count) == 0);
if (atomic_dec_and_test(&transaction->use_count)) {
BUG_ON(!list_empty(&transaction->list));
WARN_ON(transaction->delayed_refs.root.rb_node);
memset(transaction, 0, sizeof(*transaction));
kmem_cac... | 0 |
113,160 | njs_array_handler_reduce(njs_vm_t *vm, njs_iterator_args_t *args,
njs_value_t *entry, int64_t n)
{
njs_int_t ret;
njs_value_t arguments[5];
if (njs_is_valid(entry)) {
if (!njs_is_valid(args->argument)) {
*(args->argument) = *entry;
return NJS_OK;
}
/... | 0 |
480,484 | gif_initialise_frame_extensions(gif_animation *gif, const int frame)
{
const unsigned char *gif_data, *gif_end;
ssize_t gif_bytes;
ssize_t block_size;
/* Get our buffer position etc. */
gif_data = (const unsigned char *)(gif->gif_data + gif->buffer_position);
gif_end = (... | 0 |
485,429 | DEFUN (neighbor_default_originate_rmap,
neighbor_default_originate_rmap_cmd,
NEIGHBOR_CMD2 "default-originate route-map WORD",
NEIGHBOR_STR
NEIGHBOR_ADDR_STR2
"Originate default route to this neighbor\n"
"Route-map to specify criteria to originate default\n"
"route-map n... | 0 |
496,952 | static void set_run_features(ASS_Shaper *shaper, GlyphInfo *info)
{
// enable vertical substitutions for @font runs
if (info->font->desc.vertical)
shaper->features[VERT].value = shaper->features[VKNA].value = 1;
else
shaper->features[VERT].value = shaper->features[VKNA].value = 0;
// di... | 0 |
484,764 | static int snd_ctl_dev_disconnect(struct snd_device *device)
{
struct snd_card *card = device->device_data;
struct snd_ctl_file *ctl;
struct snd_ctl_layer_ops *lops;
unsigned long flags;
read_lock_irqsave(&card->ctl_files_rwlock, flags);
list_for_each_entry(ctl, &card->ctl_files, list) {
wake_up(&ctl->change_s... | 0 |
41,184 | do_string_sub(
char_u *str,
char_u *pat,
char_u *sub,
typval_T *expr,
char_u *flags)
{
int sublen;
regmatch_T regmatch;
int i;
int do_all;
char_u *tail;
char_u *end;
garray_T ga;
char_u *ret;
char_u *save_cpo;
char_u *zero_width = NULL;
// Make 'cpopti... | 0 |
523,759 | int BN_is_negative(const BIGNUM *a)
{
return (a->neg != 0);
} | 0 |
223,342 | void WebContentsAndroid::OpenURL(JNIEnv* env,
| 0 |
466,400 | void ConnectionManagerImpl::doDeferredStreamDestroy(ActiveStream& stream) {
if (stream.max_stream_duration_timer_) {
stream.max_stream_duration_timer_->disableTimer();
stream.max_stream_duration_timer_ = nullptr;
}
if (stream.stream_idle_timer_ != nullptr) {
stream.stream_idle_timer_->disableTimer();
... | 0 |
270,732 | static void dwc3_ep_inc_enq(struct dwc3_ep *dep)
{
dwc3_ep_inc_trb(&dep->trb_enqueue);
} | 0 |
473,054 | k_rational_p(VALUE x)
{
return f_kind_of_p(x, rb_cRational);
} | 0 |
292,251 | idtab_lookup(int version)
{
if (version < 1 || version > 2)
fatal("internal error, bad protocol version %d", version);
return &idtable[version];
} | 0 |
428,311 | static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it,
gfp_t gfp_mask)
{
return __tcp_transmit_skb(sk, skb, clone_it, gfp_mask,
tcp_sk(sk)->rcv_nxt);
} | 0 |
307,706 | static void mem_cgroup_charge_statistics(struct mem_cgroup *memcg,
bool file, int nr_pages)
{
preempt_disable();
if (file)
__this_cpu_add(memcg->stat->count[MEM_CGROUP_STAT_CACHE],
nr_pages);
else
__this_cpu_add(memcg->stat->count[MEM_CGROUP_STAT_RSS],
nr_pages);
/* pagein of a big page is an ev... | 0 |
487,964 | SampleEncrypter(AP4_CbcStreamCipher* stream_cipher, const AP4_UI08* iv):
m_StreamCipher(stream_cipher) {
AP4_CopyMemory(m_IV, iv, 16);
} | 0 |
44,629 | void credssp_free(rdpCredssp* credssp)
{
if (credssp != NULL)
{
if (credssp->table)
credssp->table->DeleteSecurityContext(&credssp->context);
sspi_SecBufferFree(&credssp->PublicKey);
sspi_SecBufferFree(&credssp->ts_credentials);
free(credssp->ServicePrincipalName);
free(credssp->identity.User);
free... | 0 |
228,096 | void TabStripModel::SelectPreviousTab() {
SelectRelativeTab(false);
}
| 0 |
160,192 | session_start_process (const gchar **argv,
const gchar **env)
{
CockpitTransport *transport = NULL;
CockpitPipe *pipe = NULL;
GError *error = NULL;
ChildData child;
gboolean ret;
GPid pid = 0;
int fds[2];
g_debug ("spawning %s", argv[0]);
/* The main stdin/stdout for the socke... | 0 |
139,178 | void Magick::Image::affineTransform(const DrawableAffine &affine_)
{
AffineMatrix
_affine;
MagickCore::Image
*newImage;
_affine.sx=affine_.sx();
_affine.sy=affine_.sy();
_affine.rx=affine_.rx();
_affine.ry=affine_.ry();
_affine.tx=affine_.tx();
_affine.ty=affine_.ty();
GetPPException;
new... | 0 |
162,608 | void CommandBufferProxyImpl::CreateGpuFence(uint32_t gpu_fence_id,
ClientGpuFence source) {
CheckLock();
base::AutoLock lock(last_state_lock_);
if (last_state_.error != gpu::error::kNoError) {
DLOG(ERROR) << "got error=" << last_state_.error;
return;
}
gfx:... | 0 |
325,080 | static int do_pcie_aer_inject_error(Monitor *mon,
const QDict *qdict, QObject **ret_data)
{
const char *id = qdict_get_str(qdict, "id");
const char *error_name;
uint32_t error_status;
bool correctable;
PCIDevice *dev;
PCIEAERErr err;
int ret;
... | 1 |
119,596 | static int ptrace_set_breakpoint_addr(struct task_struct *tsk, int nr,
unsigned long addr)
{
struct perf_event *bp;
struct thread_struct *t = &tsk->thread;
struct perf_event_attr attr;
int err = 0;
if (ptrace_get_breakpoints(tsk) < 0)
return -ESRCH;
if (!t->ptrace_bps[nr]) {
ptrace_breakpoint_init... | 0 |
30,228 | int ssl3_get_finished ( SSL * s , int a , int b ) {
int al , i , ok ;
long n ;
unsigned char * p ;
# ifdef OPENSSL_NO_NEXTPROTONEG # endif n = s -> method -> ssl_get_message ( s , a , b , SSL3_MT_FINISHED , 64 , & ok ) ;
if ( ! ok ) return ( ( int ) n ) ;
if ( ! s -> s3 -> change_cipher_spec ) {
al = SSL_AD_UNEX... | 0 |
378,203 | static int selinux_msg_queue_msgrcv(struct msg_queue *msq, struct msg_msg *msg,
struct task_struct *target,
long type, int mode)
{
struct ipc_security_struct *isec;
struct msg_security_struct *msec;
struct common_audit_data ad;
struct selinux_audit_data sad = {0,};
u32 sid = task_sid(target);
int ... | 0 |
180,610 | bool StartupBrowserCreator::Start(const base::CommandLine& cmd_line,
const base::FilePath& cur_dir,
Profile* last_used_profile,
const Profiles& last_opened_profiles) {
TRACE_EVENT0("startup", "StartupBrowserCreator::... | 0 |
42,209 | enum econn_state ecall_state(const struct ecall *ecall)
{
if (!ecall)
return ECONN_IDLE;
if (ecall->econn) {
return econn_current_state(ecall->econn);
}
else {
return ECONN_IDLE;
}
} | 0 |
121,320 | static void t1_start_eexec(void)
{
int i;
if (is_included(fm_cur)) {
get_length1();
save_offset();
}
if (!t1_pfa)
t1_check_block_len(false);
for (t1_line_ptr = t1_line_array, i = 0; i < 4; i++) {
edecrypt((byte)t1_getbyte());
*t1_line_ptr++ = 0;
}
t1_e... | 0 |
83,963 | DecimalQuantity& DecimalQuantity::setToDecNum(const DecNum& decnum, UErrorCode& status) {
setBcdToZero();
flags = 0;
_setToDecNum(decnum, status);
return *this;
} | 0 |
491,750 | parser_set_continues_to_current_position (parser_context_t *context_p, /**< context */
parser_branch_node_t *current_p) /**< branch list */
{
while (current_p != NULL)
{
if (current_p->branch.offset & CBC_HIGHEST_BIT_MASK)
{
parser_set_branch_to_current_positi... | 0 |
54,955 | init_etherarray(netdissect_options *ndo)
{
register const struct etherlist *el;
register struct enamemem *tp;
#ifdef USE_ETHER_NTOHOST
char name[256];
#else
register struct pcap_etherent *ep;
register FILE *fp;
/* Suck in entire ethers file */
fp = fopen(PCAP_ETHERS_FILE, "r");
if (fp != NULL) {
while ((ep =... | 0 |
174,460 | void ShelfLayoutManager::SetDockedMagnifierHeight(int height) {
docked_magnifier_height_ = height;
LayoutShelf();
}
| 0 |
393,109 | xmlSchemaAnnotDump(FILE * output, xmlSchemaAnnotPtr annot)
{
xmlChar *content;
if (annot == NULL)
return;
content = xmlNodeGetContent(annot->content);
if (content != NULL) {
fprintf(output, " Annot: %s\n", content);
xmlFree(content);
} else
fprintf(output, " Annot... | 0 |
431,641 | bool AuthorizationSession::isAuthenticated() {
return _authenticatedUsers.begin() != _authenticatedUsers.end();
} | 0 |
188,609 | void CoordinatorImpl::FinalizeGlobalMemoryDumpIfAllManagersReplied() {
TRACE_EVENT0(base::trace_event::MemoryDumpManager::kTraceCategory,
"GlobalMemoryDump.Computation");
DCHECK(!queued_memory_dump_requests_.empty());
QueuedRequest* request = &queued_memory_dump_requests_.front();
if (!request->... | 0 |
189,978 | bool tap() const { return tap_; }
| 0 |
170,687 | void PaletteTray::ClickedOutsideBubble() {
HidePalette();
}
| 0 |
209,941 | void ExtensionOptionsGuest::DidNavigateMainFrame(
const content::LoadCommittedDetails& details,
const content::FrameNavigateParams& params) {
if (attached()) {
auto guest_zoom_controller =
ui_zoom::ZoomController::FromWebContents(web_contents());
guest_zoom_controller->SetZoomMode(
ui... | 0 |
423,493 | dns_zone_getchecknames(dns_zone_t *zone) {
REQUIRE(DNS_ZONE_VALID(zone));
return (zone->check_names);
} | 0 |
4,656 | static void tcp_cwnd_reduction(struct sock *sk, const int prior_unsacked,
int fast_rexmit, int flag)
{
struct tcp_sock *tp = tcp_sk(sk);
int sndcnt = 0;
int delta = tp->snd_ssthresh - tcp_packets_in_flight(tp);
int newly_acked_sacked = prior_unsacked -
(tp->packets_out - tp->sacked_out);
tp->prr_de... | 1 |
273,831 | Lock_AF_UNIX(const char *unixSocketDir, const char *unixSocketPath)
{
/* no lock file for abstract sockets */
if (unixSocketPath[0] == '@')
return STATUS_OK;
/*
* Grab an interlock file associated with the socket file.
*
* Note: there are two reasons for using a socket lock file, rather than
* trying to i... | 0 |
71,932 | size_t ConnectionImpl::dispatchSlice(const char* slice, size_t len) {
ssize_t rc = http_parser_execute(&parser_, &settings_, slice, len);
if (HTTP_PARSER_ERRNO(&parser_) != HPE_OK && HTTP_PARSER_ERRNO(&parser_) != HPE_PAUSED) {
sendProtocolError();
throw CodecProtocolException("http/1.1 protocol error: " +
... | 0 |
10,068 | pixel_copy(png_bytep toBuffer, png_uint_32 toIndex,
png_const_bytep fromBuffer, png_uint_32 fromIndex, unsigned int pixelSize)
{
/* Assume we can multiply by 'size' without overflow because we are
* just working in a single buffer.
*/
toIndex *= pixelSize;
fromIndex *= pixelSize;
if (pixelS... | 1 |
73,757 | pq_discardbytes(size_t len)
{
size_t amount;
Assert(PqCommReadingMsg);
while (len > 0)
{
while (PqRecvPointer >= PqRecvLength)
{
if (pq_recvbuf()) /* If nothing in buffer, then recv some */
return EOF; /* Failed to recv data */
}
amount = PqRecvLength - PqRecvPointer;
if (amount > len)
amoun... | 0 |
95,593 | const Model* BuildModelWithOfflinePlanning(int number_of_tensors,
const int32_t* metadata_buffer,
NodeConnection* node_conn,
int num_conns,
int num_... | 0 |
267,771 | template<typename t>
static int _isosurface3d_index(const unsigned int edge, const CImg<t>& indices1, const CImg<t>& indices2,
const unsigned int x, const unsigned int y,
const unsigned int nx, const unsigned int ny) {
switch (edge) {... | 0 |
51,446 |
static void pdo_stmt_iter_move_forwards(zend_object_iterator *iter TSRMLS_DC)
{
struct php_pdo_iterator *I = (struct php_pdo_iterator*)iter->data;
if (I->fetch_ahead) {
zval_ptr_dtor(&I->fetch_ahead);
I->fetch_ahead = NULL;
}
MAKE_STD_ZVAL(I->fetch_ahead);
if (!do_fetch(I->stmt, TRUE, I->fetch_ahead, PDO_F... | 0 |
473,537 | xfs_iunpin(
struct xfs_inode *ip)
{
ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL|XFS_ILOCK_SHARED));
trace_xfs_inode_unpin_nowait(ip, _RET_IP_);
/* Give the log a push to start the unpinning I/O */
xfs_log_force_lsn(ip->i_mount, ip->i_itemp->ili_last_lsn, 0, NULL);
} | 0 |
109,312 | l2tp_proxy_auth_type_print(netdissect_options *ndo, const u_char *dat, u_int length)
{
const uint16_t *ptr = (const uint16_t *)dat;
if (length < 2) {
ND_PRINT((ndo, "AVP too short"));
return;
}
ND_PRINT((ndo, "%s", tok2str(l2tp_authentype2str,
"AuthType-#%u", EXTRACT_16BITS(ptr))));
} | 0 |
69,346 | ipf_is_first_v6_frag(ovs_be16 ip6f_offlg)
{
if (!(ip6f_offlg & IP6F_OFF_MASK) &&
ip6f_offlg & IP6F_MORE_FRAG) {
return true;
}
return false;
} | 0 |
229,267 | virtual ~TileIndependenceTest() {
delete fw_dec_;
delete inv_dec_;
}
| 0 |
425,106 | static void mask2shift(uint32_t mask, int *right, int *left)
{
int rshift = 0, lshift = 0;
if(!mask)
{
*right = *left = 0;
return;
}
while(!(mask & 1))
{
mask >>= 1;
rshift++;
}
*right = rshift;
while(mask & 1)
{
mask >>= 1;
lshi... | 0 |
456,788 | static inline bool shuffle_freelist(struct kmem_cache *s, struct page *page)
{
return false;
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.