functionSource
stringlengths
20
97.4k
CWE-119
bool
2 classes
CWE-120
bool
2 classes
CWE-469
bool
2 classes
CWE-476
bool
2 classes
CWE-other
bool
2 classes
combine
int64
0
1
setValue(const DSRWaveformReferenceValue &referenceValue) { OFCondition result = DSRCompositeReferenceValue::setValue(referenceValue); if (result.good()) ChannelList = referenceValue.ChannelList; return result; }
false
false
false
false
false
0
timeoutX() { progressIndex++; int idx = progressIndex % progressVals.size(); progressBar->setValue(progressVals[idx]); if (stopCount >=0) stopCount++; if (stopCount > 150) { process->kill(); errorString = QString(tr("Process did not terminate successfully")); timer->stop(); accept(); } }
false
false
false
false
false
0
parseBlockAdditions(MatroskaFile *mf, ulonglong toplen, ulonglong timecode, unsigned track) { ulonglong add_id = 1, add_pos, add_len; unsigned char have_add; FOREACH(mf, toplen) case 0xa6: // BlockMore have_add = 0; FOREACH(mf, len) case 0xee: // BlockAddId add_id = readUInt(mf, (unsigned)len...
false
false
false
false
false
0
tadashi_square_new(double x, int what) { tenm_object *new = NULL; int *count = NULL; double *count_d = NULL; double y = (double) (WINDOW_HEIGHT * 3 / 4); count = (int *) malloc(sizeof(int) * 7); if (count == NULL) { fprintf(stderr, "tadashi_square_new: malloc(count) failed\n"); return NULL; } ...
false
false
false
false
false
0
_get_medium_free_space (BraseroMedium *medium, goffset session_blocks) { BraseroMedia media; goffset blocks = 0; media = brasero_medium_get_status (medium); media = brasero_burn_library_get_media_capabilities (media); /* NOTE: we always try to blank a medium when we can */ brasero_medium...
false
false
false
false
false
0
sed1330_flush(Driver * drvthis) { PrivateData *p = drvthis->private_data; unsigned int pos, start_pos, nr_equal, fblen, len, cursor_pos; unsigned char csrloc[2]; debug(RPT_DEBUG, "%s()", __FUNCTION__); fblen = p->bytesperline * p->textlines_in_memory; for (pos = 0; pos < fblen;) { start_pos = pos; for (nr_e...
true
true
true
false
false
1
wl1271_event_unmask(struct wl1271 *wl) { int ret; wl1271_debug(DEBUG_EVENT, "unmasking event_mask 0x%x", wl->event_mask); ret = wl1271_acx_event_mbox_mask(wl, ~(wl->event_mask)); if (ret < 0) return ret; return 0; }
false
false
false
false
false
0
find_implicit_sets (void) { basic_block bb, dest; unsigned int count; rtx cond, new; count = 0; FOR_EACH_BB (bb) /* Check for more than one successor. */ if (bb->succ && bb->succ->succ_next) { cond = fis_get_condition (BB_END (bb)); if (cond && (GET_CODE (cond) == EQ || GET_CODE (cond)...
false
false
false
false
false
0
do_SSL_shutdown (void) { if (this->flags_ & SF_SHUTDOWN_DONE) // already done return 1; this->flags_ |= SF_REQ_SHUTDOWN; // if we have any uncompleted user requests // than cancel its this->notify_read (0, ERR_CANCELED); this->notify_write (0, ERR_CANCELED); int retval = ::SSL_shutdown (this->ssl_...
false
false
false
false
false
0
plpgsql_compile_error_callback(void *arg) { if (arg) { /* * Try to convert syntax error position to reference text of original * CREATE FUNCTION command. */ if (function_parse_error_transpose((const char *) arg)) return; /* * Done if a syntax error position was reported; otherwise we have to ...
false
false
false
false
false
0
ms5611_temp_and_pressure_compensate(struct ms5611_chip_info *chip_info, s32 *temp, s32 *pressure) { s32 t = *temp, p = *pressure; s64 off, sens, dt; dt = t - (chip_info->prom[5] << 8); off = ((s64)chip_info->prom[2] << 16) + ((chip_info->prom[4] * dt) >> 7); sens = ((s64)chip_info->prom[1] << 15) + ((...
false
false
false
false
false
0
fort_read_string(char *line, gint start_col, gint end_col) { gchar *field; g_return_val_if_fail(start_col > 0, ""); g_return_val_if_fail(start_col <= end_col, ""); field = g_strndup(line+start_col-1, end_col-start_col+1); return(field); }
false
false
false
false
false
0
gst_vui_decode_hrd_parameters (GstH264Parse * h, GstNalBs * bs) { GstH264Sps *sps = h->sps; gint sched_sel_idx; sps->cpb_cnt_minus1 = gst_nal_bs_read_ue (bs); if (sps->cpb_cnt_minus1 > 31U) { GST_ERROR_OBJECT (h, "cpb_cnt_minus1 = %d out of range", sps->cpb_cnt_minus1); return FALSE; } gst...
false
false
false
false
false
0
vivid_fb_release_buffers(struct vivid_dev *dev) { if (dev->video_vbase == NULL) return; /* Release cmap */ if (dev->fb_info.cmap.len) fb_dealloc_cmap(&dev->fb_info.cmap); /* Release pseudo palette */ kfree(dev->fb_info.pseudo_palette); kfree((void *)dev->video_vbase); }
false
false
false
false
false
0
logout(mail::callback &callback) { if (!folderDirty) { callback.success("Mail folder closed."); return; } // Something dirty needs to be saved. installTask(new ExpungeTask(*this, callback, false, NULL)); }
false
false
false
false
false
0
macro (char *icmd, char **keyword, char **value, int nkey, MacroCB client_callback, void *client_data) #else char *macro(icmd, keyword, value, nkey, client_callback, client_data) char *icmd; char **keyword; char **value; int nkey; MacroCB client_callback; void *client_data; #endif {...
false
false
false
false
false
0
store_temp_type(struct device *dev, struct device_attribute *devattr, const char *buf, size_t count) { int nr = to_sensor_dev_attr(devattr)->index; struct w83627hf_data *data = dev_get_drvdata(dev); unsigned long val; u32 tmp; int err; err = kstrtoul(buf, 10, &val); if (err) return err; mutex_lock(&data->...
false
false
false
false
false
0
mpoa_trigger( uint8_t * buff ){ int pos = 0; struct k_message msg; struct nhrp_common_h *common; struct extension_values values; struct nhrp_fixed_h *fixed = (struct nhrp_fixed_h*)buff; memset(&values, 0, sizeof(struct extension_values)); pos += sizeof(struct nhrp_fixed_h); common = (struct nhrp_common_...
false
true
false
false
false
1
r8712_set_802_11_bssid(struct _adapter *padapter, u8 *bssid) { unsigned long irqL; u8 status = true; struct mlme_priv *pmlmepriv = &padapter->mlmepriv; if (is_zero_ether_addr(bssid) || is_broadcast_ether_addr(bssid)) { status = false; return status; } spin_lock_irqsave(&pmlmepriv->lock, irqL); if (check_fws...
false
true
false
false
false
1
load(QFile * file) { QString errorStr; int errorLine; int errorColumn; return m_domDocument.setContent(file, true, &errorStr, &errorLine, &errorColumn); }
false
false
false
false
false
0
locateActor(Aint movingActor, Aint whr) { Aint previousCurrentLocation = current.location; Aint previousActorLocation = admin[movingActor].location; Aint previousActor = current.actor; Aint previousInstance = current.instance; /* TODO Actors locating into containers is dubious, anyway as it ...
false
false
false
false
false
0
get_conv(char *dst, size_t ndst, const char *src, size_t nsrc) { size_t len = nsrc; /* length to copy, not including null */ bool ret = TRUE; if (ndst > 0 && len >= ndst) { ret = FALSE; len = ndst - 1; } memcpy(dst, src, len); dst[len] = '\0'; return ret; }
false
false
false
false
false
0
dell_wmi_aio_init(void) { int err; const char *guid; guid = dell_wmi_aio_find(); if (!guid) { pr_warn("No known WMI GUID found\n"); return -ENXIO; } err = dell_wmi_aio_input_setup(); if (err) return err; err = wmi_install_notify_handler(guid, dell_wmi_aio_notify, NULL); if (err) { pr_err("Unable to ...
false
false
false
false
false
0
udisks_fstab_monitor_ensure (UDisksFstabMonitor *monitor) { FILE *f; char buf[8192]; struct mntent mbuf; struct mntent *m; f = NULL; if (monitor->have_data) goto out; f = fopen ("/etc/fstab", "r"); if (f == NULL) { if (errno != ENOENT) { udisks_warning ("Error opening ...
true
true
false
false
true
1
complex_subtype_from_c_complex(PyTypeObject *type, Py_complex cval) { PyObject *op; op = type->tp_alloc(type, 0); if (op != NULL) ((PyComplexObject *)op)->cval = cval; return op; }
false
false
false
false
false
0
dse_replace_entry( struct dse* pdse, Slapi_Entry *e, int write_file, int use_lock ) { int rc= -1; if ( NULL != e ) { struct dse_node *n= dse_node_new(e); if (use_lock && pdse->dse_rwlock) slapi_rwlock_wrlock(pdse->dse_rwlock); rc = avl_insert( &(pdse->dse_tree), n, entry_dn_cmp, dupentr...
false
false
false
false
false
0
cbcp_recvreq(cbcp_state *us, char *pckt, int pcktlen) { u_char type, opt_len, delay, addr_type; char address[256]; int len = pcktlen; address[0] = 0; while (len) { syslog(LOG_DEBUG, "length: %d", len); GETCHAR(type, pckt); GETCHAR(opt_len, pckt); if (opt_len > 2) GETCHAR(delay, p...
false
false
false
false
false
0
load_trainset(std::string filename) { //Variables for parsing the data file std::string line; std::stringstream parse; int ssize = 100; //establish a buffer size to store attribute values, //which for binary classification string are no bigger than 1 char c[ssize]; char delimiter = ','; //Variables to stor...
false
false
false
false
false
0
permission_free (Permission *p) { g_free (p->item); memset (p, 0, sizeof (*p)); g_slice_free (Permission, p); }
false
false
false
false
false
0
packed_find_peel(git_repository *repo, struct packref *ref) { git_object *object; if (ref->flags & GIT_PACKREF_HAS_PEEL) return 0; /* * Only applies to tags, i.e. references * in the /refs/tags folder */ if (git__prefixcmp(ref->name, GIT_REFS_TAGS_DIR) != 0) return 0; /* * Find the tagged object in ...
false
false
false
false
false
0
DPMSGetTimeouts(Display *dpy, CARD16 *standby, CARD16 *suspend, CARD16 *off) { XExtDisplayInfo *info = find_display (dpy); register xDPMSGetTimeoutsReq *req; xDPMSGetTimeoutsReply rep; DPMSCheckExtension (dpy, info, 0); LockDisplay(dpy); GetReq(DPMSGetTimeouts, req); req->reqType = info->c...
false
false
false
false
false
0
nm_settings_utils_get_default_wired_name (GHashTable *connections) { GHashTableIter iter; NMConnection *connection = NULL; GSList *names = NULL, *niter; char *cname = NULL; int i = 0; /* Build up a list of all existing connection names for dupe checking */ g_hash_table_iter_init (&iter, connections); while (g_...
false
false
false
false
false
0
getScaledParametersPS(BOX *box, l_int32 wpix, l_int32 hpix, l_int32 res, l_float32 scale, l_float32 *pxpt, l_float32 *pypt, l_float32 *pwpt, l_float32 *phpt) { L_ERROR("function not present\n", "getScaledParametersPS"); return; }
false
false
false
false
false
0
readFile(const string& infilename) { int version=get_version(infilename.c_str()); vector<string> filenames=get_filenames(infilename,version); // test for(vector<string>::iterator iter=filenames.begin(); iter!=filenames.end(); iter++){ ifstream datafile(iter->c_str()); vector<float> pdata;...
false
false
false
false
false
0
giveUpMovementKeys(void) { remKeyHandler(&myUpCB); remKeyHandler(&myDownCB); remKeyHandler(&myLeftCB); remKeyHandler(&myRightCB); remKeyHandler(&myCenterCB); remKeyHandler(&myExerciseCB); if (myCam->canZoom()) { remKeyHandler(&myZoomInCB); remKeyHandler(&myZoomOutCB); } }
false
false
false
false
false
0
NewTrackSimpleMono() { lfoskip = freq * 2 * M_PI / mCurRate; skipcount = 0; xn1 = 0; xn2 = 0; yn1 = 0; yn2 = 0; b0 = 0; b1 = 0; b2 = 0; a0 = 0; a1 = 0; a2 = 0; phase = startphase; if (mCurChannel == Track::RightChannel) phase += (float)M_PI; return true; }
false
false
false
false
false
0
mailimap_body_ext_mpart_parse(mailstream * fd, MMAPString * buffer, size_t * indx, struct mailimap_body_ext_mpart ** result, size_t progr_rate, progress_function * progr_fun) { size_t cur_token; struct mailimap_body_fld_dsp * fld_dsp; struct mailimap_body_fld_lang * fld_lang; ...
false
false
false
false
false
0
iwl_mvm_mac_remove_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) { struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); iwl_mvm_prepare_mac_removal(mvm, vif); mutex_lock(&mvm->mutex); if (mvm->bf_allowed_vif == mvmvif) { mvm->bf_all...
false
false
false
false
false
0
initial_compare(const void *a, const void *b)/*{{{*/ /************************** Sort based on exit value **************************/ { Castderef (a, const DFANode *, aa); Castderef (b, const DFANode *, bb); int status; int aok, bok; if (!aa->result && bb->result) { /* Put all non-accepting states first ...
false
false
false
false
false
0
read_real_size(GHashTable *hash, const gchar *key) { gchar *value; gdouble dim = 1.0; if ((value = g_hash_table_lookup(hash, key))) { dim = g_ascii_strtod(value, NULL); /* Use negated positive conditions to catch NaNs */ if (!((dim = fabs(dim)) > 0)) { g_w...
false
false
false
false
false
0
skipspace(std::istream* s, int c, std::size_t& line) { while (isspace(c)) { if (c == '\n') ++line; c = s->get(); } return c; }
false
false
false
false
false
0
find_db (const char *name) { for (int cnt = 0; cnt < lastdb; ++cnt) if (strcmp (name, dbnames[cnt]) == 0) return cnt; error (0, 0, _("database %s is not supported"), name); return -1; }
false
false
false
false
false
0
put_separator() { #ifdef WAKATIGAKI if (bunkatu_mode) { if(! terminate_done) { if (separator_out == 1) separator_out = 2; } } #else if (bunkatu_mode) if (separator_out == 1) separator_out = 2; #endif /* WAKATIGAKI */ }
false
false
false
false
false
0
dns_ip4_packet(stralloc *out,const char *buf,unsigned int len) { unsigned int pos; char header[12]; uint16 numanswers; uint16 datalen; if (!stralloc_copys(out,"")) return -1; pos = dns_packet_copy(buf,len,0,header,12); if (!pos) return -1; uint16_unpack_big(header + 6,&numanswers); pos = dns_packet_sk...
false
false
false
false
false
0
inf_gtk_browser_store_find_item_by_discovery_info(InfGtkBrowserStore* store, InfDiscoveryInfo* info) { InfGtkBrowserStorePrivate* priv; InfGtkBrowserStoreItem* item; priv = INF_GTK_BROWSER_STORE_PRIVATE(store); for(item = priv->first_item; item != NULL; item =...
false
false
false
false
false
0
ips_erase_bios(ips_ha_t * ha) { int timeout; uint8_t status = 0; METHOD_TRACE("ips_erase_bios", 1); status = 0; /* Clear the status register */ outl(0, ha->io_addr + IPS_REG_FLAP); if (ha->pcidev->revision == IPS_REVID_TROMBONE64) udelay(25); /* 25 us */ outb(0x50, ha->io_addr + IPS_REG_FLDP); if (ha->pc...
false
false
false
false
false
0
freeargv_from (vector, from) char **vector; int from; { register char **scan; if (vector != NULL) { for (scan = vector ; (from > 0) && (*scan != NULL) ; from--) scan ++; for (/* nothing */ ; *scan != NULL; scan++) free (*scan); free (vector); } }
false
false
false
false
false
0
scroll_v(uint8_t fb[][16][16], uint8_t dir) { uint8_t tempr,tempg,x,y; if(dir=='u') { for(x=0; x<16; x++) { tempr=fb[0][x][0]; tempg=fb[1][x][0]; for(y=0; y<15; y++) ...
false
false
false
false
false
0
pragmaDirective(Node *n) { if (!ImportMode) { String *lang = Getattr(n, "lang"); String *cmd = Getattr(n, "name"); String *value = Getattr(n, "value"); # define store_pragma(PRAGMANAME) \ if (Strcmp(cmd, #PRAGMANAME) == 0) { \ if (PRAGMANAME) Delete(PRAGMANAME); \ PRAGMANAME...
false
false
false
false
false
0
Init() { static ClassDocumentation<SMHiggsWidthGenerator> documentation ("The SMHiggsWidthGenerator class calculates the running Higgs width as in " "hep-ph/9505211.", "The Higgs width was calculated as in \\cite{Seymour:1995qg}.", "%\\cite{Seymour:1995qg}\n" "\\bibitem{Seymour:1995qg}\n" ...
false
false
false
false
false
0
lock_ref_sha1_basic(const char *ref, const unsigned char *old_sha1, int flags, int *type_p) { char *ref_file; const char *orig_ref = ref; struct ref_lock *lock; struct stat st; int last_errno = 0; int type; int mustexist = (old_sha1 && !is_null_sha1(old_sha1)); lock = xcalloc(1, sizeof(struct ref_lock)); lock...
false
false
false
false
false
0
check_and_add_debug_xl (volgen_graph_t *graph, dict_t *set_dict, char *volname, char *xlname) { int ret = 0; xlator_t *xl = NULL; char *value_str = NULL; ret = dict_get_str (set_dict, "debug.trace", &value_str); if (!ret) { ...
false
false
false
false
false
0
ekiga_dbus_component_get_user_comment (G_GNUC_UNUSED EkigaDBusComponent *self, char **comment, G_GNUC_UNUSED GError **error) { PTRACE (1, "DBus\tGetComment"); *comment = gm_conf_get_string (PERSONAL_DATA_KEY "comment"); return TRUE; }
false
false
false
false
false
0
ssd_nand_erase(struct ssd_device *dev, int flash, int chip, int page, int ctrl_idx) { struct ssd_nand_op_msg *msg; int ret = 0; ret = ssd_check_flash(dev, flash, page, ctrl_idx); if (ret) { return ret; } if (dev->protocol_info.ver < SSD_PROTOCOL_V3) { flash = ((uint32_t)flash << 1) | (uint32_t)chip; chip ...
false
false
false
false
false
0
fli_init_pup( void ) { PopUP *mr; size_t i; if ( menu_rec ) return; menu_rec = fl_calloc( fl_maxpup, sizeof *menu_rec ); for ( mr = menu_rec; mr < menu_rec + fl_maxpup; mr++ ) { mr->used = 0; mr->title = NULL; mr->win = None; mr->curso...
false
false
false
false
false
0
nfsd4_encode_layoutget(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_layoutget *lgp) { struct xdr_stream *xdr = &resp->xdr; const struct nfsd4_layout_ops *ops; __be32 *p; dprintk("%s: err %d\n", __func__, nfserr); if (nfserr) goto out; nfserr = nfserr_resource; p = xdr_reserve_space(xdr, 36 +...
false
false
false
false
false
0
command_examine(object *op, const char *params) { if (*params == '\0') { FOR_BELOW_PREPARE(op, tmp) if (LOOK_OBJ(tmp)) { examine(op, tmp); break; } FOR_BELOW_FINISH(); } else { object *tmp = find_best_object_match(op, params); ...
false
false
false
false
false
0
find_line_number(struct view *view, unsigned line) { position_t offset, next, next2; sposition_t fold_start = -1, fold_end = -1; if (line-- <= 1) return 0; for (offset = 0; offset < view->bytes; offset = next) { Unicode_t ch = view_unicode(view, offset, &next); if (offset >= fold_end) fold_end = -1; if ...
false
false
false
false
false
0
VocOpenFileForWriting( const char *name, VocInfo *vi ) { int n; vi->writing = vi->dataSize = 0; if (!(vi->fp = fopen(name, AU_WRITE_BINARY)) || !fwrite(VOC_ID, VOC_ID_SIZE, 1, vi->fp) || !FileWriteS(VOC_DATA_OFFSET, vi-...
false
false
false
false
true
1
stktable_parse_type(char **args, int *myidx, unsigned long *type, size_t *key_size) { for (*type = 0; *type < STKTABLE_TYPES; (*type)++) { if (strcmp(args[*myidx], stktable_types[*type].kw) != 0) continue; *key_size = stktable_types[*type].default_size; (*myidx)++; if (stktable_types[*type].flags & STK_F...
false
true
true
false
true
1
_rebuild_part_name_list(struct job_record *job_ptr) { bool job_active = false, job_pending = false; struct part_record *part_ptr; ListIterator part_iterator; xfree(job_ptr->partition); if (IS_JOB_RUNNING(job_ptr) || IS_JOB_SUSPENDED(job_ptr)) { job_active = true; xfree(job_ptr->partition); job_ptr->partiti...
false
false
false
false
false
0
glfwGetWindowMonitor(GLFWwindow* handle) { _GLFWwindow* window = (_GLFWwindow*) handle; assert(window != NULL); _GLFW_REQUIRE_INIT_OR_RETURN(NULL); return (GLFWmonitor*) window->monitor; }
false
false
false
false
false
0
rt5033_battery_probe(struct i2c_client *client, const struct i2c_device_id *id) { struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); struct power_supply_config psy_cfg = {}; struct rt5033_battery *battery; u32 ret; if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE)) return -EIO; batte...
false
false
false
false
false
0
RLRTrajectory(const double& _interiorTheta, const Circle& _agentRight, const Circle& _queryRight){ DubinsTrajectory next; next.type = RLR; double arcL1, arcL2, arcL3; //arcLengths Control nextControl; //for a control vector Point2d agentTan, queryTan; Circle lCircle; lCircle.SetRadius(m_minTurnRadius)...
false
false
false
false
false
0
_todaystr_eval(Instance *inst, char *buf, int bufsz) { if (!inst->cfg->show_date) { buf[0] = 0; } else { struct timeval timev; struct tm *tm; time_t tt; tzset(); gettimeofday(&timev, NULL); tt = (time_t)(timev.tv_sec); tm = localtime(...
false
false
false
false
false
0
dump_ripng(packet_t *pkt) { ripng_header_t ripng; ripng_route_header_t ripng_route; char holder[HOLDER_SIZE]; int route_count; /* Set the layer */ set_layer(LAYER_APPLICATION); /* * Get the RIPng static header */ if (get_packet_bytes((u_int8_t *) &ri...
false
false
false
false
false
0
PerlIO_binmode(pTHX_ PerlIO *f, int iotype, int mode, const char *names) { PerlIO_debug("PerlIO_binmode f=%p %s %c %x %s\n", (void*)f, (PerlIOBase(f) && PerlIOBase(f)->tab) ? PerlIOBase(f)->tab->name : "(Null)", iotype, mode, (names) ? names : "(Null)"); if (names) {...
false
false
false
false
false
0
gst_shm_src_create (GstPushSrc * psrc, GstBuffer ** outbuf) { GstShmSrc *self = GST_SHM_SRC (psrc); gchar *buf = NULL; int rv = 0; struct GstShmBuffer *gsb; do { if (gst_poll_wait (self->poll, GST_CLOCK_TIME_NONE) < 0) { if (errno == EBUSY) return GST_FLOW_WRONG_STATE; GST_ELEMENT_ERR...
false
false
false
false
false
0
printable(unsigned int x) { x &= 0xff; if (x < ' ' || x >= 0x71) { if (x <= 0x89) return x - 0x71 + 'A'; return '?'; } return x; }
false
false
false
false
false
0
free_descriptor_buffer(struct b43legacy_dmaring *ring, struct b43legacy_dmadesc_meta *meta, int irq_context) { if (meta->skb) { if (irq_context) dev_kfree_skb_irq(meta->skb); else dev_kfree_skb(meta->skb); meta->skb = NULL; } }
false
false
false
false
false
0
create_uncompress_child(struct uncompress_parms *parm, apr_pool_t *cntxt, apr_file_t **pipe_in) { int rc = 1; const char *new_argv[4]; request_rec *r = parm->r; apr_pool_t *child_context = cntxt; apr_procattr_t *procattr; apr_proc_t *procnew; /* XXX missin...
false
false
false
false
false
0
xpow_yinteger_node_real_solve (ParseNode* base) { XPowYIntegerNode * self; Number* result = NULL; Number* val = NULL; ParseNode* _tmp0_ = NULL; Number* _tmp1_ = NULL; Number* _tmp2_ = NULL; gint64 pow = 0LL; ParseNode* _tmp8_ = NULL; LexerToken* _tmp9_ = NULL; Number* _tmp18_ = NULL; Number* _tmp19_ = NULL; ...
false
false
false
false
false
0
test_notification_iterator (const void *data) { cut_notify("Notification! - iterator"); }
false
false
false
false
false
0
control_parse_line(int s, char *line) { char *p, *last, *sep = " "; if ((p = strtok_r(line, sep, &last)) == NULL) { plog(LOG_ERR, "%s: strtok_r() failed", MODULE); return -1; } while (p != NULL) { if (strcmp(p, "STATS") == 0) return control_command_stats(s, sep, las...
false
false
false
false
false
0
skge_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs) { const u32 *r = (const u32 *) regs->data; int dual = !(regs->data[0x11a] & 1); dump_pci(regs->data + 0x380); dump_control(regs->data); printf("\nBus Management Unit\n"); printf("-------------------\n"); printf("CSR Receive Queue 1 ...
false
false
false
false
false
0
strip_common(const char **sp, const char **tp) { const char *s = *sp; const char *t = *tp; do { for (; *s == '/'; s++); for (; *t == '/'; t++); *tp = t; *sp = s; for (; *s == *t && *s && *s != '/'; s++, t++); } while ((*s == *t && *s) || (!*s && *t == '/') || (*s ...
false
false
false
false
false
0
footer_input(input_type_t type) { input_type_t cur_type; switch (type) { case INPUT_COMMAND: case INPUT_SEARCH: case INPUT_USERNAME: case INPUT_PASSWORD: g_input.type = type; g_input.wbuf[0] = g_input.len = g_input.pos = 0; g_input.prev_focus = ui_focused(); ui_focus(UI_FOOT...
false
false
false
false
false
0
get_chunk(struct super_block *sb, struct buffer_head *bh) { char *bh_data = bh->b_data; if (SYSV_SB(sb)->s_type == FSTYPE_SYSV4) return (sysv_zone_t*)(bh_data+4); else return (sysv_zone_t*)(bh_data+2); }
false
false
false
false
false
0
CM2Mesh() : SkinningBuffers(0), HasAnimation(0), PreparedForSkinning(0), AnimationFrames(0.f), LastAnimatedFrame(0.f), AnimateNormals(true), HardwareSkinning(0), InterpolationMode(EIM_LINEAR) { #ifdef _DEBUG setDebugName("CM2Mesh"); #endif SkinningBuffers=&LocalBuffers; }
false
false
false
false
false
0
emit(FOTBuilder &fotb) { if (currentNode_) fotb.startNode(currentNode_, processingMode_); SaveFOTBuilder *save = fotb.asSaveFOTBuilder(); if (save) { if (calls_) { *save->tail_ = calls_; save->tail_ = tail_; calls_ = 0; tail_ = &calls_; } } else { *tail_ = 0; while ...
false
false
false
false
false
0
luaV_settable (lua_State *L, const TObject *t, TObject *key, StkId val) { const TObject *tm; int loop = 0; do { if (ttistable(t)) { /* `t' is a table? */ Table *h = hvalue(t); TObject *oldval = luaH_set(L, h, key); /* do a primitive set */ if (!ttisnil(oldval) || /* result is no nil? */ ...
false
false
false
false
false
0
bs_sig_request_done(int fd, int events, void *data) { int ret; struct scsi_cmd *cmd; struct signalfd_siginfo siginfo[16]; LIST_HEAD(list); ret = read(fd, (char *)siginfo, sizeof(siginfo)); if (ret <= 0) { return; } pthread_mutex_lock(&finished_lock); list_splice_init(&finished_list, &list); pthread_mutex_...
false
false
false
false
false
0
do_output_type(const char* type) { if (g_verbosity() > 0) { cerr << "[" << type << "]"; g_set_console_output(false); } }
false
false
false
false
false
0
remove_completion_duplicates (void) { size_t i, j; REFERENCE **temp; int newlen; if (!completions_found_index) return; /* Sort the items. */ qsort (completions_found, completions_found_index, sizeof (REFERENCE *), compare_references); for (i = 0, newlen = 1; i < completions_found_index - 1...
false
false
false
false
false
0
xterm_update() { XEvent event; while (XtAppPending(app_context) && !vim_is_input_buf_full()) { XtAppNextEvent(app_context, &event); #ifdef FEAT_CLIENTSERVER { XPropertyEvent *e = (XPropertyEvent *)&event; if (e->type == PropertyNotify && e->window == commWindow && e->atom == commProperty ...
false
false
false
false
false
0
runecmp(Rune *a, Rune *b){ while(*a==*b){ if(*a=='\0') return 0; a++; b++; } if(*a<*b) return -1; return 1; }
false
false
false
false
false
0
applyTransitions ( const DlCompletionTreeArc* edge, const RAStateTransitions& RST, BipolarPointer C, const DepSet& dep, const char* reason ) { DlCompletionTree* node = edge->getArcEnd(); // fast lane: the single transition which is applicable if ( RST.isSingleton() ) return addToDo...
false
false
false
false
false
0
_pgp_hash_algo_to_gnutls (int algo) { switch (algo) { case 0x01: return GNUTLS_DIG_MD5; case 0x02: return GNUTLS_DIG_SHA1; case 0x03: return GNUTLS_DIG_RMD160; case 0x05: return GNUTLS_DIG_MD2; case 0x08: return GNUTLS_DIG_SHA256; case 0x09: return GNUTL...
false
false
false
false
false
0
acquire_packet_buffer(struct kernel_queue *kq, size_t packet_size_in_dwords, unsigned int **buffer_ptr) { size_t available_size; size_t queue_size_dwords; uint32_t wptr, rptr; unsigned int *queue_address; BUG_ON(!kq || !buffer_ptr); rptr = *kq->rptr_kernel; wptr = *kq->wptr_kernel; queue_address = (unsigned...
false
false
false
false
false
0
scsp_irq(int irq) { // don't bother the 68k if it's off if (!en_68k) { return; } if (irq) { scsp_last_line = irq; cpu_set_irq_line(2, irq, ASSERT_LINE); } else { cpu_set_irq_line(2, scsp_last_line, CLEAR_LINE); } }
false
false
false
false
false
0
xdr_ndmp3_data_start_recover_request (XDR *xdrs, ndmp3_data_start_recover_request *objp) { register int32_t *buf; if (!xdr_array (xdrs, (char **)&objp->env.env_val, (u_int *) &objp->env.env_len, ~0, sizeof (ndmp3_pval), (xdrproc_t) xdr_ndmp3_pval)) return FALSE; if (!xdr_array (xdrs, (char **)&objp->nlist.nl...
false
false
false
false
false
0
doEval() { QTextCursor cursor; if (d->c->hasFocus()) { cursor = d->c->textCursor(); } else if (d->e->hasFocus()) { d->historyPos = -1; d->historyOverlay.clear(); d->historyCursorPos.clear(); d->c->moveToEnd(); cursor = d->e->textCursor(); if (! cursor.hasSele...
false
false
false
false
false
0
get_sub_flowtables_max_columns() const { guint result = get_lines(); for(type_sub_flow_tables::const_iterator iter = m_sub_flow_tables.begin(); iter != m_sub_flow_tables.end(); ++iter) { const FlowTableWithFields* subtable = *iter; if(subtable) { const guint count = subtable->get_lines(); ...
false
false
false
false
false
0
slidescreen_draw_early (struct state *st) { while (st->early_i < 0) { st->early_i++; return 1; } /* for (early_i = 0; early_i < grid_size; early_i += pix_inc) */ { XPoint points [3]; points[0].x = st->xoff + st->grid_size * st->hole_x; points[0].y = st->yoff + st->grid_size * ...
false
false
false
false
true
1
isieve_activate(isieve_t *obj, char *name, char **errstr) { char *refer_to; int ret = setscriptactive(obj->version,obj->pout, obj->pin, name, &refer_to, errstr); if(ret == -2 && refer_to) { ret = do_referral(obj, refer_to); if(ret == STAT_OK) { ret = isieve_activate(obj, name, errstr); } el...
false
false
false
false
false
0
decode() { dw = bc->bytecode; bc_ndw = bc->ndw; max_cf = 0; dec = new bc_decoder(ctx, dw, bc_ndw); shader_target t = TARGET_UNKNOWN; if (pshader) { switch (bc->type) { case TGSI_PROCESSOR_FRAGMENT: t = TARGET_PS; break; case TGSI_PROCESSOR_VERTEX: t = pshader->vs_as_es ? TARGET_ES : TARGET_VS; bre...
false
false
false
false
false
0
rinoo_socket_class_ssl_create(t_sched *sched) { t_ssl *ssl; ssl = calloc(1, sizeof(*ssl)); if (unlikely(ssl == NULL)) { return NULL; } ssl->socket.node.sched = sched; return &ssl->socket; }
false
false
false
false
false
0
gst_sbc_get_mode_from_list(const GValue *list, gint channels) { unsigned int i; const GValue *value; const gchar *aux; gboolean joint, stereo, dual, mono; guint size = gst_value_list_get_size(list); joint = stereo = dual = mono = FALSE; for (i = 0; i < size; i++) { value = gst_value_list_get_value(list, i); ...
false
false
false
false
false
0
AppendConn(Driver *drvPtr, Conn *connPtr) { if ((connPtr->prevPtr = drvPtr->lastConnPtr) == NULL) { drvPtr->firstConnPtr = connPtr; } else { connPtr->prevPtr->nextPtr = connPtr; } drvPtr->lastConnPtr = connPtr; connPtr->nextPtr = NULL; }
false
false
false
false
false
0
gnome_scan_param_widget_constructor (GType type, guint n_params, GObjectConstructParam *params) { GValue *value; gchar* unit; GObject *object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params); GnomeScanParamWidget *gspw = GNOME_SCAN_PARAM_WIDGET (object); GnomeScanParamWidgetPrivate *priv =...
false
false
false
false
false
0