idx int64 | func string | target int64 |
|---|---|---|
42,382 | osi_print_cksum(netdissect_options *ndo, const uint8_t *pptr,
uint16_t checksum, int checksum_offset, u_int length)
{
uint16_t calculated_checksum;
/* do not attempt to verify the checksum if it is zero,
* if the offset is nonsense,
* or the base pointer is not sane
... | 0 |
276,500 | void GLES2DecoderImpl::DoGenerateMipmap(GLenum target) {
TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
&state_, target);
if (!texture_ref ||
!texture_manager()->CanGenerateMipmaps(texture_ref)) {
LOCAL_SET_GL_ERROR(
GL_INVALID_OPERATION, "glGenerateMipmap", "Can not g... | 0 |
186,069 | void WebContentsImpl::SetAudioMuted(bool mute) {
DVLOG(1) << "SetAudioMuted(mute=" << mute << "), was " << IsAudioMuted()
<< " for WebContentsImpl@" << this;
if (mute == IsAudioMuted())
return;
if (mute) {
if (!audio_muter_)
audio_muter_.reset(new WebContentsAudioMuter(this));
audio... | 0 |
69,679 | ram_addr_t qemu_ram_block_host_offset(RAMBlock *rb, void *host)
{
ram_addr_t res = (uint8_t *)host - (uint8_t *)rb->host;
assert((uintptr_t)host >= (uintptr_t)rb->host);
assert(res < rb->max_length);
return res;
} | 0 |
511,261 | ignore_tty_job_signals ()
{
#if defined (SIGTSTP)
set_signal_handler (SIGTSTP, SIG_IGN);
set_signal_handler (SIGTTIN, SIG_IGN);
set_signal_handler (SIGTTOU, SIG_IGN);
#endif
} | 0 |
339,589 | static int decode_bdlt(uint8_t *frame, int width, int height,
const uint8_t *src, const uint8_t *src_end)
{
const uint8_t *frame_end = frame + width * height;
uint8_t *line_ptr;
int count, lines, segments;
count = bytestream_get_le16(&src);
if (count >= height || widt... | 1 |
396,830 | STATIC void GC_CALLBACK GC_default_on_abort(const char *msg)
{
GC_find_leak = FALSE; /* disable at-exit GC_gcollect() */
if (msg != NULL) {
# if defined(MSWIN32)
GC_win32_MessageBoxA(msg, "Fatal error in GC", MB_ICONERROR | MB_OK);
/* Also duplicate msg to GC log file. */
# endif... | 0 |
491,437 | fetch_alt_indirect_string (dwarf_vma offset)
{
separate_info * i;
if (! do_follow_links)
return "";
if (first_separate_info == NULL)
return _("<no links available>");
for (i = first_separate_info; i != NULL; i = i->next)
{
struct dwarf_section * section;
const char * ret;
... | 0 |
422,858 | int ioat_probe(struct ioatdma_device *device)
{
int err = -ENODEV;
struct dma_device *dma = &device->common;
struct pci_dev *pdev = device->pdev;
struct device *dev = &pdev->dev;
/* DMA coherent memory pool for DMA descriptor allocations */
device->dma_pool = pci_pool_create("dma_desc_pool", pdev,
sizeof... | 0 |
34,972 | mrb_malloc(mrb_state *mrb, size_t len)
{
return mrb_realloc(mrb, 0, len);
} | 0 |
213,593 | WebView* RenderViewImpl::createView(
WebFrame* creator,
const WebURLRequest& request,
const WebWindowFeatures& features,
const WebString& frame_name,
WebNavigationPolicy policy) {
if (shared_popup_counter_->data > kMaximumNumberOfUnacknowledgedPopups)
return NULL;
ViewHostMsg_CreateWindow_P... | 0 |
396,498 | putHmarker(HmarkerList *ml, int line, int pos, int seq)
{
if (ml == NULL) {
ml = New(HmarkerList);
ml->marks = NULL;
ml->nmark = 0;
ml->markmax = 0;
ml->prevhseq = -1;
}
if (ml->markmax == 0) {
ml->markmax = FIRST_MARKER_SIZE;
ml->marks = NewAtom_N(BufferPoint, ml->markmax);
bzero(ml->marks, sizeof(... | 0 |
127,963 | static __always_inline void pv_wait(u8 *ptr, u8 val)
{
PVOP_VCALL2(lock.wait, ptr, val);
} | 0 |
122,912 | static void gdImageHLine(gdImagePtr im, int y, int x1, int x2, int col)
{
if (im->thick > 1) {
int thickhalf = im->thick >> 1;
_gdImageFilledHRectangle(im, x1, y - thickhalf, x2, y + im->thick - thickhalf - 1, col);
} else {
if (x2 < x1) {
int t = x2;
x2 = x1;
x1 = t;
}
for (;x1 <= x2; x1++) {
... | 0 |
149,166 | static inline void fwnet_make_uf_hdr(struct rfc2734_header *hdr,
unsigned ether_type)
{
hdr->w0 = fwnet_set_hdr_lf(RFC2374_HDR_UNFRAG)
| fwnet_set_hdr_ether_type(ether_type);
} | 0 |
198,154 | void RenderFrameImpl::PluginDidStartLoading() {
DidStartLoading();
}
| 0 |
300,116 | inline void Mean(const tflite::MeanParams& op_params,
const RuntimeShape& unextended_input_shape,
const uint8_t* input_data, int32 input_zero_point,
float input_scale, const RuntimeShape& unextended_output_shape,
uint8_t* output_data, int32 output_zero... | 0 |
11,622 | zsetdevice(i_ctx_t *i_ctx_p)
{
gx_device *dev = gs_currentdevice(igs);
os_ptr op = osp;
int code = 0;
check_write_type(*op, t_device);
if (dev->LockSafetyParams) { /* do additional checking if locked */
if(op->value.pdevice != dev) /* don't allow a different device */
... | 1 |
4,495 | error_t enc624j600UpdateMacAddrFilter(NetInterface *interface)
{
uint_t i;
uint_t k;
uint32_t crc;
uint16_t hashTable[4];
MacFilterEntry *entry;
//Debug message
TRACE_DEBUG("Updating MAC filter...\r\n");
//Clear hash table
osMemset(hashTable, 0, sizeof(hashTable));
//The MAC address fil... | 1 |
316,509 | long Segment::ParseCues(long long off, long long& pos, long& len) {
if (m_pCues)
return 0; // success
if (off < 0)
return -1;
long long total, avail;
const int status = m_pReader->Length(&total, &avail);
if (status < 0) // error
return status;
assert((total < 0) || (avail <= total));
pos = m_start + o... | 0 |
191,956 | std::vector<std::string> RegisterAllFeatureVariationParameters(
flags_ui::FlagsStorage* flags_storage,
base::FeatureList* feature_list) {
return FlagsStateSingleton::GetFlagsState()
->RegisterAllFeatureVariationParameters(flags_storage, feature_list);
}
| 0 |
253,400 | HttpBridgeFactory::HttpBridgeFactory(
net::URLRequestContextGetter* baseline_context_getter) {
DCHECK(baseline_context_getter != NULL);
request_context_getter_ =
new HttpBridge::RequestContextGetter(baseline_context_getter);
}
| 0 |
411,572 | **/
CImg<T>& operator%=(const char *const expression) {
return *this%=(+*this)._fill(expression,true,true,0,0,"operator%=",this); | 0 |
192,482 | void readpng2_version_info(void)
{
fprintf(stderr, " Compiled with libpng %s; using libpng %s\n",
PNG_LIBPNG_VER_STRING, png_libpng_ver);
fprintf(stderr, " and with zlib %s; using zlib %s.\n",
ZLIB_VERSION, zlib_version);
}
| 0 |
449,965 | int LUKS2_get_data_size(struct luks2_hdr *hdr, uint64_t *size, bool *dynamic)
{
int sector_size;
json_object *jobj_segments, *jobj_size;
uint64_t tmp = 0;
if (!size || !json_object_object_get_ex(hdr->jobj, "segments", &jobj_segments))
return -EINVAL;
json_object_object_foreach(jobj_segments, key, val) {
UNUS... | 0 |
298,969 | void kvm_vcpu_block(struct kvm_vcpu *vcpu)
{
DEFINE_WAIT(wait);
for (;;) {
prepare_to_wait(&vcpu->wq, &wait, TASK_INTERRUPTIBLE);
if (kvm_arch_vcpu_runnable(vcpu)) {
kvm_make_request(KVM_REQ_UNHALT, vcpu);
break;
}
if (kvm_cpu_has_pending_timer(vcpu))
break;
if (signal_pending(current))
break;... | 0 |
315,250 | WebContentsLoadedOrDestroyedWatcher::WebContentsLoadedOrDestroyedWatcher(
content::WebContents* web_contents)
: content::WebContentsObserver(web_contents),
message_loop_runner_(new content::MessageLoopRunner) {
}
| 0 |
319,546 | void gic_complete_irq(GICState *s, int cpu, int irq)
{
int update = 0;
int cm = 1 << cpu;
DPRINTF("EOI %d\n", irq);
if (irq >= s->num_irq) {
/* This handles two cases:
* 1. If software writes the ID of a spurious interrupt [ie 1023]
* to the GICC_EOIR, the GIC ignores t... | 0 |
277,213 | int BrowserMainLoop::PreMainMessageLoopRun() {
#if defined(OS_ANDROID)
ui::SetScreenAndroid();
#endif
if (parts_) {
TRACE_EVENT0("startup",
"BrowserMainLoop::CreateThreads:PreMainMessageLoopRun");
parts_->PreMainMessageLoopRun();
}
base::ThreadRestrictions::SetIOAllowed(false);
base::Thread... | 0 |
280,199 | int OmniboxViewViews::OnDrop(const ui::OSExchangeData& data) {
if (HasTextBeingDragged())
return ui::DragDropTypes::DRAG_NONE;
if (data.HasURL()) {
GURL url;
base::string16 title;
if (data.GetURLAndTitle(
ui::OSExchangeData::CONVERT_FILENAMES, &url, &title)) {
base::string16 t... | 0 |
388,764 | const uint8_t *smb1cli_conn_server_challenge(struct smbXcli_conn *conn)
{
return conn->smb1.server.challenge;
} | 0 |
133,745 | void sctp_hash_established(struct sctp_association *asoc)
{
if (asoc->temp)
return;
sctp_local_bh_disable();
__sctp_hash_established(asoc);
sctp_local_bh_enable();
} | 0 |
470,984 | wl_array_copy(struct wl_array *array, struct wl_array *source)
{
if (array->size < source->size) {
if (!wl_array_add(array, source->size - array->size))
return -1;
} else {
array->size = source->size;
}
if (source->size > 0)
memcpy(array->data, source->data, source->size);
return 0;
} | 0 |
401,192 | static sci_t macsec_frame_sci(struct macsec_eth_header *hdr, bool sci_present)
{
sci_t sci;
if (sci_present)
memcpy(&sci, hdr->secure_channel_id,
sizeof(hdr->secure_channel_id));
else
sci = make_sci(hdr->eth.h_source, MACSEC_PORT_ES);
return sci;
} | 0 |
262,858 | static int cmd_queue(struct ImapAccountData *adata, const char *cmdstr, ImapCmdFlags flags)
{
if (cmd_queue_full(adata))
{
mutt_debug(LL_DEBUG3, "Draining IMAP command pipeline\n");
const int rc = imap_exec(adata, NULL, flags & IMAP_CMD_POLL);
if (rc == IMAP_EXEC_ERROR)
return IMAP_RES_BAD;
}
... | 0 |
306,329 | void ConnectDialog::sendPing(const QHostAddress &host, unsigned short port) {
char blob[16];
ServerAddress addr(HostAddress(host), port);
quint64 uiRand;
if (qhPingRand.contains(addr)) {
uiRand = qhPingRand.value(addr);
} else {
uiRand = (static_cast<quint64>(qrand()) << 32) | static_cast<quint64>(qrand());
... | 0 |
494,578 | void add_tree_ipv4(const unsigned long ip,
const u_char *data,
const int len,
const int datalink)
{
tcpr_tree_t *newnode;
assert(data);
newnode = packet2tree(data, len, datalink);
if (newnode) {
assert(ip == newnode->u.ip);
if (n... | 0 |
184,787 | void RenderFrameImpl::PepperDidReceiveMouseEvent(
PepperPluginInstanceImpl* instance) {
render_view_->set_pepper_last_mouse_event_target(instance);
}
| 0 |
320,792 | void qemu_ram_remap(ram_addr_t addr, ram_addr_t length)
{
RAMBlock *block;
ram_addr_t offset;
int flags;
void *area, *vaddr;
QLIST_FOREACH(block, &ram_list.blocks, next) {
offset = addr - block->offset;
if (offset < block->length) {
vaddr = block->host + offset... | 1 |
429,792 | static BOOL check_opcode_types(compiler_common *common, PCRE2_SPTR cc, PCRE2_SPTR ccend)
{
int count;
PCRE2_SPTR slot;
PCRE2_SPTR assert_back_end = cc - 1;
/* Calculate important variables (like stack size) and checks whether all opcodes are supported. */
while (cc < ccend)
{
switch(*cc)
{
case OP_SET_SOM:... | 0 |
316,884 | std::string SerializeSeedBase64(const variations::VariationsSeed& seed) {
std::string serialized_seed = SerializeSeed(seed);
std::string base64_serialized_seed;
base::Base64Encode(Compress(serialized_seed), &base64_serialized_seed);
return base64_serialized_seed;
}
| 0 |
385,078 | static inline void phar_set_fp_type(phar_entry_info *entry, enum phar_fp_type type, off_t offset TSRMLS_DC)
{
phar_entry_fp_info *data;
if (!entry->is_persistent) {
entry->fp_type = type;
entry->offset = offset;
return;
}
data = &(PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos]);... | 0 |
341,004 | static void virtio_net_add_queue(VirtIONet *n, int index)
{
VirtIODevice *vdev = VIRTIO_DEVICE(n);
n->vqs[index].rx_vq = virtio_add_queue(vdev, n->net_conf.rx_queue_size,
virtio_net_handle_rx);
if (n->net_conf.tx && !strcmp(n->net_conf.tx, "timer")) {
... | 0 |
246,312 | void AutofillManager::OnFormSubmittedImpl(const FormData& form,
bool known_success,
SubmissionSource source,
base::TimeTicks timestamp) {
if (source == SubmissionSource::PROBABLY_FORM_SUBMITTE... | 0 |
92,389 | void rpc_init_priority_wait_queue(struct rpc_wait_queue *queue, const char *qname)
{
__rpc_init_priority_wait_queue(queue, qname, RPC_NR_PRIORITY);
} | 0 |
259,129 | static inline int propagate_entity_load_avg(struct sched_entity *se)
{
return 0;
} | 0 |
44,181 | static RectangleInfo CompareImagesBounds(const Image *image1,
const Image *image2,const LayerMethod method,ExceptionInfo *exception)
{
RectangleInfo
bounds;
PixelInfo
pixel1,
pixel2;
register const Quantum
*p,
*q;
register ssize_t
x;
ssize_t
y;
/*
Set bounding box of t... | 0 |
183,323 | static MagickStatusType CorrectPSDOpacity(LayerInfo* layer_info,
ExceptionInfo *exception)
{
register PixelPacket
*q;
register ssize_t
x;
ssize_t
y;
if (layer_info->opacity == OpaqueOpacity)
return(MagickTrue);
layer_info->image->matte=MagickTrue;
for (y=0; y < (ssize_t) layer_info->im... | 0 |
227,975 | clearMediaPlayerAndAudioSourceProviderClientWithoutLocking() {
getAudioSourceProvider().setClient(nullptr);
if (m_webMediaPlayer) {
m_audioSourceProvider.wrap(nullptr);
m_webMediaPlayer.reset();
}
}
| 0 |
160,245 | static PayloadContext *h264_new_context(void)
{
PayloadContext *data =
av_mallocz(sizeof(PayloadContext) +
FF_INPUT_BUFFER_PADDING_SIZE);
if (data) {
data->cookie = MAGIC_COOKIE;
}
return data;
}
| 1 |
238,033 | Frame* FrameLoader::createWindow(FrameLoader* frameLoaderForFrameLookup, const FrameLoadRequest& request, const WindowFeatures& features, bool& created)
{
ASSERT(!features.dialog || request.frameName().isEmpty());
if (!request.frameName().isEmpty() && request.frameName() != "_blank") {
Frame* frame = ... | 0 |
136,106 | decrypt_R2004_header (Bit_Chain *restrict dat, BITCODE_RC *restrict decrypted,
unsigned long size, Dwg_Data *restrict dwg)
{
unsigned int rseed = 1;
unsigned i;
/* Decrypt */
for (i = 0; i < size; i++)
{
rseed *= 0x343fd;
rseed += 0x269ec3;
decrypted[i] = bit_read_RC... | 0 |
421,274 | static NOINLINE void send_inform(struct dhcp_packet *oldpacket)
{
struct dhcp_packet packet;
/* "If a client has obtained a network address through some other means
* (e.g., manual configuration), it may use a DHCPINFORM request message
* to obtain other local configuration parameters. Servers receiving a
* D... | 0 |
181,186 | void ContentSecurityPolicy::dispatchViolationEvents(
const SecurityPolicyViolationEventInit& violationData,
Element* element) {
EventQueue* queue = m_executionContext->getEventQueue();
if (!queue)
return;
SecurityPolicyViolationEvent* event = SecurityPolicyViolationEvent::create(
EventTypeNames... | 0 |
295,879 | WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc,
const char **argv,Image **image,ExceptionInfo *exception)
{
CompositeOperator
compose;
const char
*format,
*option;
double
attenuate;
DrawInfo
*draw_info;
GeometryInfo
geometry_info;
ImageInfo
... | 0 |
192,652 | void RenderFrameHostImpl::OnScrollRectToVisibleInParentFrame(
const gfx::Rect& rect_to_scroll,
const blink::WebScrollIntoViewParams& params) {
RenderFrameProxyHost* proxy =
frame_tree_node_->render_manager()->GetProxyToParent();
if (!proxy)
return;
proxy->ScrollRectToVisible(rect_to_scroll, para... | 0 |
314,882 | static int req_escape_html(lua_State *L)
{
request_rec *r = ap_lua_check_request_rec(L, 1);
const char *s = luaL_checkstring(L, 2);
lua_pushstring(L, ap_escape_html(r->pool, s));
return 1;
}
| 0 |
407,963 | TEST(MessageCompressorManager, BadCompressionRequested) {
auto input = BSON("isMaster" << 1 << "compression" << BSON_ARRAY("fakecompressor"));
checkServerNegotiation(input, {});
} | 0 |
157,793 | static int can_handle_new_request(RADIUS_PACKET *packet,
RADCLIENT *client,
struct main_config_t *root)
{
/*
* Count the total number of requests, to see if
* there are too many. If so, return with an
* error.
*/
if (root->max_requests) {
int request_count = fr_packet_list_num_elements(pl);
... | 0 |
20,909 | static int x ( struct vcache * avc , int afun , struct vrequest * areq , \ struct afs_pdata * ain , struct afs_pdata * aout , \ afs_ucred_t * * acred ) DECL_PIOCTL ( PGetFID ) ;
DECL_PIOCTL ( PSetAcl ) ;
DECL_PIOCTL ( PStoreBehind ) ;
DECL_PIOCTL ( PGCPAGs ) ;
DECL_PIOCTL ( PGetAcl ) ;
DECL_PIOCTL ( PNoop ) ;
DEC... | 0 |
86,816 | GF_Err tpyl_box_read(GF_Box *s, GF_BitStream *bs)
{
GF_NTYLBox *ptr = (GF_NTYLBox *)s;
if (ptr == NULL) return GF_BAD_PARAM;
ISOM_DECREASE_SIZE(ptr, 8);
ptr->nbBytes = gf_bs_read_u64(bs);
return GF_OK;
} | 0 |
69,152 | static inline wchar_t vfat_bad_char(wchar_t w)
{
return (w < 0x0020)
|| (w == '*') || (w == '?') || (w == '<') || (w == '>')
|| (w == '|') || (w == '"') || (w == ':') || (w == '/')
|| (w == '\\');
} | 0 |
177,709 | static int handle_pal_call(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
{
struct exit_ctl_data *p;
p = kvm_get_exit_data(vcpu);
if (p->exit_reason == EXIT_REASON_PAL_CALL)
return kvm_pal_emul(vcpu, kvm_run);
else {
kvm_run->exit_reason = KVM_EXIT_UNKNOWN;
kvm_run->hw.hardware_exit_reason = 2;
return 0;... | 0 |
279,870 | static void spl_array_set_array(zval *object, spl_array_object *intern, zval **array, long ar_flags, int just_array TSRMLS_DC) {
if (Z_TYPE_PP(array) == IS_ARRAY) {
SEPARATE_ZVAL_IF_NOT_REF(array);
}
if (Z_TYPE_PP(array) == IS_OBJECT && (Z_OBJ_HT_PP(array) == &spl_handler_ArrayObject || Z_OBJ_HT_PP(array) == &sp... | 0 |
491,358 | find_cu_tu_set_v2 (dwarf_vma cu_offset, int do_types)
{
struct cu_tu_set *p;
unsigned int nsets;
unsigned int dw_sect;
if (do_types)
{
p = tu_sets;
nsets = tu_count;
dw_sect = DW_SECT_TYPES;
}
else
{
p = cu_sets;
nsets = cu_count;
dw_sect = DW_SECT_INFO;
}
... | 0 |
356,640 | submit_page_section(struct dio *dio, struct page *page,
unsigned offset, unsigned len, sector_t blocknr)
{
int ret = 0;
if (dio->rw & WRITE) {
/*
* Read accounting is performed in submit_bio()
*/
task_io_account_write(len);
}
/*
* Can we just grow the current page's presence in the dio?
*/
if ( (... | 0 |
151,661 | static int xemaclite_open(struct net_device *dev)
{
struct net_local *lp = netdev_priv(dev);
int retval;
/* Just to be safe, stop the device first */
xemaclite_disable_interrupts(lp);
if (lp->phy_node) {
u32 bmcr;
lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node,
xemaclite_adjust_link, 0,
... | 0 |
298,351 | inline size_t StringData::heapSize() const {
return isFlat()
? isRefCounted()
? MemoryManager::sizeIndex2Size(m_aux16)
: size() + kStringOverhead
: sizeof(StringData) + sizeof(Proxy);
} | 0 |
328,613 | void tcg_region_reset_all(void)
{
unsigned int i;
qemu_mutex_lock(®ion.lock);
region.current = 0;
region.agg_size_full = 0;
for (i = 0; i < n_tcg_ctxs; i++) {
bool err = tcg_region_initial_alloc__locked(tcg_ctxs[i]);
g_assert(!err);
}
qemu_mutex_unlock(®... | 0 |
267,739 | void rand_initialize_disk(struct gendisk *disk)
{
struct timer_rand_state *state;
/*
* If kzalloc returns null, we just won't use that entropy
* source.
*/
state = kzalloc(sizeof(struct timer_rand_state), GFP_KERNEL);
if (state) {
state->last_time = INITIAL_JIFFIES;
disk->random = state;
}
} | 0 |
83,063 | static int set_array_info(struct mddev *mddev, mdu_array_info_t *info)
{
if (info->raid_disks == 0) {
/* just setting version number for superblock loading */
if (info->major_version < 0 ||
info->major_version >= ARRAY_SIZE(super_types) ||
super_types[info->major_version].name == NULL) {
/* maybe t... | 0 |
421,360 | eb_unreserve_vma(struct i915_vma *vma, unsigned int *flags)
{
if (!(*flags & __EXEC_OBJECT_HAS_PIN))
return;
__eb_unreserve_vma(vma, *flags);
*flags &= ~__EXEC_OBJECT_RESERVED;
} | 0 |
199,132 | static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
}
| 0 |
304,010 | static int set_tracer_option(struct trace_array *tr, char *cmp, int neg)
{
struct tracer *trace = tr->current_trace;
struct tracer_flags *tracer_flags = trace->flags;
struct tracer_opt *opts = NULL;
int i;
for (i = 0; tracer_flags->opts[i].name; i++) {
opts = &tracer_flags->opts[i];
if (strcmp(cmp, opts->nam... | 0 |
96,075 | CModule::EModRet CModule::OnPrivCTCPMessage(CCTCPMessage& Message) {
CString sText = Message.GetText();
EModRet ret = OnPrivCTCP(Message.GetNick(), sText);
Message.SetText(sText);
return ret;
} | 0 |
499,147 | static int sqfs_disk_read(__u32 block, __u32 nr_blocks, void *buf)
{
ulong ret;
if (!ctxt.cur_dev)
return -1;
ret = blk_dread(ctxt.cur_dev, ctxt.cur_part_info.start + block,
nr_blocks, buf);
if (ret != nr_blocks)
return -1;
return ret;
} | 0 |
400,533 | MagickExport const OptionInfo *GetCommandOptionInfo(const char *option)
{
register ssize_t
i;
for (i=0; CommandOptions[i].mnemonic != (char *) NULL; i++)
if (LocaleCompare(option,CommandOptions[i].mnemonic) == 0)
break;
return(CommandOptions+i);
} | 0 |
218,436 | void smp_br_process_pairing_command(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {
uint8_t* p = p_data->p_data;
tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(p_cb->pairing_bda);
SMP_TRACE_DEBUG("%s", __func__);
/* rejecting BR pairing request over non-SC BR link */
if (!p_dev_rec->new_encryption_key_is_p256 && p_cb->role... | 0 |
308,977 | static int storebuffer(int output, FILE *data)
{
char **buffer = (char **)data;
unsigned char outc = (unsigned char)output;
**buffer = outc;
(*buffer)++;
return outc; /* act like fputc() ! */
}
| 0 |
400,942 | innodb_switch_mapping(
/*==================*/
ENGINE_HANDLE* handle, /*!< in: Engine handle */
const void* cookie, /*!< in: connection cookie */
const char* name, /*!< in: full name contains
table map name, and possible
key value */
size_t* name_len, /*!< in/out: name length,
out with leng... | 0 |
432,153 | static int snd_line6_impulse_period_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
uinfo->count = 1;
uinfo->value.integer.min = 0;
uinfo->value.integer.max = 2000;
return 0;
} | 0 |
439,647 | bool matches(const Ref *idA, double m11A, double m12A,
double m21A, double m22A)
{ return fontID == *idA &&
m11 == m11A && m12 == m12A && m21 == m21A && m22 == m22A; } | 0 |
131,021 | ex_tabs(exarg_T *eap UNUSED)
{
tabpage_T *tp;
win_T *wp;
int tabcount = 1;
msg_start();
msg_scroll = TRUE;
for (tp = first_tabpage; tp != NULL && !got_int; tp = tp->tp_next)
{
msg_putchar('\n');
vim_snprintf((char *)IObuff, IOSIZE, _("Tab page %d"), tabcount++);
msg_outtrans_attr(IObuff... | 0 |
162,495 | void WebContentsImpl::IncrementCapturerCount() {
DCHECK(!is_being_destroyed_);
++capturer_count_;
DVLOG(1) << "There are now " << capturer_count_
<< " capturing(s) of WebContentsImpl@" << this;
}
| 0 |
348,107 | int dns_read_name(unsigned char *buffer, unsigned char *bufend,
unsigned char *name, char *destination, int dest_len,
int *offset)
{
int nb_bytes = 0, n = 0;
int label_len;
unsigned char *reader = name;
char *dest = destination;
while (1) {
/* Name compression is in use */
if ((*reader & 0xc0) == 0xc0... | 1 |
502,958 | static void ReplaceIRINode(GF_Node *FromNode, GF_Node *old_node, GF_Node *newNode)
{
GF_ChildNodeItem *prev = NULL;
GF_ChildNodeItem *child = ((SVG_Element *)FromNode)->children;
while (child) {
if (child->node != old_node) {
prev = child;
child = child->next;
continue;
}
if (newNode) {
child->node... | 0 |
394,125 | PHP_METHOD(Phar, offsetExists)
{
char *fname;
int fname_len;
phar_entry_info *entry;
PHAR_ARCHIVE_OBJECT();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &fname, &fname_len) == FAILURE) {
return;
}
if (zend_hash_exists(&phar_obj->arc.archive->manifest, fname, (uint) fname_len)) {
if (SUCCESS =... | 0 |
489,779 | static void nhmldump_send_header(GF_NHMLDumpCtx *ctx)
{
GF_FilterPacket *dst_pck;
char nhml[1024];
u32 size;
u8 *output;
const GF_PropertyValue *p;
ctx->szRootName = "NHNTStream";
if (ctx->dims) {
ctx->szRootName = "DIMSStream";
}
if (!ctx->filep) {
sprintf(nhml, "<?xml version=\"1.0\" encoding=\"UTF-8\"... | 0 |
119,605 | void trace_printk_init_buffers(void)
{
if (buffers_allocated)
return;
if (alloc_percpu_trace_buffer())
return;
/* trace_printk() is for debug use only. Don't use it in production. */
pr_warn("\n");
pr_warn("**********************************************************\n");
pr_warn("** NOTICE NOTICE NOTICE N... | 0 |
436,318 | onig_capture_tree_traverse(OnigRegion* region, int at,
int(*callback_func)(int,int,int,int,int,void*), void* arg)
{
#ifdef USE_CAPTURE_HISTORY
return capture_tree_traverse(region->history_root, at,
callback_func, 0, arg);
#else
return ONIG_NO_SUPPORT_CONFIG;
#endif
} | 0 |
78,039 | static void macvlan_port_destroy(struct net_device *dev)
{
struct macvlan_port *port = macvlan_port_get(dev);
dev->priv_flags &= ~IFF_MACVLAN_PORT;
netdev_rx_handler_unregister(dev);
kfree_rcu(port, rcu);
} | 0 |
346,232 | static void exif_process_TIFF_in_JPEG(image_info_type *ImageInfo, char *CharBuf, size_t length, size_t displacement TSRMLS_DC)
{
unsigned exif_value_2a, offset_of_ifd;
/* set the thumbnail stuff to nothing so we can test to see if they get set up */
if (memcmp(CharBuf, "II", 2) == 0) {
ImageInfo->motorola_intel =... | 1 |
514,054 | toggle_display_of_ipc_commands()
{
if (mouse_setting.verbose)
mouse_setting.verbose = 0;
else
mouse_setting.verbose = 1;
} | 0 |
517,456 | Item* get_copy(THD *thd, MEM_ROOT *mem_root)
{ return get_item_copy<Item_ident_for_show>(thd, mem_root, this); } | 0 |
323,255 | static int compat_decode(AVCodecContext *avctx, AVFrame *frame,
int *got_frame, AVPacket *pkt)
{
AVCodecInternal *avci = avctx->internal;
int ret;
av_assert0(avci->compat_decode_consumed == 0);
*got_frame = 0;
avci->compat_decode = 1;
if (avci->compat_decod... | 1 |
53,379 | static int xen_evtchn_cpu_dead(unsigned int cpu)
{
int ret = 0;
if (evtchn_ops->percpu_deinit)
ret = evtchn_ops->percpu_deinit(cpu);
return ret;
} | 0 |
486,942 | grammar_current_rule_begin (symbol *lhs, location loc,
named_ref *lhs_name)
{
/* Start a new rule and record its lhs. */
++nrules;
previous_rule_end = grammar_end;
current_rule = grammar_symbol_append (lhs, loc);
if (lhs_name)
assign_named_ref (current_rule, named_ref_copy (l... | 0 |
327,063 | void OPPROTO op_fdivr_ST0_FT0(void)
{
ST0 = FT0 / ST0;
}
| 1 |
523,377 | bool LEX::call_statement_start(THD *thd, sp_name *name)
{
Database_qualified_name pkgname(&null_clex_str, &null_clex_str);
const Sp_handler *sph= &sp_handler_procedure;
sql_command= SQLCOM_CALL;
value_list.empty();
if (unlikely(sph->sp_resolve_package_routine(thd, thd->lex->sphead,
... | 0 |
157,203 | regexp_engine const *
Perl_current_re_engine(pTHX)
{
if (IN_PERL_COMPILETIME) {
HV * const table = GvHV(PL_hintgv);
SV **ptr;
if (!table || !(PL_hints & HINT_LOCALIZE_HH))
return &PL_core_reg_engine;
ptr = hv_fetchs(table, "regcomp", FALSE);
if ( !(ptr && SvIOK(*ptr) && SvIV(*ptr)))
return &PL_core_... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.