src/inc/common.h 1.157
1.157 2009/11/02 21:27:45 hiram
Allow maybeSystem() to only warn on system errors. trf always exits with an error
Index: src/inc/common.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/common.h,v
retrieving revision 1.156
retrieving revision 1.157
diff -b -B -U 4 -r1.156 -r1.157
--- src/inc/common.h 20 Oct 2009 19:16:33 -0000 1.156
+++ src/inc/common.h 2 Nov 2009 21:27:45 -0000 1.157
@@ -1000,10 +1000,13 @@
struct fileOffsetSize *fileOffsetSizeMerge(struct fileOffsetSize *inList);
/* Returns a new list which is inList transformed to have adjacent blocks
* merged. Best to use this with a sorted list. */
+void maybeSystem(char *cmd);
+/* Execute cmd using "sh -c" or die. (See man 3 system.) warning on errors */
+
void mustSystem(char *cmd);
-/* Execute cmd using "sh -c" or die. (See man 3 system.) */
+/* Execute cmd using "sh -c" or die. (See man 3 system.) fail on errors */
int roundingScale(int a, int p, int q);
/* returns rounded a*p/q */