-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/readout.c,v 6.29 2004-08-13 10:30:00 hadaq Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/readout.c,v 6.30 2006-04-11 17:39:31 hadaq Exp $";
#define _POSIX_C_SOURCE 199309L
#define SYSLOG_NAMES
openlog(argv[0], LOG_PID | LOG_PERROR, LOG_LOCAL0);
setlogmask(LOG_UPTO(LOG_INFO));
-
+ LVme_registerLogMsg(syslog);
argsDefault(theArgs);
argsFromParam(theArgs, argc, argv);
-static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/shmtrans.c,v 6.9 2003-05-14 13:54:45 muench Exp $";
+static char *rcsId = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/shmtrans.c,v 6.10 2006-04-11 17:39:31 hadaq Exp $";
#define _POSIX_C_SOURCE 199309L
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
+#include <pthread.h>
#include <semaphore.h>
#include <string.h>
#include <sys/stat.h>
#include "shmtrans.h"
#define SPACE_IN_FRONT 16 /* Reserve a little space in front of the
- hadtuqueues that is not used, but
- accessible. Allows for in situ asembly of
- fragments with headers. */
+ hadtuqueues that is not used, but
+ accessible. Allows for in situ asembly of
+ fragments with headers. */
static void switchStorage(ShmTrans *my)
{
case ENOENT:
break;
default:
- syslog(LOG_DEBUG,
- "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
+ syslog(LOG_DEBUG, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
goto bailOut1;
break;
}
case ENOENT:
break;
default:
- syslog(LOG_DEBUG,
- "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
+ syslog(LOG_DEBUG, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
goto bailOut2;
break;
}
case ENOENT:
break;
default:
- syslog(LOG_DEBUG,
- "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
+ syslog(LOG_DEBUG, "%s, line %d: %s", __FILE__, __LINE__, strerror(errno));
goto bailOut3;
break;
}