idx int64 | func string | target int64 |
|---|---|---|
118,410 | static int __init ipc_init(void)
{
sem_init();
msg_init();
shm_init();
register_hotmemory_notifier(&ipc_memory_nb);
register_ipcns_notifier(&init_ipc_ns);
return 0;
} | 0 |
185,385 | void AppCacheUpdateJob::URLFetcher::AddConditionalHeaders(
const net::HttpResponseHeaders* headers) {
DCHECK(request_);
DCHECK(headers);
net::HttpRequestHeaders extra_headers;
const std::string last_modified = "Last-Modified";
std::string last_modified_value;
headers->EnumerateHeader(NULL, last_modifie... | 0 |
471,555 | void luaLdbLineHook(lua_State *lua, lua_Debug *ar) {
lua_getstack(lua,0,ar);
lua_getinfo(lua,"Sl",ar);
ldb.currentline = ar->currentline;
int bp = ldbIsBreakpoint(ldb.currentline) || ldb.luabp;
int timeout = 0;
/* Events outside our script are not interesting. */
if(strstr(ar->short_src,"u... | 0 |
64,972 | RegexMatcherImpl(const RequirementRule& rule)
: BaseMatcherImpl(rule), regex_str_(rule.match().safe_regex().regex()),
path_matcher_(Matchers::PathMatcher::createSafeRegex(rule.match().safe_regex())) {
ASSERT(rule.match().path_specifier_case() ==
envoy::config::route::v3::RouteMatch::PathS... | 0 |
84,907 | ex_align(exarg_T *eap)
{
pos_T save_curpos;
int len;
int indent = 0;
int new_indent;
int has_tab;
int width;
#ifdef FEAT_RIGHTLEFT
if (curwin->w_p_rl)
{
/* switch left and right aligning */
if (eap->cmdidx == CMD_right)
eap->cmdidx = CMD_left;
else if (eap->cmdidx == CMD_le... | 0 |
221,222 | void DevToolsWindow::OnPageCloseCanceled(content::WebContents* contents) {
DevToolsWindow *window =
DevToolsWindow::GetInstanceForInspectedRenderViewHost(
contents->GetRenderViewHost());
if (!window)
return;
window->intercepted_page_beforeunload_ = false;
DevToolsWindow::OnPageCloseCanceled(... | 0 |
259,785 | string convertHexToDec(const string &hex_str) {
mpz_t dec;
mpz_init(dec);
string ret = "";
try {
if (mpz_set_str(dec, hex_str.c_str(), 16) == -1) {
mpz_clear(dec);
return ret;
}
SAFE_CHAR_BUF(arr,mpz_sizeinbase(dec, 10) + 2);
mpz_get_str(arr, 10... | 0 |
359,219 | static inline int dev_iwstats(struct net_device *dev, struct ifreq *ifr)
{
/* Get stats from the driver */
struct iw_statistics *stats;
stats = get_wireless_stats(dev);
if (stats != (struct iw_statistics *) NULL) {
struct iwreq * wrq = (struct iwreq *)ifr;
/* Copy statistics to the user buffer */
if(copy_to... | 0 |
99,759 | SMB2_read(const unsigned int xid, struct cifs_io_parms *io_parms,
unsigned int *nbytes, char **buf, int *buf_type)
{
struct smb_rqst rqst;
int resp_buftype, rc = -EACCES;
struct smb2_read_plain_req *req = NULL;
struct smb2_read_rsp *rsp = NULL;
struct kvec iov[1];
struct kvec rsp_iov;
unsigned int total_len;
... | 0 |
105,598 | WandExport MagickBooleanType MogrifyImageList(ImageInfo *image_info,
const int argc,const char **argv,Image **images,ExceptionInfo *exception)
{
const char
*option;
ImageInfo
*mogrify_info;
MagickStatusType
status;
PixelInterpolateMethod
interpolate_method;
QuantizeInfo
*quantize_info... | 0 |
453,939 | TEST(ParseExpression, ShouldRejectExpressionIfItsNotTheOnlyField) {
ASSERT_THROWS(parseExpression(BSON("$and" << BSONArray() << "a" << BSON("$or" << BSONArray()))),
AssertionException);
} | 0 |
178,493 | void PPB_URLLoader_Impl::SetDefersLoading(bool defers_loading) {
if (loader_.get()) {
loader_->setDefersLoading(defers_loading);
is_asynchronous_load_suspended_ = defers_loading;
}
}
| 0 |
431,197 | bool isAuthEnabled() const override {
return false;
} | 0 |
86,531 | TEST_P(SslSocketTest, DownstreamNotReadySslSocket) {
Stats::TestUtil::TestStore stats_store;
NiceMock<LocalInfo::MockLocalInfo> local_info;
testing::NiceMock<Server::Configuration::MockTransportSocketFactoryContext> factory_context;
NiceMock<Init::MockManager> init_manager;
NiceMock<Event::MockDispatcher> dis... | 0 |
109,478 | void jas_matrix_divpow2(jas_matrix_t *matrix, int n)
{
jas_matind_t i;
jas_matind_t j;
jas_seqent_t *rowstart;
jas_matind_t rowstep;
jas_seqent_t *data;
if (jas_matrix_numrows(matrix) > 0 && jas_matrix_numcols(matrix) > 0) {
assert(matrix->rows_);
rowstep = jas_matrix_rowstep(matrix);
for (i = matrix->numr... | 0 |
511,089 | rl_bind_keyseq_if_unbound (keyseq, default_func)
const char *keyseq;
rl_command_func_t *default_func;
{
return (rl_bind_keyseq_if_unbound_in_map (keyseq, default_func, _rl_keymap));
} | 0 |
24,366 | static guint8 dissect_zcl_ota_field_ctrl_field ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {
guint8 field ;
static const int * field_ctrl [ ] = {
& hf_zbee_zcl_ota_field_ctrl_hw_ver_present , & hf_zbee_zcl_ota_field_ctrl_reserved , NULL }
;
field = tvb_get_guint8 ( tvb , * offset ) ;
proto_tree_add_bi... | 0 |
344,374 | add_account (GoaProvider *provider,
GoaClient *client,
GtkDialog *dialog,
GtkBox *vbox,
GError **error)
{
AddAccountData data;
GVariantBuilder credentials;
GVariantBuilder details;
GoaEwsClient *ews_client;
GoaObject *ret;
const... | 1 |
490,762 | static int flv_write_trailer(AVFormatContext *s)
{
int64_t file_size;
AVIOContext *pb = s->pb;
FLVContext *flv = s->priv_data;
int i;
/* Add EOS tag */
for (i = 0; i < s->nb_streams; i++) {
AVCodecContext *enc = s->streams[i]->codec;
FLVStreamContext *sc = s->streams[i]->priv_d... | 0 |
486,447 | ossl_cipher_is_authenticated(VALUE self)
{
EVP_CIPHER_CTX *ctx;
int nid;
GetCipher(self, ctx);
nid = EVP_CIPHER_CTX_nid(ctx);
if (ossl_is_gcm(nid)) {
return Qtrue;
} else {
return Qfalse;
}
} | 0 |
61,994 | static int __sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
{
int err;
struct sock_diag_req *req = nlmsg_data(nlh);
const struct sock_diag_handler *hndl;
if (nlmsg_len(nlh) < sizeof(*req))
return -EINVAL;
if (req->sdiag_family >= AF_MAX)
return -EINVAL;
hndl = sock_diag_lock_handler(req->sdia... | 0 |
59,856 | static int get_wcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd,
const struct kvm_one_reg *reg, void __user *uaddr)
{
__u64 *r = &vcpu->arch.vcpu_debug_state.dbg_wcr[rd->reg];
if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0)
return -EFAULT;
return 0;
} | 0 |
83,249 | }
static inline bool f2fs_hw_support_discard(struct f2fs_sb_info *sbi)
{
int i;
if (!f2fs_is_multi_device(sbi))
return f2fs_bdev_support_discard(sbi->sb->s_bdev);
for (i = 0; i < sbi->s_ndevs; i++)
if (f2fs_bdev_support_discard(FDEV(i).bdev))
return true; | 0 |
374,908 | _outBitmapHeapScan(StringInfo str, const BitmapHeapScan *node)
{
WRITE_NODE_TYPE("BITMAPHEAPSCAN");
_outScanInfo(str, (const Scan *) node);
WRITE_NODE_FIELD(bitmapqualorig);
} | 0 |
29,534 | static inline int check_for_slice ( AVSContext * h ) {
GetBitContext * gb = & h -> gb ;
int align ;
if ( h -> mbx ) return 0 ;
align = ( - get_bits_count ( gb ) ) & 7 ;
if ( ! align && ( show_bits ( gb , 8 ) == 0x80 ) ) align = 8 ;
if ( ( show_bits_long ( gb , 24 + align ) & 0xFFFFFF ) == 0x000001 ) {
skip_bits_... | 0 |
375,187 | _equalRangeTblEntry(const RangeTblEntry *a, const RangeTblEntry *b)
{
COMPARE_SCALAR_FIELD(rtekind);
COMPARE_SCALAR_FIELD(relid);
COMPARE_SCALAR_FIELD(relkind);
COMPARE_NODE_FIELD(subquery);
COMPARE_SCALAR_FIELD(security_barrier);
COMPARE_SCALAR_FIELD(jointype);
COMPARE_NODE_FIELD(joinaliasvars);
COMPARE_NODE_F... | 0 |
467,561 | EXPORTED char *dumpentryatt(const struct entryattlist *l)
{
struct buf buf = BUF_INITIALIZER;
const struct entryattlist *ee;
buf_printf(&buf, "(");
const char *sp = "";
const struct attvaluelist *av;
for (ee = l ; ee ; ee = ee->next) {
buf_printf(&buf, "%s%s (", sp, ee->entry);
... | 0 |
100,206 | njs_vm_retval(njs_vm_t *vm)
{
return &vm->retval;
} | 0 |
335,751 | static void mkv_free(MatroskaMuxContext *mkv) {
if (mkv->main_seekhead) {
av_freep(&mkv->main_seekhead->entries);
av_freep(&mkv->main_seekhead);
if (mkv->cues) {
av_freep(&mkv->cues->entries);
av_freep(&mkv->cues);
if (mkv->attachments) {
av... | 1 |
47,872 | **/
CImg<T>& assign(const unsigned int size_x, const unsigned int size_y,
const unsigned int size_z, const unsigned int size_c,
const double value0, const double value1, ...) {
assign(size_x,size_y,size_z,size_c);
_CImg_stdarg(*this,value0,value1,(size_t)size_... | 0 |
131,850 | MagickCore::QuantizeInfo *Magick::Image::quantizeInfo(void)
{
return(_imgRef->options()->quantizeInfo());
} | 0 |
268,684 | void dhcpServerParseInform(DhcpServerContext *context,
const DhcpMessage *message, size_t length)
{
//Make sure the client IP address is valid
if(message->ciaddr != IPV4_UNSPECIFIED_ADDR)
{
//Servers receiving a DHCPINFORM message construct a DHCPACK message
//with any local configuration parame... | 0 |
453,676 | numericStringNormalize(
slap_mask_t usage,
Syntax *syntax,
MatchingRule *mr,
struct berval *val,
struct berval *normalized,
void *ctx )
{
/* removal all spaces */
char *p, *q;
assert( !BER_BVISEMPTY( val ) );
normalized->bv_val = slap_sl_malloc( val->bv_len + 1, ctx );
p = val->bv_val;
q = normalized->bv... | 0 |
399,642 | static bool start_flush_work(struct work_struct *work, struct wq_barrier *barr)
{
struct worker *worker = NULL;
struct worker_pool *pool;
struct pool_workqueue *pwq;
might_sleep();
local_irq_disable();
pool = get_work_pool(work);
if (!pool) {
local_irq_enable();
return false;
}
spin_lock(&pool->lock);
... | 0 |
23,059 | int write_command_to_file ( char * cmd ) {
char * buffer ;
char * ip_address ;
int dummy ;
char * p ;
FILE * fp ;
struct stat statbuf ;
char error_string [ MAX_INPUT_BUFFER ] ;
if ( ! cmd || ! * cmd || strchr ( cmd , '\n' ) ) return ERROR ;
if ( stat ( command_file , & statbuf ) ) {
snprintf ( error_string , ... | 0 |
93,808 | cifs_writedata_alloc(unsigned int nr_pages)
{
struct cifs_writedata *wdata;
/* this would overflow */
if (nr_pages == 0) {
cERROR(1, "%s: called with nr_pages == 0!", __func__);
return NULL;
}
/* writedata + number of page pointers */
wdata = kzalloc(sizeof(*wdata) +
sizeof(struct page *) * (nr_pages - 1... | 0 |
265,877 | void CollectGraphs(EagerContext* ctx) {
mutex_lock ml(*ctx->MetadataMu());
GraphCollector* collector = ctx->GetGraphCollector();
mutex_lock mll(collector->mu);
// Adding to partition graphs for backward compatibility.
for (const auto& graph : collector->partitioned_graphs) {
*ctx->RunMetadataProto()->ad... | 0 |
290,356 | static int imc_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
int ret, i;
IMCContext *q = avctx->priv_data;
LOCAL_ALIGNED_16(ui... | 1 |
455,106 | TEST_F(QueryPlannerTest, ShardFilterBasicCovered) {
params.options = QueryPlannerParams::INCLUDE_SHARD_FILTER;
params.shardKey = BSON("a" << 1);
addIndex(BSON("a" << 1));
runQuery(fromjson("{a: 1}"));
assertNumSolutions(1U);
assertSolutionExists(
"{fetch: {node: "
"{sharding_fi... | 0 |
200,697 | static void LodePNGText_cleanup(LodePNGInfo* info)
{
size_t i;
for(i = 0; i < info->text_num; i++)
{
string_cleanup(&info->text_keys[i]);
string_cleanup(&info->text_strings[i]);
}
free(info->text_keys);
free(info->text_strings);
}
| 0 |
332,114 | void qemu_vfree(void *ptr)
{
/* may be useful some day, but currently we do not need to free */
}
| 0 |
352,064 | TPMI_SM4_KEY_BITS_Unmarshal(TPMI_SM4_KEY_BITS *target, BYTE **buffer, INT32 *size)
{
TPM_RC rc = TPM_RC_SUCCESS;
if (rc == TPM_RC_SUCCESS) {
rc = TPM_KEY_BITS_Unmarshal(target, buffer, size);
}
if (rc == TPM_RC_SUCCESS) {
switch (*target) {
case 128:
break;
default:
rc = TPM_RC_VALU... | 1 |
297,898 | ASC_acceptContextsWithPreferredTransferSyntaxes(
T_ASC_Parameters * params,
const char* abstractSyntaxes[], int abstractSyntaxCount,
const char* transferSyntaxes[], int transferSyntaxCount,
T_ASC_SC_ROLE acceptedRole)
{
int i;
OFCondition cond = EC_Normal;
/*
** Accept in the order "leas... | 0 |
466,253 | TEST_F(HttpConnectionManagerImplTest, DateHeaderNotPresent) {
setup(false, "");
setUpEncoderAndDecoder(false, false);
sendRequestHeadersAndData();
const auto* modified_headers = sendResponseHeaders(
ResponseHeaderMapPtr{new TestResponseHeaderMapImpl{{":status", "200"}, {"server", "foo"}}});
ASSERT_TRUE(... | 0 |
393,958 | void show_state_filter(unsigned long state_filter)
{
struct task_struct *g, *p;
#if BITS_PER_LONG == 32
printk(KERN_INFO
" task PC stack pid father\n");
#else
printk(KERN_INFO
" task PC stack pid father\n");
#endif
rcu_read_lock();
for_each_process_thread(g, p) {
... | 0 |
63,899 | Wasm::Wasm(absl::string_view vm, absl::string_view vm_id, absl::string_view vm_configuration,
PluginSharedPtr plugin, Stats::ScopeSharedPtr scope,
Upstream::ClusterManager& cluster_manager, Event::Dispatcher& dispatcher)
: vm_id_(std::string(vm_id)), wasm_vm_(Common::Wasm::createWasmVm(vm)), p... | 0 |
415,535 | imapx_untagged_flags (CamelIMAPXServer *is,
GInputStream *input_stream,
GCancellable *cancellable,
GError **error)
{
guint32 flags = 0;
gboolean success;
g_return_val_if_fail (CAMEL_IS_IMAPX_SERVER (is), FALSE);
success = imapx_parse_flags (
CAME... | 0 |
247,429 | void RenderWidgetHostViewAura::OnLegacyWindowDestroyed() {
legacy_render_widget_host_HWND_ = NULL;
legacy_window_destroyed_ = true;
}
| 0 |
234,660 | bool HTMLFormControlElement::isAutofocusable() const
{
return fastHasAttribute(autofocusAttr) && supportsAutofocus();
}
| 0 |
107,284 | static char *write_metadata (WavpackMetadata *wpmd, char *outdata)
{
unsigned char id = wpmd->id, wordlen [3];
wordlen [0] = (wpmd->byte_length + 1) >> 1;
wordlen [1] = (wpmd->byte_length + 1) >> 9;
wordlen [2] = (wpmd->byte_length + 1) >> 17;
if (wpmd->byte_length & 1)
id |= ID_ODD_SIZE;
... | 0 |
298,258 | void CreateStatusBar(void)
{
SIZE sz = {0, 0};
RECT rect;
LONG x, y, width, height;
int edge[3];
TBBUTTON tbbStatusToolbarButtons[1];
TBBUTTONINFO tbi;
HFONT hFont;
HDC hDC;
// Create the status bar (WS_CLIPSIBLINGS since we have an overlapping button)
hStatus = CreateWindowExW(0, STATUSCLASSNAME, NULL, WS_C... | 0 |
19,254 | IN_PROC_BROWSER_TEST_F ( BluetoothChooserBrowserTest , InvokeDialog_ConnectedBubble ) {
set_status ( FakeBluetoothChooserController : : BluetoothStatus : : IDLE ) ;
AddConnectedDevice ( ) ;
RunDialog ( ) ;
} | 0 |
341,195 | void ff_vp3_idct_c(DCTELEM *block/* align 16*/){
idct(NULL, 0, block, 0);
}
| 0 |
334,700 | static bool memory_region_access_valid(MemoryRegion *mr,
target_phys_addr_t addr,
unsigned size)
{
if (!mr->ops->valid.unaligned && (addr & (size - 1))) {
return false;
}
/* Treat zero as compatibility all valid *... | 0 |
299,258 | int mg_base64_final(char *to, int n) {
int saved = n;
// printf("---[%.*s]\n", n, to);
if (n & 3) n = mg_base64_update(0, to, n);
if ((saved & 3) == 2) n--;
// printf(" %d[%.*s]\n", n, n, to);
while (n & 3) to[n++] = '=';
to[n] = '\0';
return n;
} | 0 |
423,033 | *__dma_request_slave_channel_compat(const dma_cap_mask_t *mask,
dma_filter_fn fn, void *fn_param,
struct device *dev, char *name)
{
struct dma_chan *chan;
chan = dma_request_slave_channel(dev, name);
if (chan)
return chan;
return __dma_request_channel(mask, fn, fn_param);
} | 0 |
471,294 | void killRDBChild(void) {
kill(server.rdb_child_pid,SIGUSR1);
rdbRemoveTempFile(server.rdb_child_pid, 0);
closeChildInfoPipe();
updateDictResizePolicy();
} | 0 |
473,917 | hash_value_compare(const void *a, const void *b)
{
uint64_t ia = (uint64_t)a;
uint64_t ib = (uint64_t)b;
return ia == ib;
} | 0 |
258,048 | int get_ber_length ( tvbuff_t * tvb , int offset , guint32 * length , gboolean * ind ) {
return try_get_ber_length ( tvb , offset , length , ind , 1 ) ;
} | 0 |
98,786 | findfilendir(
typval_T *argvars UNUSED,
typval_T *rettv,
int find_what UNUSED)
{
#ifdef FEAT_SEARCHPATH
char_u *fname;
char_u *fresult = NULL;
char_u *path = *curbuf->b_p_path == NUL ? p_path : curbuf->b_p_path;
char_u *p;
char_u pathbuf[NUMBUFLEN];
int count = 1;
int first = ... | 0 |
298,765 | static cimg_uint64 min() { return 0; } | 0 |
95,553 | virtio_set_modern_pio_bar(struct virtio_base *base, int barnum)
{
int rc;
struct virtio_pci_notify_cap notify_pio = {
.cap.cap_vndr = PCIY_VENDOR,
.cap.cap_next = 0,
.cap.cap_len = sizeof(notify_pio),
.cap.cfg_type = VIRTIO_PCI_CAP_NOTIFY_CFG,
.cap.bar = barnum,
.cap.offset = 0,
.cap.length = 4,
.noti... | 0 |
394,631 | wb_set_offset(struct archive_write *a, int64_t off)
{
struct iso9660 *iso9660 = (struct iso9660 *)a->format_data;
int64_t used, ext_bytes;
if (iso9660->wbuff_type != WB_TO_TEMP) {
archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
"Internal Programing error: iso9660:wb_set_offset()");
return (ARCHIVE_FATA... | 0 |
258,392 | char * xmlrpc_time2date ( char * buf , time_t t ) {
char timebuf [ XMLRPC_BUFSIZE ] ;
struct tm * tm ;
* buf = '\0' ;
tm = localtime ( & t ) ;
strftime ( timebuf , XMLRPC_BUFSIZE - 1 , "%Y%m%dT%I:%M:%S" , tm ) ;
snprintf ( buf , XMLRPC_BUFSIZE , "<dateTime.iso8601>%s</dateTime.iso8601>" , timebuf ) ;
return buf ... | 0 |
176,665 | LoginBigUserView* LockContentsView::TestApi::primary_big_view() const {
return view_->primary_big_view_;
}
| 0 |
113,961 | nv_exmode(cmdarg_T *cap)
{
/*
* Ignore 'Q' in Visual mode, just give a beep.
*/
if (VIsual_active)
vim_beep(BO_EX);
else if (!checkclearop(cap->oap))
do_exmode(FALSE);
} | 0 |
472,050 | static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info)
{
stbi_uc version;
if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' || stbi__get8(s) != '8')
return stbi__err("not GIF", "Corrupt GIF");
version = stbi__get8(s);
if (version != '7' && version !... | 0 |
259,608 | static unsigned long weighted_cpuload(const int cpu)
{
return cpu_rq(cpu)->load.weight;
} | 0 |
481,663 | static int nf_tables_fill_rule_info(struct sk_buff *skb, struct net *net,
u32 portid, u32 seq, int event,
u32 flags, int family,
const struct nft_table *table,
const struct nft_chain *chain,
const struct nft_rule *rule, u64 handle)
{
struct nlmsghdr *nlh;
const struct nft_expr ... | 0 |
151,831 | Perl_reg_numbered_buff_length(pTHX_ REGEXP * const r, const SV * const sv,
const I32 paren)
{
struct regexp *const rx = ReANY(r);
I32 i;
I32 s1, t1;
PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_LENGTH;
if ( paren == RX_BUFF_IDX_CARET_PREMATCH
|| paren == RX_BUFF_IDX_C... | 0 |
30,381 | static inline uint8_t NVRAM_get_byte ( m48t59_t * nvram , uint32_t addr ) {
m48t59_set_addr ( nvram , addr ) ;
return m48t59_read ( nvram ) ;
} | 0 |
328,086 | static void x86_cpu_realizefn(DeviceState *dev, Error **errp)
{
CPUState *cs = CPU(dev);
X86CPU *cpu = X86_CPU(dev);
X86CPUClass *xcc = X86_CPU_GET_CLASS(dev);
CPUX86State *env = &cpu->env;
Error *local_err = NULL;
static bool ht_warned;
if (xcc->kvm_required && !kvm_enabled()) {
... | 0 |
119,399 | void *fxArrayBuffer(txMachine* the, txSlot* slot, void* data, txInteger byteLength, txInteger maxByteLength)
{
txSlot* instance;
txSlot* arrayBuffer;
txSlot* bufferInfo;
if (byteLength < 0)
mxRangeError("invalid byteLength %ld", byteLength);
mxPush(mxArrayBufferPrototype);
instance = fxNewArrayBufferInstance(th... | 0 |
296,404 | GF_Err sdp_box_read(GF_Box *s, GF_BitStream *bs)
{
u32 length;
GF_SDPBox *ptr = (GF_SDPBox *)s;
if (ptr == NULL) return GF_BAD_PARAM;
length = (u32) (ptr->size);
if (length >= (u32)0xFFFFFFFF) {
GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[iso file] Invalid length %lu in sdp box\n", length));
return GF_ISOM_INV... | 0 |
271,091 | SYSCALL_DEFINE2(sched_rr_get_interval, pid_t, pid,
struct timespec __user *, interval)
{
struct task_struct *p;
unsigned int time_slice;
unsigned long flags;
struct rq *rq;
int retval;
struct timespec t;
if (pid < 0)
return -EINVAL;
retval = -ESRCH;
rcu_read_lock();
p = find_process_by_pid(pid);
if (!p... | 0 |
295,390 | void traf_del(GF_Box *s)
{
GF_TrackFragmentBox *ptr = (GF_TrackFragmentBox *)s;
if (ptr == NULL) return;
if (ptr->tfhd) gf_isom_box_del((GF_Box *) ptr->tfhd);
if (ptr->sdtp) gf_isom_box_del((GF_Box *) ptr->sdtp);
if (ptr->sub_samples) gf_isom_box_array_del(ptr->sub_samples);
if (ptr->tfdt) gf_isom_box_del((GF_Box... | 0 |
245,575 | void parseVorbisComment(
const sp<MetaData> &fileMeta, const char *comment, size_t commentLength)
{
struct {
const char *const mTag;
uint32_t mKey;
} kMap[] = {
{ "TITLE", kKeyTitle },
{ "ARTIST", kKeyArtist },
{ "ALBUMARTIST", kKeyAlbumArtist },
{ "ALBUM ARTIST", kKeyAlbumArtist },
{ "COMPILATION", kKeyCompi... | 0 |
142,105 | qemuProcessShutdownOrReboot(virQEMUDriverPtr driver,
virDomainObjPtr vm)
{
qemuDomainObjPrivatePtr priv = vm->privateData;
if (priv->fakeReboot) {
g_autofree char *name = g_strdup_printf("reboot-%s", vm->def->name);
virThread th;
qemuDomainSetFakeReboot(driv... | 0 |
106,497 | TEST_P(TcpTunnelingIntegrationTest, BasicUsePost) {
// Enable using POST.
config_helper_.addConfigModifier([&](envoy::config::bootstrap::v3::Bootstrap& bootstrap) -> void {
envoy::extensions::filters::network::tcp_proxy::v3::TcpProxy proxy_config;
proxy_config.set_stat_prefix("tcp_stats");
proxy_config.... | 0 |
253,755 | BluetoothDeviceChooserController::BluetoothDeviceChooserController(
WebBluetoothServiceImpl* web_bluetooth_service,
RenderFrameHost* render_frame_host,
device::BluetoothAdapter* adapter)
: adapter_(adapter),
web_bluetooth_service_(web_bluetooth_service),
render_frame_host_(render_frame_host)... | 0 |
286,873 | static void m5206_mbar_writew(void *opaque, target_phys_addr_t offset,
uint32_t value)
{
m5206_mbar_state *s = (m5206_mbar_state *)opaque;
int width;
offset &= 0x3ff;
if (offset >= 0x200) {
hw_error("Bad MBAR write offset 0x%x", (int)offset);
}
widt... | 0 |
414,306 | GuestLogicalProcessorList *qmp_guest_get_vcpus(Error **errp)
{
PSYSTEM_LOGICAL_PROCESSOR_INFORMATION pslpi, ptr;
DWORD length;
GuestLogicalProcessorList *head, **link;
Error *local_err = NULL;
int64_t current;
ptr = pslpi = NULL;
length = 0;
current = 0;
head = NULL;
link = &hea... | 0 |
304,274 | utfc_ptr2len(char_u *p)
{
int len;
int b0 = *p;
#ifdef FEAT_ARABIC
int prevlen;
#endif
if (b0 == NUL)
return 0;
if (b0 < 0x80 && p[1] < 0x80) // be quick for ASCII
return 1;
// Skip over first UTF-8 char, stopping at a NUL byte.
len = utf_ptr2len(p);
// Check for illegal byte.
... | 0 |
156,854 | void CLASS parse_ciff (int offset, int length, int depth)
{
int tboff, nrecs, c, type, len, save, wbi=-1;
ushort key[] = { 0x410, 0x45f3 };
fseek (ifp, offset+length-4, SEEK_SET);
tboff = get4() + offset;
fseek (ifp, tboff, SEEK_SET);
nrecs = get2();
if ((nrecs | depth) > 127) return;
while (nrecs--) {... | 0 |
36,873 | static int pfkey_send_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
const struct xfrm_migrate *m, int num_bundles,
const struct xfrm_kmaddress *k)
{
int i;
int sasize_sel;
int size = 0;
int size_pol = 0;
struct sk_buff *skb;
struct sadb_msg *hdr;
struct sadb_x_policy *pol;
const st... | 0 |
33,489 | void test_checkout_nasty__dot_dotgit_tree(void)
{
test_checkout_fails("refs/heads/dot_dotgit_tree", ".git/foobar");
} | 0 |
488,869 | static gboolean avdtp_parse_resp(struct avdtp *session,
struct avdtp_stream *stream,
uint8_t transaction, uint8_t signal_id,
void *buf, int size)
{
struct pending_req *next;
const char *get_all = "";
if (session->prio_queue)
next = session->prio_queue->data;
else if (session->req_queue)
next = s... | 0 |
30,164 | void bn_sqr_comba8 ( BN_ULONG * r , const BN_ULONG * a ) {
BN_ULONG c1 , c2 , c3 ;
c1 = 0 ;
c2 = 0 ;
c3 = 0 ;
sqr_add_c ( a , 0 , c1 , c2 , c3 ) ;
r [ 0 ] = c1 ;
c1 = 0 ;
sqr_add_c2 ( a , 1 , 0 , c2 , c3 , c1 ) ;
r [ 1 ] = c2 ;
c2 = 0 ;
sqr_add_c ( a , 1 , c3 , c1 , c2 ) ;
sqr_add_c2 ( a , 2 , 0 , c3 , c1 ,... | 0 |
67,643 | Type makeFrozenStructALike() {
Type structALike;
structALike.fieldA_ref() = 2000;
return structALike;
} | 0 |
228,114 | static void NPN_UnscheduleTimer(NPP instance, uint32_t timerID)
{
notImplemented();
}
| 0 |
220,657 | CoreEnterLeaveEvent(DeviceIntPtr mouse,
int type,
int mode, int detail, WindowPtr pWin, Window child)
{
xEvent event = {
.u.u.type = type,
.u.u.detail = detail
};
WindowPtr focus;
DeviceIntPtr keybd;
GrabPtr grab = mouse->deviceGrab.grab;
M... | 0 |
75,810 | void CServer::ConchainPlayerSlotsUpdate(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
{
pfnCallback(pResult, pCallbackUserData);
CServer *pSelf = (CServer *)pUserData;
if(pResult->NumArguments())
{
if(pSelf->Config()->m_SvMaxClients < pSelf->Config()... | 0 |
209,481 | void FileAPIMessageFilter::OnAppendSharedMemory(
const GURL& url, base::SharedMemoryHandle handle, size_t buffer_size) {
DCHECK(base::SharedMemory::IsHandleValid(handle));
if (!buffer_size) {
BadMessageReceived();
return;
}
#if defined(OS_WIN)
base::SharedMemory shared_memory(handle, true, peer_hand... | 0 |
222,548 | static int __apic_accept_irq(struct kvm_vcpu *vcpu, uint64_t vector)
{
struct vpd *vpd = to_host(vcpu->kvm, vcpu->arch.vpd);
if (!test_and_set_bit(vector, &vpd->irr[0])) {
vcpu->arch.irq_new_pending = 1;
kvm_vcpu_kick(vcpu);
return 1;
}
return 0;
}
| 0 |
37,267 | static int64_t Unknown() { return -1; } | 0 |
495,274 | lexer_string_is_use_strict (parser_context_t *context_p) /**< context */
{
JERRY_ASSERT (context_p->token.type == LEXER_LITERAL && context_p->token.lit_location.type == LEXER_STRING_LITERAL);
return (context_p->token.lit_location.length == 10
&& !(context_p->token.lit_location.status_flags & LEXER_LIT_LO... | 0 |
274,271 | lookupGid(const string &groupName) {
struct group *groupEntry;
groupEntry = getgrnam(groupName.c_str());
if (groupEntry == NULL) {
if (looksLikePositiveNumber(groupName)) {
return atoi(groupName);
} else {
return (gid_t) -1;
}
} else {
return groupEntry->gr_gid;
}
} | 0 |
16,549 | IN_PROC_BROWSER_TEST_F ( ExtensionMessageBubbleViewBrowserTest , ExtensionBubbleAnchoredToAppMenu ) {
TestBubbleAnchoredToAppMenu ( ) ;
} | 0 |
507,115 | int DSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig,
unsigned int *siglen, DSA *dsa)
{
DSA_SIG *s;
#ifdef OPENSSL_FIPS
if(FIPS_mode() && !(dsa->flags & DSA_FLAG_NON_FIPS_ALLOW))
{
DSAerr(DSA_F_DSA_SIGN, DSA_R_OPERATION_NOT_ALLOWED_IN_FIPS_MODE);
return 0;
}
#endif
RAND_seed(... | 0 |
447,472 | smtp_set_error (CamelSmtpTransport *transport,
CamelStreamBuffer *istream,
const gchar *respbuf,
GCancellable *cancellable,
GError **error)
{
const gchar *token, *rbuf = respbuf;
gchar *buffer = NULL;
GString *string;
g_return_if_fail (respbuf != NULL);
string = ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.