s/qmail
4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
sqmail-4.2.29a
src
tcpto_clean.c
Go to the documentation of this file.
1
#include <unistd.h>
2
#include "
tcpto.h
"
3
#include "open.h"
4
#include "buffer.h"
5
6
char
tcpto_cleanbuf
[1024];
7
8
void
tcpto_clean
()
/* running from queue/mess */
9
{
10
int
fd
;
11
int
i;
12
buffer
bo
;
13
14
fd
= open_write(
"../lock/tcpto"
);
15
if
(
fd
== -1)
return
;
16
buffer_init(&
bo
,
write
,
fd
,
tcpto_cleanbuf
,
sizeof
(
tcpto_cleanbuf
));
17
for
(i = 0; i <
sizeof
(
tcpto_cleanbuf
); ++i)
18
buffer_put(&
bo
,
""
,1);
19
buffer_flush(&
bo
);
/* if it fails, bummer */
20
close(
fd
);
21
}
bo
buffer bo
Definition:
columnt.c:14
fd
int fd
Definition:
qmail-badloadertypes.c:30
tcpto.h
tcpto_cleanbuf
char tcpto_cleanbuf[1024]
Definition:
tcpto_clean.c:6
tcpto_clean
void tcpto_clean()
Definition:
tcpto_clean.c:8
write
void write()
Generated on Thu Feb 29 2024 20:44:53 for s/qmail by
1.9.6