Cross Reference: dup2-array.h
xref
: /
dovecot
/
src
/
master
/
dup2-array.h
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
c25356d5978632df6203437e1953bcb29e0c736f
Timo Sirainen
#
ifndef
DUP2_ARRAY_H
c25356d5978632df6203437e1953bcb29e0c736f
Timo Sirainen
#
define
DUP2_ARRAY_H
cf894235b6b60e7f4ed8c523c88c921baa0d0395
Timo Sirainen
cf894235b6b60e7f4ed8c523c88c921baa0d0395
Timo Sirainen
struct
dup2
{
cf894235b6b60e7f4ed8c523c88c921baa0d0395
Timo Sirainen
int
fd_src
,
fd_dest
;
cf894235b6b60e7f4ed8c523c88c921baa0d0395
Timo Sirainen
};
cf894235b6b60e7f4ed8c523c88c921baa0d0395
Timo Sirainen
ARRAY_DEFINE_TYPE
(
dup2
,
struct
dup2
);
cf894235b6b60e7f4ed8c523c88c921baa0d0395
Timo Sirainen
cf894235b6b60e7f4ed8c523c88c921baa0d0395
Timo Sirainen
void
dup2_append
(
ARRAY_TYPE
(
dup2
) *
dups
,
int
fd_src
,
int
fd_dest
);
cf894235b6b60e7f4ed8c523c88c921baa0d0395
Timo Sirainen
cf894235b6b60e7f4ed8c523c88c921baa0d0395
Timo Sirainen
int
dup2_array
(
ARRAY_TYPE
(
dup2
) *
dups
);
cf894235b6b60e7f4ed8c523c88c921baa0d0395
Timo Sirainen
cf894235b6b60e7f4ed8c523c88c921baa0d0395
Timo Sirainen
#
endif