mirror of https://github.com/yandex/odyssey.git
make headers better
This commit is contained in:
parent
eaae0eff47
commit
3965574b8a
|
@ -11,9 +11,16 @@
|
|||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
|
||||
#endif // ODYSSEY_C_H
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
#ifndef ODYSSEY_COUNTER_H
|
||||
#define ODYSSEY_COUNTER_H
|
||||
|
||||
|
|
|
@ -5,18 +5,7 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
#include "cron.h"
|
||||
|
||||
static int
|
||||
od_cron_stat_cb(od_route_t *route,
|
||||
|
|
|
@ -9,6 +9,11 @@
|
|||
|
||||
typedef struct od_cron od_cron_t;
|
||||
|
||||
#include "c.h"
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <odyssey.h>
|
||||
|
||||
struct od_cron
|
||||
{
|
||||
uint64_t stat_time_us;
|
||||
|
|
|
@ -5,23 +5,7 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
#include "daemon.h"
|
||||
|
||||
int
|
||||
od_daemonize(void)
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <odyssey.h>
|
||||
|
||||
int
|
||||
od_daemonize(void);
|
||||
|
||||
|
|
|
@ -5,15 +5,6 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
|
|
|
@ -5,20 +5,10 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
|
||||
static int
|
||||
|
|
|
@ -5,12 +5,7 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
#include "c.h"
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
|
|
|
@ -1,21 +1,5 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
#include <sys/prctl.h>
|
||||
#include "grac_shutdown_worker.h"
|
||||
|
||||
static inline int
|
||||
od_system_server_complete_stop(od_system_server_t *server)
|
||||
|
|
|
@ -7,6 +7,13 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
|
||||
void
|
||||
od_grac_shutdown_worker(void *arg);
|
||||
|
||||
|
|
|
@ -5,22 +5,9 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#include "c.h"
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
#include "module.h"
|
||||
|
||||
|
|
|
@ -5,25 +5,14 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#include <syslog.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
|
||||
typedef struct
|
||||
|
|
|
@ -6,16 +6,6 @@
|
|||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
|
||||
int
|
||||
|
|
|
@ -5,23 +5,8 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
|
||||
void
|
||||
|
|
|
@ -5,17 +5,9 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
|
||||
int
|
||||
|
|
|
@ -5,13 +5,6 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
|
|
|
@ -5,15 +5,6 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
|
|
|
@ -5,14 +5,6 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
|
|
|
@ -5,15 +5,6 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
|
|
|
@ -5,17 +5,7 @@
|
|||
* Scalable PostgreSQL connection pooler.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <machinarium.h>
|
||||
#include <kiwi.h>
|
||||
#include <odyssey.h>
|
||||
|
||||
static inline void
|
||||
|
|
Loading…
Reference in New Issue