s/qmail
4.3.20
Next generation secure email transport
Loading...
Searching...
No Matches
4.3
sqmail-4.3.20
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
#include "
qmail.h
"
6
7
char
tcpto_cleanbuf
[
BUFSIZE_LINE
];
8
9
void
tcpto_clean
()
/* running from queue/mess */
10
{
11
int
fd
;
12
int
i;
13
buffer
bo
;
14
15
fd
= open_write(
"../lock/tcpto"
);
16
if
(
fd
== -1)
return
;
17
buffer_init(&
bo
,buffer_unixwrite,
fd
,
tcpto_cleanbuf
,
sizeof
(
tcpto_cleanbuf
));
18
for
(i = 0; i <
sizeof
(
tcpto_cleanbuf
); ++i)
19
buffer_put(&
bo
,
""
,1);
20
buffer_flush(&
bo
);
/* if it fails, bummer */
21
close(
fd
);
22
}
bo
buffer bo
Definition:
columnt.c:13
fd
int fd
Definition:
qmail-badloadertypes.c:31
qmail.h
BUFSIZE_LINE
#define BUFSIZE_LINE
Definition:
qmail.h:8
tcpto.h
tcpto_cleanbuf
char tcpto_cleanbuf[BUFSIZE_LINE]
Definition:
tcpto_clean.c:7
tcpto_clean
void tcpto_clean()
Definition:
tcpto_clean.c:9
Generated on Thu Jan 16 2025 17:42:04 for s/qmail by
1.9.6