msglog(LOG_ERR, "Could not jump over the filemark!\n");
exit(-2);
}
- label = allocMem(80*sizeof(char));
+ label = allocMem(81*sizeof(char));
do {
stat = read(tape, label, 80);
- printf("EOF Label read te get fileSeqNum:\n%s\nSo it is.\n", label);
+ label[80] = '\0';
+ msglog(LOG_INFO, "EOF Label read te get fileSeqNum:\n%s\n", label);
if (i == 0) {
sscanf(label, "%*31c%4d", &fileSeqNum);
fileSeqNum++;
-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.23 2000-11-19 17:41:03 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.24 2000-11-20 10:08:55 hades Exp $";
#define _POSIX_C_SOURCE 199309L
static int argsFromCL(TheArgs *my, int argc, char *argv[]) {
int i;
- while ((i = getopt(argc, argv, "am:f:s:r:o:d:p:v:x:")) != -1) {
+ while ((i = getopt(argc, argv, "am:f:s:r:o:d:q:p:v:x:")) != -1) {
switch (i) {
case 'm':
my->nrOfMsgs = atoi(optarg);
-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/memnet.c,v 6.6 2000-11-10 17:58:53 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/memnet.c,v 6.7 2000-11-20 10:11:42 hades Exp $";
#define _XOPEN_SOURCE
#include <unistd.h>
static void usage(const char *progName)
{
msglog(LOG_ERR, "Usage: %s [-a (agentCtrl)] -o outPath\n", progName);
- msglog(LOG_ERR, "Usage: [-w bandwidth] [-p priority]\n");
+ msglog(LOG_ERR, "Usage: [-w bandwidth] [-p priority] [-q queueSize]\n");
msglog_usage();
}
static int argsFromCL(TheArgs *my, int argc, char *argv[]) {
int i;
- while ((i = getopt(argc, argv, "aw:o:p:v:")) != -1) {
+ while ((i = getopt(argc, argv, "aw:q:o:p:v:")) != -1) {
switch (i) {
case 'w':
my->bandWidth = atoi(optarg);
-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/netmem.c,v 6.10 2000-11-08 08:27:14 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/netmem.c,v 6.11 2000-11-20 10:10:40 hades Exp $";
#define _XOPEN_SOURCE
#include <unistd.h>
static int argsFromCL(TheArgs *my, int argc, char *argv[]) {
int i;
- while ((i = getopt(argc, argv, "ai:m:p:v:")) != -1) {
+ while ((i = getopt(argc, argv, "ai:m:q:p:v:")) != -1) {
switch (i) {
case 'm':
my->nrOfMsgs = atoi(optarg);