Postfix3.3.1
総合概要
データ構造
ファイル
ファイル一覧
大域各種
postfix-3.3.1
src
master
master_flow.c
[詳解]
1
/* System library. */
2
3
#include <
sys_defs.h
>
4
#include <unistd.h>
5
#include <stdlib.h>
6
7
/* Utility library. */
8
9
#include <
msg.h
>
10
#include <
iostuff.h
>
11
12
/* Application-specific. */
13
14
#include <
master.h
>
15
#include <
master_proto.h
>
16
17
int
master_flow_pipe
[2];
18
19
/* master_flow_init - initialize the flow control channel */
20
21
void
master_flow_init
(
void
)
22
{
23
const
char
*myname =
"master_flow_init"
;
24
25
if
(pipe(
master_flow_pipe
) < 0)
26
msg_fatal
(
"%s: pipe: %m"
, myname);
27
28
non_blocking
(
master_flow_pipe
[0],
NON_BLOCKING
);
29
non_blocking
(
master_flow_pipe
[1],
NON_BLOCKING
);
30
31
close_on_exec
(
master_flow_pipe
[0],
CLOSE_ON_EXEC
);
32
close_on_exec
(
master_flow_pipe
[1],
CLOSE_ON_EXEC
);
33
}
master_proto.h
iostuff.h
master.h
master_flow_pipe
int master_flow_pipe[2]
Definition:
master_flow.c:17
msg.h
sys_defs.h
msg_fatal
NORETURN msg_fatal(const char *fmt,...)
Definition:
msg.c:249
NON_BLOCKING
#define NON_BLOCKING
Definition:
iostuff.h:49
non_blocking
int non_blocking(int, int)
Definition:
non_blocking.c:55
master_flow_init
void master_flow_init(void)
Definition:
master_flow.c:21
CLOSE_ON_EXEC
#define CLOSE_ON_EXEC
Definition:
iostuff.h:51
close_on_exec
int close_on_exec(int fd, int on)
Definition:
close_on_exec.c:49
2018年11月10日(土) 18時59分41秒作成 - Postfix3.3.1 / 構成:
1.8.9.1