idx int64 | func string | target int64 |
|---|---|---|
487,662 | void WebContents::IncrementCapturerCount(gin::Arguments* args) {
gfx::Size size;
bool stay_hidden = false;
bool stay_awake = false;
// get size arguments if they exist
args->GetNext(&size);
// get stayHidden arguments if they exist
args->GetNext(&stay_hidden);
// get stayAwake arguments if they exist
... | 0 |
425,152 | g_socket_client_get_socket_type (GSocketClient *client)
{
return client->priv->type;
} | 0 |
24,754 | static void vc1_mc_4mv_luma ( VC1Context * v , int n , int dir ) {
MpegEncContext * s = & v -> s ;
DSPContext * dsp = & v -> s . dsp ;
uint8_t * srcY ;
int dxy , mx , my , src_x , src_y ;
int off ;
int fieldmv = ( v -> fcm == ILACE_FRAME ) ? v -> blk_mv_type [ s -> block_index [ n ] ] : 0 ;
int v_edge_pos = s ->... | 0 |
394,018 | try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
{
unsigned long flags;
int cpu, success = 0;
/*
* If we are going to wake up a thread waiting for CONDITION we
* need to ensure that CONDITION=1 done by the caller can not be
* reordered with p->state check below. This pairs with mb() i... | 0 |
83,620 | void usage() {
printf("This is nbd-server version " VERSION "\n");
printf("Usage: [ip:|ip6@]port file_to_export [size][kKmM] [-l authorize_file] [-r] [-m] [-c] [-C configuration file] [-p PID file name] [-o section name] [-M max connections]\n"
"\t-r|--read-only\t\tread only\n"
"\t-m|--multi-file\t\tm... | 0 |
57,536 | static int msgctl_down(struct ipc_namespace *ns, int msqid, int cmd,
struct msqid_ds __user *buf, int version)
{
struct kern_ipc_perm *ipcp;
struct msqid64_ds uninitialized_var(msqid64);
struct msg_queue *msq;
int err;
if (cmd == IPC_SET) {
if (copy_msqid_from_user(&msqid64, buf, version))
return -E... | 0 |
167,215 | void SyncBackendHost::HandleClearServerDataSucceededOnFrontendLoop() {
if (!frontend_)
return;
frontend_->OnClearServerDataSucceeded();
}
| 0 |
427,545 | static efi_status_t efi_thunk_get_time(efi_time_t *tm, efi_time_cap_t *tc)
{
efi_status_t status;
u32 phys_tm, phys_tc;
unsigned long flags;
spin_lock(&rtc_lock);
spin_lock_irqsave(&efi_runtime_lock, flags);
phys_tm = virt_to_phys_or_null(tm);
phys_tc = virt_to_phys_or_null(tc);
status = efi_thunk(get_time, ... | 0 |
495,814 | static s32 gf_vvc_read_sps_bs_internal(GF_BitStream *bs, VVCState *vvc, u8 layer_id, u32 *vui_flag_pos)
{
s32 vps_id, sps_id;
u32 i, CtbSizeY;
VVC_SPS *sps;
u8 sps_ptl_dpb_hrd_params_present_flag;
if (vui_flag_pos) *vui_flag_pos = 0;
sps_id = gf_bs_read_int_log(bs, 4, "sps_id");
if ((sps_id<0) || (sps_id >= 16... | 0 |
76,112 | add_llist_tags(
char_u *tag,
int num_matches,
char_u **matches)
{
list_T *list;
char_u tag_name[128 + 1];
char_u *fname;
char_u *cmd;
int i;
char_u *p;
tagptrs_T tagp;
fname = alloc(MAXPATHL + 1);
cmd = alloc(CMDBUFFSIZE + 1);
list = list_alloc();
if (list == N... | 0 |
103,478 | syscall_get_enter_fields(struct ftrace_event_call *call)
{
struct syscall_metadata *entry = call->data;
return &entry->enter_fields;
} | 0 |
247,175 | void reference_dct_2d(int16_t input[64], double output[64]) {
for (int i = 0; i < 8; ++i) {
double temp_in[8], temp_out[8];
for (int j = 0; j < 8; ++j)
temp_in[j] = input[j*8 + i];
reference_dct_1d(temp_in, temp_out);
for (int j = 0; j < 8; ++j)
output[j*8 + i] = temp_out[j];
}
for (int i = 0; i <... | 0 |
11,297 | static void ssl_check_for_safari(SSL *s, const unsigned char *data,
const unsigned char *limit)
{
unsigned short type, size;
static const unsigned char kSafariExtensionsBlock[] = {
0x00, 0x0a, /* elliptic_curves extension */
0x00, 0x08, /*... | 1 |
461,883 | }
static int
iscsi_multicast_skb(struct sk_buff *skb, uint32_t group, gfp_t gfp) | 0 |
510,978 | static void patch_fn(struct cgit_context *ctx)
{
cgit_print_patch(ctx->qry.sha1);
} | 0 |
163,305 | static void stroke_add_conn(private_stroke_socket_t *this, stroke_msg_t *msg)
{
pop_string(msg, &msg->add_conn.name);
DBG1(DBG_CFG, "received stroke: add connection '%s'", msg->add_conn.name);
DBG2(DBG_CFG, "conn %s", msg->add_conn.name);
pop_end(msg, "left", &msg->add_conn.me);
pop_end(msg, "right", &msg->add_co... | 0 |
348,057 | static void prepare_cmd(struct argv_array *out, const struct child_process *cmd)
{
if (!cmd->argv[0])
die("BUG: command is empty");
/*
* Add SHELL_PATH so in the event exec fails with ENOEXEC we can
* attempt to interpret the command with 'sh'.
*/
argv_array_push(out, SHELL_PATH);
if (cmd->git_cmd) {
ar... | 1 |
346,682 | extract_group_icon_cursor_resource(WinLibrary *fi, WinResource *wr, char *lang,
int *ressize, bool is_icon)
{
Win32CursorIconDir *icondir;
Win32CursorIconFileDir *fileicondir;
char *memory;
int c, size, offset, skipped;
/* get resource data and size */
icondir = (Win32CursorIco... | 1 |
243,602 | SPL_METHOD(Array, key)
{
if (zend_parse_parameters_none() == FAILURE) {
return;
}
spl_array_iterator_key(getThis(), return_value TSRMLS_CC);
} /* }}} */
void spl_array_iterator_key(zval *object, zval *return_value TSRMLS_DC) /* {{{ */
| 0 |
310,205 | pdf_show_shade(fz_context *ctx, pdf_run_processor *pr, fz_shade *shd)
{
pdf_gstate *gstate = pr->gstate + pr->gtop;
fz_rect bbox;
softmask_save softmask = { NULL };
if (pr->super.hidden)
return;
fz_bound_shade(ctx, shd, &gstate->ctm, &bbox);
gstate = pdf_begin_group(ctx, pr, &bbox, &softmask);
/* FIXME: Th... | 0 |
280,973 | void ContainerNode::insertBeforeCommon(Node* nextChild, Node* newChild)
{
NoEventDispatchAssertion assertNoEventDispatch;
ASSERT(newChild);
ASSERT(!newChild->parentNode()); // Use insertBefore if you need to handle reparenting (and want DOM mutation events).
ASSERT(!newChild->nextSibling());
ASSERT... | 0 |
384,447 | static int evdev_flush(struct file *file, fl_owner_t id)
{
struct evdev_client *client = file->private_data;
struct evdev *evdev = client->evdev;
int retval;
retval = mutex_lock_interruptible(&evdev->mutex);
if (retval)
return retval;
if (!evdev->exist || client->revoked)
retval = -ENODEV;
else
retval = ... | 0 |
32,845 | static inline void activate_mm(struct mm_struct *prev,
struct mm_struct *next)
{
switch_mm(prev, next, current);
cpumask_set_cpu(smp_processor_id(), mm_cpumask(next));
set_user_asce(next);
} | 0 |
341,550 | void vnc_display_init(DisplayState *ds)
{
VncDisplay *vs = g_malloc0(sizeof(*vs));
dcl = g_malloc0(sizeof(DisplayChangeListener));
ds->opaque = vs;
dcl->idle = 1;
vnc_display = vs;
vs->lsock = -1;
#ifdef CONFIG_VNC_WS
vs->lwebsock = -1;
#endif
vs->ds = ds;
QTAILQ_... | 1 |
520,942 | bool Item_func_like::find_selective_predicates_list_processor(void *arg)
{
find_selective_predicates_list_processor_data *data=
(find_selective_predicates_list_processor_data *) arg;
if (use_sampling && used_tables() == data->table->map)
{
THD *thd= data->table->in_use;
COND_STATISTIC *stat;
Item ... | 0 |
110,201 | static void fb_do_show_logo(struct fb_info *info, struct fb_image *image,
int rotate, unsigned int num)
{
unsigned int x;
if (rotate == FB_ROTATE_UR) {
for (x = 0;
x < num && image->dx + image->width <= info->var.xres;
x++) {
info->fbops->fb_imageblit(info, image);
image->dx += image->wi... | 0 |
343,271 | static inline void yuv2yuvXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW)
{
//FIXME Optimize (just quickly wr... | 1 |
256,591 | static void http_chunked_request_done ( struct evhttp_request * req , void * arg ) {
if ( req -> response_code != HTTP_OK ) {
fprintf ( stderr , "FAILED\n" ) ;
exit ( 1 ) ;
}
if ( evhttp_find_header ( req -> input_headers , "Transfer-Encoding" ) == NULL ) {
fprintf ( stderr , "FAILED\n" ) ;
exit ( 1 ) ;
}
if (... | 0 |
500,486 | QPDFWriter::writeHeader()
{
writeString("%PDF-");
writeString(this->m->final_pdf_version);
if (this->m->pclm)
{
// PCLm version
writeString("\n%PCLm 1.0\n");
}
else
{
// This string of binary characters would not be valid UTF-8, so
// it really should be treat... | 0 |
73,980 | tcp_sacktag_write_queue(struct sock *sk, const struct sk_buff *ack_skb,
u32 prior_snd_una, struct tcp_sacktag_state *state)
{
struct tcp_sock *tp = tcp_sk(sk);
const unsigned char *ptr = (skb_transport_header(ack_skb) +
TCP_SKB_CB(ack_skb)->sacked);
struct tcp_sack_block_wire *sp_wire = (struct tcp_sack_b... | 0 |
354,093 | set_attribute_9(TERMTYPE2 *tp, int flag)
{
const char *value;
char *result;
value = tparm(set_attributes, 0, 0, 0, 0, 0, 0, 0, 0, flag);
if (PRESENT(value))
result = strdup(value);
else
result = 0;
return result;
} | 1 |
403,357 | PHP_FUNCTION(openssl_get_cert_locations)
{
array_init(return_value);
add_assoc_string(return_value, "default_cert_file", (char *) X509_get_default_cert_file(), 1);
add_assoc_string(return_value, "default_cert_file_env", (char *) X509_get_default_cert_file_env(), 1);
add_assoc_string(return_value, "default_cert_dir... | 0 |
405,247 | ossl_asn1_tag_class(VALUE obj)
{
VALUE s;
s = ossl_asn1_get_tag_class(obj);
if (NIL_P(s) || s == sym_UNIVERSAL)
return V_ASN1_UNIVERSAL;
else if (s == sym_APPLICATION)
return V_ASN1_APPLICATION;
else if (s == sym_CONTEXT_SPECIFIC)
return V_ASN1_CONTEXT_SPECIFIC;
else if (s == sym_PRIVATE)
r... | 0 |
429,573 | std::string XPathIo::writeDataToFile(const std::string& orgPath) {
Protocol prot = fileProtocol(orgPath);
// generating the name for temp file.
std::time_t timestamp = std::time(NULL);
std::stringstream ss;
ss << timestamp << XPathIo::TEMP_FILE_EXT;
std::string path ... | 0 |
381,662 | static __init int vdso_setup(char *s)
{
vdso64_enabled = simple_strtoul(s, NULL, 0);
return 0;
} | 0 |
168,029 | xmlXPathSubstringAfterFunction(xmlXPathParserContextPtr ctxt, int nargs) {
xmlXPathObjectPtr str;
xmlXPathObjectPtr find;
xmlBufferPtr target;
const xmlChar *point;
int offset;
CHECK_ARITY(2);
CAST_TO_STRING;
find = valuePop(ctxt);
CAST_TO_STRING;
str = valuePop(ctxt);
target = xmlBufferCreate()... | 0 |
392,576 | int __init pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai,
void *base_addr)
{
static int smap[PERCPU_DYNAMIC_EARLY_SLOTS] __initdata;
static int dmap[PERCPU_DYNAMIC_EARLY_SLOTS] __initdata;
size_t dyn_size = ai->dyn_size;
size_t size_sum = ai->static_size + ai->reserved_size + dyn_size;
struct pcpu_... | 0 |
5,854 | R_API RBinJavaAttrInfo *r_bin_java_local_variable_type_table_attr_new(ut8 *buffer, ut64 sz, ut64 buf_offset) {
RBinJavaLocalVariableTypeAttribute *lvattr;
ut64 offset = 6;
ut32 i = 0;
RBinJavaAttrInfo *attr = r_bin_java_default_attr_new (buffer, sz, 0);
if (!attr) {
return NULL;
}
attr->type = R_BIN_JAVA_ATTR_... | 1 |
231,991 | static Layer* FindFirstScrollableLayer(Layer* layer) {
if (!layer)
return NULL;
if (layer->scrollable())
return layer;
for (size_t i = 0; i < layer->children().size(); ++i) {
Layer* found = FindFirstScrollableLayer(layer->children()[i].get());
if (found)
return found;
}
return NULL;
}... | 0 |
495,539 | Bool gf_isom_moov_first(GF_ISOFile *movie)
{
u32 i;
for (i=0; i<gf_list_count(movie->TopBoxes); i++) {
GF_Box *b = (GF_Box*)gf_list_get(movie->TopBoxes, i);
if (b->type == GF_ISOM_BOX_TYPE_MOOV) return GF_TRUE;
if (b->type == GF_ISOM_BOX_TYPE_MDAT) return GF_FALSE;
}
return GF_FALSE;
} | 0 |
152,953 | FunctionContext::~FunctionContext() {
irGen_->functionContext_ = oldContext_;
} | 0 |
464,234 | void *zrealloc_usable(void *ptr, size_t size, size_t *usable) {
#ifndef HAVE_MALLOC_SIZE
void *realptr;
#endif
size_t oldsize;
void *newptr;
if (size == 0 && ptr != NULL) {
zfree(ptr);
*usable = 0;
return NULL;
}
if (ptr == NULL) return zmalloc_usable(size, usable);
#ifd... | 0 |
237,317 | static std::string WrapWithTH(std::string text) {
return "<th>" + text + "</th>";
}
| 0 |
497,492 | struct razer_report razer_chroma_misc_get_scroll_mode(void)
{
struct razer_report report = get_razer_report(0x02, 0x94, 0x02);
report.arguments[0] = VARSTORE;
return report;
} | 0 |
263,861 | static MagickBooleanType IsXWD(const unsigned char *magick,const size_t length)
{
if (length < 8)
return(MagickFalse);
if (memcmp(magick+1,"\000\000",2) == 0)
{
if (memcmp(magick+4,"\007\000\000",3) == 0)
return(MagickTrue);
if (memcmp(magick+5,"\000\000\007",3) == 0)
return(Magi... | 0 |
26,870 | static int virLogSetDefaultOutputToFile ( const char * filename , bool privileged ) {
int ret = - 1 ;
char * logdir = NULL ;
mode_t old_umask ;
if ( privileged ) {
if ( virAsprintf ( & virLogDefaultOutput , "%d:file:%s/log/libvirt/%s" , virLogDefaultPriority , LOCALSTATEDIR , filename ) < 0 ) goto cleanup ;
}
el... | 0 |
213,417 | image_draw_decide_cb (int image_id, void *data)
{
return (image_id == GPOINTER_TO_INT (data));
}
| 0 |
498,404 | TEST_F(RouterTest, HttpsInternalRedirectSucceeded) {
auto ssl_connection = std::make_shared<Ssl::MockConnectionInfo>();
enableRedirects(3);
setNumPreviousRedirect(1);
sendRequest();
redirect_headers_->setLocation("https://www.foo.com");
EXPECT_CALL(connection_, ssl()).WillOnce(Return(ssl_connection));
E... | 0 |
495,477 | njs_string_prototype_char_code_at(njs_vm_t *vm, njs_value_t *args,
njs_uint_t nargs, njs_index_t unused)
{
double num;
size_t length;
int64_t index;
uint32_t code;
njs_int_t ret;
const u_char *start, *end;
njs_... | 0 |
405,911 | ofputil_protocol_is_valid(enum ofputil_protocol protocol)
{
return protocol & OFPUTIL_P_ANY && is_pow2(protocol);
} | 0 |
412,521 | pk_transaction_install_signature (PkTransaction *transaction,
GVariant *params,
GDBusMethodInvocation *context)
{
gboolean ret;
const gchar *key_id;
const gchar *package_id;
PkSigTypeEnum sig_type;
g_autoptr(GError) error = NULL;
g_return_if_fail (PK_IS_TRANSACTION (transaction));
g_return_if_fail (... | 0 |
501,843 | static void free_urlhandle(struct Curl_URL *u)
{
free(u->scheme);
free(u->user);
free(u->password);
free(u->options);
free(u->host);
free(u->zoneid);
free(u->port);
free(u->path);
free(u->query);
free(u->fragment);
free(u->scratch);
free(u->temppath);
} | 0 |
449,417 | nv04_sgdma_bind(struct ttm_tt *ttm, struct ttm_mem_reg *reg)
{
struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm;
struct nouveau_mem *mem = nouveau_mem(reg);
int ret;
ret = nouveau_mem_host(reg, &nvbe->ttm);
if (ret)
return ret;
ret = nouveau_mem_map(mem, &mem->cli->vmm.vmm, &mem->vma[0]);
if (r... | 0 |
411,612 | **/
CImg<T>& noise(const double sigma, const unsigned int noise_type=0) {
if (is_empty()) return *this;
const Tfloat vmin = (Tfloat)cimg::type<T>::min(), vmax = (Tfloat)cimg::type<T>::max();
Tfloat nsigma = (Tfloat)sigma, m = 0, M = 0;
if (nsigma==0 && noise_type!=3) return *this;
... | 0 |
213,094 | LogLuvDecodeStrip(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s)
{
tmsize_t rowlen = TIFFScanlineSize(tif);
if (rowlen == 0)
return 0;
assert(cc%rowlen == 0);
while (cc && (*tif->tif_decoderow)(tif, bp, rowlen, s)) {
bp += rowlen;
cc -= rowlen;
}
return (cc == 0);
}
| 0 |
245,057 | void tst_QQuickWebView::removeFromCanvas()
{
showWebView();
QQuickItem* parent = webView()->parentItem();
QQuickItem noCanvasItem;
webView()->setParentItem(&noCanvasItem);
QTest::qWait(200);
webView()->setParentItem(parent);
webView()->setVisible(true);
QTest::qWait(200);
}
| 0 |
81,132 | GF_Err gf_isom_set_audio_layout(GF_ISOFile *movie, u32 trackNumber, u32 sampleDescriptionIndex, GF_AudioChannelLayout *layout)
{
GF_Err e;
GF_TrackBox *trak;
GF_SampleEntryBox *entry;
GF_AudioSampleEntryBox*aud_entry;
GF_SampleDescriptionBox *stsd;
GF_ChannelLayoutBox *chnl;
e = CanAccessMovie(movie, GF_ISOM_OPE... | 0 |
146,792 | wipe_dummy_buffer(buf_T *buf, char_u *dirname_start)
{
// If any autocommand opened a window on the dummy buffer, close that
// window. If we can't close them all then give up.
while (buf->b_nwindows > 0)
{
int did_one = FALSE;
win_T *wp;
if (firstwin->w_next != NULL)
FOR_ALL_WINDOWS(w... | 0 |
405,545 | test_bson_append_dbpointer (void)
{
bson_oid_t oid;
bson_t *b;
bson_t *b2;
b = bson_new ();
bson_oid_init_from_string (&oid, "0123abcd0123abcd0123abcd");
BSON_ASSERT (bson_append_dbpointer (b, "dbpointer", -1, "foo", &oid));
b2 = get_bson ("test28.bson");
BSON_ASSERT_BSON_EQUAL (b, b2);
bson... | 0 |
370,845 | rb_str_new_shared(VALUE str)
{
VALUE str2 = str_new3(rb_obj_class(str), str);
OBJ_INFECT(str2, str);
return str2;
} | 0 |
476,143 | void InstanceKlass::ensure_space_for_methodids(int start_offset) {
int new_jmeths = 0;
int length = methods()->length();
for (int index = start_offset; index < length; index++) {
Method* m = methods()->at(index);
jmethodID id = m->find_jmethod_id_or_null();
if (id == NULL) {
new_jmeths++;
}
... | 0 |
225,209 | int PrintWebViewHelper::PrintPreviewContext::total_page_count() const {
DCHECK(IsRendering());
return total_page_count_;
}
| 0 |
420,727 | static void l2cap_chan_le_connect_reject(struct l2cap_chan *chan)
{
struct l2cap_conn *conn = chan->conn;
struct l2cap_le_conn_rsp rsp;
u16 result;
if (test_bit(FLAG_DEFER_SETUP, &chan->flags))
result = L2CAP_CR_LE_AUTHORIZATION;
else
result = L2CAP_CR_LE_BAD_PSM;
l2cap_state_change(chan, BT_DISCONN);
rsp... | 0 |
360,226 | invalidate_deep_counts (NautilusFile *file)
{
file->details->deep_counts_status = NAUTILUS_REQUEST_NOT_STARTED;
} | 0 |
97,231 | void ptrace_disable(struct task_struct *task)
{
memset(&task->thread.per_user, 0, sizeof(task->thread.per_user));
memset(&task->thread.per_event, 0, sizeof(task->thread.per_event));
clear_tsk_thread_flag(task, TIF_SINGLE_STEP);
clear_pt_regs_flag(task_pt_regs(task), PIF_PER_TRAP);
task->thread.per_flags = 0;
} | 0 |
217,710 | ErrorResilienceTestLarge()
: EncoderTest(GET_PARAM(0)),
psnr_(0.0),
nframes_(0),
mismatch_psnr_(0.0),
mismatch_nframes_(0),
encoding_mode_(GET_PARAM(1)) {
Reset();
}
| 0 |
242,791 | ExtensionFunction* NewExtensionFunction() {
return new T();
}
| 0 |
166,733 | xps_parse_digits(char *s, int *digit)
{
*digit = 0;
while (*s >= '0' && *s <= '9')
{
*digit = *digit * 10 + (*s - '0');
s ++;
}
return s;
}
| 0 |
449,146 | CNF_GetRtcOnUtc(void)
{
return rtc_on_utc;
} | 0 |
18,311 | TEST_F ( ProfileInfoCacheTest , GAIAName ) {
GetCache ( ) -> AddProfileToCache ( GetProfilePath ( "path_1" ) , ASCIIToUTF16 ( "Person 1" ) , base : : string16 ( ) , 0 , std : : string ( ) ) ;
base : : string16 profile_name ( ASCIIToUTF16 ( "Person 2" ) ) ;
GetCache ( ) -> AddProfileToCache ( GetProfilePath ( "path_2... | 0 |
9,060 | static gboolean is_correct_filename(const char *value)
{
return printable_str(value) && !strchr(value, '/') && !strchr(value, '.');
} | 1 |
156,324 | flatpak_context_reset_non_permissions (FlatpakContext *context)
{
g_hash_table_remove_all (context->env_vars);
} | 0 |
509,713 | static void test_frm_bug()
{
MYSQL_STMT *stmt;
MYSQL_BIND my_bind[2];
MYSQL_RES *result;
MYSQL_ROW row;
FILE *test_file;
char data_dir[FN_REFLEN];
char test_frm[FN_REFLEN];
int rc;
myheader("test_frm_bug");
mysql_autocommit(mysql, TRUE);
rc= mysql_query(mysql, "drop t... | 0 |
186,079 | void ExtensionFunctionDispatcher::Dispatch(
const ExtensionHostMsg_Request_Params& params,
RenderViewHost* render_view_host) {
ExtensionService* service = profile()->GetExtensionService();
ExtensionProcessManager* process_manager =
extensions::ExtensionSystem::Get(profile())->process_manager();
exte... | 0 |
459,379 | cb_log_host(const union sudo_defs_val *sd_un)
{
debug_decl(cb_syslog_maxlen, SUDOERS_DEBUG_PLUGIN);
eventlog_set_omit_hostname(!sd_un->flag);
debug_return_bool(true);
} | 0 |
103,625 | void log() {
RequestHeaderMap* request_headers = nullptr;
if (filter_manager_callbacks_.requestHeaders()) {
request_headers = filter_manager_callbacks_.requestHeaders().ptr();
}
ResponseHeaderMap* response_headers = nullptr;
if (filter_manager_callbacks_.responseHeaders()) {
response_h... | 0 |
129,694 | static struct inode *hugetlbfs_get_inode(struct super_block *sb,
struct inode *dir,
umode_t mode, dev_t dev)
{
struct inode *inode;
inode = new_inode(sb);
if (inode) {
struct hugetlbfs_inode_info *info;
inode->i_ino = get_next_ino();
inode_init_owner(inode, dir, mode);
inode->i_mapping->a_ops = &h... | 0 |
476,579 | evict_writes (struct rw_file *rwf, uint64_t offset, size_t len)
{
static __thread struct write_window window[NR_WINDOWS];
/* Evict the oldest window from the page cache. */
if (window[0].len > 0) {
sync_file_range (rwf->fd, window[0].offset, window[0].len,
SYNC_FILE_RANGE_WAIT_BEFORE|SYN... | 0 |
204,867 | bool Syncer::ExitRequested() {
base::AutoLock lock(early_exit_requested_lock_);
return early_exit_requested_;
}
| 0 |
2,939 | static __be32 nfsd3_proc_setacl(struct svc_rqst * rqstp,
struct nfsd3_setaclargs *argp,
struct nfsd3_attrstat *resp)
{
struct inode *inode;
svc_fh *fh;
__be32 nfserr = 0;
int error;
fh = fh_copy(&resp->fh, &argp->fh);
nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR);
if (nfserr)
goto out;
inode =... | 1 |
166,906 | void FrameLoader::loadArchive(PassRefPtr<Archive> prpArchive)
{
RefPtr<Archive> archive = prpArchive;
ArchiveResource* mainResource = archive->mainResource();
ASSERT(mainResource);
if (!mainResource)
return;
SubstituteData substituteData(mainResource->data(), mainResource->mime... | 0 |
224,567 | void WebFrame::startDownload(const WebCore::ResourceRequest& request)
{
ASSERT(m_policyDownloadID);
DownloadManager::shared().startDownload(m_policyDownloadID, page(), request);
m_policyDownloadID = 0;
}
| 0 |
206,473 | hb_shaper_get_run_language(ASS_Shaper *shaper, hb_script_t script)
{
hb_language_t lang;
if (shaper->language != HB_LANGUAGE_INVALID)
return shaper->language;
lang = script_to_language(script);
if (lang == HB_LANGUAGE_INVALID)
lang = hb_language_get_default();
return lang;
}
| 0 |
222,906 | static ssize_t virtio_net_receive(NetClientState *nc, const uint8_t *buf, size_t size)
{
VirtIONet *n = qemu_get_nic_opaque(nc);
VirtIONetQueue *q = virtio_net_get_subqueue(nc);
VirtIODevice *vdev = VIRTIO_DEVICE(n);
struct iovec mhdr_sg[VIRTQUEUE_MAX_SIZE];
struct virtio_net_hdr_mrg_rxbuf mhdr;
... | 0 |
455,788 | void SdamServerSelector::_verifyMaxstalenessWireVersions(TopologyDescriptionPtr topologyDescription,
Seconds maxStalenessSeconds) {
for (auto& server : topologyDescription->getServers()) {
uassert(ErrorCodes::IncompatibleServerVersion,
... | 0 |
223,340 | void WebGLRenderingContextBase::TexImageByGPU(
TexImageFunctionID function_id,
WebGLTexture* texture,
GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
CanvasImageSource* image,
const IntRect& source_sub_rectangle) {
DCHECK(image->IsCanvasElement() || image->... | 0 |
141,464 |
GF_Err stri_box_read(GF_Box *s, GF_BitStream *bs)
{
size_t i;
GF_SubTrackInformationBox *ptr = (GF_SubTrackInformationBox *)s;
ISOM_DECREASE_SIZE(ptr, 8)
ptr->switch_group = gf_bs_read_u16(bs);
ptr->alternate_group = gf_bs_read_u16(bs);
ptr->sub_track_id = gf_bs_read_u32(bs);
ptr->attribute_count = ptr->size / ... | 0 |
7,409 |
private int
mcopy(struct magic_set *ms, union VALUETYPE *p, int type, int indir,
const unsigned char *s, uint32_t offset, size_t nbytes, size_t linecnt)
{
/*
* Note: FILE_SEARCH and FILE_REGEX do not actually copy
* anything, but setup pointers into the source
*/
if (indir == 0) {
switch (type) {
case ... | 1 |
70,374 | static void AuthPAMUserPwdStartFunc(rfbClientPtr cl)
{
cl->state = RFB_AUTHENTICATION;
} | 0 |
442,439 | void checkValue (void* sampleRawData,
int sampleCount,
int channelType,
int dwx,
int dwy)
{
for (int l = 0; l < sampleCount; l++)
{
if (channelType == 0)
{
unsigned int* value = (unsigned int*)(sampleRawData);
... | 0 |
477,557 | static void tcf_chain_head_change_item(struct tcf_filter_chain_list_item *item,
struct tcf_proto *tp_head)
{
if (item->chain_head_change)
item->chain_head_change(tp_head, item->chain_head_change_priv);
} | 0 |
348,865 | static struct domain_device *sas_ex_discover_expander(
struct domain_device *parent, int phy_id)
{
struct sas_expander_device *parent_ex = rphy_to_expander_device(parent->rphy);
struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id];
struct domain_device *child = NULL;
struct sas_rphy *rphy;
struct sas_expander_devi... | 1 |
485,882 | sctp_disposition_t sctp_sf_violation(const struct sctp_endpoint *ep,
const struct sctp_association *asoc,
const sctp_subtype_t type,
void *arg,
sctp_cmd_seq_t *commands)
{
return SCTP_DISPOSITION_VIOLATION;
} | 0 |
416,848 | static int rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
struct netlink_ext_ack *extack)
{
struct net *net = sock_net(skb->sk);
struct rtnl_link *handlers;
int err = -EOPNOTSUPP;
rtnl_doit_func doit;
unsigned int flags;
int kind;
int family;
int type;
type = nlh->nlmsg_type;
if (type >... | 0 |
411,433 | }
static double nan() {
#ifdef NAN
return (double)NAN;
#else
const double val_nan = -std::sqrt(-1.0); return val_nan;
#endif | 0 |
332,697 | void define_one_arm_cp_reg_with_opaque(ARMCPU *cpu,
const ARMCPRegInfo *r, void *opaque)
{
/* Define implementations of coprocessor registers.
* We store these in a hashtable because typically
* there are less than 150 registers in a space which
* is 16*16... | 0 |
265,053 | connection_ap_handshake_send_resolve(entry_connection_t *ap_conn)
{
int payload_len, command;
const char *string_addr;
char inaddr_buf[REVERSE_LOOKUP_NAME_BUF_LEN];
origin_circuit_t *circ;
edge_connection_t *edge_conn = ENTRY_TO_EDGE_CONN(ap_conn);
connection_t *base_conn = TO_CONN(edge_conn);
tor_assert(... | 0 |
111,301 | static bool ptrace_freeze_traced(struct task_struct *task)
{
bool ret = false;
/* Lockless, nobody but us can set this flag */
if (task->jobctl & JOBCTL_LISTENING)
return ret;
spin_lock_irq(&task->sighand->siglock);
if (task_is_traced(task) && !__fatal_signal_pending(task)) {
task->state = __TASK_TRACED;
r... | 0 |
217,244 | void RenderViewHostImpl::JavaScriptDialogClosed(IPC::Message* reply_msg,
bool success,
const string16& user_input) {
GetProcess()->SetIgnoreInputEvents(false);
bool is_waiting =
is_waiting_for_beforeunload_ack_ || ... | 0 |
380,121 | PHP_FUNCTION(sqlite_fetch_column_types)
{
zval *zdb;
struct php_sqlite_db *db;
char *tbl, *sql;
int tbl_len;
char *errtext = NULL;
zval *object = getThis();
struct php_sqlite_result res;
const char **rowdata, **colnames, *tail;
int i, ncols;
long result_type = PHPSQLITE_ASSOC;
if (object) {
if (FAILURE ==... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.