idx
int64
func
string
target
int64
310,079
NCURSES_SP_NAME(mcprint) (NCURSES_SP_DCLx char *data, int len) /* ship binary character data to the printer via mc4/mc5/mc5p */ { int result; char *mybuf, *switchon; size_t onsize, offsize; size_t need; errno = 0; if (!HasTInfoTerminal(SP_PARM) || len <= 0 || (!prtr_non && (!prtr_on || !prtr_...
0
242,583
read_header(void *data, unsigned int datasize, PE_COFF_LOADER_IMAGE_CONTEXT *context) { EFI_IMAGE_DOS_HEADER *DosHdr = data; EFI_IMAGE_OPTIONAL_HEADER_UNION *PEHdr = data; unsigned long HeaderWithoutDataDir, SectionHeaderOffset, OptHeaderSize; unsigned long FileAlignment = 0; UINT16 DllFlags; if (datasize <...
0
359,201
BPF_CALL_4(bpf_ringbuf_output, struct bpf_map *, map, void *, data, u64, size, u64, flags) { struct bpf_ringbuf_map *rb_map; void *rec; if (unlikely(flags & ~(BPF_RB_NO_WAKEUP | BPF_RB_FORCE_WAKEUP))) return -EINVAL; rb_map = container_of(map, struct bpf_ringbuf_map, map); rec = __bpf_ringbuf_reserve(rb_ma...
0
294,414
expect_numeric(VALUE x) { if (!k_numeric_p(x)) rb_raise(rb_eTypeError, "expected numeric"); }
0
234,732
static int devid_cmp(void *priv, const struct list_head *a, const struct list_head *b) { const struct btrfs_device *dev1, *dev2; dev1 = list_entry(a, struct btrfs_device, dev_list); dev2 = list_entry(b, struct btrfs_device, dev_list); if (dev1->devid < dev2->devid) return -1; else if (dev1->devid > dev2...
0
366,232
static int do_umount_root(struct super_block *sb) { int ret = 0; down_write(&sb->s_umount); if (!sb_rdonly(sb)) { struct fs_context *fc; fc = fs_context_for_reconfigure(sb->s_root, SB_RDONLY, SB_RDONLY); if (IS_ERR(fc)) { ret = PTR_ERR(fc); } else { ret = parse_monolithic_mount_data(fc, NULL); ...
0
384,278
gs_heap_free_string(gs_memory_t * mem, byte * data, uint nbytes, client_name_t cname) { /****** SHOULD CHECK SIZE IF DEBUGGING ******/ gs_heap_free_object(mem, data, cname); }
0
503,876
SCM_DEFINE (scm_closedir, "closedir", 1, 0, 0, (SCM port), "Close the directory stream @var{port}.\n" "The return value is unspecified.") #define FUNC_NAME s_scm_closedir { SCM_VALIDATE_DIR (1, port); if (SCM_DIR_OPEN_P (port)) { int sts; SCM_SYSCALL (sts = closedir ((DIR *) SCM_SMO...
0
317,312
static void smack_netlbl_delete(struct sock *sk) { struct socket_smack *ssp = sk->sk_security; /* * Take the label off the socket if one is set. */ if (ssp->smk_state != SMK_NETLBL_LABELED) return; local_bh_disable(); bh_lock_sock_nested(sk); netlbl_sock_delattr(sk); bh_unlock_sock(sk); local_bh_enable(...
0
257,707
int mod_wstunnel_frame_recv(handler_ctx *hctx) { #ifdef _MOD_WEBSOCKET_SPEC_RFC_6455_ if (hctx->hybivers >= 8) return recv_rfc_6455(hctx); #endif /* _MOD_WEBSOCKET_SPEC_RFC_6455_ */ #ifdef _MOD_WEBSOCKET_SPEC_IETF_00_ if (0 == hctx->hybivers) return recv_ietf_00(hctx); #endif /* _MOD_WEBSOCKET_SPEC_IETF...
0
400,116
IdKeyPair UserTerminalRouter::acceptNewConnection() { lock_guard<recursive_mutex> guard(routerMutex); LOG(INFO) << "Listening to id/key FIFO"; int terminalFd = socketHandler->accept(serverFd); if (terminalFd < 0) { if (GetErrno() != EAGAIN && GetErrno() != EWOULDBLOCK) { FATAL_FAIL(-1); // STFATAL wi...
0
231,657
TEST_P( QuicServerTransportAllowMigrationTest, ReceiveReorderedDataFromChangedPeerAddress) { auto data = IOBuf::copyBuffer("bad data"); auto firstPacket = packetToBuf(createStreamPacket( *clientConnectionId, *server->getConn().serverConnectionId, clientNextAppDataPacketNum++, 2, ...
0
432,187
static void address_space_set_flatview(AddressSpace *as) { FlatView *old_view = address_space_to_flatview(as); MemoryRegion *physmr = memory_region_get_flatview_root(as->root); FlatView *new_view = g_hash_table_lookup(as->uc->flat_views, physmr); assert(new_view); if (old_view == new_view) { ...
0
246,471
RPVector *r_bin_wasm_get_types(RBinWasmObj *bin) { r_return_val_if_fail (bin && bin->g_sections, NULL); return bin->g_types? bin->g_types: parse_unique_subsec_vec_by_id (bin, R_BIN_WASM_SECTION_TYPE); }
0
380,952
insertchar( int c, // character to insert or NUL int flags, // INSCHAR_FORMAT, etc. int second_indent) // indent for second line if >= 0 { int textwidth; char_u *p; int fo_ins_blank; int force_format = flags & INSCHAR_FORMAT; textwidth = comp_textwidth(force_format); fo_i...
0
199,984
ex_substitute(exarg_T *eap) { linenr_T lnum; long i = 0; regmmatch_T regmatch; static subflags_T subflags = {FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, 0}; #ifdef FEAT_EVAL subflags_T subflags_save; #endif int save_do_all; // remember user specified 'g' flag int save_do_...
1
248,273
DLLIMPORT cfg_t *cfg_gettsec(cfg_t *cfg, const char *name, const char *title) { return cfg_opt_gettsec(cfg_getopt(cfg, name), title); }
0
226,132
void npck_box_del(GF_Box *s) { gf_free((GF_NPCKBox *)s); }
0
214,160
composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) { struct usb_composite_dev *cdev = get_gadget_data(gadget); struct usb_request *req = cdev->req; int value = -EOPNOTSUPP; int status = 0; u16 w_index = le16_to_cpu(ctrl->wIndex); u8 intf = w_index & 0xFF; u16 w_value =...
1
474,006
big5_hkscs_mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc ARG_UNUSED) { return big5_mbc_enc_len0(p, e, 2, EncLen_BIG5_HKSCS); }
0
264,647
GF_Err BM_ParseCommand(GF_BifsDecoder *codec, GF_BitStream *bs, GF_List *com_list) { u8 go, type; GF_Err e; go = 1; e = GF_OK; GF_SceneGraph *cur_graph = codec->current_graph; GF_Proto *cur_proto = codec->pCurrentProto; codec->LastError = GF_OK; while (go) { type = gf_bs_read_int(bs, 2); switch (type) { ...
0
361,755
static int em28xx_usb_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct usb_device *udev; struct em28xx *dev = NULL; int retval; bool has_vendor_audio = false, has_video = false, has_dvb = false; int i, nr, try_bulk; const int ifnum = intf->altsetting[0].desc.bInterfaceNumber; cha...
0
263,494
static int sco_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) { struct sock *sk = sock->sk; struct sco_pinfo *pi = sco_pi(sk); lock_sock(sk); if (sk->sk_state == BT_CONNECT2 && test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags)) { sco_conn_defer_accept(pi->conn->hcon, pi->s...
0
254,741
njs_typed_array_prototype_index_of(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t type) { double v; int64_t i, i64, from, to, index, increment, offset, length; njs_int_t ret, integer; njs_value_t *this; const float *f32; cons...
0
225,873
GF_Box *gnra_box_new() { ISOM_DECL_BOX_ALLOC(GF_GenericAudioSampleEntryBox, GF_ISOM_BOX_TYPE_GNRA); gf_isom_audio_sample_entry_init((GF_AudioSampleEntryBox*) tmp); return (GF_Box *)tmp; }
0
313,534
int rose_add_loopback_node(const rose_address *address) { struct rose_node *rose_node; int err = 0; spin_lock_bh(&rose_node_list_lock); rose_node = rose_node_list; while (rose_node != NULL) { if ((rose_node->mask == 10) && (rosecmpm(address, &rose_node->address, 10) == 0) && rose_node->loopback) ...
0
328,944
R_API RBinJavaField *r_bin_java_read_next_method(RBinJavaObj *bin, const ut64 offset, const ut8 *buf, const ut64 len) { ut32 i, idx; const ut8 *f_buf = buf + offset; ut64 adv = 0; RBinJavaCPTypeObj *item = NULL; if (!bin || offset + 8 >= len) { return NULL; } RBinJavaField *method = (RBinJavaField *) R_NEW0 (R...
0
195,083
bool Tensor::FromProto(Allocator* a, const TensorProto& proto) { CHECK_NOTNULL(a); TensorBuffer* p = nullptr; if (!TensorShape::IsValid(proto.tensor_shape())) return false; if (proto.dtype() == DT_INVALID) return false; TensorShape shape(proto.tensor_shape()); const int64_t N = shape.num_elements(); if (N...
1
310,050
copy_input(FILE *source, const char *filename, char *alt_file) { char my_altfile[PATH_MAX]; FILE *result = 0; FILE *target = 0; int ch; if (alt_file == 0) alt_file = my_altfile; if (source == 0) { failed("copy_input (source)"); } else if ((target = open_tempfile(alt_file)) == 0) { faile...
0
222,674
static void setup_locale(void) { const char *s; if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL) { if (setlocale(LC_CTYPE, "") == NULL) tmate_fatal("invalid LC_ALL, LC_CTYPE or LANG"); s = nl_langinfo(CODESET); if (strcasecmp(s, "UTF-8") != 0 && strcasecmp(s, "UTF8") != 0) tmate_fatal("need UTF-8 lo...
0
353,151
SplashFunctionPattern::SplashFunctionPattern(SplashColorMode colorModeA, GfxState *stateA, GfxFunctionShading *shadingA) { Matrix ctm; SplashColor defaultColor; GfxColor srcColor; const double *matrix = shadingA->getMatrix(); shading = shadingA; state = stateA; colorMode = colorModeA; state->getCTM(&c...
0
500,654
char *sftp_readlink(sftp_session sftp, const char *path) { sftp_status_message status = NULL; sftp_message msg = NULL; ssh_string path_s = NULL; ssh_string link_s = NULL; ssh_buffer buffer; char *lnk; uint32_t ignored; uint32_t id; if (sftp == NULL) return NULL; if (path == NULL) { ssh_set_...
0
282,864
int rsi_send_ps_request(struct rsi_hw *adapter, bool enable, struct ieee80211_vif *vif) { struct rsi_common *common = adapter->priv; struct ieee80211_bss_conf *bss = &vif->bss_conf; struct rsi_request_ps *ps; struct rsi_ps_info *ps_info; struct sk_buff *skb; int frame_len = sizeof(*ps); skb = dev_alloc_skb(f...
0
483,488
int efi_mem_type(unsigned long phys_addr) { const efi_memory_desc_t *md; if (!efi_enabled(EFI_MEMMAP)) return -ENOTSUPP; for_each_efi_memory_desc(md) { if ((md->phys_addr <= phys_addr) && (phys_addr < (md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT)))) return md->type; } return -EINVAL; }
0
238,764
fuzzy_match_func_compare(const void *s1, const void *s2) { int v1 = ((fuzmatch_str_T *)s1)->score; int v2 = ((fuzmatch_str_T *)s2)->score; int idx1 = ((fuzmatch_str_T *)s1)->idx; int idx2 = ((fuzmatch_str_T *)s2)->idx; char_u *str1 = ((fuzmatch_str_T *)s1)->str; char_u *str2 = ((fuzmatch_str...
0
220,844
inline Integer FloorLog2(Integer n) { static_assert(std::is_integral<Integer>::value, ""); static_assert(std::is_signed<Integer>::value, ""); static_assert(sizeof(Integer) == 4 || sizeof(Integer) == 8, ""); TFLITE_CHECK_GT(n, 0); if (sizeof(Integer) == 4) { return 30 - CountLeadingSignBits(n); } else { ...
0
233,868
*/ void php_wddx_serialize_var(wddx_packet *packet, zval *var, zend_string *name) { HashTable *ht; if (name) { char *tmp_buf; zend_string *name_esc = php_escape_html_entities((unsigned char *) ZSTR_VAL(name), ZSTR_LEN(name), 0, ENT_QUOTES, NULL); tmp_buf = emalloc(ZSTR_LEN(name_esc) + sizeof(WDDX_VAR_S)); s...
0
369,428
SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, u32, to_submit, u32, min_complete, u32, flags, const void __user *, argp, size_t, argsz) { struct io_ring_ctx *ctx; int submitted = 0; struct fd f; long ret; io_run_task_work(); if (unlikely(flags & ~(IORING_ENTER_GETEVENTS | IORING_ENTER_SQ_WAKEUP | ...
0
343,162
static void esp_output_restore_header(struct sk_buff *skb) { void *tmp = ESP_SKB_CB(skb)->tmp; struct esp_output_extra *extra = esp_tmp_extra(tmp); esp_restore_header(skb, skb_transport_offset(skb) + extra->esphoff - sizeof(__be32)); }
0
226,097
GF_Err hdlr_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_HandlerBox *ptr = (GF_HandlerBox *)s; e = gf_isom_full_box_write(s, bs); if (e) return e; gf_bs_write_u32(bs, ptr->reserved1); gf_bs_write_u32(bs, ptr->handlerType); gf_bs_write_data(bs, (char*)ptr->reserved2, 12); if (ptr->nameUTF8) { u32 len...
0
101,698
void WebProcessProxy::sendDidGetPlugins(uint64_t requestID, PassOwnPtr<Vector<PluginInfo> > pluginInfos) { ASSERT(isMainThread()); OwnPtr<Vector<PluginInfo> > plugins(pluginInfos); #if PLATFORM(MAC) if (!m_context->omitPDFSupport()) { #if ENABLE(PDFKIT_PLUGIN) plugins->append(PDFPlugin::pluginInfo...
0
331,762
void QPaintEngineEx::drawEllipse(const QRectF &r) { qreal pts[26]; // QPointF[13] without constructors... union { qreal *ptr; QPointF *points; } x; x.ptr = pts; int point_count = 0; x.points[0] = qt_curves_for_arc(r, 0, -360, x.points + 1, &point_count); if (point_count == 0...
0
512,973
bool Item_func_coalesce::native_op(THD *thd, Native *to) { DBUG_ASSERT(fixed == 1); for (uint i= 0; i < arg_count; i++) { if (!val_native_with_conversion_from_item(thd, args[i], to, type_handler())) return false; } return (null_value= true); }
0
437,330
recursive_call_check_trav(Node* node, ScanEnv* env, int state) { int r = 0; switch (NODE_TYPE(node)) { case NODE_LIST: case NODE_ALT: { int ret; do { ret = recursive_call_check_trav(NODE_CAR(node), env, state); if (ret == FOUND_CALLED_NODE) r = FOUND_CALLED_NODE; else if...
0
225,427
static int vidioc_try_fmt_cap(struct file *file, void *priv, struct v4l2_format *fmt) { struct v4l2_loopback_device *dev; char buf[5]; dev = v4l2loopback_getdevice(file); if (0 == dev->ready_for_capture) { dprintk("setting fmt_cap not possible yet\n"); return -EBUSY; } if (fmt->fmt.pix.pixelformat...
0
289,259
static int snd_pcm_oss_register_minor(struct snd_pcm *pcm) { pcm->oss.reg = 0; if (dsp_map[pcm->card->number] == (int)pcm->device) { char name[128]; int duplex; register_oss_dsp(pcm, 0); duplex = (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream_count > 0 && pcm->streams[SNDRV_PCM_STREAM_CAPTURE].s...
0
238,318
static int digest_update_interruptible(struct digest *d, const void *data, unsigned long len) { if (ctrlc()) return -EINTR; return digest_update(d, data, len); }
0
215,399
int hfsplus_find_cat(struct super_block *sb, u32 cnid, struct hfs_find_data *fd) { hfsplus_cat_entry tmp; int err; u16 type; hfsplus_cat_build_key(sb, fd->search_key, cnid, NULL); err = hfs_brec_read(fd, &tmp, sizeof(hfsplus_cat_entry)); if (err) return err; type = be16_to_cpu(tmp.type); if (type != ...
1
313,831
push_showcmd(void) { if (p_sc) STRCPY(old_showcmd_buf, showcmd_buf); }
0
301,399
static char *vfswrap_realpath(vfs_handle_struct *handle, const char *path) { char *result; START_PROFILE(syscall_realpath); #ifdef REALPATH_TAKES_NULL result = realpath(path, NULL); #else result = SMB_MALLOC_ARRAY(char, PATH_MAX+1); if (result) { char *resolved_path = realpath(path, result); if (!resolved_pat...
0
230,308
njs_array_handler_find_index(njs_vm_t *vm, njs_iterator_args_t *args, njs_value_t *entry, int64_t n) { njs_int_t ret; njs_value_t copy; if (njs_is_valid(entry)) { copy = *entry; } else { njs_set_undefined(&copy); } ret = njs_array_iterator_call(vm, args, &copy, n); ...
0
310,007
_nc_retrace_int(int code) { T((T_RETURN("%d"), code)); return code; }
0
328,849
R_API void r_bin_java_print_method_summary(RBinJavaField *field) { RBinJavaAttrInfo *attr; RListIter *iter, *iter_tmp; if (field == NULL) { eprintf ("Attempting to print an invalid RBinJavaField* Method.\n"); return; } printf ("Method Summary Information:\n"); printf (" File Offset: 0x%08"PFMT64x "\n", field...
0
359,390
DEFUN (no_bgp_cluster_id, no_bgp_cluster_id_cmd, "no bgp cluster-id", NO_STR BGP_STR "Configure Route-Reflector Cluster-id\n") { int ret; struct bgp *bgp; struct in_addr cluster; bgp = vty->index; if (argc == 1) { ret = inet_aton (argv[0], &cluster); if (! ...
0
220,178
Status Node::input_edge(int idx, const Edge** e) const { if (idx < 0 || idx >= num_inputs()) { return errors::InvalidArgument("Invalid input_edge index: ", idx, ", Node ", name(), " only has ", num_inputs(), " inputs."); } // This does a l...
0
247,350
int pgpPubkeyFingerprint(const uint8_t *h, size_t hlen, uint8_t **fp, size_t *fplen) { int rc = -1; /* assume failure */ const uint8_t *se; const uint8_t *pend = h + hlen; uint8_t version = 0; if (pgpVersion(h, hlen, &version)) return rc; /* We only permit V4 keys, V3 keys are long long ...
0
259,303
static int mov_read_fiel(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; unsigned mov_field_order; enum AVFieldOrder decoded_field_order = AV_FIELD_UNKNOWN; if (c->fc->nb_streams < 1) // will happen with jp2 files return 0; st = c->fc->streams[c->fc->nb_streams-1]; if (ato...
0
198,588
get_lisp_indent(void) { pos_T *pos, realpos, paren; int amount; char_u *that; colnr_T col; colnr_T firsttry; int parencount, quotecount; int vi_lisp; // Set vi_lisp to use the vi-compatible method vi_lisp = (vim_strchr(p_cpo, CPO_LISP) != NULL); realpos = curwin->w_cursor; ...
1
281,125
static int xfrm_policy_migrate(struct xfrm_policy *pol, struct xfrm_migrate *m, int num_migrate) { struct xfrm_migrate *mp; int i, j, n = 0; write_lock_bh(&pol->lock); if (unlikely(pol->walk.dead)) { /* target policy has been deleted */ write_unlock_bh(&pol->lock); return -ENOENT; } for (i = 0; ...
0
225,439
static void check_timers(struct v4l2_loopback_device *dev) { if (!dev->ready_for_capture) return; if (dev->timeout_jiffies > 0 && !timer_pending(&dev->timeout_timer)) mod_timer(&dev->timeout_timer, jiffies + dev->timeout_jiffies); if (dev->sustain_framerate && !timer_pending(&dev->sustain_timer)) mod_timer(&d...
0
90,746
void CallCallbacksAndClear( CallbackList* callbacks, QuotaStatusCode status, int64 usage, int64 quota) { for (CallbackList::iterator iter = callbacks->begin(); iter != callbacks->end(); ++iter) { (*iter)->Run(status, usage, quota); delete *iter; } callbacks->clear(); }
0
231,017
QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t * pxStaticQueue ) { QueueHandle_t xHandle; configA...
0
231,734
TEST_P( QuicServerTransportAllowMigrationTest, ReceiveProbingPacketFromChangedPeerAddress) { auto qLogger = std::make_shared<FileQLogger>(VantagePoint::Server); server->getNonConstConn().qLogger = qLogger; server->getNonConstConn().transportSettings.disableMigration = false; // Add additional peer id s...
0
242,991
static int ssl_record_is_in_progress( mbedtls_ssl_context *ssl ) { if( ssl->in_msglen > 0 ) return( 1 ); return( 0 ); }
0
387,794
klassItable InstanceKlass::itable() const { return klassItable(const_cast<InstanceKlass*>(this)); }
0
225,926
GF_Box *hnti_box_new() { ISOM_DECL_BOX_ALLOC(GF_HintTrackInfoBox, GF_ISOM_BOX_TYPE_HNTI); return (GF_Box *)tmp; }
0
244,015
void jp2h_box_del(GF_Box *s) { gf_free(s); }
0
521,484
static MemoryBlock createZipMemoryBlock (const StringArray& entryNames) { ZipFile::Builder builder; HashMap<String, MemoryBlock> blocks; for (auto& entryName : entryNames) { auto& block = blocks.getReference (entryName); MemoryOutputStream mo (blo...
0
229,244
sstring to_string(const event::schema_change::change_type t) { switch (t) { case event::schema_change::change_type::CREATED: return "CREATED"; case event::schema_change::change_type::UPDATED: return "UPDATED"; case event::schema_change::change_type::DROPPED: return "DROPPED"; } assert(false && "...
0
90,841
void DidGetGlobalUsage(StorageType type, int64 usage, int64 unlimited_usage) { type_ = type; usage_ = usage; unlimited_usage_ = unlimited_usage; }
0
384,194
static int nf_tables_dump_rules(struct sk_buff *skb, struct netlink_callback *cb) { const struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh); const struct nft_rule_dump_ctx *ctx = cb->data; struct nft_table *table; const struct nft_chain *chain; unsigned int idx = 0; struct net *net = sock_net(skb->sk); int family...
0
224,179
void Compute(OpKernelContext* ctx) override { StagingMap<Ordered>* map = nullptr; OP_REQUIRES_OK(ctx, GetStagingMap(ctx, def(), &map)); core::ScopedUnref scope(map); // Pop a random (key, value) off the map typename StagingMap<Ordered>::KeyType key; typename StagingMap<Ordered>::Tuple tuple; ...
0
476,122
next_desc(struct usb_descriptor_header **t, u8 desc_type) { for (; *t; t++) { if ((*t)->bDescriptorType == desc_type) return t; } return NULL; }
0
359,373
DEFUN (clear_ip_bgp_all_soft_in, clear_ip_bgp_all_soft_in_cmd, "clear ip bgp * soft in", CLEAR_STR IP_STR BGP_STR "Clear all peers\n" "Soft reconfig\n" "Soft reconfig inbound update\n") { if (argc == 1) return bgp_clear_vty (vty, argv[0], AFI_IP, SAFI_UNICAS...
0
225,594
GF_Box *trpy_box_new() { ISOM_DECL_BOX_ALLOC(GF_TRPYBox, GF_ISOM_BOX_TYPE_TRPY); return (GF_Box *)tmp; }
0
261,749
void RtmpProtocol::sendAcknowledgementSize(uint32_t size) { size = htonl(size); std::string set_windowSize((char *) &size, 4); sendRequest(MSG_WIN_SIZE, set_windowSize); }
0
338,193
void WasmBinaryWriter::writeLateUserSections() { for (auto& section : wasm->userSections) { if (section.name != BinaryConsts::UserSections::Dylink) { writeUserSection(section); } } }
0
427,202
LClosure *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, Dyndata *dyd, const char *name, int firstchar) { LexState lexstate; FuncState funcstate; LClosure *cl = luaF_newLclosure(L, 1); /* create main closure */ setclLvalue2s(L, L->top, cl); /* anchor it (to avoid being collected) */ ...
0
318,092
static int rsi_find_bulk_in_and_out_endpoints(struct usb_interface *interface, struct rsi_hw *adapter) { struct rsi_91x_usbdev *dev = (struct rsi_91x_usbdev *)adapter->rsi_dev; struct usb_host_interface *iface_desc; struct usb_endpoint_descriptor *endpoint; __le16 buffer_size; int ii, bin_found = 0, bou...
0
405,373
static const void *xfrm_get_dst_nexthop(const struct dst_entry *dst, const void *daddr) { while (dst->xfrm) { const struct xfrm_state *xfrm = dst->xfrm; dst = xfrm_dst_child(dst); if (xfrm->props.mode == XFRM_MODE_TRANSPORT) continue; if (xfrm->type->flags & XFRM_TYPE_REMOTE_COADDR) daddr = xfrm->...
0
430,339
struct hlist_node *seq_hlist_next_rcu(void *v, struct hlist_head *head, loff_t *ppos) { struct hlist_node *node = v; ++*ppos; if (v == SEQ_START_TOKEN) return rcu_dereference(head->first); else return rcu_dereference(node->next); }
0
281,141
int xfrm_policy_delete(struct xfrm_policy *pol, int dir) { struct net *net = xp_net(pol); spin_lock_bh(&net->xfrm.xfrm_policy_lock); pol = __xfrm_policy_unlink(pol, dir); spin_unlock_bh(&net->xfrm.xfrm_policy_lock); if (pol) { xfrm_policy_kill(pol); return 0; } return -ENOENT; }
0
450,834
static u8 st21nfca_se_get_bwi(struct nfc_hci_dev *hdev) { int i; u8 td; struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev); /* Bits 8 to 5 of the first TB for T=1 encode BWI from zero to nine */ for (i = 1; i < ST21NFCA_ESE_MAX_LENGTH; i++) { td = ST21NFCA_ATR_GET_Y_FROM_TD(info->se_info.atr[i]); i...
0
195,220
int main(int argc, char **argv, char **envp) { int opt; while ((opt = getopt(argc, argv, "b:h:k:p:q:w:z:xv")) != -1) { switch (opt) { case 'b': tmate_settings->bind_addr = xstrdup(optarg); break; case 'h': tmate_settings->tmate_host = xstrdup(optarg); break; case 'k': tmate_settings->keys_dir ...
1
234,750
static int decide_stripe_size(struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl, struct btrfs_device_info *devices_info) { struct btrfs_fs_info *info = fs_devices->fs_info; /* * Round down to number of usable stripes, devs_increment can be any * number so we can't use round_down(...
0
224,188
explicit MapIncompleteSizeOp(OpKernelConstruction* ctx) : OpKernel(ctx) {}
0
261,252
int wm_SemLock(wm_Sem *s) { WaitForSingleObject(*s, 0); return 0; }
0
225,557
void TfLiteQuantizationFree(TfLiteQuantization* quantization) { if (quantization->type == kTfLiteAffineQuantization) { TfLiteAffineQuantization* q_params = (TfLiteAffineQuantization*)(quantization->params); if (q_params->scale) { TfLiteFloatArrayFree(q_params->scale); q_params->scale = NUL...
0
489,171
sctp_disposition_t sctp_sf_backbeat_8_3(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; union sctp_addr from_addr; struct sctp_transport *link; sctp_sender_hb_info_t *hbinfo; u...
0
231,028
BaseType_t xQueueCRReceiveFromISR( QueueHandle_t xQueue, void * pvBuffer, BaseType_t * pxCoRoutineWoken ) { BaseType_t xReturn; Queue_t * const pxQueue = xQueue; /* We cannot block from an ISR, so check...
0
224,739
GF_Box *iloc_box_new() { ISOM_DECL_BOX_ALLOC(GF_ItemLocationBox, GF_ISOM_BOX_TYPE_ILOC); tmp->location_entries = gf_list_new(); return (GF_Box *)tmp; }
0
318,768
const char *drill_g_code_name(drill_g_code_t g_code) { switch (g_code) { case DRILL_G_ROUT: return N_("rout mode"); case DRILL_G_LINEARMOVE: return N_("linear mode"); case DRILL_G_CWMOVE: return N_("circular CW mode"); case DRILL_G_CCWMOVE: return N_("circular CCW mode"); case DRILL_G_VARIAB...
0
445,870
fr_window_finalize (GObject *object) { FrWindow *window = FR_WINDOW (object); fr_window_free_open_files (window); if (window->archive != NULL) { g_object_unref (window->archive); window->archive = NULL; } if (window->priv != NULL) { fr_window_free_private_data (window); g_free (window->priv); window->...
0
427,156
static int reglevel (FuncState *fs, int nvar) { while (nvar-- > 0) { Vardesc *vd = getlocalvardesc(fs, nvar); /* get previous variable */ if (vd->vd.kind != RDKCTC) /* is in a register? */ return vd->vd.ridx + 1; } return 0; /* no variables in registers */ }
0
274,736
callbacks_about_activate (GtkMenuItem *menuitem, gpointer user_data) { GtkWidget *aboutdialog1; /* TRANSLATORS: Replace this string with your names, one name per line. */ gchar *translators = _("translator-credits"); gchar *string = g_strdup_p...
0
345,206
void con_free_unimap(struct vc_data *vc) { struct uni_pagedir *p; p = *vc->vc_uni_pagedir_loc; if (!p) return; *vc->vc_uni_pagedir_loc = NULL; if (--p->refcount) return; con_release_unimap(p); kfree(p); }
0
310,038
usage(void) { static const char *msg[] = { "Usage: test_tparm [options] [capability] [value1 [value2 [...]]]", "", "Print all distinct combinations of given capability.", "", "Options:", " -T TERM override $TERM; this may be a comma-separated list or \"-\"", " to read a list from standard-input...
0
437,700
static int cx23888_ir_irq_handler(struct v4l2_subdev *sd, u32 status, bool *handled) { struct cx23888_ir_state *state = to_state(sd); struct cx23885_dev *dev = state->dev; unsigned long flags; u32 cntrl = cx23888_ir_read4(dev, CX23888_IR_CNTRL_REG); u32 irqen = cx23888_ir_read4(dev, CX23888_IR_IRQEN_REG); ...
0
437,707
static inline void control_tx_enable(struct cx23885_dev *dev, bool enable) { cx23888_ir_and_or4(dev, CX23888_IR_CNTRL_REG, ~(CNTRL_TXE | CNTRL_TFE), enable ? (CNTRL_TXE | CNTRL_TFE) : 0); }
0
393,525
static SQInteger closure_getinfos(HSQUIRRELVM v) { SQObject o = stack_get(v,1); SQTable *res = SQTable::Create(_ss(v),4); if(sq_type(o) == OT_CLOSURE) { SQFunctionProto *f = _closure(o)->_function; SQInteger nparams = f->_nparameters + (f->_varparams?1:0); SQObjectPtr params = SQArra...
0