Go to the documentation of this file.
50#define ACCESS_LOCAL_DIR "/var/lib/httpd/htdocs/local/rredir"
51#define REDIRECT_TO_URL "http://www.hacom.nl/local/rredir"
52#define BUFFER_SIZE (16*1024)
62 if (setvbuf(stdout,
nullptr, _IOLBF, 0) != 0)
72 if (strchr(buf,
'\n') ==
NULL) {
80 if ((s = strchr(buf,
' ')) ==
NULL)
85 if ((s = strrchr(buf,
'/')) ==
NULL)
91 if (*s ==
'.' || *s ==
'\0')
95 for (t = s; *t !=
'\0'; t++)
96 *t = (
char) tolower((
int) *t);
99 if (access(s, R_OK) == 0) {
Introduction
Documentation
Support
Miscellaneous
Web Site Translations
Mirrors