Changeset 32341
- Timestamp:
- Sep 6, 2011, 11:03:30 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110710/Ohana/src
- Files:
-
- 3 edited
-
opihi/pantasks/TaskOps.c (modified) (1 diff)
-
opihi/pantasks/ipptool2book.c (modified) (9 diffs)
-
tools/src/roc.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110710/Ohana/src/opihi/pantasks/TaskOps.c
r31666 r32341 471 471 NewTask[0].Nfailure = 0; 472 472 NewTask[0].Ntimeout = 0; 473 NewTask[0].Nskipexec = 0; 473 474 474 475 /* jobs timing statistics */ -
branches/eam_branches/ipp-20110710/Ohana/src/opihi/pantasks/ipptool2book.c
r18080 r32341 69 69 gprint (GP_ERR, "USAGE: ipptool2book (queue) (book) [-uniq] [-key key[:key..]]\n"); 70 70 FREEKEYS; 71 return ( FALSE);71 return (TRUE); 72 72 } 73 73 … … 76 76 gprint (GP_ERR, "queue %s not found\n", argv[1]); 77 77 FREEKEYS; 78 return ( FALSE);78 return (TRUE); 79 79 } 80 80 … … 108 108 free (line); 109 109 FREEKEYS; 110 return FALSE;110 return (TRUE); 111 111 } 112 112 free (line); … … 120 120 gprint (GP_ERR, "ERROR: unterminated metadata\n"); 121 121 FREEKEYS; 122 return ( FALSE);122 return (TRUE); 123 123 } 124 124 FREEKEYS; … … 145 145 free (bookName); 146 146 FREEKEYS; 147 return ( FALSE);147 return (TRUE); 148 148 } 149 149 free (tmpword); … … 155 155 free (bookName); 156 156 FREEKEYS; 157 return FALSE;157 return TRUE; 158 158 } 159 159 onPage = TRUE; … … 179 179 gprint (GP_ERR, "ERROR: missing key %s for ID\n", keys[i]); 180 180 FREEKEYS; 181 return ( FALSE);181 return (TRUE); 182 182 } 183 183 if (i > 0) strcat (pagename, ":"); … … 221 221 free (bookName); 222 222 FREEKEYS; 223 return ( FALSE);223 return (TRUE); 224 224 } 225 225 BookSetWord (page, tmpword, tmpvalue); … … 229 229 } 230 230 FREEKEYS; 231 return ( FALSE);231 return (TRUE); 232 232 } 233 233 -
branches/eam_branches/ipp-20110710/Ohana/src/tools/src/roc.c
r30607 r32341 4 4 # include <regex.h> 5 5 6 # define myAssert(LOGIC,...) { if (!(LOGIC)) { fprintf (stderr, __VA_ARGS__); abort(); } }6 # define myAssert(LOGIC,...) { if (!(LOGIC)) { fprintf (stderr, __VA_ARGS__); exit(4); } } 7 7 8 8 # define ROC_HEADER_SIZE 0x1000 … … 198 198 199 199 target = fopen(targetName, "r"); 200 myAssert (target, "failed to open output");200 myAssert (target, "failed to open rocfile"); 201 201 202 202 ALLOCATE (line, char, 1024); … … 368 368 for (i = 0; i < Ninput; i++) { 369 369 input[i] = fopen(inputName[i], "r"); 370 myAssert (input[i], "failed to open file %s in %s\n",inputName[i],targetName);370 myAssert (input[i], "failed to open input: %d data file: %s in %s\n",i,inputName[i],targetName); 371 371 } 372 372 … … 381 381 Nread = MIN (ROC_BLOCKSIZE, sizes[i] - bytes_read[i]); 382 382 Nbytes = fread (inputData[i], 1, Nread, input[i]); 383 myAssert (Nbytes == Nread, "failed to read data file: %s read: %d expect: %d prev_read: %d block: %d in %s\n",inputName[i],Nbytes,Nread,(int) bytes_read[i],n,targetName);383 myAssert (Nbytes == Nread, "failed to read input: %d data file: %s read: %d expect: %d prev_read: %d block: %d in %s\n",i,inputName[i],Nbytes,Nread,(int) bytes_read[i],n,targetName); 384 384 if (Nread < ROC_BLOCKSIZE) { 385 385 // if we have reached the end of the file, fill in the rest with NULLs … … 442 442 fprintf (stderr, "USAGE: roc [mode]\n"); 443 443 fprintf (stderr, " -create (target) (input) (input) (input) ... [options]\n"); 444 fprintf (stderr, " -repair (target) (file #) (output \n");444 fprintf (stderr, " -repair (target) (file #) (output)\n"); 445 445 fprintf (stderr, " -validate (target)\n"); 446 446 fprintf (stderr, " -insert (target) (input)\n");
Note:
See TracChangeset
for help on using the changeset viewer.
