1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix: missing includes

This commit is contained in:
Steffen Vogel 2015-06-02 22:06:15 +02:00
parent e2458e899d
commit a87799404a
6 changed files with 7 additions and 15 deletions

View file

@ -16,7 +16,6 @@
#include <errno.h>
#include <sched.h>
#include <string.h>
#include <time.h>
#include <sys/types.h>
#include "log.h"
@ -114,19 +113,6 @@ cpu_set_t to_cpu_set(int set);
/** Allocate and initialize memory. */
void * alloc(size_t bytes);
/** Wait until timer elapsed
*
* @retval 0 An error occured. Maybe the timer was stopped.
* @retval >0 The nummer of runs this timer already fired.
*/
uint64_t timerfd_wait(int fd);
/** Get delta between two timespec structs */
double timespec_delta(struct timespec *start, struct timespec *end);
/** Get period as timespec from rate */
struct timespec timespec_rate(double rate);
/** A system(2) emulator with popen / pclose(2) and proper output handling */
int system2(const char* cmd, ...);

View file

@ -12,6 +12,7 @@
#include "log.h"
#include "utils.h"
#include "config.h"
#include "timing.h"
#ifdef ENABLE_OPAL_ASYNC
/* Define RTLAB before including OpalPrint.h for messages to be sent
@ -73,7 +74,7 @@ void log_vprint(const char *lvl, const char *fmt, va_list ap)
/* Timestamp */
clock_gettime(CLOCK_REALTIME, &ts);
strap(buf, sizeof(buf), "%10.3f ", timespec_delta(&epoch, &ts));
strap(buf, sizeof(buf), "%10.3f ", time_delta(&epoch, &ts));
/* Severity */
strap(buf, sizeof(buf), BLD("%5s "), lvl);

View file

@ -18,6 +18,7 @@
#include "config.h"
#include "utils.h"
#include "msg.h"
#include "timing.h"
#define CLOCKID CLOCK_REALTIME

View file

@ -28,6 +28,7 @@
#include "node.h"
#include "msg.h"
#include "socket.h"
#include "timing.h"
/** Linked list of nodes */
struct list nodes;

View file

@ -29,6 +29,7 @@
#include "node.h"
#include "msg.h"
#include "socket.h"
#include "timing.h"
/** Linked list of nodes */
struct list nodes;

View file

@ -25,6 +25,8 @@
#include "node.h"
#include "utils.h"
#include "hist.h"
#include "timing.h"
/** Linked list of nodes */
struct list nodes;
/** The global configuration */