search for: tmpname

Displaying 20 results from an estimated 72 matches for "tmpname".

2010 Sep 15
1
Inconvenient behavior of as.data.frame() for lists without names
Hi all, I ran into a small issue when converting a list of vectors to a data frame. The Issue I'm having is described by the snippet below: ######################################################### # Convert a list of vectors into a data.frame strlen = 256 s.long.a = paste( letters[1+(0:strlen %% 26)], collapse="") s.long.b = paste( letters[1+(strlen:0 %% 26)],
2017 Nov 09
10
Experiment on how to improve our temporary file handing.
Currently a power failure or other hard crash can cause lld leave a temporary file around. The same is true for other llvm tools. As an example, put a breakpoint in Writer.cpp:236 ("writeBuildId()") and restart the run a few times. You will get t.tmp43a735a t.tmp4deeabb t.tmp9bacdd3 t.tmpe4115c4 t.tmpeb01fff The same would happen if there was a fatal error between the
2010 Jan 26
0
Trouble Highlighting outliers on Time Series Plot
...ed # this section may be commented out. ############################################################ tsSourceDiag <- stl(tsSource,s.window="per", robust=TRUE) # tsSourceIO <- which(tsSourceDiag $ weights < 1e-8) # # This is how to append run-time regessors for(z in tsSourceIO) { tmpname <-paste("PreIO",z,sep="") #COPY EOM REGRESSOR AS A TEMPLATE sh2[[tmpname]] <- sh2[["EOM"]] #SET IT ALL TO 0 sh2[[tmpname]][]<-FALSE #SET The Proper Indice to TRUE sh2[[tmpname]][z]<- TRUE } Ok so I have a time series tsSource. I yank out the index of each t...
2003 Oct 18
0
Added functionality --compare-file and --compare-auto
...rule permits 2.4-test2, 2.4-rc4, 2.4-pre3 to be ignored as versions. + Finally it selects the most recent of these which has a size no smaller + than 90% of the biggest of any of them. + I acknowlege these are pretty arbitrary rules - arh 17 October 2003 */ +{ + char newname[MAXPATHLEN]; + char tmpname[MAXPATHLEN]; + time_t newtime=0; + size_t newsize=0; + struct dirent *di; + DIR *d; + char* dirname; + char *name; + + strncpy(buf,fname,MAXPATHLEN); + dirname = buf; + name = strrchr(buf,'/'); + if (name) + *name++ = 0; //terminate name at end of directory part + else { + name = (char*...
2010 Jan 12
0
[Solved][Code Snippets] Dropping Empty Regressors
...not know their names # if any are found ############################################################ tsSourceDiag <- stl(tsSource,s.window="per", robust=TRUE) # tsSourceIO <- which(tsSourceDiag $ weights < 1e-8) # # This is how to append run-time regessors for(z in tsSourceIO) { tmpname <-paste("PreIO",z,sep="") #COPY EOM AS A TEMPLATE sh2[[tmpname]] <- sh2[["EOM"]] #SET IT ALL TO 0 sh2[[tmpname]][]<-FALSE #SET The Proper Indice to TRUE sh2[[tmpname]][z]<- TRUE } So to get rid of them (those empty useless regressors) I cooked up this: #...
2001 Apr 07
1
samba on NetBSD - some patches
...EL_OPLOCKS #undef HAVE_IRIX_SPECIFIC_CAPABILITIES #undef HAVE_INT16_FROM_RPC_RPC_H $NetBSD: patch-ad,v 1.3 2001/04/07 10:00:42 hubertf Exp $ --- client/client.c.orig Wed May 10 16:28:49 2000 +++ client/client.c @@ -1165,7 +1165,7 @@ "find . -name \"%s\" -print > %s",p,tmpname); else slprintf(cmd,sizeof(pstring)-1, - "find . -maxdepth 1 -name \"%s\" -print > %s",p,tmpname); + "ls -1 %s > %s",p,tmpname); system(cmd); f = sys_fopen(tmpname,"r"); @@ -1599,22 +1599,19 @@ return True; } -#if defined(HAVE_...
2011 Dec 01
3
AGI script that uses google's text to speech engine
Hello, I have written an AGI script for asterisk that uses google translate for text to speech synthesis. It supports a variety of different languages, local caching for the voice data and wideband audio. The voice in most languages is female and the quality of the synthesized speech is very high. More info about the script can be found here: http://zaf.github.com/asterisk-googletts/ the first
2010 Jan 14
4
how to strip + from the caller-ID
Hi, How can I strip + from the front of the caller ID? I have tried this: exten => s/_+X.,1,Set(CALLERID(name)=${CALLERID(name):1}) But it is not working. Szasz Szabolcs -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100114/a3f18781/attachment.htm
2001 Apr 05
0
smbclient, find, and NetBSD
...does not have the '-maxdepth' option. The problem is in samba/source/client/client.c at line 1168. Here is the code that causes the problem with a temporary fix. > if (recurse) > slprintf(cmd,sizeof(pstring)-1, > "find . -name \"%s\" -print > %s",p,tmpname); > else > slprintf(cmd,sizeof(pstring)-1, > "ls -1 %s > %s",p,tmpname); > // slprintf(cmd,sizeof(pstring)-1, > // "find . -maxdepth 1 -name \"%s\" -print > %s",p,tmpname); Please suggest a better fix and add it to your list of thing...
2001 Apr 05
0
smbclient, find, and NetBSD (fwd)
...does not have the '-maxdepth' option. The problem is in samba/source/client/client.c at line 1168. Here is the code that causes the problem with a temporary fix. > if (recurse) > slprintf(cmd,sizeof(pstring)-1, > "find . -name \"%s\" -print > %s",p,tmpname); > else > slprintf(cmd,sizeof(pstring)-1, > "ls -1 %s > %s",p,tmpname); > // slprintf(cmd,sizeof(pstring)-1, > // "find . -maxdepth 1 -name \"%s\" -print > %s",p,tmpname); Please suggest a better fix and add it to your list of thing...
2015 Mar 05
0
[PATCH] builder: add build script for PPC64 Fedora
...create the Fedora templates used by +# virt-builder. + +unset CDPATH +export LANG=C +set -e +set -x + +if [ $# -ne 1 ]; then + echo "$0 VERSION" + exit 1 +fi + +version=$1 +tree=http://mirrors.nic.cz/fedora-secondary/releases/$version/Server/ppc64/os/ +output=fedora-$version-ppc64 +tmpname=tmp-$(tr -cd 'a-f0-9' < /dev/urandom | head -c 8) + +rm -f $output $output.old $output.xz + +# Generate the kickstart to a temporary file. +ks=$(mktemp) +cat > $ks <<'EOF' +install +text +reboot +lang en_US.UTF-8 +keyboard us +network --bootproto dhcp +rootpw builder +fi...
2016 Nov 28
2
[PATCH] builder: Rearrange how template-building scripts work.
..._conf = + match os with + | RHEL (major, minor) when major >= 5 -> + Some (make_rhel_yum_conf major minor arch) + | _ -> None in + + (* Choose a random temporary name for the libvirt domain. We will + * also have to clean this up after running virt-install. + *) + let tmpname = sprintf "tmp-%s" (random8 ()) in + + (* Choose a random temporary disk name. *) + let tmpout = sprintf "%s.img" tmpname in + + (* Some architectures need EFI boot. *) + let tmpefivars = + match os, arch with + | (Fedora _|RHEL _), Aarch64 -> + let vars = spr...
2002 Jun 25
2
Help wanted: configure test for busted mmap
Linux 2.2 (and probably others) have a deficient mmap which has caused a number of problems (e.g. bug #285). A workaround is in development, but it would be helpful to have a configure test to detect the bad mmaps(). Any takers? -d
2015 Mar 05
2
[PATCH] builder: add build script for ppc64 fedora
Build script is based on fedora-aarch64.sh. This managed to build and compress an image, but it seems the process itself is not completely unattended. >From some strange reason I had to manually power off the VM after install. Maros Zatko (1): builder: add build script for PPC64 Fedora builder/website/fedora-ppc64.sh | 97 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97
2012 Dec 05
2
[RFC PATCH] drm/nouveau: report channel owner in error messages
.../nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -539,10 +539,11 @@ nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv) struct pci_dev *pdev = dev->pdev; struct nouveau_drm *drm = nouveau_drm(dev); struct nouveau_cli *cli; - char name[16]; + char name[32], tmpname[TASK_COMM_LEN]; int ret; - snprintf(name, sizeof(name), "%d", pid_nr(fpriv->pid)); + get_task_comm(tmpname, current); + snprintf(name, sizeof(name), "%s[%d]", tmpname, pid_nr(fpriv->pid)); ret = nouveau_cli_create(pdev, name, sizeof(*cli), (void **)&cli); if...
2017 Aug 31
0
[PATCH] drm: nouveau: replace magic constant for TASK_COMM_LEN
...15a13d09d431..28396d0b0864 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -830,7 +830,7 @@ nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv) { struct nouveau_drm *drm = nouveau_drm(dev); struct nouveau_cli *cli; - char name[32], tmpname[TASK_COMM_LEN]; + char name[TASK_COMM_LEN + 16], tmpname[TASK_COMM_LEN]; int ret; /* need to bring up power immediately if opening device */ -- 2.11.0
2018 Jul 03
0
[PATCH 1/2] drm/nouveau: Fix runtime PM leak in drm_open()
...gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 0452b18d36b9..0f668e275ee1 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -919,8 +919,10 @@ nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv) get_task_comm(tmpname, current); snprintf(name, sizeof(name), "%s[%d]", tmpname, pid_nr(fpriv->pid)); - if (!(cli = kzalloc(sizeof(*cli), GFP_KERNEL))) - return ret; + if (!(cli = kzalloc(sizeof(*cli), GFP_KERNEL))) { + ret = -ENOMEM; + goto done; + } ret = nouveau_cli_init(drm, name, cli); if...
2018 Jul 12
0
[PATCH v2 1/3] drm/nouveau: Fix runtime PM leak in drm_open()
...gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 0452b18d36b9..0f668e275ee1 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -919,8 +919,10 @@ nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv) get_task_comm(tmpname, current); snprintf(name, sizeof(name), "%s[%d]", tmpname, pid_nr(fpriv->pid)); - if (!(cli = kzalloc(sizeof(*cli), GFP_KERNEL))) - return ret; + if (!(cli = kzalloc(sizeof(*cli), GFP_KERNEL))) { + ret = -ENOMEM; + goto done; + } ret = nouveau_cli_init(drm, name, cli); if...
2018 Oct 09
0
[PATCH] drm/nouveau: avoid client name truncation
...74d2283f2c28..b0a3708992fe 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -894,7 +894,7 @@ nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv) { struct nouveau_drm *drm = nouveau_drm(dev); struct nouveau_cli *cli; - char name[32], tmpname[TASK_COMM_LEN]; + char name[TASK_COMM_LEN + 16], tmpname[TASK_COMM_LEN]; int ret; /* need to bring up power immediately if opening device */ -- 2.19.1
2020 Jun 14
0
[PATCH] drm/nouveau: fix multiple instances of reference count leaks
...struct drm_file *fpriv) /* need to bring up power immediately if opening device */ ret = pm_runtime_get_sync(dev->dev); - if (ret < 0 && ret != -EACCES) + if (ret < 0 && ret != -EACCES) { + pm_runtime_put_autosuspend(dev->dev); return ret; + } get_task_comm(tmpname, current); snprintf(name, sizeof(name), "%s[%d]", tmpname, pid_nr(fpriv->pid)); @@ -1109,8 +1111,10 @@ nouveau_drm_ioctl(struct file *file, unsigned int cmd, unsigned long arg) long ret; ret = pm_runtime_get_sync(dev->dev); - if (ret < 0 && ret != -EACCES) + if (r...