ndhc/ndhc/sys.h
2010-12-24 09:47:09 -05:00

21 lines
418 B
C

#ifndef SYS_H_
#define SYS_H_
#include <sys/time.h>
#include "ndhc-defines.h"
static inline unsigned long long curms()
{
struct timeval tv;
gettimeofday(&tv, NULL);
return tv.tv_sec * 1000ULL + tv.tv_usec / 1000ULL;
}
extern char pidfile[MAX_PATH_LENGTH];
void background(void);
void epoll_add(struct client_state_t *cs, int fd);
void epoll_del(struct client_state_t *cs, int fd);
#endif /* SYS_H_ */