idx int64 | func string | target int64 |
|---|---|---|
226,240 |
GF_Err stsg_box_size(GF_Box *s)
{
GF_SubTrackSampleGroupBox *ptr = (GF_SubTrackSampleGroupBox *)s;
ptr->size += 6 + 4 * ptr->nb_groups;
return GF_OK; | 0 |
437,006 | static void mcba_usb_write_bulk_callback(struct urb *urb)
{
struct mcba_usb_ctx *ctx = urb->context;
struct net_device *netdev;
WARN_ON(!ctx);
netdev = ctx->priv->netdev;
/* free up our allocated buffer */
usb_free_coherent(urb->dev, urb->transfer_buffer_length,
urb->transfer_buffer, urb->transfer_dma);
... | 0 |
285,157 | RList *r_bin_ne_get_entrypoints(r_bin_ne_obj_t *bin) {
if (!bin->entry_table) {
return NULL;
}
RList *entries = r_list_newf (free);
if (!entries) {
return NULL;
}
RList *segments = r_bin_ne_get_segments (bin);
if (!segments) {
r_list_free (entries);
return NULL;
}
if (bin->ne_header->csEntryPoint) {
... | 0 |
261,956 | njs_string_prototype_includes(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
njs_index_t unused)
{
int64_t index, length, search_length;
njs_int_t ret;
njs_value_t *value;
const u_char *p, *end;
const njs_value_t *retval;
njs_string_prop_t string, searc... | 0 |
418,791 | mouse_comp_pos(
win_T *win,
int *rowp,
int *colp,
linenr_T *lnump,
int *plines_cache)
{
int col = *colp;
int row = *rowp;
linenr_T lnum;
int retval = FALSE;
int off;
int count;
#ifdef FEAT_RIGHTLEFT
if (win->w_p_rl)
col = win->w_width - 1 - col;
#endif
lnum... | 0 |
384,783 | vim_islower(int c)
{
if (c <= '@')
return FALSE;
if (c >= 0x80)
{
if (enc_utf8)
return utf_islower(c);
if (c >= 0x100)
{
#ifdef HAVE_ISWLOWER
if (has_mbyte)
return iswlower(c);
#endif
// islower() can't handle these chars and may crash
return FALSE;
}
if (enc_latin1like)
ret... | 0 |
380,956 | edit(
int cmdchar,
int startln, // if set, insert at start of line
long count)
{
int c = 0;
char_u *ptr;
int lastc = 0;
int mincol;
static linenr_T o_lnum = 0;
int i;
int did_backspace = TRUE; // previous char was backspace
int line_is_white = FALSE; // line i... | 0 |
436,066 | static int io_read(struct io_kiocb *req, unsigned int issue_flags)
{
struct iovec inline_vecs[UIO_FASTIOV], *iovec = inline_vecs;
struct kiocb *kiocb = &req->rw.kiocb;
struct iov_iter __iter, *iter = &__iter;
struct io_async_rw *rw = req->async_data;
ssize_t io_size, ret, ret2;
bool force_nonblock = issue_flags &... | 0 |
505,649 | smtp_command_parse_data_with_size(struct smtp_command_parser *parser,
uoff_t size)
{
i_assert(parser->data == NULL);
if (size > parser->limits.max_data_size) {
/* not supposed to happen; command should check size */
parser->data = i_stream_create_error_str(EMSGSIZE,
"Command data size exceeds maximum "
"(... | 0 |
224,538 | Status QuantizedConv2DShape(InferenceContext* c) {
TF_RETURN_IF_ERROR(shape_inference::Conv2DShape(c));
ShapeHandle unused;
TF_RETURN_IF_ERROR(c->WithRank(c->input(2), 0, &unused));
TF_RETURN_IF_ERROR(c->WithRank(c->input(3), 0, &unused));
TF_RETURN_IF_ERROR(c->WithRank(c->input(4), 0, &unused));
TF_RETURN_... | 0 |
215,374 | static int sctp_setsockopt_auth_key(struct sock *sk,
char __user *optval,
int optlen)
{
struct sctp_authkey *authkey;
struct sctp_association *asoc;
int ret;
if (!sctp_auth_enable)
return -EACCES;
if (optlen <= sizeof(struct sctp_authkey))
return -EINVAL;
authkey = kmalloc(optlen, GFP_KERNE... | 1 |
424,959 | static void iwl_trans_pcie_write_shr(struct iwl_trans *trans, u32 reg, u32 val)
{
iwl_write32(trans, HEEP_CTRL_WRD_PCIEX_DATA_REG, val);
iwl_write32(trans, HEEP_CTRL_WRD_PCIEX_CTRL_REG,
((reg & 0x0000ffff) | (3 << 28)));
} | 0 |
247,524 | TEST_P(SslSocketTest, TestConnectionFailsOnMultipleCertificatesNonePassOcspPolicy) {
const std::string server_ctx_yaml = R"EOF(
common_tls_context:
tls_certificates:
- certificate_chain:
filename: "{{ test_rundir }}/test/extensions/transport_sockets/tls/ocsp/test_data/revoked_cert.pem"
private... | 0 |
432,287 | static MemTxResult memory_region_read_accessor(struct uc_struct *uc, MemoryRegion *mr,
hwaddr addr,
uint64_t *value,
unsigned size,
... | 0 |
312,525 | qf_set_title_var(qf_list_T *qfl)
{
if (qfl->qf_title != NULL)
set_internal_string_var((char_u *)"w:quickfix_title", qfl->qf_title);
} | 0 |
292,190 | inbound_user_info (session *sess, char *chan, char *user, char *host,
char *servname, char *nick, char *realname,
char *account, unsigned int away,
const message_tags_data *tags_data)
{
server *serv = sess->server;
session *who_sess;
GSList *list;
char *uhost = NULL;
if (user && host)
{
uh... | 0 |
458,916 | cin_is_cpp_namespace(char_u *s)
{
char_u *p;
int has_name = FALSE;
int has_name_start = FALSE;
s = cin_skipcomment(s);
if (STRNCMP(s, "namespace", 9) == 0 && (s[9] == NUL || !vim_iswordc(s[9])))
{
p = cin_skipcomment(skipwhite(s + 9));
while (*p != NUL)
{
if (VIM_ISWHITE(*p))
{
... | 0 |
229,292 | std::unique_ptr<cql_server::response> cql_server::connection::make_auth_success(int16_t stream, bytes b, const tracing::trace_state_ptr& tr_state) const {
auto response = std::make_unique<cql_server::response>(stream, cql_binary_opcode::AUTH_SUCCESS, tr_state);
response->write_bytes(std::move(b));
return re... | 0 |
489,167 | sctp_disposition_t sctp_sf_do_5_1E_ca(const struct sctp_endpoint *ep,
const struct sctp_association *asoc,
const sctp_subtype_t type, void *arg,
sctp_cmd_seq_t *commands)
{
struct sctp_chunk *chunk = arg;
struct sctp_ulpevent *ev;
if (!sctp_vtag_verify(chunk, asoc))
return sctp_sf_pd... | 0 |
447,066 | SshIo::SshImpl::SshImpl(const std::string& url, size_t blockSize):Impl(url, blockSize)
{
hostInfo_ = Exiv2::Uri::Parse(url);
Exiv2::Uri::Decode(hostInfo_);
// remove / at the beginning of the path
if (hostInfo_.Path[0] == '/') {
hostInfo_.Path = hostInfo_.Path.substr... | 0 |
512,990 | virtual bool set_extraction_flag_processor(void *arg)
{
set_extraction_flag(*(int*)arg);
return 0;
} | 0 |
442,786 | static const char *param2text(int res)
{
ParameterError error = (ParameterError)res;
switch(error) {
case PARAM_GOT_EXTRA_PARAMETER:
return "had unsupported trailing garbage";
case PARAM_OPTION_UNKNOWN:
return "is unknown";
case PARAM_OPTION_AMBIGUOUS:
return "is ambiguous";
case PARAM_REQUIRES_... | 0 |
512,959 | bool with_sum_func() const { return m_with_sum_func; } | 0 |
212,871 | std::string controller::bookmark(
const std::string& url,
const std::string& title,
const std::string& description,
const std::string& feed_title)
{
std::string bookmark_cmd = cfg.get_configvalue("bookmark-cmd");
bool is_interactive = cfg.get_configvalue_as_bool("bookmark-interactive");
if (bookmark_cmd.leng... | 1 |
225,959 | GF_Err padb_box_write(GF_Box *s, GF_BitStream *bs)
{
u32 i;
GF_Err e;
GF_PaddingBitsBox *ptr = (GF_PaddingBitsBox *) s;
e = gf_isom_full_box_write(s, bs);
if (e) return e;
gf_bs_write_int(bs, ptr->SampleCount, 32);
for (i=0 ; i<ptr->SampleCount; i += 2) {
gf_bs_write_int(bs, 0, 1);
if (i+1 < ptr->SampleCou... | 0 |
317,178 | static void selinux_inet_conn_established(struct sock *sk, struct sk_buff *skb)
{
u16 family = sk->sk_family;
struct sk_security_struct *sksec = sk->sk_security;
/* handle mapped IPv4 packets arriving via IPv6 sockets */
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
family = PF_INET;
selinux_skb_... | 0 |
225,946 |
GF_Err prft_box_read(GF_Box *s,GF_BitStream *bs)
{
GF_ProducerReferenceTimeBox *ptr = (GF_ProducerReferenceTimeBox *) s;
ISOM_DECREASE_SIZE(ptr, 12);
ptr->refTrackID = gf_bs_read_u32(bs);
ptr->ntp = gf_bs_read_u64(bs);
if (ptr->version==0) {
ISOM_DECREASE_SIZE(ptr, 4);
ptr->timestamp = gf_bs_read_u32(bs);
}... | 0 |
252,369 | void *tdefl_write_image_to_png_file_in_memory(const void *pImage, int w, int h,
int num_chans, size_t *pLen_out) {
// Level 6 corresponds to TDEFL_DEFAULT_MAX_PROBES or MZ_DEFAULT_LEVEL (but we
// can't depend on MZ_DEFAULT_LEVEL being available in case the zlib API's
... | 0 |
236,196 | void gppc_box_del(GF_Box *s)
{
GF_3GPPConfigBox *ptr = (GF_3GPPConfigBox *)s;
if (ptr == NULL) return;
gf_free(ptr);
} | 0 |
294,562 | datetime_s_xmlschema(int argc, VALUE *argv, VALUE klass)
{
VALUE str, sg, opt;
rb_scan_args(argc, argv, "02:", &str, &sg, &opt);
if (!NIL_P(opt)) argc--;
switch (argc) {
case 0:
str = rb_str_new2("-4712-01-01T00:00:00+00:00");
case 1:
sg = INT2FIX(DEFAULT_SG);
}
{
int ar... | 0 |
424,924 | static void iwl_trans_pcie_stop_device(struct iwl_trans *trans)
{
struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
bool was_in_rfkill;
mutex_lock(&trans_pcie->mutex);
trans_pcie->opmode_down = true;
was_in_rfkill = test_bit(STATUS_RFKILL_OPMODE, &trans->status);
_iwl_trans_pcie_stop_device(tr... | 0 |
245,188 | select_history()
{
if (opt_incremental_history_name || opt_incremental_history_uuid) {
if (!select_incremental_lsn_from_history(
&incremental_lsn)) {
return(false);
}
}
return(true);
} | 0 |
279,937 | get_old_sub(void)
{
return old_sub;
} | 0 |
369,241 |
static __poll_t io_uring_poll(struct file *file, poll_table *wait)
{
struct io_ring_ctx *ctx = file->private_data;
__poll_t mask = 0;
poll_wait(file, &ctx->cq_wait, wait);
/*
* synchronizes with barrier from wq_has_sleeper call in
* io_commit_cqring
*/
smp_rmb();
if (!io_sqring_full(ctx))
mask |= EPOLLO... | 0 |
484,804 | static bool xennet_can_sg(struct net_device *dev)
{
return dev->features & NETIF_F_SG;
} | 0 |
443,708 | is_valid_mbc_string(const UChar* p, const UChar* end)
{
const UChar* end1 = end - 1;
while (p < end1) {
p += utf16le_mbc_enc_len(p);
}
if (p != end)
return FALSE;
else
return TRUE;
} | 0 |
389,680 | check_for_opt_lnum_arg(typval_T *args, int idx)
{
return (args[idx].v_type == VAR_UNKNOWN
|| check_for_lnum_arg(args, idx));
} | 0 |
492,695 | _vte_terminal_clear_current_line (VteTerminal *terminal)
{
VteRowData *rowdata;
VteScreen *screen;
screen = terminal->pvt->screen;
/* If the cursor is actually on the screen, clear data in the row
* which corresponds to the cursor. */
if (_vte_ring_next(screen->row_data) > screen->cursor_current.row) {
/* Ge... | 0 |
343,240 | void client_fflush(void)
{
if (replybuf_pos == replybuf) {
return;
}
safe_write(clientfd, replybuf, (size_t) (replybuf_pos - replybuf), -1);
client_init_reply_buf();
} | 0 |
413,827 | void LinkResolver::runtime_resolve_special_method(CallInfo& result,
const LinkInfo& link_info,
const methodHandle& resolved_method,
Handle recv, TRAPS) {
Klass* resolv... | 0 |
400,752 | struct iovec *iovec_from_user(const struct iovec __user *uvec,
unsigned long nr_segs, unsigned long fast_segs,
struct iovec *fast_iov, bool compat)
{
struct iovec *iov = fast_iov;
int ret;
/*
* SuS says "The readv() function *may* fail if the iovcnt argument was
* less than or equal to 0, or greater than {I... | 0 |
220,828 | inline void NdArrayDescsForElementwiseBroadcast(const Dims<N>& input0_dims,
const Dims<N>& input1_dims,
NdArrayDesc<N>* desc0_out,
NdArrayDesc<N>* desc1_out) {
TFLITE_DCHECK(... | 0 |
345,140 | run_ready(struct pxa3xx_gcu_priv *priv)
{
unsigned int num = 0;
struct pxa3xx_gcu_shared *shared = priv->shared;
struct pxa3xx_gcu_batch *ready = priv->ready;
QDUMP("Start");
BUG_ON(!ready);
shared->buffer[num++] = 0x05000000;
while (ready) {
shared->buffer[num++] = 0x00000001;
shared->buffer[num++] = re... | 0 |
503,981 | escape_none(const char *string,
const struct auth_request *request ATTR_UNUSED)
{
return string;
} | 0 |
437,314 | comp_opt_exact_or_map(OptExact* e, OptMap* m)
{
#define COMP_EM_BASE 20
int ae, am;
if (m->value <= 0) return -1;
ae = COMP_EM_BASE * e->len * (e->ignore_case ? 1 : 2);
am = COMP_EM_BASE * 5 * 2 / m->value;
return comp_distance_value(&e->mmd, &m->mmd, ae, am);
} | 0 |
218,991 | Status ConstantFolding::SimplifyPad(const GraphProperties& properties,
bool use_shape_info,
GraphDef* optimized_graph, NodeDef* node) {
if (!use_shape_info || !IsPad(*node)) return Status::OK();
Tensor paddings;
if (GetTensorFromConstNode(no... | 0 |
259,235 | static int mov_read_adrm(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
uint8_t intermediate_key[20];
uint8_t intermediate_iv[20];
uint8_t input[64];
uint8_t output[64];
uint8_t file_checksum[20];
uint8_t calculated_checksum[20];
char checksum_string[2 * sizeof(file_checksum) + 1];
stru... | 0 |
219,965 | int callback_glewlwyd_add_client_module (const struct _u_request * request, struct _u_response * response, void * client_data) {
struct config_elements * config = (struct config_elements *)client_data;
json_t * j_module, * j_module_valid, * j_result;
j_module = ulfius_get_json_body_request(request, NULL);
if... | 0 |
310,292 | dirserv_set_router_is_running(routerinfo_t *router, time_t now)
{
/*XXXX023 This function is a mess. Separate out the part that calculates
whether it's reachable and the part that tells rephist that the router was
unreachable.
*/
int answer;
if (router_is_me(router)) {
/* We always know if we are... | 0 |
236,125 | GF_Err diST_box_read(GF_Box *s, GF_BitStream *bs)
{
GF_DIMSScriptTypesBox *p = (GF_DIMSScriptTypesBox *)s;
p->content_script_types = gf_malloc(sizeof(char) * (s->size+1));
if (!p->content_script_types) return GF_OUT_OF_MEM;
gf_bs_read_data(bs, p->content_script_types, s->size);
p->content_script_types[s->size] = ... | 0 |
244,010 | GF_Box *leva_box_new()
{
ISOM_DECL_BOX_ALLOC(GF_LevelAssignmentBox, GF_ISOM_BOX_TYPE_LEVA);
return (GF_Box *)tmp;
} | 0 |
439,153 | static Image *ReadAVSImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
Image
*image;
MagickBooleanType
status;
MemoryInfo
*pixel_info;
register PixelPacket
*q;
register ssize_t
x;
register unsigned char
*p;
size_t
height,
width;
ssize_t
count,
y... | 0 |
313,727 | nv_suspend(cmdarg_T *cap)
{
clearop(cap->oap);
if (VIsual_active)
end_visual_mode(); // stop Visual mode
do_cmdline_cmd((char_u *)"stop");
} | 0 |
333,045 | check_char_class(int class, int c)
{
switch (class)
{
case NFA_CLASS_ALNUM:
if (c >= 1 && c < 128 && isalnum(c))
return OK;
break;
case NFA_CLASS_ALPHA:
if (c >= 1 && c < 128 && isalpha(c))
return OK;
break;
case NFA_CLASS_BLANK:
if (c == ' ' || c == '\t')
return OK;
break... | 0 |
364,768 | findtags_state_init(
findtags_state_T *st,
char_u *pat,
int flags,
int mincount)
{
int mtt;
st->tag_fname = alloc(MAXPATHL + 1);
st->fp = NULL;
st->orgpat = ALLOC_ONE(pat_T);
st->orgpat->pat = pat;
st->orgpat->len = (int)STRLEN(pat);
st->orgpat->regmatch.regprog = NULL... | 0 |
505,461 | static int chacha20_poly1305_tls_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
const unsigned char *in, size_t len)
{
EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx);
size_t tail, tohash_len, buf_len, plen = actx->tls_payload_length;
unsigned char *buf, *tohash, *ctr, st... | 0 |
244,255 | GF_Err fiin_box_read(GF_Box *s, GF_BitStream *bs)
{
FDItemInformationBox *ptr = (FDItemInformationBox *)s;
ISOM_DECREASE_SIZE(ptr, 2);
gf_bs_read_u16(bs);
return gf_isom_box_array_read(s, bs);
} | 0 |
221,520 | flatpak_ensure_data_dir (GFile *app_id_dir,
GCancellable *cancellable,
GError **error)
{
g_autoptr(GFile) data_dir = g_file_get_child (app_id_dir, "data");
g_autoptr(GFile) cache_dir = g_file_get_child (app_id_dir, "cache");
g_autoptr(GFile) fontconfig... | 0 |
427,789 | void sev_free_vcpu(struct kvm_vcpu *vcpu)
{
struct vcpu_svm *svm;
if (!sev_es_guest(vcpu->kvm))
return;
svm = to_svm(vcpu);
if (vcpu->arch.guest_state_protected)
sev_flush_guest_memory(svm, svm->vmsa, PAGE_SIZE);
__free_page(virt_to_page(svm->vmsa));
if (svm->ghcb_sa_free)
kfree(svm->ghcb_sa);
} | 0 |
336,127 | static int ip6gre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi)
{
const struct ipv6hdr *ipv6h;
struct ip6_tnl *tunnel;
ipv6h = ipv6_hdr(skb);
tunnel = ip6gre_tunnel_lookup(skb->dev,
&ipv6h->saddr, &ipv6h->daddr, tpi->key,
tpi->proto);
if (tunnel) {
ip6_tnl_rcv(tunnel, skb, tpi, NU... | 0 |
238,636 | static int check_kfunc_call(struct bpf_verifier_env *env, struct bpf_insn *insn)
{
const struct btf_type *t, *func, *func_proto, *ptr_type;
struct bpf_reg_state *regs = cur_regs(env);
const char *func_name, *ptr_type_name;
u32 i, nargs, func_id, ptr_type_id;
struct module *btf_mod = NULL;
const struct btf_param *... | 0 |
251,515 | static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define ThrowDCMException(exception,message) \
{ \
RelinquishDCMMemory(&info,&map,stream_info,stack,data); \
if (info_copy != (DCMInfo *) NULL) \
info_copy=(DCMInfo *) RelinquishDCMInfo(info_copy); \
ThrowReaderException((excep... | 0 |
317,359 | static void selinux_secmark_refcount_dec(void)
{
atomic_dec(&selinux_secmark_refcount);
} | 0 |
240,279 | get_expr_register(void)
{
char_u *new_line;
new_line = getcmdline('=', 0L, 0, 0);
if (new_line == NULL)
return NUL;
if (*new_line == NUL) // use previous line
vim_free(new_line);
else
set_expr_line(new_line, NULL);
return '=';
} | 0 |
255,773 | svn_repos_authz_read4(svn_authz_t **authz_p,
const char *path,
const char *groups_path,
svn_boolean_t must_exist,
svn_repos_t *repos_hint,
svn_repos_authz_warning_func_t warning_func,
void... | 0 |
366,328 | vfs_submount(const struct dentry *mountpoint, struct file_system_type *type,
const char *name, void *data)
{
/* Until it is worked out how to pass the user namespace
* through from the parent mount to the submount don't support
* unprivileged mounts with submounts.
*/
if (mountpoint->d_sb->s_user_ns != &i... | 0 |
211,567 | static char *getsistring(FILE *f, uint32_t ptr, uint32_t len) {
char *name;
uint32_t i;
if (!len) return NULL;
if (len>400) len=400;
name = cli_malloc(len);
if (!name) {
cli_dbgmsg("SIS: OOM\n");
return NULL;
}
fseek(f, ptr, SEEK_SET);
if (fread(name, len, 1, f)!=1) {
cli_dbgmsg("SIS: Una... | 1 |
259,620 | void HierarchicalBitmapRequester::DefineRegion(LONG x,const struct Line *const *line,
const LONG *buffer,UBYTE comp)
{
int cnt = 8;
assert(comp < m_ucCount);
NOREF(comp);
x <<= 3;
do {
if (*line) memcpy((*line)->m_pData + x,buffer,8 * sizeof(LONG));
... | 0 |
512,256 | Item_func_nullif::decimal_op(my_decimal * decimal_value)
{
DBUG_ASSERT(fixed == 1);
my_decimal *res;
if (!compare())
{
null_value=1;
return 0;
}
res= args[2]->val_decimal(decimal_value);
null_value= args[2]->null_value;
return res;
} | 0 |
402,642 | cms_context_fini(cms_context *cms)
{
if (cms->cert) {
CERT_DestroyCertificate(cms->cert);
cms->cert = NULL;
}
switch (cms->pwdata.source) {
case PW_SOURCE_INVALID:
case PW_PROMPT:
case PW_DEVICE:
case PW_FROMFILEDB:
case PW_FROMENV:
case PW_SOURCE_MAX:
break;
case PW_DATABASE:
xfree(cms->pwdata.data)... | 0 |
195,028 | void DecodePngV2(OpKernelContext* context, StringPiece input) {
int channel_bits = (data_type_ == DataType::DT_UINT8) ? 8 : 16;
png::DecodeContext decode;
OP_REQUIRES(
context, png::CommonInitDecode(input, channels_, channel_bits, &decode),
errors::InvalidArgument("Invalid PNG. Failed to i... | 1 |
275,973 | static void HMAC_init(const uECC_HashContext *hash_context, const uint8_t *K) {
uint8_t *pad = hash_context->tmp + 2 * hash_context->result_size;
unsigned i;
for (i = 0; i < hash_context->result_size; ++i)
pad[i] = K[i] ^ 0x36;
for (; i < hash_context->block_size; ++i)
pad[i] = 0x36;
... | 0 |
257,712 | handler_t mod_wstunnel_handshake_create_response(handler_ctx *hctx) {
request_st * const r = hctx->gw.r;
#ifdef _MOD_WEBSOCKET_SPEC_RFC_6455_
if (hctx->hybivers >= 8) {
DEBUG_LOG_DEBUG("%s", "send handshake response");
if (0 != create_response_rfc_6455(hctx)) {
r->http_status = 400... | 0 |
244,353 | GF_Err st3d_box_write(GF_Box *s, GF_BitStream *bs)
{
GF_Err e;
GF_Stereo3DBox *ptr = (GF_Stereo3DBox *)s;
e = gf_isom_full_box_write(s, bs);
if (e) return e;
gf_bs_write_u8(bs, ptr->stereo_type);
return GF_OK;
} | 0 |
245,705 | static void handle_connection_failure(struct conn_s *connptr, int got_headers)
{
/*
* First, get the body if there is one.
* If we don't read all there is from the socket first,
* it is still marked for reading and we won't be able
* to send our data properly.
*/
... | 0 |
195,984 | GF_Err diST_box_read(GF_Box *s, GF_BitStream *bs)
{
u32 i;
char str[1024];
GF_DIMSScriptTypesBox *p = (GF_DIMSScriptTypesBox *)s;
i=0;
str[0]=0;
while (1) {
str[i] = gf_bs_read_u8(bs);
if (!str[i]) break;
i++;
}
ISOM_DECREASE_SIZE(p, i);
p->content_script_types = gf_strdup(str);
return GF_OK;
} | 1 |
233,850 | static double pict_read_fixed(dbuf *f, i64 pos)
{
i64 n;
// I think QuickDraw's "Fixed point" numbers are signed, but I don't know
// how negative numbers are handled.
n = dbuf_geti32be(f, pos);
return ((double)n)/65536.0;
} | 0 |
261,408 | bool initialize_CABAC_at_slice_segment_start(thread_context* tctx)
{
de265_image* img = tctx->img;
const pic_parameter_set& pps = img->get_pps();
const seq_parameter_set& sps = img->get_sps();
slice_segment_header* shdr = tctx->shdr;
if (shdr->dependent_slice_segment_flag) {
int prevCtb = pps.CtbAddrTSto... | 0 |
346,439 | add_pack_start_dirs(void)
{
do_in_path(p_pp, (char_u *)"pack/*/start/*", DIP_ALL + DIP_DIR,
add_pack_plugin, &APP_ADD_DIR);
} | 0 |
289,291 | static int snd_pcm_oss_get_block_size(struct snd_pcm_oss_file *pcm_oss_file)
{
struct snd_pcm_substream *substream;
int err;
err = snd_pcm_oss_get_active_substream(pcm_oss_file, &substream);
if (err < 0)
return err;
return substream->runtime->oss.period_bytes;
} | 0 |
255,078 | void ompl::geometric::VFRRT::updateExplorationEfficiency(Motion *m)
{
Motion *near = nn_->nearest(m);
if (distanceFunction(m, near) < si_->getStateValidityCheckingResolution())
inefficientCount_++;
else
efficientCount_++;
explorationInefficiency_ = inefficientCount_ / (double)(efficientC... | 0 |
336,504 | static void reds_start_auth_sasl(RedLinkInfo *link)
{
if (!red_sasl_start_auth(link->stream, reds_handle_sasl_result, link)) {
reds_link_free(link);
}
} | 0 |
204,830 | struct vfsmount *clone_private_mount(const struct path *path)
{
struct mount *old_mnt = real_mount(path->mnt);
struct mount *new_mnt;
if (IS_MNT_UNBINDABLE(old_mnt))
return ERR_PTR(-EINVAL);
new_mnt = clone_mnt(old_mnt, path->dentry, CL_PRIVATE);
if (IS_ERR(new_mnt))
return ERR_CAST(new_mnt);
/* Longterm m... | 1 |
221,686 | unsigned long int Socket::getPeerSourceAddr() {
return (unsigned long int) ntohl(peer_adr.sin_addr.s_addr);
} | 0 |
329,946 | __fill_reduces_to_source (cairo_operator_t op,
const cairo_color_t *color,
const cairo_image_surface_t *dst)
{
if (op == CAIRO_OPERATOR_SOURCE || op == CAIRO_OPERATOR_CLEAR)
return TRUE;
if (op == CAIRO_OPERATOR_OVER && CAIRO_COLOR_IS_OPAQUE (color))
return TRUE;
if (dst->base.is_clear)
return ... | 0 |
486,798 | static void gem_get_rx_desc(CadenceGEMState *s, int q)
{
hwaddr desc_addr = gem_get_rx_desc_addr(s, q);
DB_PRINT("read descriptor 0x%" HWADDR_PRIx "\n", desc_addr);
/* read current descriptor */
address_space_read(&s->dma_as, desc_addr, MEMTXATTRS_UNSPECIFIED,
s->rx_desc[q],
... | 0 |
221,152 | GF_Err gf_odf_av1_cfg_write_bs(GF_AV1Config *cfg, GF_BitStream *bs)
{
u32 i = 0;
gf_bs_write_int(bs, cfg->marker, 1); assert(cfg->marker == 1);
gf_bs_write_int(bs, cfg->version, 7); assert(cfg->version == 1);
gf_bs_write_int(bs, cfg->seq_profile, 3);
gf_bs_write_int(bs, cfg->seq_level_idx_0, 5);
gf_bs_write_int(b... | 0 |
512,414 | longlong Item_func_not_all::val_int()
{
DBUG_ASSERT(fixed == 1);
bool value= args[0]->val_bool();
/*
return TRUE if there was records in underlying select in max/min
optimization (ALL subquery)
*/
if (empty_underlying_subquery())
return 1;
null_value= args[0]->null_value;
return ((!null_valu... | 0 |
225,481 | absl::flat_hash_set<MutableGraphView::OutputPort> MutableGraphView::GetFanin(
const GraphView::InputPort& port) const {
return GetFanin(MutableGraphView::InputPort(const_cast<NodeDef*>(port.node),
port.port_id));
} | 0 |
405,713 | static int xemaclite_of_remove(struct platform_device *of_dev)
{
struct net_device *ndev = platform_get_drvdata(of_dev);
struct net_local *lp = netdev_priv(ndev);
/* Un-register the mii_bus, if configured */
if (lp->mii_bus) {
mdiobus_unregister(lp->mii_bus);
mdiobus_free(lp->mii_bus);
lp->mii_bus = NULL;
... | 0 |
309,942 | _nc_locked_tracef(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
_nc_va_tracef(fmt, ap);
va_end(ap);
if (--(MyNested) == 0) {
_nc_unlock_global(tracef);
}
} | 0 |
512,612 | Item_func_ifnull::int_op()
{
DBUG_ASSERT(fixed == 1);
longlong value=args[0]->val_int();
if (!args[0]->null_value)
{
null_value=0;
return value;
}
value=args[1]->val_int();
if ((null_value=args[1]->null_value))
return 0;
return value;
} | 0 |
353,127 | 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 |
512,846 | bool is_order_clause_position() const
{
return state == SHORT_DATA_VALUE &&
type_handler()->is_order_clause_position_type();
} | 0 |
365,617 | _asn1_set_value_lv (asn1_node node, const void *value, unsigned int len)
{
int len2;
void *temp;
if (node == NULL)
return node;
asn1_length_der (len, NULL, &len2);
temp = malloc (len + len2);
if (temp == NULL)
return NULL;
asn1_octet_der (value, len, temp, &len2);
return _asn1_set_value_m (no... | 0 |
238,566 | static int check_attach_btf_id(struct bpf_verifier_env *env)
{
struct bpf_prog *prog = env->prog;
struct bpf_prog *tgt_prog = prog->aux->dst_prog;
struct bpf_attach_target_info tgt_info = {};
u32 btf_id = prog->aux->attach_btf_id;
struct bpf_trampoline *tr;
int ret;
u64 key;
if (prog->type == BPF_PROG_TYPE_SYS... | 0 |
294,476 | d_lite_min(VALUE self)
{
get_d1(self);
return INT2FIX(m_min(dat));
} | 0 |
234,227 | display_debug_macinfo (struct dwarf_section *section,
void *file ATTRIBUTE_UNUSED)
{
unsigned char *start = section->start;
unsigned char *end = start + section->size;
unsigned char *curr = start;
enum dwarf_macinfo_record_type op;
introduce (section, false);
while (curr < end)
{
unsign... | 0 |
273,057 | safe_hextou64(const char *str, uint64_t *val)
{
char *end;
unsigned long long intval;
*val = 0;
errno = 0;
intval = strtoull(str, &end, 16);
if (((errno == ERANGE) && (intval == ULLONG_MAX))
|| ((errno != 0) && (intval == 0)))
{
DPRINTF(E_DBG, L_MISC, "Invalid integer in string (%s): %s\n... | 0 |
264,254 | static void set_pixel_conversion(VncState *vs)
{
pixman_format_code_t fmt = qemu_pixman_get_format(&vs->client_pf);
if (fmt == VNC_SERVER_FB_FORMAT) {
vs->write_pixels = vnc_write_pixels_copy;
vnc_hextile_set_pixel_conversion(vs, 0);
} else {
vs->write_pixels = vnc_write_pixels_gene... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.