[core] consistent inclusion of sys-time.h

master
Glenn Strauss 2 years ago
parent a1eba3c89b
commit 13ea2d880b

@ -2,14 +2,7 @@
#define _BASE_H_
#include "first.h"
#include <sys/types.h>
#include <sys/time.h>
#if defined(__APPLE__) && defined(__MACH__)
#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050
#include <time.h>
#endif
#endif
#include "sys-time.h"
#include "base_decls.h"
#include "buffer.h"

@ -4,7 +4,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h> /* strftime() */
#include "sys-time.h" /* strftime() */
static const char hex_chars_lc[] = "0123456789abcdef";
static const char hex_chars_uc[] = "0123456789ABCDEF";

@ -7,13 +7,13 @@
#include <sys/types.h>
#include "sys-socket.h"
#include "sys-time.h"
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <time.h>
#ifdef SOCK_CLOEXEC
static int use_sock_cloexec;

@ -4,9 +4,8 @@
#include "fdevent.h"
#include "buffer.h"
#include <sys/time.h>
#include "sys-time.h"
#include <unistd.h>
#include <stdlib.h>
#include <string.h>

@ -2,15 +2,7 @@
#define LI_H2_H
#include "first.h"
/* time_t */
#include <sys/types.h>
#include <sys/time.h>
#if defined(__APPLE__) && defined(__MACH__)
#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050
#include <time.h>
#endif
#endif
#include "sys-time.h"
#include "base_decls.h"
#include "buffer.h"

@ -20,12 +20,6 @@
# include <syslog.h>
#endif
#ifndef HAVE_CLOCK_GETTIME
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h> /* gettimeofday() */
#endif
#endif
time_t log_epoch_secs = 0;
time_t log_monotonic_secs = 0;

@ -8,7 +8,6 @@
#include "plugin.h"
#include <sys/stat.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>

@ -1,7 +1,6 @@
#include "first.h"
#include <sys/stat.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>

@ -5,7 +5,6 @@
#include <lauxlib.h>
#include <errno.h>
#include <time.h>
#include <string.h>
#include "mod_cml_funcs.h"

@ -101,12 +101,12 @@
#include <sys/types.h>
#include <sys/stat.h>
#include "sys-mmap.h"
#include "sys-time.h"
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <unistd.h> /* getpid() read() unlink() write() */
#include "base.h"

@ -4,8 +4,8 @@
#include "log.h"
#include "stat_cache.h"
#include "sys-time.h"
#include <stdlib.h>
#include <time.h>
#include <lualib.h>
#include <lauxlib.h>

@ -7,13 +7,13 @@
#include "plugin.h"
#include <sys/types.h>
#include <sys/stat.h>
#include "sys-time.h"
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <time.h>
typedef struct {
const buffer *path_rrd;

@ -13,7 +13,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include "sys-time.h"
#include <errno.h>
#include <fcntl.h>

@ -13,11 +13,11 @@
#include <sys/types.h>
#include <sys/stat.h>
#include "sys-time.h"
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "sys-crypto-md.h" /* USE_LIB_CRYPTO and additional crypto lib config */

@ -2,7 +2,7 @@
#define _REQUEST_H_
#include "first.h"
#include <time.h> /* (struct timespec) */
#include "sys-time.h" /* (struct timespec) */
#include "base_decls.h"
#include "buffer.h"

@ -17,12 +17,12 @@
#include <sys/types.h>
#include <sys/stat.h>
#include "sys-time.h"
#include <limits.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
int

@ -2,12 +2,12 @@
#define _RESPONSE_H_
#include "first.h"
#include "sys-time.h"
#include "base_decls.h"
#include "buffer.h"
#include "array.h"
#include <time.h>
int http_response_parse(server *srv, request_st *r);
enum {

@ -29,15 +29,14 @@
static const buffer default_server_tag = { CONST_STR_LEN(PACKAGE_DESC)+1, 0 };
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
#include "sys-time.h"
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
#include <signal.h>
#include <locale.h>

@ -2,14 +2,13 @@
#define _FILE_CACHE_H_
#include "first.h"
#include <sys/stat.h>
#include "sys-time.h"
#include "base_decls.h"
#include "buffer.h"
#include "array.h"
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
typedef struct stat stat_cache_st;
typedef struct stat_cache_entry {

Loading…
Cancel
Save