REORG: include: move signal.h to haproxy/signal{,-t}.h

No change was necessary. Include from wdt.c was dropped since unneeded.
This commit is contained in:
Willy Tarreau 2020-06-04 17:37:26 +02:00
parent fc77454aff
commit 3727a8a083
18 changed files with 22 additions and 25 deletions

View File

@ -15,7 +15,7 @@
#define _HAPROXY_MWORKER_T_H_ #define _HAPROXY_MWORKER_T_H_
#include <haproxy/list.h> #include <haproxy/list.h>
#include <types/signal.h> #include <haproxy/signal-t.h>
/* options for mworker_proc */ /* options for mworker_proc */

View File

@ -15,7 +15,7 @@
#define _HAPROXY_MWORKER_H_ #define _HAPROXY_MWORKER_H_
#include <haproxy/mworker-t.h> #include <haproxy/mworker-t.h>
#include <types/signal.h> #include <haproxy/signal-t.h>
void mworker_proc_list_to_env(); void mworker_proc_list_to_env();
void mworker_env_to_proc_list(); void mworker_env_to_proc_list();

View File

@ -1,5 +1,5 @@
/* /*
* include/types/signal.h * include/haproxy/signal-t.h
* Asynchronous signal delivery functions descriptors. * Asynchronous signal delivery functions descriptors.
* *
* Copyright 2000-2010 Willy Tarreau <w@1wt.eu> * Copyright 2000-2010 Willy Tarreau <w@1wt.eu>
@ -11,9 +11,8 @@
* *
*/ */
#ifndef _TYPES_SIGNAL_H #ifndef _HAPROXY_SIGNAL_T_H
#define _TYPES_SIGNAL_H #define _HAPROXY_SIGNAL_T_H
#include <signal.h> #include <signal.h>
#include <haproxy/api-t.h> #include <haproxy/api-t.h>
@ -58,7 +57,7 @@ struct signal_descriptor {
struct list handlers; /* sig_handler */ struct list handlers; /* sig_handler */
}; };
#endif /* _TYPES_SIGNAL_H */ #endif /* _HAPROXY_SIGNAL_T_H */
/* /*
* Local variables: * Local variables:

View File

@ -1,5 +1,5 @@
/* /*
* include/proto/signal.h * include/haproxy/signal.h
* Asynchronous signal delivery functions. * Asynchronous signal delivery functions.
* *
* Copyright 2000-2010 Willy Tarreau <w@1wt.eu> * Copyright 2000-2010 Willy Tarreau <w@1wt.eu>
@ -12,10 +12,11 @@
*/ */
#include <signal.h> #include <signal.h>
#include <haproxy/thread.h>
#include <types/signal.h> #include <haproxy/api.h>
#include <haproxy/signal-t.h>
#include <haproxy/task-t.h> #include <haproxy/task-t.h>
#include <haproxy/thread.h>
extern int signal_queue_len; extern int signal_queue_len;
extern struct signal_descriptor signal_state[]; extern struct signal_descriptor signal_state[];

View File

@ -45,6 +45,7 @@
#include <haproxy/http_htx.h> #include <haproxy/http_htx.h>
#include <haproxy/h1.h> #include <haproxy/h1.h>
#include <haproxy/htx.h> #include <haproxy/htx.h>
#include <haproxy/signal.h>
#include <haproxy/task.h> #include <haproxy/task.h>
#include <haproxy/vars.h> #include <haproxy/vars.h>
@ -63,7 +64,6 @@
#include <haproxy/protocol.h> #include <haproxy/protocol.h>
#include <proto/proxy.h> #include <proto/proxy.h>
#include <proto/server.h> #include <proto/server.h>
#include <proto/signal.h>
#include <proto/stream_interface.h> #include <proto/stream_interface.h>
#include <proto/log.h> #include <proto/log.h>
#include <haproxy/proto_udp.h> #include <haproxy/proto_udp.h>

View File

@ -30,7 +30,6 @@
#include <haproxy/tools.h> #include <haproxy/tools.h>
#include <haproxy/global.h> #include <haproxy/global.h>
#include <types/signal.h>
#include <proto/cli.h> #include <proto/cli.h>
#include <haproxy/fd.h> #include <haproxy/fd.h>

View File

@ -16,6 +16,7 @@
#include <haproxy/api.h> #include <haproxy/api.h>
#include <haproxy/global.h> #include <haproxy/global.h>
#include <haproxy/signal.h>
#include <haproxy/thread-t.h> #include <haproxy/thread-t.h>
#include <haproxy/tools.h> #include <haproxy/tools.h>
#include <haproxy/ticks.h> #include <haproxy/ticks.h>
@ -23,7 +24,6 @@
#include <haproxy/activity.h> #include <haproxy/activity.h>
#include <haproxy/fd.h> #include <haproxy/fd.h>
#include <proto/signal.h>
/* private data */ /* private data */

View File

@ -19,6 +19,7 @@
#include <syslog.h> #include <syslog.h>
#include <haproxy/api.h> #include <haproxy/api.h>
#include <haproxy/signal.h>
#include <haproxy/thread-t.h> #include <haproxy/thread-t.h>
#include <haproxy/ticks.h> #include <haproxy/ticks.h>
#include <haproxy/time.h> #include <haproxy/time.h>
@ -28,7 +29,6 @@
#include <haproxy/activity.h> #include <haproxy/activity.h>
#include <haproxy/fd.h> #include <haproxy/fd.h>
#include <proto/log.h> #include <proto/log.h>
#include <proto/signal.h>
/* /*
* Private data: * Private data:

View File

@ -18,6 +18,7 @@
#include <sys/time.h> #include <sys/time.h>
#include <haproxy/api.h> #include <haproxy/api.h>
#include <haproxy/signal.h>
#include <haproxy/thread-t.h> #include <haproxy/thread-t.h>
#include <haproxy/ticks.h> #include <haproxy/ticks.h>
#include <haproxy/time.h> #include <haproxy/time.h>
@ -26,7 +27,6 @@
#include <haproxy/activity.h> #include <haproxy/activity.h>
#include <haproxy/fd.h> #include <haproxy/fd.h>
#include <proto/signal.h>
/* private data */ /* private data */

View File

@ -18,6 +18,7 @@
#include <haproxy/frontend.h> #include <haproxy/frontend.h>
#include <haproxy/http_rules.h> #include <haproxy/http_rules.h>
#include <haproxy/sample.h> #include <haproxy/sample.h>
#include <haproxy/signal.h>
#include <haproxy/thread.h> #include <haproxy/thread.h>
#include <haproxy/pool.h> #include <haproxy/pool.h>
#include <haproxy/task.h> #include <haproxy/task.h>
@ -37,7 +38,6 @@
#include <proto/http_ana.h> #include <proto/http_ana.h>
#include <proto/proxy.h> #include <proto/proxy.h>
#include <proto/session.h> #include <proto/session.h>
#include <proto/signal.h>
#include <proto/spoe.h> #include <proto/spoe.h>
#include <proto/stream.h> #include <proto/stream.h>
#include <proto/stream_interface.h> #include <proto/stream_interface.h>

View File

@ -100,6 +100,7 @@
#include <haproxy/pattern.h> #include <haproxy/pattern.h>
#include <haproxy/sample.h> #include <haproxy/sample.h>
#include <haproxy/regex.h> #include <haproxy/regex.h>
#include <haproxy/signal.h>
#include <haproxy/tools.h> #include <haproxy/tools.h>
#include <haproxy/time.h> #include <haproxy/time.h>
#include <common/uri_auth.h> #include <common/uri_auth.h>
@ -132,7 +133,6 @@
#include <proto/server.h> #include <proto/server.h>
#include <proto/session.h> #include <proto/session.h>
#include <proto/stream.h> #include <proto/stream.h>
#include <proto/signal.h>
#include <proto/ssl_sock.h> #include <proto/ssl_sock.h>
/* array of init calls for older platforms */ /* array of init calls for older platforms */

View File

@ -22,18 +22,17 @@
#include <haproxy/list.h> #include <haproxy/list.h>
#include <haproxy/listener.h> #include <haproxy/listener.h>
#include <haproxy/mworker.h> #include <haproxy/mworker.h>
#include <haproxy/signal.h>
#include <haproxy/version.h> #include <haproxy/version.h>
#include <types/cli.h> #include <types/cli.h>
#include <haproxy/global.h> #include <haproxy/global.h>
#include <types/peers.h> #include <types/peers.h>
#include <types/signal.h>
#include <proto/cli.h> #include <proto/cli.h>
#include <haproxy/fd.h> #include <haproxy/fd.h>
#include <proto/log.h> #include <proto/log.h>
#include <proto/proxy.h> #include <proto/proxy.h>
#include <proto/signal.h>
#include <proto/stream.h> #include <proto/stream.h>
#include <proto/stream_interface.h> #include <proto/stream_interface.h>

View File

@ -14,8 +14,8 @@
#include <haproxy/namespace.h> #include <haproxy/namespace.h>
#include <haproxy/hash.h> #include <haproxy/hash.h>
#include <haproxy/errors.h> #include <haproxy/errors.h>
#include <haproxy/signal.h>
#include <proto/log.h> #include <proto/log.h>
#include <proto/signal.h>
/* Opens the namespace <ns_name> and returns the FD or -1 in case of error /* Opens the namespace <ns_name> and returns the FD or -1 in case of error
* (check errno). * (check errno).

View File

@ -26,6 +26,7 @@
#include <haproxy/net_helper.h> #include <haproxy/net_helper.h>
#include <haproxy/obj_type-t.h> #include <haproxy/obj_type-t.h>
#include <haproxy/task.h> #include <haproxy/task.h>
#include <haproxy/signal.h>
#include <haproxy/time.h> #include <haproxy/time.h>
#include <haproxy/tools.h> #include <haproxy/tools.h>
#include <haproxy/thread.h> #include <haproxy/thread.h>
@ -43,7 +44,6 @@
#include <proto/proxy.h> #include <proto/proxy.h>
#include <proto/session.h> #include <proto/session.h>
#include <proto/stream.h> #include <proto/stream.h>
#include <proto/signal.h>
#include <proto/stick_table.h> #include <proto/stick_table.h>
#include <proto/stream_interface.h> #include <proto/stream_interface.h>

View File

@ -45,7 +45,7 @@
#include <proto/http_ana.h> #include <proto/http_ana.h>
#include <proto/proxy.h> #include <proto/proxy.h>
#include <proto/server.h> #include <proto/server.h>
#include <proto/signal.h> #include <haproxy/signal.h>
#include <proto/stream.h> #include <proto/stream.h>
#include <proto/stream_interface.h> #include <proto/stream_interface.h>

View File

@ -14,7 +14,7 @@
#include <string.h> #include <string.h>
#include <haproxy/task.h> #include <haproxy/task.h>
#include <proto/signal.h> #include <haproxy/signal.h>
#include <proto/log.h> #include <proto/log.h>
/* Principle : we keep an in-order list of the first occurrence of all received /* Principle : we keep an in-order list of the first occurrence of all received

View File

@ -26,7 +26,7 @@
#include <proto/cli.h> #include <proto/cli.h>
#include <proto/log.h> #include <proto/log.h>
#include <haproxy/ring.h> #include <haproxy/ring.h>
#include <proto/signal.h> #include <haproxy/signal.h>
#include <haproxy/sink.h> #include <haproxy/sink.h>
#include <proto/stream_interface.h> #include <proto/stream_interface.h>

View File

@ -17,7 +17,6 @@
#include <haproxy/global.h> #include <haproxy/global.h>
#include <haproxy/thread.h> #include <haproxy/thread.h>
#include <haproxy/tools.h> #include <haproxy/tools.h>
#include <types/signal.h>
#include <proto/log.h> #include <proto/log.h>