idx int64 | func string | target int64 |
|---|---|---|
491,217 | TPMU_SENSITIVE_COMPOSITE_Unmarshal(TPMU_SENSITIVE_COMPOSITE *target, BYTE **buffer, INT32 *size, UINT32 selector)
{
TPM_RC rc = TPM_RC_SUCCESS;
switch (selector) {
#if ALG_RSA
case TPM_ALG_RSA:
rc = TPM2B_PRIVATE_KEY_RSA_Unmarshal(&target->rsa, buffer, size);
break;
#endif
#if ALG_ECC
case TPM_AL... | 0 |
160,948 | node_char_len1(Node* node, regex_t* reg, MinMaxCharLen* ci, ScanEnv* env,
int level)
{
MinMaxCharLen tci;
int r = CHAR_LEN_NORMAL;
level++;
switch (NODE_TYPE(node)) {
case NODE_LIST:
{
int first = TRUE;
do {
r = node_char_len1(NODE_CAR(node), reg, &tci, env, level);
... | 0 |
25,101 | static int ir2_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {
Ir2Context * const s = avctx -> priv_data ;
const uint8_t * buf = avpkt -> data ;
int buf_size = avpkt -> size ;
AVFrame * picture = data ;
AVFrame * const p = & s -> picture ;
int start , ret ;
if ( ( ret... | 0 |
74,916 | void CLASS get_timestamp(int reversed)
{
struct tm t;
char str[20];
int i;
str[19] = 0;
if (reversed)
for (i = 19; i--;)
str[i] = fgetc(ifp);
else
fread(str, 19, 1, ifp);
memset(&t, 0, sizeof t);
if (sscanf(str, "%d:%d:%d %d:%d:%d", &t.tm_year, &t.tm_mon, &t.tm_mday, &t.tm_hour, &t.tm_min... | 0 |
42,998 | void ireftype_box_del(GF_Box *s)
{
GF_ItemReferenceTypeBox *ptr = (GF_ItemReferenceTypeBox *)s;
if (!ptr) return;
if (ptr->to_item_IDs) gf_free(ptr->to_item_IDs);
gf_free(ptr);
} | 0 |
227,479 | static void ctdb_listen_event(struct event_context *ev, struct fd_event *fde,
uint16_t flags, void *private_data)
{
struct ctdb_context *ctdb = talloc_get_type(private_data, struct ctdb_context);
struct ctdb_tcp *ctcp = talloc_get_type(ctdb->private_data, struct ctdb_tcp);
ctdb_sock_addr addr;
socklen_t l... | 0 |
490,861 | void io_start_multiplex_out(int fd)
{
io_flush(FULL_FLUSH);
if (msgs2stderr == 1 && DEBUG_GTE(IO, 2))
rprintf(FINFO, "[%s] io_start_multiplex_out(%d)\n", who_am_i(), fd);
if (!iobuf.msg.buf)
alloc_xbuf(&iobuf.msg, ROUND_UP_1024(IO_BUFFER_SIZE));
iobuf.out_empty_len = 4; /* See also OUT_MULTIPLEXED */
io_sta... | 0 |
319,875 | int main(void)
{
int nf;
Suite *s;
SRunner *sr;
s = qfloat_suite();
sr = srunner_create(s);
srunner_run_all(sr, CK_NORMAL);
nf = srunner_ntests_failed(sr);
srunner_free(sr);
return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
| 0 |
353,857 | static void test_json_append_escaped_data(void)
{
static const unsigned char test_input[] =
"\b\f\r\n\t\"\\\000\001\002-\xC3\xA4\xf0\x90\x90\xb7";
string_t *str = t_str_new(32);
test_begin("json_append_escaped()");
json_append_escaped_data(str, test_input, sizeof(test_input)-1);
test_assert(strcmp(str_c(str), "... | 1 |
488,551 | free_toporder_info (class ipa_topo_info *topo)
{
ipa_free_postorder_info ();
free (topo->order);
free (topo->stack);
} | 0 |
519,778 | select_result_interceptor(THD *thd_arg):
select_result(thd_arg), suppress_my_ok(false)
{
DBUG_ENTER("select_result_interceptor::select_result_interceptor");
DBUG_PRINT("enter", ("this %p", this));
DBUG_VOID_RETURN;
} /* Remove gcc warning */ | 0 |
496,897 | int mempool_create_with_shared_mem(
size_t pool_item_size, size_t pool_initial_size, size_t pool_expansion_size,
func_mem_available_callback_type mem_get_free_space_func,
func_mark_mem_used_callback_type mem_mark_used_space_func,
func_mark_mem_free_callback_type mem_mark_free_space_func,
func_log_ca... | 0 |
405,676 | WandExport void DrawRectangle(DrawingWand *wand,const double x1,const double y1,
const double x2,const double y2)
{
assert(wand != (DrawingWand *) NULL);
assert(wand->signature == MagickWandSignature);
if (wand->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
(voi... | 0 |
133,216 | static bool xdp_is_valid_access(int off, int size,
enum bpf_access_type type,
const struct bpf_prog *prog,
struct bpf_insn_access_aux *info)
{
if (type == BPF_WRITE)
return false;
switch (off) {
case offsetof(struct xdp_md, data):
info->reg_type = PTR_TO_PACKET;
break;
case offsetof(struct xdp_md... | 0 |
474,844 | static int assign_proto_idx(struct proto *prot)
{
prot->inuse_idx = find_first_zero_bit(proto_inuse_idx, PROTO_INUSE_NR);
if (unlikely(prot->inuse_idx == PROTO_INUSE_NR - 1)) {
pr_err("PROTO_INUSE_NR exhausted\n");
return -ENOSPC;
}
set_bit(prot->inuse_idx, proto_inuse_idx);
return 0;
} | 0 |
382,432 | ProcReleaseLocks(bool isCommit)
{
if (!MyProc)
return;
/* If waiting, get off wait queue (should only be needed after error) */
LockErrorCleanup();
/* Release standard locks, including session-level if aborting */
LockReleaseAll(DEFAULT_LOCKMETHOD, !isCommit);
/* Release transaction-level advisory locks */
Loc... | 0 |
265,610 | QPDFObjectHandle::setArrayFromVector(std::vector<QPDFObjectHandle> const& items)
{
assertArray();
return dynamic_cast<QPDF_Array*>(obj.getPointer())->setFromVector(items);
} | 0 |
355,303 | int hrtimer_try_to_cancel(struct hrtimer *timer)
{
struct hrtimer_clock_base *base;
unsigned long flags;
int ret = -1;
base = lock_hrtimer_base(timer, &flags);
if (!hrtimer_callback_running(timer))
ret = remove_hrtimer(timer, base);
unlock_hrtimer_base(timer, &flags);
return ret;
} | 0 |
413,753 | addBackwardPassRule(TranslationTableOffset *newRuleOffset, TranslationTableRule *newRule,
TranslationTableHeader *table) {
TranslationTableOffset *currentOffsetPtr;
TranslationTableRule *currentRule;
switch (newRule->opcode) {
case CTO_Correct:
currentOffsetPtr = &table->backPassRules[0];
break;
case CTO_Con... | 0 |
9,250 | void CL_Init( void ) {
Com_Printf( "----- Client Initialization -----\n" );
Con_Init();
if(!com_fullyInitialized)
{
CL_ClearState();
clc.state = CA_DISCONNECTED; // no longer CA_UNINITIALIZED
cl_oldGameSet = qfalse;
}
cls.realtime = 0;
CL_InitInput();
cl_noprint = Cvar_Get( "cl_noprint", "0", 0 );
#i... | 1 |
55,246 | int setns(int fd, int nstype)
{
return syscall(SYS_setns, fd, nstype);
} | 0 |
356,962 | sctp_disposition_t sctp_sf_ootb(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 sk_buff *skb = chunk->skb;
sctp_chunkhdr_t *ch;
__u8 *ch_end;
int ootb_shut_ack = 0;
SCTP_I... | 0 |
366,771 | sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss)
{
return do_sigaltstack(uss, uoss, rdusp());
} | 0 |
292,527 | vim_findfile_free_visited_list(ff_visited_list_hdr_T **list_headp)
{
ff_visited_list_hdr_T *vp;
while (*list_headp != NULL)
{
vp = (*list_headp)->ffvl_next;
ff_free_visited_list((*list_headp)->ffvl_visited_list);
vim_free((*list_headp)->ffvl_filename);
vim_free(*list_headp);
*list_headp = vp;
}
... | 0 |
370,898 | rb_to_id(VALUE name)
{
VALUE tmp;
ID id;
switch (TYPE(name)) {
default:
tmp = rb_check_string_type(name);
if (NIL_P(tmp)) {
tmp = rb_inspect(name);
rb_raise(rb_eTypeError, "%s is not a symbol",
RSTRING_PTR(tmp));
}
name = tmp;
/* fall through */
case T_STRING:
name = rb_s... | 0 |
501,775 | HealthCheckerFactoryContextImpl(Upstream::Cluster& cluster, Envoy::Runtime::Loader& runtime,
Event::Dispatcher& dispatcher,
HealthCheckEventLoggerPtr&& event_logger,
ProtobufMessage::ValidationVisitor& validation_vis... | 0 |
793 | int16_t vp9_dc_quant ( int qindex , int delta ) {
return dc_qlookup [ clamp ( qindex + delta , 0 , MAXQ ) ] ;
} | 1 |
414,034 | int wmi_read_hdr(struct wil6210_priv *wil, __le32 ptr,
struct wil6210_mbox_hdr *hdr)
{
void __iomem *src = wmi_buffer(wil, ptr);
if (!src)
return -EINVAL;
wil_memcpy_fromio_32(hdr, src, sizeof(*hdr));
return 0;
} | 0 |
112,386 | static int hns_nic_dev_remove(struct platform_device *pdev)
{
struct net_device *ndev = platform_get_drvdata(pdev);
struct hns_nic_priv *priv = netdev_priv(ndev);
if (ndev->reg_state != NETREG_UNINITIALIZED)
unregister_netdev(ndev);
if (priv->ring_data)
hns_nic_uninit_ring_data(priv);
priv->ring_data = NULL;... | 0 |
175,930 | xsltFreeExtModule(xsltExtModulePtr ext)
{
if (ext == NULL)
return;
xmlFree(ext);
}
| 0 |
144,126 | sctp_disposition_t sctp_sf_beat_8_3(struct net *net,
const struct sctp_endpoint *ep,
const struct sctp_association *asoc,
const sctp_subtype_t type,
void *arg,
sctp_cmd_seq_t *commands)
{
sctp_paramhdr_t *param_hdr;
struct sctp_chunk *chunk = arg;
struct sctp_chunk *reply;
si... | 0 |
294,354 | decompress_R2004_section (Bit_Chain *restrict dat, BITCODE_RC *restrict decomp,
uint32_t decomp_data_size, uint32_t comp_data_size)
{
unsigned int i, lit_length;
uint32_t comp_offset, comp_bytes, bytes_left;
unsigned char opcode1 = 0, opcode2;
long unsigned int start_byte = dat->byte;
... | 0 |
278,009 | void HWNDMessageHandler::Maximize() {
ExecuteSystemMenuCommand(SC_MAXIMIZE);
}
| 0 |
213,054 | static Eina_Bool _ewk_frame_contents_set_internal(Ewk_Frame_Smart_Data* smartData, const char* contents, size_t contentsSize, const char* mimeType, const char* encoding, const char* baseUri, const char* unreachableUri)
{
size_t length = strlen(contents);
if (contentsSize < 1 || contentsSize > length)
co... | 0 |
365,058 | tor_tls_context_incref(tor_tls_context_t *ctx)
{
++ctx->refcnt;
} | 0 |
189,919 | bool SendPacket(QuicPacketSequenceNumber sequence_number,
QuicPacket* packet,
bool resend,
bool force) {
return QuicConnection::SendPacket(sequence_number, packet, resend, force);
}
| 0 |
330,501 | static int coroutine_fn bdrv_co_do_write_zeroes(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, BdrvRequestFlags flags)
{
BlockDriver *drv = bs->drv;
QEMUIOVector qiov;
struct iovec iov = {0};
int ret = 0;
int max_write_zeroes = bs->bl.max_write_zeroes ?
... | 1 |
481,305 | create_macro(const char *name, const widechar *definition, int definition_length,
const int *substitutions, int substitution_count, int argument_count) {
Macro *m = malloc(sizeof(Macro));
m->name = strdup(name);
widechar *definition_copy = malloc(definition_length * sizeof(widechar));
memcpy(definition_copy, defi... | 0 |
502,448 | struct winsdb_addr **winsdb_addr_list_add(struct winsdb_handle *h, const struct winsdb_record *rec,
struct winsdb_addr **addresses, const char *address,
const char *wins_owner, time_t expire_time,
bool is_name_registration)
{
struct winsdb_addr *old_addr = NULL;
size_t len = 0;
size_t i;
bool f... | 0 |
435,453 | static int xml_add_ns(xmlNodePtr req, xmlNsPtr *respNs, xmlNodePtr root)
{
for (; req; req = req->next) {
if (req->type == XML_ELEMENT_NODE) {
xmlNsPtr nsDef;
for (nsDef = req->nsDef; nsDef; nsDef = nsDef->next) {
if (!xmlStrcmp(nsDef->href, BAD_CAST XML_NS_DAV))
... | 0 |
290,325 | int main ( int argc , char * * argv ) {
int option_idx = 0 ;
int result ;
const char * adb_server_ip = NULL ;
unsigned short * adb_server_tcp_port = NULL ;
unsigned int logcat_text = 0 ;
const char * default_adb_server_ip = "127.0.0.1" ;
unsigned short default_adb_server_tcp_port = 5037 ;
unsigned short local_a... | 0 |
125,740 | Variant HHVM_FUNCTION(exif_thumbnail, const String& filename,
VRefParam width /* = null */,
VRefParam height /* = null */,
VRefParam imagetype /* = null */) {
image_info_type ImageInfo;
memset(&ImageInfo, 0, sizeof(ImageInfo));
int ret =... | 0 |
253,781 | void AwContents::RequestNewHitTestDataAt(JNIEnv* env,
jobject obj,
jfloat x,
jfloat y,
jfloat touch_major) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
gfx... | 0 |
370,760 | rb_str_buf_cat(VALUE str, const char *ptr, long len)
{
if (len == 0) return str;
if (len < 0) {
rb_raise(rb_eArgError, "negative string size (or size too big)");
}
return str_buf_cat(str, ptr, len);
} | 0 |
321,129 | target_ulong cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
{
uint8_t *pde_ptr, *pte_ptr;
uint32_t pde, pte, paddr, page_offset, page_size;
if (!(env->cr[0] & CR0_PG_MASK)) {
pte = addr;
page_size = 4096;
} else {
/* page directory entry */
pde_ptr =... | 0 |
274,278 | static int ntlm_write_ntlm_v2_client_challenge(wStream* s, NTLMv2_CLIENT_CHALLENGE* challenge)
{
ULONG length;
Stream_Write_UINT8(s, challenge->RespType);
Stream_Write_UINT8(s, challenge->HiRespType);
Stream_Write_UINT16(s, challenge->Reserved1);
Stream_Write_UINT32(s, challenge->Reserved2);
Stream_Write(s, chall... | 0 |
200,976 | void WebContentsImpl::DidFailProvisionalLoadWithError(
RenderViewHost* render_view_host,
const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params) {
VLOG(1) << "Failed Provisional Load: " << params.url.possibly_invalid_spec()
<< ", error_code: " << params.error_code
<< ", error_des... | 0 |
439,734 | SplashGouraudPattern::~SplashGouraudPattern() {
} | 0 |
428,605 | replace_async_data_free (ReplaceAsyncData *data)
{
if (data->stream)
g_object_unref (data->stream);
g_free (data->etag);
g_free (data);
} | 0 |
190,916 | bool HTMLCanvasElement::WouldTaintOrigin() const {
return !OriginClean();
}
| 0 |
243,463 | void LayerTreeHost::RegisterViewportLayers(
scoped_refptr<Layer> page_scale_layer,
scoped_refptr<Layer> inner_viewport_scroll_layer,
scoped_refptr<Layer> outer_viewport_scroll_layer) {
page_scale_layer_ = page_scale_layer;
inner_viewport_scroll_layer_ = inner_viewport_scroll_layer;
outer_viewport_scro... | 0 |
399,988 | policy_hash(const policy_map_ent_t *ent)
{
const addr_policy_t *a = ent->policy;
addr_policy_t aa;
memset(&aa, 0, sizeof(aa));
aa.prt_min = a->prt_min;
aa.prt_max = a->prt_max;
aa.maskbits = a->maskbits;
aa.policy_type = a->policy_type;
aa.is_private = a->is_private;
if (a->is_private) {
aa.is_p... | 0 |
382,560 | my_regcomp(preg, pattern, cflags, charset)
my_regex_t *preg;
const char *pattern;
int cflags;
CHARSET_INFO *charset;
{
struct parse pa;
register struct re_guts *g;
register struct parse *p = &pa;
register int i;
register size_t len;
#ifdef REDEBUG
# define GOODFLAGS(f) (f)
#else
# define GOODFLAGS(f) ((f)&~REG_DUM... | 0 |
32,876 | void teecore_init_pub_ram(void)
{
vaddr_t s;
vaddr_t e;
/* get virtual addr/size of NSec shared mem allcated from teecore */
core_mmu_get_mem_by_type(MEM_AREA_NSEC_SHM, &s, &e);
if (s >= e || s & SMALL_PAGE_MASK || e & SMALL_PAGE_MASK)
panic("invalid PUB RAM");
/* extra check: we could rely on core_mmu_get_... | 0 |
429,118 | static MagickBooleanType WriteICONImage(const ImageInfo *image_info,
Image *image)
{
const char
*option;
IconFile
icon_file;
IconInfo
icon_info;
Image
*images,
*next;
MagickBooleanType
status;
MagickOffsetType
offset,
scene;
register const IndexPacket
*indexes;
... | 0 |
139,689 | static void nfc_llcp_rx_skb(struct nfc_llcp_local *local, struct sk_buff *skb)
{
u8 dsap, ssap, ptype;
ptype = nfc_llcp_ptype(skb);
dsap = nfc_llcp_dsap(skb);
ssap = nfc_llcp_ssap(skb);
pr_debug("ptype 0x%x dsap 0x%x ssap 0x%x\n", ptype, dsap, ssap);
if (ptype != LLCP_PDU_SYMM)
print_hex_dump_debug("LLCP Rx:... | 0 |
229,459 | void GLES2DecoderImpl::DoTexImageIOSurface2DCHROMIUM(
GLenum target, GLsizei width, GLsizei height,
GLuint io_surface_id, GLuint plane) {
#if defined(OS_MACOSX)
if (gfx::GetGLImplementation() != gfx::kGLImplementationDesktopGL) {
SetGLError(GL_INVALID_OPERATION,
"glTexImageIOSurface2DCHROMI... | 0 |
412,415 | static void snd_pcm_xrun_debug_write(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{
struct snd_pcm_str *pstr = entry->private_data;
char line[64];
if (!snd_info_get_line(buffer, line, sizeof(line)))
pstr->xrun_debug = simple_strtoul(line, NULL, 10);
} | 0 |
477,127 | void iov_iter_revert(struct iov_iter *i, size_t unroll)
{
if (!unroll)
return;
if (WARN_ON(unroll > MAX_RW_COUNT))
return;
i->count += unroll;
if (unlikely(iov_iter_is_pipe(i))) {
struct pipe_inode_info *pipe = i->pipe;
unsigned int p_mask = pipe->ring_size - 1;
unsigned int i_head = i->head;
size_t off... | 0 |
421,262 | static int FAST_FUNC read_optset(const char *line, void *arg) {
return udhcp_str2optset(line, arg,
dhcp_optflags, dhcp_option_strings,
/*dhcpv6:*/ 0
);
} | 0 |
468,109 | blk_get_flush_queue(struct request_queue *q, struct blk_mq_ctx *ctx)
{
return blk_mq_map_queue(q, REQ_OP_FLUSH, ctx)->fq;
} | 0 |
188,481 | void setFixedFontFamilyWrapper(WebSettings* settings,
const string16& font,
UScriptCode script) {
settings->setFixedFontFamily(font, script);
}
| 0 |
340,599 | void qxl_render_cursor(PCIQXLDevice *qxl, QXLCommandExt *ext)
{
QXLCursorCmd *cmd = qxl_phys2virt(qxl, ext->cmd.data, ext->group_id);
QXLCursor *cursor;
QEMUCursor *c;
if (!qxl->ssd.ds->mouse_set || !qxl->ssd.ds->cursor_define) {
return;
}
if (qxl->debug > 1 && cmd->type != Q... | 0 |
443,783 | bool RGWCORSRule::is_origin_present(const char *o) {
string origin = o;
return is_string_in_set(allowed_origins, origin);
} | 0 |
464,155 | nm_utils_machine_id_str(void)
{
return _machine_id_get(TRUE)->str;
} | 0 |
371,731 | get_dir_list_from_path (FrWindow *window,
char *path)
{
char *dirname;
int dirname_l;
GList *list = NULL;
int i;
if (path[strlen (path) - 1] != '/')
dirname = g_strconcat (path, "/", NULL);
else
dirname = g_strdup (path);
dirname_l = strlen (dirname);
for (i = 0; i < window->archive->fi... | 0 |
385,064 | static inline php_stream *phar_get_entrypfp(phar_entry_info *entry TSRMLS_DC)
{
if (!entry->is_persistent) {
return entry->phar->fp;
}
return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].fp;
} | 0 |
273,181 | Word getUpstreamDataBufferBytesHandler(void* raw_context, Word start, Word length, Word ptr_ptr,
Word size_ptr) {
auto context = WASM_CONTEXT(raw_context);
absl::string_view data;
auto result = context->getUpstreamDataBufferBytes(start.u64_, length.u64_, &data);
if (result... | 0 |
93,004 | _Unpickler_ReadFromFile(UnpicklerObject *self, Py_ssize_t n)
{
PyObject *data;
Py_ssize_t read_size;
assert(self->read != NULL);
if (_Unpickler_SkipConsumed(self) < 0)
return -1;
if (n == READ_WHOLE_LINE) {
data = _PyObject_CallNoArg(self->readline);
}
else {
PyObj... | 0 |
404,008 | bool ptr_is_within_mem_clumps(const void *ptr, gs_ref_memory_t *mem)
{
clump_t *cp = mem->root;
while (cp)
{
if (PTR_LT(ptr, cp->cbase))
{
cp = cp->left;
continue;
}
if (PTR_GE(ptr, cp->cend))
{
cp = cp->right;
continue... | 0 |
184,063 | void OverlayWindowViews::SetPictureInPictureCustomControls(
const std::vector<blink::PictureInPictureControlInfo>& controls) {
first_custom_controls_view_.reset();
second_custom_controls_view_.reset();
if (controls.size() > 0)
CreateCustomControl(first_custom_controls_view_, controls[0],
... | 0 |
348,572 | void JPXStream::init()
{
Object oLen, cspace, smaskInData;
if (getDict()) {
oLen = getDict()->lookup("Length");
cspace = getDict()->lookup("ColorSpace");
smaskInData = getDict()->lookup("SMaskInData");
}
int bufSize = BUFFER_INITIAL_SIZE;
if (oLen.isInt()) bufSize = oLen.getInt();
bool indexed... | 1 |
373,878 | bool fieldsMatch(const BSONObj& lhs, const BSONObj& rhs) {
BSONObjIterator l(lhs);
BSONObjIterator r(rhs);
while (l.more() && r.more()){
if (strcmp(l.next().fieldName(), r.next().fieldName())) {
return false;
}
}
return !(l.more() || ... | 0 |
413,709 | getCharOrDots(widechar c, int m, TranslationTableHeader *table) {
CharOrDots *cdPtr;
TranslationTableOffset bucket;
unsigned long int makeHash = (unsigned long int)c % HASHNUM;
if (m == 0)
bucket = table->charToDots[makeHash];
else
bucket = table->dotsToChar[makeHash];
while (bucket) {
cdPtr = (CharOrDots *... | 0 |
467,560 | EXPORTED int annotatemore_msg_lookup(const char *mboxname, uint32_t uid, const char *entry,
const char *userid, struct buf *value)
{
char key[MAX_MAILBOX_PATH+1];
size_t keylen, datalen;
int r;
const char *data;
annotate_db_t *d = NULL;
struct annotate_metada... | 0 |
60,321 | ufmt_close(UFormattable *fmt) {
Formattable *obj = Formattable::fromUFormattable(fmt);
delete obj;
} | 0 |
84,830 | int __netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
const struct nlmsghdr *nlh,
struct netlink_dump_control *control)
{
struct netlink_callback *cb;
struct sock *sk;
struct netlink_sock *nlk;
int ret;
atomic_inc(&skb->users);
sk = netlink_lookup(sock_net(ssk), ssk->sk_protocol, NETLINK_CB(sk... | 0 |
155,433 | __releases(&hb->lock)
{
__queue_me(q, hb);
spin_unlock(&hb->lock);
} | 0 |
413,476 | static void _slurm_rpc_dump_node_single(slurm_msg_t * msg)
{
DEF_TIMERS;
char *dump;
int dump_size;
slurm_msg_t response_msg;
node_info_single_msg_t *node_req_msg =
(node_info_single_msg_t *) msg->data;
/* Locks: Read config, read node, read part (for part_is_visible) */
slurmctld_lock_t node_write_lock = {
... | 0 |
207,162 | sk_deep_copy(void *sk_void, void *copy_func_void, void *free_func_void)
{
_STACK *sk = sk_void;
void *(*copy_func)(void *) = copy_func_void;
void (*free_func)(void *) = free_func_void;
_STACK *ret = sk_dup(sk);
size_t i;
if (ret == NULL)
return NULL;
for (i = 0; i < ret->num; i++) {
if (ret->data[i] == NUL... | 0 |
416,590 | gx_get_largest_clipping_box(gx_device * dev, gs_fixed_rect * pbox)
{
pbox->p.x = min_fixed;
pbox->p.y = min_fixed;
pbox->q.x = max_fixed;
pbox->q.y = max_fixed;
} | 0 |
374,573 | _equalCreateForeignServerStmt(const CreateForeignServerStmt *a, const CreateForeignServerStmt *b)
{
COMPARE_STRING_FIELD(servername);
COMPARE_STRING_FIELD(servertype);
COMPARE_STRING_FIELD(version);
COMPARE_STRING_FIELD(fdwname);
COMPARE_NODE_FIELD(options);
return true;
} | 0 |
489,143 | char *split_comma(char *str) {
if (str == NULL || *str == '\0')
return NULL;
char *ptr = strchr(str, ',');
if (!ptr)
return NULL;
*ptr = '\0';
ptr++;
if (*ptr == '\0')
return NULL;
return ptr;
} | 0 |
158,053 | ves_icall_MonoType_get_Name (MonoReflectionType *type)
{
MonoDomain *domain = mono_domain_get ();
MonoClass *class = mono_class_from_mono_type (type->type);
MONO_ARCH_SAVE_REGS;
if (type->type->byref) {
char *n = g_strdup_printf ("%s&", class->name);
MonoString *res = mono_string_new (domain, n);
g_free (... | 0 |
319,874 | static inline void gen_efdnabs(DisasContext *ctx)
{
if (unlikely(!ctx->spe_enabled)) {
gen_exception(ctx, POWERPC_EXCP_APU);
return;
}
#if defined(TARGET_PPC64)
tcg_gen_ori_tl(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rA(ctx->opcode)], 0x8000000000000000LL);
#else
tcg_gen_mov_tl(cpu_gpr... | 0 |
121,500 | compile_length_string_raw_node(StrNode* sn, regex_t* reg)
{
if (sn->end <= sn->s)
return 0;
return add_compile_string_length(sn->s, 1 /* sb */, (int )(sn->end - sn->s),
reg, 0);
} | 0 |
238,884 | static int register_memsw_files(struct cgroup *cont, struct cgroup_subsys *ss)
{
if (!do_swap_account)
return 0;
return cgroup_add_files(cont, ss, memsw_cgroup_files,
ARRAY_SIZE(memsw_cgroup_files));
};
| 0 |
8,487 | void CWebServer::GetFloorplanImage(WebEmSession & session, const request& req, reply & rep)
{
std::string idx = request::findValue(&req, "idx");
if (idx == "") {
return;
}
std::vector<std::vector<std::string> > result;
result = m_sql.safe_queryBlob("SELECT Image FROM Floorplans WHERE ID=%s", idx.... | 1 |
461,457 | static int coroutine_fn stat_to_v9stat(V9fsPDU *pdu, V9fsPath *path,
const char *basename,
const struct stat *stbuf,
V9fsStat *v9stat)
{
int err;
memset(v9stat, 0, sizeof(*v9stat));
err = s... | 0 |
295,547 | sshpkt_send(struct ssh *ssh)
{
if (compat20)
return ssh_packet_send2(ssh);
else
return ssh_packet_send1(ssh);
} | 0 |
190,711 | StringValue* MakeEnumValue(T t, const char* (*converter_fn)(T)) {
return Value::CreateStringValue(converter_fn(t));
}
| 0 |
407,007 | static void insert_part_info_log_entry_list(partition_info *part_info,
DDL_LOG_MEMORY_ENTRY *log_entry)
{
log_entry->next_active_log_entry= part_info->first_log_entry;
part_info->first_log_entry= log_entry;
} | 0 |
380,508 | evbuffer_free(struct evbuffer *buffer)
{
EVBUFFER_LOCK(buffer);
evbuffer_decref_and_unlock_(buffer);
} | 0 |
111,812 | static void digi_close(struct usb_serial_port *port)
{
DEFINE_WAIT(wait);
int ret;
unsigned char buf[32];
struct digi_port *priv = usb_get_serial_port_data(port);
mutex_lock(&port->serial->disc_mutex);
/* if disconnected, just clear flags */
if (port->serial->disconnected)
goto exit;
/* FIXME: Transmit idle... | 0 |
33,543 | entry_guards_note_guard_success(guard_selection_t *gs,
entry_guard_t *guard,
unsigned old_state)
{
tor_assert(gs);
/* Save this, since we're about to overwrite it. */
const time_t last_time_on_internet = gs->last_time_on_internet;
gs->last_time_on... | 0 |
64,059 | static int send_mpa_reply(struct iwch_ep *ep, const void *pdata, u8 plen)
{
int mpalen;
struct tx_data_wr *req;
struct mpa_message *mpa;
int len;
struct sk_buff *skb;
PDBG("%s ep %p plen %d\n", __func__, ep, plen);
mpalen = sizeof(*mpa) + plen;
skb = get_skb(NULL, mpalen + sizeof(*req), GFP_KERNEL);
if (!sk... | 0 |
466,247 | TEST_P(DownstreamProtocolIntegrationTest, ConnectStreamRejection) {
// TODO(danzh) add "allow_connect" to http3 options.
EXCLUDE_DOWNSTREAM_HTTP3;
if (downstreamProtocol() == Http::CodecClient::Type::HTTP1) {
return;
}
config_helper_.addConfigModifier(
[](envoy::extensions::filters::network::http_co... | 0 |
418,024 | int handle_data(bufferlist& bl, off_t bl_ofs, off_t bl_len) override {
return op->get_data_cb(bl, bl_ofs, bl_len);
} | 0 |
90,725 |
static double mp_dot(_cimg_math_parser& mp) {
const unsigned int siz = (unsigned int)mp.opcode[4];
return CImg<doubleT>(&_mp_arg(2) + 1,1,siz,1,1,true).
dot(CImg<doubleT>(&_mp_arg(3) + 1,1,siz,1,1,true)); | 0 |
375,846 | static int vmstate_n_elems(void *opaque, VMStateField *field)
{
int n_elems = 1;
if (field->flags & VMS_ARRAY) {
n_elems = field->num;
} else if (field->flags & VMS_VARRAY_INT32) {
n_elems = *(int32_t *)(opaque+field->num_offset);
} else if (field->flags & VMS_VARRAY_UINT32) {
n... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.