b884446cb0720217e7cdcfa7aa3e061d76fe9f18 markd Wed Feb 8 20:22:49 2017 -0800 allow trackDb make update and alpha to use multiple cores with the make -j option. This required hgTrackDb and hgFindSpec to have unique, temporary tab files diff --git src/inc/portable.h src/inc/portable.h index 7b51440..53aacfa 100644 --- src/inc/portable.h +++ src/inc/portable.h @@ -68,30 +68,35 @@ * (It's not considered a problem for the directory to already * exist. ) */ char *simplifyPathToDir(char *path); /* Return path with ~ (for home) and .. taken out. freeMem result when done. */ long clock1000(); /* 1000 hz clock */ void sleep1000(int milli); /* Sleep for given number of milliseconds. */ long clock1(); /* A 1 hz clock. */ +char *getTempDir(void); +/* get temporary directory to use for programs. This first checks TMPDIR environment + * variable, then /data/tmp, /scratch/tmp, /var/tmp, /tmp. Return is static and + * only set of first call */ + char *rTempName(char *dir, char *base, char *suffix); /* Make a temp name that's almost certainly unique. */ /* This structure helps us generate temp names and use * them. Since different servers locate where the cgi * runs from differently, and where the generated html * file runs from - this is necessary for portable code. */ struct tempName { char forCgi[4096]; char forHtml[4096]; }; void makeTempName(struct tempName *tn, char *base, char *suffix); /* Make a good name for a temp file. */