idx
int64
func
string
target
int64
492,956
static int ssl_parse_inner_plaintext( unsigned char const *content, size_t *content_size, uint8_t *rec_type ) { size_t remaining = *content_size; /* Determine length of padding by skipping zeroes from the back. */ do { ...
0
292,546
static void iwl_fwrt_dump_txf(struct iwl_fw_runtime *fwrt, struct iwl_fw_error_dump_data **dump_data, int size, u32 offset, int fifo_num) { struct iwl_fw_error_dump_fifo *fifo_hdr; u32 *fifo_data; u32 fifo_len; int i; fifo_hdr = (void *)(*dump_data)->data; fifo_data = (void *)fifo_hdr->data; f...
0
26,576
IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , PersistentIncognito ) { PrefService * prefs = profile_ -> GetPrefs ( ) ; prefs -> SetBoolean ( prefs : : kBlockThirdPartyCookies , false ) ; EXPECT_TRUE ( RunExtensionTestIncognito ( "preference/persistent_incognito" ) ) << message_ ; EXPECT_FALSE ( profile_ -> ...
0
358,198
static int nfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) { struct iattr attr; int error; dfprintk(VFS, "NFS: mkdir(%s/%ld), %s\n", dir->i_sb->s_id, dir->i_ino, dentry->d_name.name); attr.ia_valid = ATTR_MODE; attr.ia_mode = mode | S_IFDIR; lock_kernel(); nfs_begin_data_update(dir); error =...
0
256,357
static void serial_update_parameters(SerialState *s) { int speed, parity, data_bits, stop_bits, frame_size; QEMUSerialSetParams ssp; if (s->divider == 0) return; /* Start bit. */ frame_size = 1; /* Parity bit. */ frame_size++; if (s->lcr & 0x10) p...
1
168,107
void LocalFrameClientImpl::DispatchDidReceiveResponse( const ResourceResponse& response) { if (web_frame_->Client()) { WrappedResourceResponse webresp(response); web_frame_->Client()->DidReceiveResponse(webresp); } }
0
7,231
int net_get(int s, void *arg, int *len) { struct net_hdr nh; int plen; if (net_read_exact(s, &nh, sizeof(nh)) == -1) { return -1; } plen = ntohl(nh.nh_len); if (!(plen <= *len)) printf("PLEN %d type %d len %d\n", plen, nh.nh_type, *len); assert(plen <= *len); /* XXX */ *len = plen; if ...
1
469,846
icmp_match(const struct sk_buff *skb, const struct net_device *in, const struct net_device *out, const struct xt_match *match, const void *matchinfo, int offset, unsigned int protoff, int *hotdrop) { struct icmphdr _icmph, *ic; const struct ipt_icmp *icmpinfo = matchinfo; /* Must not be ...
0
192,557
Eina_Bool ewk_view_back(Evas_Object* ewkView) { EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData, false); return ewk_frame_back(smartData->main_frame); }
0
173,545
void LayoutBlockFlow::checkForPaginationLogicalHeightChange(LayoutUnit& pageLogicalHeight, bool& pageLogicalHeightChanged, bool& hasSpecifiedPageLogicalHeight) { if (LayoutMultiColumnFlowThread* flowThread = multiColumnFlowThread()) { LayoutUnit columnHeight; if (hasDefiniteLogicalHeight() || isLayo...
0
70,219
static int pragmaVtabEof(sqlite3_vtab_cursor *pVtabCursor){ PragmaVtabCursor *pCsr = (PragmaVtabCursor*)pVtabCursor; return (pCsr->pPragma==0); }
0
57,269
void fmtutil_get_bmp_compression_name(u32 code, char *s, size_t s_len, int is_os2v2) { const char *name1 = "?"; switch(code) { case 0: name1 = "BI_RGB, uncompressed"; break; case 1: name1 = "BI_RLE8"; break; case 2: name1 = "BI_RLE4"; break; case 3: if(is_os2v2) name1 = "Huffman 1D"; else name1 = "BI_B...
0
190,638
msg_fifo_pop (struct msg_fifo *fifo) { struct msg *msg; msg = fifo->head; if (msg) { fifo->head = msg->next; if (fifo->head == NULL) fifo->tail = NULL; fifo->count--; } return msg; }
0
1
unsigned long # define BN_LONG long # define BN_BITS 128 # define BN_BYTES 8 # define BN_BITS2 64 # define BN_BITS4 32 # define BN_MASK ( 0xffffffffffffffffffffffffffffffffLL ) # define BN_MASK2 ( 0xffffffffffffffffL ) # define BN_MASK2l ( 0xffffffffL ) # define BN_MASK2h ( 0xffffffff00000000L ) # define BN_MASK2h1 ( 0...
1
299,528
AP4_AtomFactory::CreateAtomsFromStream(AP4_ByteStream& stream, AP4_LargeSize bytes_available, AP4_AtomParent& atoms) { AP4_Result result; do { AP4_Atom* atom = NULL; result = CreateAtomFromStream(stream, bytes_avail...
0
608
const xmlChar * xsltEvalStaticAttrValueTemplate ( xsltStylesheetPtr style , xmlNodePtr inst , const xmlChar * name , const xmlChar * ns , int * found ) { const xmlChar * ret ; xmlChar * expr ; if ( ( style == NULL ) || ( inst == NULL ) || ( name == NULL ) ) return ( NULL ) ; expr = xsltGetNsProp ( inst , name , ns ...
1
247,494
static void vnc_set_share_mode(VncState *vs, VncShareMode mode) { #ifdef _VNC_DEBUG static const char *mn[] = { [0] = "undefined", [VNC_SHARE_MODE_CONNECTING] = "connecting", [VNC_SHARE_MODE_SHARED] = "shared", [VNC_SHARE_MODE_EXCLUSIVE] = "exclus...
0
147,854
dataiterator_match(Dataiterator *di, Datamatcher *ma) { const char *str; if (!(str = repodata_stringify(di->pool, di->data, di->key, &di->kv, di->flags))) return 0; return ma ? datamatcher_match(ma, str) : 1; }
0
209,586
void DevToolsUIBindings::SendPortForwardingStatus(const base::Value& status) { CallClientFunction("DevToolsAPI.devicesPortForwardingStatusChanged", &status, nullptr, nullptr); }
0
489,191
void qjs_module_init_gpaccore(JSContext *ctx) { JSModuleDef *m; m = JS_NewCModule(ctx, "gpaccore", js_gpaccore_init); if (!m) return; JS_AddModuleExport(ctx, m, "Sys"); JS_AddModuleExport(ctx, m, "Bitstream"); JS_AddModuleExport(ctx, m, "SHA1"); JS_AddModuleExport(ctx, m, "File"); JS_AddModuleExport(ctx, m, "...
0
87,401
static inline void updateIntersectMapHelper(const req::ptr<c_Map>& mp, const Cell c, int pos, TypedValue* strTv, bool convertIntLikeStrs) { if...
0
41,842
Error Box_clap::parse(BitstreamRange& range) { //parse_full_box_header(range); m_clean_aperture_width.numerator = range.read32(); m_clean_aperture_width.denominator = range.read32(); m_clean_aperture_height.numerator = range.read32(); m_clean_aperture_height.denominator = range.read32(); m_horizontal_o...
0
339,548
static void ogg_free(AVFormatContext *s) { int i; for (i = 0; i < s->nb_streams; i++) { AVStream *st = s->streams[i]; OGGStreamContext *oggstream = st->priv_data; if (st->codecpar->codec_id == AV_CODEC_ID_FLAC || st->codecpar->codec_id == AV_CODEC_ID_SPEEX || ...
1
478,203
CImg<t>& move_to(CImg<t>& img) { img.assign(*this); assign(); return img; }
0
306,014
static inline int sctp_v6_addr_match_len(union sctp_addr *s1, union sctp_addr *s2) { return ipv6_addr_diff(&s1->v6.sin6_addr, &s2->v6.sin6_addr); }
0
337,953
static int pix_norm1_c(uint8_t * pix, int line_size) { int s, i, j; uint32_t *sq = ff_squareTbl + 256; s = 0; for (i = 0; i < 16; i++) { for (j = 0; j < 16; j += 8) { #if 0 s += sq[pix[0]]; s += sq[pix[1]]; s += sq[pix[2]]; s += sq[pix...
0
118,976
SYSCALL_DEFINE3(connect, int, fd, struct sockaddr __user *, uservaddr, int, addrlen) { return __sys_connect(fd, uservaddr, addrlen); }
0
77,226
SCTP_STATIC void sctp_shutdown(struct sock *sk, int how) { struct net *net = sock_net(sk); struct sctp_endpoint *ep; struct sctp_association *asoc; if (!sctp_style(sk, TCP)) return; if (how & SEND_SHUTDOWN) { ep = sctp_sk(sk)->ep; if (!list_empty(&ep->asocs)) { asoc = list_entry(ep->asocs.next, s...
0
89,640
point_add(PG_FUNCTION_ARGS) { Point *p1 = PG_GETARG_POINT_P(0); Point *p2 = PG_GETARG_POINT_P(1); Point *result; result = (Point *) palloc(sizeof(Point)); result->x = (p1->x + p2->x); result->y = (p1->y + p2->y); PG_RETURN_POINT_P(result); }
0
334,013
static void gdb_set_cpu_pc(GDBState *s, target_ulong pc) { #if defined(TARGET_I386) cpu_synchronize_state(s->c_cpu); s->c_cpu->eip = pc; #elif defined (TARGET_PPC) s->c_cpu->nip = pc; #elif defined (TARGET_SPARC) s->c_cpu->pc = pc; s->c_cpu->npc = pc + 4; #elif defined (TARGET_ARM) s-...
0
123,552
pw_error(char *name, int err, int eval) { if (err) { if (name) warn("%s: ", name); else warn(NULL); } warnx(_("%s unchanged"), orig_file); unlink(tmp_file); ulckpwdf(); exit(eval); }
0
29,442
static inline void uprv_arrayCopy ( const int8_t * src , int8_t * dst , int32_t count ) { uprv_memcpy ( dst , src , ( size_t ) count * sizeof ( * src ) ) ; }
0
90,471
static int trusted_update(struct key *key, struct key_preparsed_payload *prep) { struct trusted_key_payload *p; struct trusted_key_payload *new_p; struct trusted_key_options *new_o; size_t datalen = prep->datalen; char *datablob; int ret = 0; if (test_bit(KEY_FLAG_NEGATIVE, &key->flags)) return -ENOKEY; p = ...
0
410,788
static void cmd_window_hide(const char *data) { WINDOW_REC *window; if (mainwindows->next == NULL) { printformat_window(active_win, MSGLEVEL_CLIENTNOTICE, TXT_CANT_HIDE_LAST); return; } if (*data == '\0') window = active_win; else if (is_numeric(data, 0)) { window = window_find_refnum(atoi(data));...
0
390,092
static void cli_flush_use_result(MYSQL *mysql, my_bool flush_all_results) { /* Clear the current execution status */ DBUG_ENTER("cli_flush_use_result"); DBUG_PRINT("warning",("Not all packets read, clearing them")); if (flush_one_result(mysql)) DBUG_VOID_RETURN; /* An error occurr...
0
424,530
distance_add(OnigDistance d1, OnigDistance d2) { if (d1 == ONIG_INFINITE_DISTANCE || d2 == ONIG_INFINITE_DISTANCE) return ONIG_INFINITE_DISTANCE; else { if (d1 <= ONIG_INFINITE_DISTANCE - d2) return d1 + d2; else return ONIG_INFINITE_DISTANCE; } }
0
353,819
param_expand (string, sindex, quoted, expanded_something, contains_dollar_at, quoted_dollar_at_p, had_quoted_null_p, pflags) char *string; int *sindex, quoted, *expanded_something, *contains_dollar_at; int *quoted_dollar_at_p, *had_quoted_null_p, pflags; { char *temp, *temp1, uerror[3], *...
1
242,056
void HTMLTextAreaElement::setSuggestedValue(const String& value) { m_suggestedValue = value; setInnerTextValue(m_suggestedValue); updatePlaceholderVisibility(false); setNeedsStyleRecalc(); setFormControlValueMatchesRenderer(true); }
0
309,205
bool LayoutBlockFlow::containsFloat(LayoutBox* layoutBox) const { return m_floatingObjects && m_floatingObjects->set().contains<FloatingObjectHashTranslator>(layoutBox); }
0
493,303
int av_get_exact_bits_per_sample(enum AVCodecID codec_id) { switch (codec_id) { case AV_CODEC_ID_8SVX_EXP: case AV_CODEC_ID_8SVX_FIB: case AV_CODEC_ID_ADPCM_CT: case AV_CODEC_ID_ADPCM_IMA_APC: case AV_CODEC_ID_ADPCM_IMA_EA_SEAD: case AV_CODEC_ID_ADPCM_IMA_OKI: case AV_CODEC_ID_ADPCM_IMA_...
0
244,968
void Document::setBgColor(const AtomicString& value) { if (!IsFrameSet()) SetBodyAttribute(kBgcolorAttr, value); }
0
173,219
static void spl_heap_it_move_forward(zend_object_iterator *iter TSRMLS_DC) /* {{{ */ { zval *object = (zval*)((zend_user_iterator *)iter)->it.data; spl_heap_it *iterator = (spl_heap_it *)iter; spl_ptr_heap_element elem; if (iterator->object->heap->flags & SPL_HEAP_CORRUPTED) { zend_thr...
0
32,410
static bool list_key_handler(int ch) { struct le *le; (void) ch; output("Conversation list"); if (conv_data.archived) output(" with archive"); output(" (%u entries)", list_count(&conv_data.convl)); output(":\n"); LIST_FOREACH(&conv_data.convl, le) { struct engine_conv *conv = le->data; if (conv->archive...
0
377,915
int tcf_hash_search(struct tc_action *a, u32 index) { struct tcf_hashinfo *hinfo = a->ops->hinfo; struct tcf_common *p = tcf_hash_lookup(index, hinfo); if (p) { a->priv = p; return 1; } return 0; }
0
209,104
PHP_FUNCTION(stream_socket_get_name) { php_stream *stream; zval *zstream; zend_bool want_peer; char *name = NULL; int name_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rb", &zstream, &want_peer) == FAILURE) { RETURN_FALSE; } php_stream_from_zval(stream, &zstream); if (0 != php_stream_xport_g...
0
363,347
xsltSystemPropertyFunction(xmlXPathParserContextPtr ctxt, int nargs){ xmlXPathObjectPtr obj; xmlChar *prefix, *name; const xmlChar *nsURI = NULL; if (nargs != 1) { xsltTransformError(xsltXPathGetTransformContext(ctxt), NULL, NULL, "system-property() : expects one string arg\n"); ctxt->error = XPATH...
0
296,035
bool IsSupported(const NodeDef* node) const override { return IsAnySparseSegmentReduction(*node); }
0
6,898
void set_fat(DOS_FS * fs, uint32_t cluster, int32_t new) { unsigned char *data = NULL; int size; loff_t offs; if (new == -1) new = FAT_EOF(fs); else if ((long)new == -2) new = FAT_BAD(fs); switch (fs->fat_bits) { case 12: data = fs->fat + cluster * 3 / 2; offs = fs->fat_start + cluster ...
1
165,936
ofputil_append_table_features_reply(const struct ofputil_table_features *tf, struct ovs_list *replies) { struct ofpbuf *reply = ofpbuf_from_list(ovs_list_back(replies)); enum ofp_version version = ofpmp_version(replies); size_t start_ofs = reply->size; struct ofp13_ta...
0
110,567
string dotConcat(const std::string& a, const std::string &b) { if(a.empty() || b.empty()) return a+b; else return a+"."+b; }
0
316,213
sp<MetaData> MyOggExtractor::getFormat() const { return mMeta; }
0
213,788
static int spl_ptr_heap_cmp_cb_helper(zval *object, spl_heap_object *heap_object, zval *a, zval *b, long *result TSRMLS_DC) { /* {{{ */ zval *result_p = NULL; zend_call_method_with_2_params(&object, heap_object->std.ce, &heap_object->fptr_cmp, "compare", &result_p, a, b); if (EG(exception)) { return FAILURE;...
0
352,168
static int check_ld_imm(struct bpf_verifier_env *env, struct bpf_insn *insn) { struct bpf_insn_aux_data *aux = cur_aux(env); struct bpf_reg_state *regs = cur_regs(env); struct bpf_reg_state *dst_reg; struct bpf_map *map; int err; if (BPF_SIZE(insn->code) != BPF_DW) { verbose(env, "invalid BPF_LD_IMM insn\n"); ...
1
263,228
static GF_Err DumpLSRActivate(GF_SceneDumper *sdump, GF_Command *com) { char szID[1024]; char *lsrns = sd_get_lsr_namespace(com->in_scene); DUMP_IND(sdump); if (com->tag==GF_SG_LSR_ACTIVATE) { gf_fprintf(sdump->trace, "<%sActivate ref=\"%s\" />\n", lsrns, lsr_format_node_id(com->node, com->RouteID, szID)); } els...
0
339,815
void cpu_exec_init(CPUState *env) { CPUState **penv; int cpu_index; #if defined(CONFIG_USER_ONLY) cpu_list_lock(); #endif env->next_cpu = NULL; penv = &first_cpu; cpu_index = 0; while (*penv != NULL) { penv = &(*penv)->next_cpu; cpu_index++; } env->cpu...
0
76,686
hexval(char c) { if (c >= 'A' && c <= 'F') return c - 'A' + 10; else if (c >= 'a' && c <= 'f') return c - 'a' + 10; else if (c >= '0' && c <= '9') return c - '0'; else return 0; }
0
339,429
MAKE_ACCESSORS(AVVDPAUContext, vdpau_hwaccel, AVVDPAU_Render2, render2) int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile, int level) { VDPAUHWContext *hwctx = avctx->hwaccel_context; VDPAUContext *vdctx = avctx->internal->hwaccel_priv_data; VdpVideoS...
0
166,104
void BrowserActionsContainer::BubbleBrowserWindowClosing( BrowserBubble* bubble) { HidePopup(); }
0
234,772
static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); TestObjectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(info); T...
0
103,299
rb_iter_head_event(struct ring_buffer_iter *iter) { return __rb_page_index(iter->head_page, iter->head); }
0
262,055
const envoy::config::listener::v3::Listener& listener() const { return listener_; }
0
496,237
field_deprecation_reason(agooErr err, gqlDoc doc, gqlCobj obj, gqlField field, gqlSel sel, gqlValue result, int depth) { const char *reason = deprecation_reason(((gqlField)obj->ptr)->dir); const char *key = sel->name; gqlValue rv; if (NULL != sel->alias) { key = sel->alias; } if (NULL == reaso...
0
360,374
link_info_stop (NautilusDirectory *directory) { NautilusFile *file; if (directory->details->link_info_read_state != NULL) { file = directory->details->link_info_read_state->file; if (file != NULL) { g_assert (NAUTILUS_IS_FILE (file)); g_assert (file->details->directory == directory); if (is_needy (file...
0
115,636
static int invlpg_interception(struct vcpu_svm *svm) { if (!static_cpu_has(X86_FEATURE_DECODEASSISTS)) return emulate_instruction(&svm->vcpu, 0) == EMULATE_DONE; kvm_mmu_invlpg(&svm->vcpu, svm->vmcb->control.exit_info_1); skip_emulated_instruction(&svm->vcpu); return 1; }
0
428,018
EXPORTED void write_body(long code, struct transaction_t *txn, const char *buf, unsigned len) { unsigned is_dynamic = code ? (txn->flags.te & TE_CHUNKED) : 1; unsigned outlen = len, offset = 0; int do_md5 = config_getswitch(IMAPOPT_HTTPCONTENTMD5); static MD5_CTX ctx; static unsigned char md5[MD5_...
0
171,025
void ProfileSyncService::OnExperimentsChanged( const browser_sync::Experiments& experiments) { if (current_experiments.Matches(experiments)) return; if (migrator_.get() && migrator_->state() != browser_sync::BackendMigrator::IDLE) { DVLOG(1) << "Dropping OnExperimentsChanged due to migrator busy....
0
403,247
krb5_ticket_get_authorization_data_type(krb5_context context, krb5_ticket *ticket, int type, krb5_data *data) { AuthorizationData *ad; krb5_error_code ret; krb5_boolean found = FALSE; krb5_data_zero(data); ad = ticket->ticket.authorization_data; if (ticket->ticket.authorization_...
0
472,632
static uint16_t nvme_dsm(NvmeCtrl *n, NvmeRequest *req) { NvmeNamespace *ns = req->ns; NvmeDsmCmd *dsm = (NvmeDsmCmd *) &req->cmd; uint32_t attr = le32_to_cpu(dsm->attributes); uint32_t nr = (le32_to_cpu(dsm->nr) & 0xff) + 1; uint16_t status = NVME_SUCCESS; trace_pci_nvme_dsm(nr, attr); if...
0
466,363
TEST_F(HttpConnectionManagerImplTest, DateHeaderPresent) { setup(false, ""); setUpEncoderAndDecoder(false, false); sendRequestHeadersAndData(); const std::string expected_date{"Tue, 15 Nov 1994 08:12:31 GMT"}; const auto* modified_headers = sendResponseHeaders(ResponseHeaderMapPtr{new TestResponseHeader...
0
79,659
static int http_stream_write_single( git_smart_subtransport_stream *stream, const char *buffer, size_t len) { http_stream *s = (http_stream *)stream; http_subtransport *t = OWNING_SUBTRANSPORT(s); git_buf request = GIT_BUF_INIT; assert(t->connected); if (s->sent_request) { giterr_set(GITERR_NET, "Subtranspo...
0
270,061
void ZipFile::Builder::addEntry (InputStream* stream, int compression, const String& path, Time time) { jassert (stream != nullptr); // must not be null! jassert (path.isNotEmpty()); items.add (new Item ({}, stream, compression, path, time)); }
0
490,207
static int piv_is_object_present(sc_card_t *card, u8 *ptr) { piv_private_data_t * priv = PIV_DATA(card); int r = 0; int enumtag; enumtag = piv_find_obj_by_containerid(card, ptr); if (enumtag >= 0 && priv->obj_cache[enumtag].flags & PIV_OBJ_CACHE_NOT_PRESENT) r = 1; LOG_FUNC_RETURN(card->ctx, r); }
0
484,223
mlx5_rxq_initialize(struct mlx5_rxq_data *rxq) { const unsigned int wqe_n = 1 << rxq->elts_n; unsigned int i; for (i = 0; (i != wqe_n); ++i) { volatile struct mlx5_wqe_data_seg *scat; uintptr_t addr; uint32_t byte_count; if (mlx5_rxq_mprq_enabled(rxq)) { struct mlx5_mprq_buf *buf = (*rxq->mprq_bufs)[i];...
0
433,818
ec_mulm_25519 (gcry_mpi_t w, gcry_mpi_t u, gcry_mpi_t v, mpi_ec_t ctx) { mpi_ptr_t wp, up, vp; mpi_size_t wsize = LIMB_SIZE_25519; mpi_limb_t n[LIMB_SIZE_25519*2]; mpi_limb_t m[LIMB_SIZE_25519+1]; mpi_limb_t cy; int msb; (void)ctx; if (w->nlimbs != wsize || u->nlimbs != wsize || v->nlimbs != wsize) ...
0
50,094
static size_t NumElements(const TensorProto& proto) { return proto.variant_val().size(); }
0
363,468
gdm_session_settings_new (void) { GdmSessionSettings *settings; settings = g_object_new (GDM_TYPE_SESSION_SETTINGS, NULL); return settings; }
0
246,058
bool DownloadRequestLimiter::TabDownloadState::is_showing_prompt() const { return factory_.HasWeakPtrs(); }
0
393,872
dissect_80211n_mac(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, int data_len, gboolean add_subtree, guint32 *n_mac_flags, guint32 *ampdu_id, struct ieee_802_11_phdr *phdr) { proto_tree *ftree = tree; ptvcursor_t *csr; int subtree_off = add_subtree ? 4 : 0; guint32...
0
358,063
static int create_watch(struct inotify_device *dev, struct inode *inode, u32 mask) { struct inotify_user_watch *watch; int ret; if (atomic_read(&dev->user->inotify_watches) >= inotify_max_user_watches) return -ENOSPC; watch = kmem_cache_alloc(watch_cachep, GFP_KERNEL); if (unlikely(!watch)) return -ENO...
0
1,690
static char * * create_argv_command ( struct rule * rule , struct process * process , struct iovec * * argv ) { size_t count , i , j , stdin_arg ; char * * req_argv = NULL ; const char * program ; for ( count = 0 ; argv [ count ] != NULL ; count ++ ) ; if ( rule -> sudo_user == NULL ) req_argv = xcalloc ( count ...
1
491,872
static int mxf_set_audio_pts(MXFContext *mxf, AVCodecContext *codec, AVPacket *pkt) { MXFTrack *track = mxf->fc->streams[pkt->stream_index]->priv_data; int64_t bits_per_sample = codec->bits_per_coded_sample; if (!bits_per_sample) bits_per_sample = av_get_bits_per_sample...
0
398,569
static plist_t parse_bin_node(struct bplist_data *bplist, const char** object) { uint16_t type = 0; uint64_t size = 0; if (!object) return NULL; type = (**object) & BPLIST_MASK; size = (**object) & BPLIST_FILL; (*object)++; switch (type) { case BPLIST_NULL: switch...
0
360,863
window_map_event_cb (GSWindow *window, GdkEvent *event, GSManager *manager) { gs_debug ("Handling window map_event event"); manager_maybe_grab_window (manager, window); manager_maybe_start_job_for_window (manager, window); return FALSE; }
0
483,348
static void cgroup_apply_control_disable(struct cgroup *cgrp) { struct cgroup *dsct; struct cgroup_subsys_state *d_css; struct cgroup_subsys *ss; int ssid; cgroup_for_each_live_descendant_post(dsct, d_css, cgrp) { for_each_subsys(ss, ssid) { struct cgroup_subsys_state *css = cgroup_css(dsct, ss); if (!cs...
0
412,917
PHP_FUNCTION(iconv_get_encoding) { char *type = "all"; int type_len = sizeof("all")-1; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &type, &type_len) == FAILURE) return; if (!strcasecmp("all", type)) { array_init(return_value); add_assoc_string(return_value, "input_encoding", get_input_enco...
0
389,250
set_wildcard_reuse( u_short family, int on ) { struct interface *any; SOCKET fd = INVALID_SOCKET; any = ANY_INTERFACE_BYFAM(family); if (any != NULL) fd = any->fd; if (fd != INVALID_SOCKET) { if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char *)&on, sizeof(on))) msyslog(LOG_ERR, "set_wild...
0
24,748
static int mem_read ( jas_stream_obj_t * obj , char * buf , int cnt ) { int n ; assert ( cnt >= 0 ) ; assert ( buf ) ; jas_stream_memobj_t * m = ( jas_stream_memobj_t * ) obj ; n = m -> len_ - m -> pos_ ; cnt = JAS_MIN ( n , cnt ) ; memcpy ( buf , & m -> buf_ [ m -> pos_ ] , cnt ) ; m -> pos_ += cnt ; return c...
0
440,201
onig_regset_search(OnigRegSet* set, const UChar* str, const UChar* end, const UChar* start, const UChar* range, OnigRegSetLead lead, OnigOptionType option, int* rmatch_pos) { int r; int i; OnigMatchParam* mp; OnigMatchParam** mps; mps = (OnigMatchParam** )xmalloc((sizeof...
0
342,999
static int acpi_pcihp_get_bsel(PCIBus *bus) { QObject *o = object_property_get_qobject(OBJECT(bus), ACPI_PCIHP_PROP_BSEL, NULL); int64_t bsel = -1; if (o) { bsel = qint_get_int(qobject_to_qint(o)); } if (bsel < 0) { return -1; ...
1
163,182
static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); v8SetReturnValueString(info, imp->treatNullAsNullStringStringAttribute(), info.GetIsolate()); }
0
144,908
count_more_files_callback (GObject *source_object, GAsyncResult *res, gpointer user_data) { DirectoryCountState *state; NautilusDirectory *directory; GError *error; GList *files; state = user_data; directory = state->directory; ...
0
378,118
int apparmor_bprm_secureexec(struct linux_binprm *bprm) { int ret = cap_bprm_secureexec(bprm); /* the decision to use secure exec is computed in set_creds * and stored in bprm->unsafe. */ if (!ret && (bprm->unsafe & AA_SECURE_X_NEEDED)) ret = 1; return ret; }
0
182,562
static void nfs_set_fh(struct inode *inode, struct nfs_fh *fh) { struct nfs_inode *ninode = nfsi(inode); ninode->fh = *fh; }
0
499,343
TEST_F(RouterTest, UpstreamPerTryTimeout) { NiceMock<Http::MockRequestEncoder> encoder; Http::ResponseDecoder* response_decoder = nullptr; EXPECT_CALL(cm_.thread_local_cluster_.conn_pool_, newStream(_, _)) .WillOnce(Invoke( [&](Http::ResponseDecoder& decoder, Http::ConnectionPool::Ca...
0
509,588
static void test_fetch_column() { MYSQL_STMT *stmt; MYSQL_BIND my_bind[2]; char c2[20], bc2[20]; ulong l1, l2, bl1, bl2; int rc, c1, bc1; myheader("test_fetch_column"); rc= mysql_query(mysql, "drop table if exists t1"); myquery(rc); rc= mysql_query(mysql, "create table t1(c1 int p...
0
510,263
my_decimal *Item_null::val_decimal(my_decimal *decimal_value) { return 0; }
0
257,214
TSReturnCode sdk_sanity_check_mime_hdr_handle ( TSMLoc field ) { if ( field == TS_NULL_MLOC ) { return TS_ERROR ; } MIMEFieldSDKHandle * field_handle = ( MIMEFieldSDKHandle * ) field ; if ( field_handle -> m_type != HDR_HEAP_OBJ_MIME_HEADER ) { return TS_ERROR ; } return TS_SUCCESS ; }
0
327,400
static void create_gic(VirtBoardInfo *vbi, qemu_irq *pic, int type, bool secure) { /* We create a standalone GIC */ DeviceState *gicdev; SysBusDevice *gicbusdev; const char *gictype; int i; gictype = (type == 3) ? gicv3_class_name() : gic_class_name(); gicdev = qdev_create(NULL, ...
0
504,694
kssl_krb5_kt_default(krb5_context con, krb5_keytab * kt) { if (!krb5_loaded) load_krb5_dll(); if ( p_krb5_kt_default ) return(p_krb5_kt_default(con,kt)); else return KRB5KRB_ERR_GENERIC; }
0
441,988
static void create_power_zone_common_attributes( struct powercap_zone *power_zone) { int count = 0; power_zone->zone_dev_attrs[count++] = &dev_attr_name.attr; if (power_zone->ops->get_max_energy_range_uj) power_zone->zone_dev_attrs[count++] = &dev_attr_max_energy_range_uj.attr; if (power_zone->ops->get...
0