idx int64 | func string | target int64 |
|---|---|---|
390,593 | _CheckSetShapes( XkbGeometryPtr geom,
xkbSetGeometryReq * req,
char ** wire_inout,
ClientPtr client)
{
register int i;
char * wire;
wire= *wire_inout;
if (req->nShapes<1) {
client->errorValue= _XkbErrCode2(0x06,req->nShapes);
return BadValue;
}
else {
xkbShapeWireDesc * shapeWire;
Xk... | 0 |
474,062 | gb18030_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
{
return onigenc_mb4_is_code_ctype(enc, code, ctype);
} | 0 |
218,986 | Status ConstantFolding::Optimize(Cluster* cluster, const GrapplerItem& item,
GraphDef* optimized_graph) {
// TensorFlow flushes denormals to zero and rounds to nearest, so we do
// the same here.
port::ScopedFlushDenormal flush;
port::ScopedSetRound round(FE_TONEAREST);
nodes_... | 0 |
442,823 | CURLcode _my_setopt(CURL *curl, const char *name, CURLoption tag, ...)
{
va_list arg;
CURLcode ret;
char *bufp;
char value[256];
bool remark=FALSE;
va_start(arg, tag);
if(tag < CURLOPTTYPE_OBJECTPOINT) {
long lval = va_arg(arg, long);
snprintf(value, sizeof(value), "%ld", lval);
ret = curl_e... | 0 |
219,964 | int callback_glewlwyd_check_user_profile_valid (const struct _u_request * request, struct _u_response * response, void * user_data) {
struct config_elements * config = (struct config_elements *)user_data;
char * session_uid;
json_t * j_user;
int ret, res;
if ((session_uid = get_session_id(config, request))... | 0 |
413,604 | R_API int r_core_anal_fcn_list(RCore *core, const char *input, const char *rad) {
char temp[64];
r_return_val_if_fail (core && core->anal, 0);
if (r_list_empty (core->anal->fcns)) {
if (*rad == 'j') {
r_cons_println ("[]");
}
return 0;
}
if (*rad == '.') {
RList *fcns = r_anal_get_functions_in (core->an... | 0 |
509,526 | int maria_check_definition(MARIA_KEYDEF *t1_keyinfo,
MARIA_COLUMNDEF *t1_recinfo,
uint t1_keys, uint t1_recs,
MARIA_KEYDEF *t2_keyinfo,
MARIA_COLUMNDEF *t2_recinfo,
uint t2_keys, uint t... | 0 |
226,129 |
GF_Err stri_box_write(GF_Box *s, GF_BitStream *bs)
{
GF_Err e;
u32 i;
GF_SubTrackInformationBox *ptr = (GF_SubTrackInformationBox *)s;
e = gf_isom_full_box_write(s, bs);
if (e) return e;
gf_bs_write_u16(bs, ptr->switch_group);
gf_bs_write_u16(bs, ptr->alternate_group);
gf_bs_write_u32(bs, ptr->sub_track_id);
... | 0 |
225,113 | void RemoveDescriptionsFromOpList(OpList* op_list) {
for (int i = 0; i < op_list->op_size(); ++i) {
OpDef* op_def = op_list->mutable_op(i);
RemoveDescriptionsFromOpDef(op_def);
}
} | 0 |
514,312 | multi_update::multi_update(THD *thd_arg, TABLE_LIST *table_list,
List<TABLE_LIST> *leaves_list,
List<Item> *field_list, List<Item> *value_list,
enum enum_duplicates handle_duplicates_arg,
bool ignore_arg):
select_result_interceptor(thd_arg),
all_ta... | 0 |
359,846 | WandPrivate void CLISettingOptionInfo(MagickCLI *cli_wand,
const char *option,const char *arg1n, const char *arg2n)
{
ssize_t
parse; /* option argument parsing (string to value table lookup) */
const char /* percent escaped versions of the args */
*arg1,
*arg2;
#define _image_info (c... | 0 |
279,951 | check_overwrite(
exarg_T *eap,
buf_T *buf,
char_u *fname, // file name to be used (can differ from
// buf->ffname)
char_u *ffname, // full path version of fname
int other) // writing under other name
{
/*
* Write to another file or b_flags set or not writing the whole fil... | 0 |
222,852 | bool GraphProperties::HasOutputProperties(const string& node_name) const {
return output_properties_.find(node_name) != output_properties_.end();
} | 0 |
395,067 | redraw_buf_later(buf_T *buf, int type)
{
win_T *wp;
FOR_ALL_WINDOWS(wp)
{
if (wp->w_buffer == buf)
redraw_win_later(wp, type);
}
#if defined(FEAT_TERMINAL) && defined(FEAT_PROP_POPUP)
// terminal in popup window is not in list of windows
if (curwin->w_buffer == buf)
redraw_win_later(curw... | 0 |
384,889 | f_fnamemodify(typval_T *argvars, typval_T *rettv)
{
char_u *fname;
char_u *mods;
int usedlen = 0;
int len = 0;
char_u *fbuf = NULL;
char_u buf[NUMBUFLEN];
if (in_vim9script()
&& (check_for_string_arg(argvars, 0) == FAIL
|| check_for_string_arg(argvars, 1) == FAIL))
return;
fn... | 0 |
226,230 |
GF_Err prhd_box_read(GF_Box *s, GF_BitStream *bs)
{
GF_ProjectionHeaderBox *ptr = (GF_ProjectionHeaderBox *)s;
ISOM_DECREASE_SIZE(ptr, 12)
ptr->yaw = (s32) gf_bs_read_u32(bs);
ptr->pitch = (s32) gf_bs_read_u32(bs);
ptr->roll = (s32) gf_bs_read_u32(bs);
return GF_OK; | 0 |
463,124 | static void annotation_get_usermodseq(annotate_state_t *state,
struct annotate_entry_list *entry)
{
struct buf value = BUF_INITIALIZER;
struct mboxname_counters counters;
char *mboxname = NULL;
memset(&counters, 0, sizeof(struct mboxname_counters));
assert(sta... | 0 |
508,369 | fill_record(THD *thd, TABLE *table_arg, List<Item> &fields, List<Item> &values,
bool ignore_errors, bool update)
{
List_iterator_fast<Item> f(fields),v(values);
Item *value, *fld;
Item_field *field;
bool save_abort_on_warning= thd->abort_on_warning;
bool save_no_errors= thd->no_errors;
DBUG_ENTE... | 0 |
220,205 | void Graph::ToGraphDefSubRange(GraphDef* graph_def, int from_node_id) const {
graph_def->Clear();
*graph_def->mutable_versions() = versions();
*graph_def->mutable_library() = ops_.ToProto();
graph_def->mutable_node()->Reserve(std::max(1, num_nodes() - from_node_id));
std::vector<const Edge*>
inputs; ... | 0 |
233,837 | void fmtutil_read_iff_format(deark *c, struct de_iffctx *ictx,
i64 pos, i64 len)
{
if(!ictx->f || !ictx->handle_chunk_fn) return; // Internal error
ictx->level = 0;
fourcc_clear(&ictx->main_fmt4cc);
fourcc_clear(&ictx->main_contentstype4cc);
fourcc_clear(&ictx->curr_container_fmt4cc);
fourcc_clear(&ictx->curr_c... | 0 |
220,450 | Status ComputeConv2DDimension(const Conv2DParameters& params,
const Tensor& input, const Tensor& filter,
Conv2DDimensions* dimensions) {
// Check that 2D convolution input and filter have exactly 4 dimensions.
TF_REQUIRES(input.dims() == 4,
e... | 0 |
418,772 | f_getmousepos(typval_T *argvars UNUSED, typval_T *rettv)
{
dict_T *d;
win_T *wp;
int row = mouse_row;
int col = mouse_col;
varnumber_T winid = 0;
varnumber_T winrow = 0;
varnumber_T wincol = 0;
linenr_T lnum = 0;
varnumber_T column = 0;
if (rettv_dict_alloc(rettv) == FAIL)
re... | 0 |
498,627 | apply_colormap (guchar *dest,
const guchar *src,
guint width,
const guchar *cmap,
gboolean alpha,
guint16 index)
{
guint x;
if (alpha)
{
for (x = 0; x < width; x++)
{
*(dest++) = cma... | 0 |
312,570 | qf_jump_to_usable_window(int qf_fnum, int newwin, int *opened_window)
{
win_T *usable_wp = NULL;
int usable_win = FALSE;
qf_info_T *ll_ref = NULL;
// If opening a new window, then don't use the location list referred by
// the current window. Otherwise two windows will refer to the same
// lo... | 0 |
224,592 | Status MaxPoolShape(shape_inference::InferenceContext* c) {
return MaxPoolShapeImpl(c, /*supports_explicit_padding=*/false);
} | 0 |
369,338 | static int io_shutdown(struct io_kiocb *req, unsigned int issue_flags)
{
#if defined(CONFIG_NET)
struct socket *sock;
int ret;
if (issue_flags & IO_URING_F_NONBLOCK)
return -EAGAIN;
sock = sock_from_file(req->file);
if (unlikely(!sock))
return -ENOTSOCK;
ret = __sys_shutdown_sock(sock, req->shutdown.how);
... | 0 |
509,470 | static int lex_one_token(YYSTYPE *yylval, THD *thd)
{
uchar UNINIT_VAR(c);
bool comment_closed;
int tokval, result_state;
uint length;
enum my_lex_states state;
Lex_input_stream *lip= & thd->m_parser_state->m_lip;
LEX *lex= thd->lex;
CHARSET_INFO *const cs= thd->charset();
const uchar *const state_map... | 0 |
384,820 | skiptobin(char_u *q)
{
char_u *p = q;
while (*p != NUL && !vim_isbdigit(*p)) // skip to next digit
++p;
return p;
} | 0 |
269,319 | static av_always_inline void snow_horizontal_compose_liftS_lead_out(int i, IDWTELEM * dst, IDWTELEM * src, IDWTELEM * ref, int width, int w){
for(; i<w; i++){
dst[i] = src[i] + ((ref[i] + ref[(i+1)]+W_BO + 4 * src[i]) >> W_BS);
}
if(width&1){
dst[w] = src[w] + ((2 * ref[... | 0 |
210,701 | static struct dir *squashfs_opendir(unsigned int block_start, unsigned int offset,
struct inode **i)
{
squashfs_dir_header_3 dirh;
char buffer[sizeof(squashfs_dir_entry_3) + SQUASHFS_NAME_LEN + 1]
__attribute__((aligned));
squashfs_dir_entry_3 *dire = (squashfs_dir_entry_3 *) buffer;
long long start;
int bytes;... | 1 |
310,127 | quit(int status, const char *fmt, ...)
{
va_list argp;
va_start(argp, fmt);
fprintf(stderr, "%s: ", prg_name);
vfprintf(stderr, fmt, argp);
fprintf(stderr, "\n");
va_end(argp);
ExitProgram(status);
} | 0 |
430,456 | static size_t get_ufid_len(const struct nlattr *attr, bool log)
{
size_t len;
if (!attr)
return 0;
len = nla_len(attr);
if (len < 1 || len > MAX_UFID_LENGTH) {
OVS_NLERR(log, "ufid size %u bytes exceeds the range (1, %d)",
nla_len(attr), MAX_UFID_LENGTH);
return 0;
}
return len;
} | 0 |
477,281 | static void tipc_aead_users_dec(struct tipc_aead __rcu *aead, int lim)
{
struct tipc_aead *tmp;
rcu_read_lock();
tmp = rcu_dereference(aead);
if (tmp)
atomic_add_unless(&rcu_dereference(aead)->users, -1, lim);
rcu_read_unlock();
} | 0 |
338,221 | bool WasmBinaryBuilder::maybeVisitAtomicRMW(Expression*& out, uint8_t code) {
if (code < BinaryConsts::AtomicRMWOps_Begin ||
code > BinaryConsts::AtomicRMWOps_End) {
return false;
}
auto* curr = allocator.alloc<AtomicRMW>();
// Set curr to the given opcode, type and size.
#define SET(opcode, optype, ... | 0 |
225,562 | void Compute(OpKernelContext* context) override {
// There are two steps when calculating gradient for FractionalMaxPool.
// 1) Walk through the process of calculating fractional pooling given
// pooling region; however, in the process, keep track of where the max
// element comes from. (arg_max... | 0 |
452,260 | PHP_FUNCTION(xsl_xsltprocessor_transform_to_doc)
{
zval *id, *docp = NULL;
xmlDoc *newdocp;
xsltStylesheetPtr sheetp;
int ret, ret_class_len=0;
char *ret_class = NULL;
xsl_object *intern;
id = getThis();
intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC);
sheetp = (xsltStylesheetPtr) intern->pt... | 0 |
383,337 | int gdImageSelectiveBlur( gdImagePtr src)
{
int x, y, i, j;
float new_r, new_g, new_b;
int new_pxl, cpxl, pxl, new_a=0;
float flt_r [3][3];
float flt_g [3][3];
float flt_b [3][3];
float flt_r_sum, flt_g_sum, flt_b_sum;
gdImagePtr srcback;
typedef int (*FuncPtr)(gdImagePtr, int, int);
Fu... | 0 |
210,887 | e1000_send_packet(E1000State *s, const uint8_t *buf, int size)
{
static const int PTCregs[6] = { PTC64, PTC127, PTC255, PTC511,
PTC1023, PTC1522 };
NetClientState *nc = qemu_get_queue(s->nic);
if (s->phy_reg[PHY_CTRL] & MII_CR_LOOPBACK) {
nc->info->receive(nc, bu... | 1 |
442,571 | static void test_memslot_invalid_group_id(void)
{
RedMemSlotInfo mem_info;
init_meminfo(&mem_info);
memslot_get_virt(&mem_info, 0, 16, 1);
} | 0 |
95,897 | void AddChromeFrameWorkItems(const InstallationState& original_state,
const InstallerState& installer_state,
const FilePath& setup_path,
const Version& new_version,
const Product& product,
... | 0 |
238,606 | static int check_stack_read_fixed_off(struct bpf_verifier_env *env,
/* func where src register points to */
struct bpf_func_state *reg_state,
int off, int size, int dst_regno)
{
struct bpf_verifier_state *vstate = env->cur_state;
struct bpf_func_state *state = vstate->frame[vstate->curfr... | 0 |
336,629 | void stat_remove_counter(SpiceServer *reds, RedStatCounter *counter)
{
if (counter->counter) {
stat_file_remove_counter(reds->stat_file, counter->counter);
counter->counter = NULL;
}
} | 0 |
232,298 |
GF_Box *gf_isom_box_find_child(GF_List *children, u32 code)
{
u32 i, count;
if (!children) return NULL;
count = gf_list_count(children);
for (i=0; i<count; i++) {
GF_Box *c = gf_list_get(children, i);
if (c->type==code) return c;
if (c->type==GF_ISOM_BOX_TYPE_UNKNOWN) {
if (((GF_UnknownBox*)c)->original_... | 0 |
338,091 | Signature WasmBinaryBuilder::getSignatureByFunctionIndex(Index index) {
auto heapType = getTypeByFunctionIndex(index);
if (!heapType.isSignature()) {
throwError("invalid signature type " + heapType.toString());
}
return heapType.getSignature();
} | 0 |
220,237 | Status Node::input_node(int idx, const Node** const_n) const {
Node* n;
TF_RETURN_IF_ERROR(input_node(idx, &n));
*const_n = n;
return Status::OK();
} | 0 |
336,808 | lprn_put_params(gx_device * dev, gs_param_list * plist)
{
gx_device_lprn *const lprn = (gx_device_lprn *) dev;
int ecode = 0;
int code;
gs_param_name param_name;
bool ManualFeed = lprn->ManualFeed;
bool NegativePrint = lprn->NegativePrint;
bool Tumble = lprn->Tumble;
bool RITOff = lprn->... | 0 |
508,395 | MDL_deadlock_handler(Open_table_context *ot_ctx_arg)
: m_ot_ctx(ot_ctx_arg), m_is_active(FALSE)
{} | 0 |
231,663 | std::unique_ptr<QuicReadCodec> makeClientEncryptedCodec(
bool handshakeCipher = false) {
FizzCryptoFactory cryptoFactory;
auto readCodec = std::make_unique<QuicReadCodec>(QuicNodeType::Client);
readCodec->setOneRttReadCipher(test::createNoOpAead());
readCodec->setOneRttHeaderCipher(test::createN... | 0 |
317,059 | static void selinux_ib_free_security(void *ib_sec)
{
kfree(ib_sec);
} | 0 |
267,954 | static RBinClass *__getClass(RBinFile *bf, const char *name) {
r_return_val_if_fail (bf && bf->o && bf->o->classes_ht && name, NULL);
return ht_pp_find (bf->o->classes_ht, name, NULL);
} | 0 |
386,501 | void DL_Dxf::writeSpline(DL_WriterA& dw,
const DL_SplineData& data,
const DL_Attributes& attrib) {
dw.entity("SPLINE");
if (version==DL_VERSION_2000) {
dw.dxfString(100, "AcDbEntity");
}
dw.entityAttributes(attrib);
if (version==DL_VERSION_2... | 0 |
272,346 | generate_name(cms_context *cms, SECItem *der, CERTName *certname)
{
void *marka = PORT_ArenaMark(cms->arena);
CERTRDN **rdns = certname->rdns;
CERTRDN *rdn;
int num_items = 0;
int rc = 0;
while (rdns && (rdn = *rdns++) != NULL) {
CERTAVA **avas = rdn->avas;
while (avas && ((*avas++) != NULL))
num_items++... | 0 |
349,259 | static struct dir *squashfs_opendir(unsigned int block_start, unsigned int offset,
struct inode **i)
{
squashfs_dir_header_3 dirh;
char buffer[sizeof(squashfs_dir_entry_3) + SQUASHFS_NAME_LEN + 1]
__attribute__((aligned));
squashfs_dir_entry_3 *dire = (squashfs_dir_entry_3 *) buffer;
long long start;
int bytes ... | 0 |
313,546 | static int __must_check rose_add_node(struct rose_route_struct *rose_route,
struct net_device *dev)
{
struct rose_node *rose_node, *rose_tmpn, *rose_tmpp;
struct rose_neigh *rose_neigh;
int i, res = 0;
spin_lock_bh(&rose_node_list_lock);
spin_lock_bh(&rose_neigh_list_lock);
rose_node = rose_node_list;
while ... | 0 |
450,433 | int vnc_zrle_send_framebuffer_update(VncState *vs, int x, int y, int w, int h)
{
vs->zrle->type = VNC_ENCODING_ZRLE;
return zrle_send_framebuffer_update(vs, x, y, w, h);
} | 0 |
432,710 | static void draw_fill_color_rgb( wmfAPI* API, const wmfRGB* rgb )
{
PixelWand
*fill_color;
fill_color=NewPixelWand();
PixelSetRedQuantum(fill_color,ScaleCharToQuantum(rgb->r));
PixelSetGreenQuantum(fill_color,ScaleCharToQuantum(rgb->g));
PixelSetBlueQuantum(fill_color,ScaleCharToQuantum(rgb->b));
Pixel... | 0 |
387,741 | jint InstanceKlass::compute_modifier_flags(TRAPS) const {
jint access = access_flags().as_int();
// But check if it happens to be member class.
InnerClassesIterator iter(this);
for (; !iter.done(); iter.next()) {
int ioff = iter.inner_class_info_index();
// Inner class attribute can be zero, skip it.
... | 0 |
264,709 | Graph* GetConstantGraph(
const Graph* orig_graph, const std::vector<Node*>& nodes,
const std::unordered_map<const Node*, std::vector<Tensor>>&
shape_replacement_map,
std::map<NodeAndOutput, NodeAndOutput>* tensors_to_fetch,
const ConstantFoldNameGenerator& generate_new_name) {
Graph* constant_... | 0 |
226,127 |
GF_Err trun_box_size(GF_Box *s)
{
GF_TrackFragmentRunBox *ptr = (GF_TrackFragmentRunBox *)s;
#ifdef GF_ENABLE_CTRN
if (ptr->use_ctrn)
return ctrn_box_size(ptr);
#endif
ptr->size += 4;
//The rest depends on the flags
if (ptr->flags & GF_ISOM_TRUN_DATA_OFFSET) ptr->size += 4;
if (ptr->flags & GF_ISOM_TRUN_FIRS... | 0 |
281,160 | int xfrm_policy_flush(struct net *net, u8 type, bool task_valid)
{
int dir, err = 0, cnt = 0;
spin_lock_bh(&net->xfrm.xfrm_policy_lock);
err = xfrm_policy_flush_secctx_check(net, type, task_valid);
if (err)
goto out;
for (dir = 0; dir < XFRM_POLICY_MAX; dir++) {
struct xfrm_policy *pol;
int i;
again1:
... | 0 |
101,702 | WebProcessProxy::~WebProcessProxy()
{
if (m_webConnection)
m_webConnection->invalidate();
}
| 0 |
517,437 | static void do_viewlog(HttpRequest req, HttpResponse res) {
if (is_readonly(req)) {
send_error(req, res, SC_FORBIDDEN, "You do not have sufficient privileges to access this page");
return;
}
do_head(res, "_viewlog", "View log", 100);
if ((Run.flags & Run_L... | 0 |
234,158 | load_debug_sup_file (const char * main_filename, void * file)
{
if (! load_debug_section (debug_sup, file))
return; /* No .debug_sup section. */
struct dwarf_section * section;
section = & debug_displays [debug_sup].section;
assert (section != NULL);
if (section->start == NULL || section->size < 5)
... | 0 |
256,418 | PJ_DEF(void) pjmedia_rtcp_fb_setting_dup( pj_pool_t *pool,
pjmedia_rtcp_fb_setting *dst,
const pjmedia_rtcp_fb_setting *src)
{
unsigned i;
pj_assert(pool && dst && src);
pj_memcpy(dst, src, sizeof(pjmedia_rtcp_fb_setting));
for (i = 0; i < src->cap_count; ++i) {
pjmedia_rtcp_fb_cap_dup(... | 0 |
417,092 | bool PlayerGeneric::isIdle() const
{
if (player)
return player->isIdle();
return idle;
} | 0 |
224,729 | GF_Err meta_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem)
{
GF_MetaBox *ptr = (GF_MetaBox *)s;
switch (a->type) {
case GF_ISOM_BOX_TYPE_HDLR:
BOX_FIELD_ASSIGN(handler, GF_HandlerBox)
break;
case GF_ISOM_BOX_TYPE_PITM:
BOX_FIELD_ASSIGN(primary_resource, GF_PrimaryItemBox)
break;
case GF_ISOM_BOX_TYPE_DINF... | 0 |
389,546 | xmlInitParser(void) {
if (xmlParserInitialized != 0)
return;
#ifdef LIBXML_THREAD_ENABLED
__xmlGlobalInitMutexLock();
if (xmlParserInitialized == 0) {
#endif
xmlInitThreads();
xmlInitGlobals();
if ((xmlGenericError == xmlGenericErrorDefaultFunc) ||
(xmlGenericError == NULL))
initGenericErrorD... | 0 |
242,266 | bool PamAuthenticateUser(BareosSocket* UA_sock,
const std::string& username_in,
const std::string& password_in,
std::string& authenticated_username)
{
std::unique_ptr<PamData> pam_callback_data(new PamData(UA_sock, password_in));
std::unique... | 0 |
473,934 | big5_is_mbc_ambiguous(OnigCaseFoldType flag,
const UChar** pp, const UChar* end, OnigEncoding enc)
{
return onigenc_mbn_is_mbc_ambiguous(enc, flag, pp, end);
} | 0 |
436,095 | static int io_iopoll_check(struct io_ring_ctx *ctx, long min)
{
unsigned int nr_events = 0;
int ret = 0;
/*
* We disallow the app entering submit/complete with polling, but we
* still need to lock the ring to prevent racing with polled issue
* that got punted to a workqueue.
*/
mutex_lock(&ctx->uring_lock)... | 0 |
482,466 | appendInstructionChar(
const FileInfo *file, widechar *passInstructions, int *passIC, widechar ch) {
if (*passIC >= MAXSTRING) {
compileError(file, "multipass operand too long");
return 0;
}
passInstructions[(*passIC)++] = ch;
return 1;
} | 0 |
513,035 | Item_ref(THD *thd, Name_resolution_context *context_arg,
const char *db_arg, const char *table_name_arg,
const LEX_CSTRING *field_name_arg):
Item_ident(thd, context_arg, db_arg, table_name_arg, field_name_arg),
set_properties_only(0), ref(0), reference_trough_name(1) {} | 0 |
223,404 | static int get_framesize(compiler_common *common, PCRE2_SPTR cc, PCRE2_SPTR ccend, BOOL recursive, BOOL *needs_control_head)
{
int length = 0;
int possessive = 0;
BOOL stack_restore = FALSE;
BOOL setsom_found = recursive;
BOOL setmark_found = recursive;
/* The last capture is a local variable even for recursions. */
BO... | 0 |
253,523 | smb2_query_dir_next(const unsigned int xid, struct cifs_tcon *tcon,
struct cifs_fid *fid, __u16 search_flags,
struct cifs_search_info *srch_inf)
{
return SMB2_query_directory(xid, tcon, fid->persistent_fid,
fid->volatile_fid, 0, srch_inf);
} | 0 |
310,324 | dirserv_add_extrainfo(extrainfo_t *ei, const char **msg)
{
routerinfo_t *ri;
int r;
tor_assert(msg);
*msg = NULL;
ri = router_get_by_digest(ei->cache_info.identity_digest);
if (!ri) {
*msg = "No corresponding router descriptor for extra-info descriptor";
extrainfo_free(ei);
return ROUTER_BAD_EI... | 0 |
312,578 | qf_parse_fmt_r(regmatch_T *rmp, int midx, char_u **tail)
{
if (rmp->startp[midx] == NULL)
return QF_FAIL;
*tail = rmp->startp[midx];
return QF_OK;
} | 0 |
312,538 | qf_setprop_context(qf_list_T *qfl, dictitem_T *di)
{
typval_T *ctx;
free_tv(qfl->qf_ctx);
ctx = alloc_tv();
if (ctx != NULL)
copy_tv(&di->di_tv, ctx);
qfl->qf_ctx = ctx;
return OK;
} | 0 |
485,285 | static int unzzip_cat (int argc, char ** argv, int extract)
{
int argn;
ZZIP_DIR* disk;
zzip_error_t error;
if (argc == 1)
{
printf (__FILE__" version "ZZIP_PACKAGE" "ZZIP_VERSION"\n");
return -1; /* better provide an archive argument */
}
disk = zzip_dir_open (argv... | 0 |
359,314 | peer_port_vty (struct vty *vty, const char *ip_str, int afi,
const char *port_str)
{
struct peer *peer;
u_int16_t port;
struct servent *sp;
peer = peer_lookup_vty (vty, ip_str);
if (! peer)
return CMD_WARNING;
if (! port_str)
{
sp = getservbyname ("bgp", "tcp");
port =... | 0 |
400,769 | size_t copy_page_from_iter(struct page *page, size_t offset, size_t bytes,
struct iov_iter *i)
{
if (unlikely(!page_copy_sane(page, offset, bytes)))
return 0;
if (likely(iter_is_iovec(i)))
return copy_page_from_iter_iovec(page, offset, bytes, i);
if (iov_iter_is_bvec(i) || iov_iter_is_kvec(i) || iov_iter_is_... | 0 |
276,973 | ReadSample(SampleReader& reader,
AP4_Track& track,
AP4_Sample& sample,
AP4_DataBuffer& sample_data,
double& ts,
double& duration,
bool& eos)
{
AP4_Result result = reader.ReadSample(sample, sample_data);
if (... | 0 |
309,943 | onsig(int n GCC_UNUSED)
{
interrupted = TRUE;
} | 0 |
359,253 | bgp_vty_return (struct vty *vty, int ret)
{
const char *str = NULL;
switch (ret)
{
case BGP_ERR_INVALID_VALUE:
str = "Invalid value";
break;
case BGP_ERR_INVALID_FLAG:
str = "Invalid flag";
break;
case BGP_ERR_PEER_INACTIVE:
str = "Activate the neighbor for the address... | 0 |
508,799 | bool st_select_lex::add_index_hint (THD *thd, char *str, uint length)
{
return index_hints->push_front(new (thd->mem_root)
Index_hint(current_index_hint_type,
current_index_hint_clause,
str, lengt... | 0 |
225,901 |
void fecr_box_del(GF_Box *s)
{
FECReservoirBox *ptr = (FECReservoirBox *)s;
if (ptr == NULL) return;
if (ptr->entries) gf_free(ptr->entries);
gf_free(ptr); | 0 |
307,864 | void ciEnv::dump_replay_data_unsafe(outputStream* out) {
ResourceMark rm;
#if INCLUDE_JVMTI
out->print_cr("JvmtiExport can_access_local_variables %d", _jvmti_can_access_local_variables);
out->print_cr("JvmtiExport can_hotswap_or_post_breakpoint %d", _jvmti_can_hotswap_or_post_breakpoint);
out->print_cr("Jvm... | 0 |
344,775 | argv_assemble(int argc, char **argv)
{
int i, j, ws, r;
char c, *ret;
struct sshbuf *buf, *arg;
if ((buf = sshbuf_new()) == NULL || (arg = sshbuf_new()) == NULL)
fatal_f("sshbuf_new failed");
for (i = 0; i < argc; i++) {
ws = 0;
sshbuf_reset(arg);
for (j = 0; argv[i][j] != '\0'; j++) {
r = 0;
c = a... | 0 |
508,919 | void st_select_lex::set_explain_type(bool on_the_fly)
{
bool is_primary= FALSE;
if (next_select())
is_primary= TRUE;
if (!is_primary && first_inner_unit())
{
/*
If there is at least one materialized derived|view then it's a PRIMARY select.
Otherwise, all derived tables/views were merged and... | 0 |
442,802 | void progressbarinit(struct ProgressData *bar,
struct Configurable *config)
{
#ifdef __EMX__
/* 20000318 mgs */
int scr_size [2];
#endif
char *colp;
memset(bar, 0, sizeof(struct ProgressData));
/* pass this through to progress function so
* it can display progress towards total file
... | 0 |
223,397 | static SLJIT_INLINE void add_prefix_char(PCRE2_UCHAR chr, fast_forward_char_data *chars, BOOL last)
{
sljit_u32 i, count = chars->count;
if (count == 255)
return;
if (count == 0)
{
chars->count = 1;
chars->chars[0] = chr;
if (last)
chars->last_count = 1;
return;
}
for (i = 0; i < count; i++)
if ... | 0 |
310,055 | _nc_trim_sgr0(TERMTYPE2 *tp)
{
char *result = exit_attribute_mode;
T((T_CALLED("_nc_trim_sgr0()")));
if (PRESENT(exit_attribute_mode)
&& PRESENT(set_attributes)) {
bool found = FALSE;
char *on = set_attribute_9(tp, 1);
char *off = set_attribute_9(tp, 0);
char *end = strdup(exit_attribute_mode);
char... | 0 |
265,450 | static int sqfs_count_metablks(void *table, u32 offset, int table_size)
{
int count = 0, cur_size = 0, ret;
u32 data_size;
bool comp;
do {
ret = sqfs_read_metablock(table, offset + cur_size, &comp,
&data_size);
if (ret)
return -EINVAL;
cur_size += data_size + SQFS_HEADER_SIZE;
count++;
} while (... | 0 |
387,587 | static size_t compute_user_elem_size(size_t size, unsigned int count)
{
return sizeof(struct user_element) + size * count;
} | 0 |
317,259 | static int smack_socket_sendmsg(struct socket *sock, struct msghdr *msg,
int size)
{
struct sockaddr_in *sip = (struct sockaddr_in *) msg->msg_name;
#if IS_ENABLED(CONFIG_IPV6)
struct sockaddr_in6 *sap = (struct sockaddr_in6 *) msg->msg_name;
#endif
#ifdef SMACK_IPV6_SECMARK_LABELING
struct socket_smack *ssp = s... | 0 |
219,952 | int callback_default (const struct _u_request * request, struct _u_response * response, void * user_data) {
UNUSED(request);
UNUSED(user_data);
json_t * json_body = json_pack("{ssss}", "error", "resource not found", "message", "no resource available at this address");
ulfius_set_json_body_response(response, 404... | 0 |
338,040 | void WasmBinaryBuilder::verifyInt8(int8_t x) {
int8_t y = getInt8();
if (x != y) {
throwError("surprising value");
}
} | 0 |
446,409 | RZ_API ut64 rz_dyldcache_va2pa(RzDyldCache *cache, uint64_t vaddr, ut32 *offset, ut32 *left) {
rz_return_val_if_fail(cache, UT64_MAX);
ut64 slide = rz_dyldcache_get_slide(cache);
ut64 res = va2pa(vaddr, cache->n_maps, cache->maps, cache->buf, slide, offset, left);
if (res == UT64_MAX) {
res = 0;
}
return res;
} | 0 |
229,227 | event::event_type parse_event_type(const sstring& value)
{
if (value == "TOPOLOGY_CHANGE") {
return event::event_type::TOPOLOGY_CHANGE;
} else if (value == "STATUS_CHANGE") {
return event::event_type::STATUS_CHANGE;
} else if (value == "SCHEMA_CHANGE") {
return event::event_type::SCH... | 0 |
215,342 | int get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
unsigned long start, int len, int write, int force,
struct page **pages, struct vm_area_struct **vmas)
{
int i;
unsigned int vm_flags;
if (len <= 0)
return 0;
/*
* Require read or write permissions.
* If 'force' is set, we only require th... | 1 |
247,623 | TEST_P(SslSocketTest, X509ExtensionsCertificateSerialNumber) {
const std::string client_ctx_yaml = R"EOF(
common_tls_context:
tls_certificates:
certificate_chain:
filename: "{{ test_rundir }}/test/extensions/transport_sockets/tls/test_data/extensions_cert.pem"
private_key:
filename: ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.