s/qmail
4.3.20
Next generation secure email transport
Loading...
Searching...
No Matches
4.3
sqmail-4.3.20
src
hostname.c
Go to the documentation of this file.
1
#include <unistd.h>
2
#include "buffer.h"
3
#include "
exit.h
"
4
5
char
host
[256];
6
7
int
main
()
8
{
9
host
[0] = 0;
/* sigh */
10
gethostname(
host
,
sizeof
(
host
));
11
host
[
sizeof
(
host
) - 1] = 0;
12
buffer_puts(buffer_1small,
host
);
13
buffer_puts(buffer_1small,
"\n"
);
14
buffer_flush(buffer_1small);
15
_exit
(0);
16
}
exit.h
_exit
void _exit(int)
host
char host[256]
Definition:
hostname.c:5
main
int main()
Definition:
hostname.c:7
Generated on Thu Jan 16 2025 17:42:04 for s/qmail by
1.9.6