Mercurial > dovecot > core-2.2
annotate src/lib/hostpid.h @ 22664:fea53c2725c0
director: Fix director_max_parallel_moves/kicks type
Should be uint, not time.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 09 Nov 2017 12:24:16 +0200 |
parents | a6b40687c0a4 |
children |
rev | line source |
---|---|
6410
e4eb71ae8e96
Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
1 #ifndef HOSTPID_H |
e4eb71ae8e96
Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
2 #define HOSTPID_H |
0 | 3 |
15829
a6b40687c0a4
Master looks up system hostdomain now and sends it to child processes via environment.
Timo Sirainen <tss@iki.fi>
parents:
15827
diff
changeset
|
4 /* These environments override the hostname/hostdomain if they're set. |
a6b40687c0a4
Master looks up system hostdomain now and sends it to child processes via environment.
Timo Sirainen <tss@iki.fi>
parents:
15827
diff
changeset
|
5 Master process normally sets these to child processes. */ |
a6b40687c0a4
Master looks up system hostdomain now and sends it to child processes via environment.
Timo Sirainen <tss@iki.fi>
parents:
15827
diff
changeset
|
6 #define MY_HOSTNAME_ENV "DOVECOT_HOSTNAME" |
a6b40687c0a4
Master looks up system hostdomain now and sends it to child processes via environment.
Timo Sirainen <tss@iki.fi>
parents:
15827
diff
changeset
|
7 #define MY_HOSTDOMAIN_ENV "DOVECOT_HOSTDOMAIN" |
a6b40687c0a4
Master looks up system hostdomain now and sends it to child processes via environment.
Timo Sirainen <tss@iki.fi>
parents:
15827
diff
changeset
|
8 |
0 | 9 extern const char *my_hostname; |
10 extern const char *my_pid; | |
11 | |
8596
2609eca99495
Added my_hostdomain() function which mbox code now uses instead of doing that internally.
Timo Sirainen <tss@iki.fi>
parents:
6410
diff
changeset
|
12 /* Initializes my_hostname and my_pid. */ |
0 | 13 void hostpid_init(void); |
15827 | 14 void hostpid_deinit(void); |
0 | 15 |
8596
2609eca99495
Added my_hostdomain() function which mbox code now uses instead of doing that internally.
Timo Sirainen <tss@iki.fi>
parents:
6410
diff
changeset
|
16 /* Returns the current host+domain, or if it fails fallback to returning |
2609eca99495
Added my_hostdomain() function which mbox code now uses instead of doing that internally.
Timo Sirainen <tss@iki.fi>
parents:
6410
diff
changeset
|
17 hostname. */ |
2609eca99495
Added my_hostdomain() function which mbox code now uses instead of doing that internally.
Timo Sirainen <tss@iki.fi>
parents:
6410
diff
changeset
|
18 const char *my_hostdomain(void); |
2609eca99495
Added my_hostdomain() function which mbox code now uses instead of doing that internally.
Timo Sirainen <tss@iki.fi>
parents:
6410
diff
changeset
|
19 |
0 | 20 #endif |
21 |