bool setClientSNI(SSL *ssl, const char *fqdn);
} //namespace Ssl
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
#if defined(__cplusplus)
#endif /* __cplusplus */
-#endif /* _SQUID_MSWIN_ */
+#endif /* _SQUID_WINDOWS_ */
#endif /* SQUID_SSL_SUPPORT_H */
* The following is a workaround for create store directories sequentially
* when running on native Windows port.
*/
-#if !_SQUID_MSWIN_
+#if !_SQUID_WINDOWS_
if (fork())
return;
aStore.create();
-#if !_SQUID_MSWIN_
+#if !_SQUID_WINDOWS_
exit(0);
{
swapDir->create();
-#if !_SQUID_MSWIN_
+#if !_SQUID_WINDOWS_
pid_t pid;
#endif
#endif /* PRINT_STACK_TRACE */
-#if SA_RESETHAND == 0 && !_SQUID_MSWIN_
+#if SA_RESETHAND == 0 && !_SQUID_WINDOWS_
signal(SIGSEGV, SIG_DFL);
signal(SIGBUS, SIG_DFL);
void
sig_child(int sig)
{
-#if !_SQUID_MSWIN_
+#if !_SQUID_WINDOWS_
#if _SQUID_NEXT_
union wait status;
#else
debugs(50, DBG_CRITICAL, "sigaction: sig=" << sig << " func=" << func << ": " << xstrerror());
#else
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
/*
On Windows, only SIGINT, SIGILL, SIGFPE, SIGTERM, SIGBREAK, SIGABRT and SIGSEGV signals
are supported, so we must care of don't call signal() for other value.
void
unlinkdClose(void)
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
{
if (unlinkd_wfd > -1) {
#if USE_POLL && _SQUID_OSF_
/* pipes and poll() don't get along on DUNIX -DW */
IPC_STREAM,
-#elif _SQUID_MSWIN_
+#elif _SQUID_WINDOWS_
/* select() will fail on a pipe */
IPC_TCP_SOCKET,
#else
debugs(2, 1, "Unlinkd pipe opened on FD " << unlinkd_wfd);
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
debugs(2, 4, "Unlinkd handle: 0x" << std::hex << hIpc << std::dec << ", PID: " << pid);
#include "squid-old.h"
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
#if HAVE_WIN32_PSAPI
#include <psapi.h>
#endif
static int check_target_acl(const char *hostname, int port);
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
static int s_iInitCount = 0;
int Win32SockInit(void)
read_reply(int s, cachemgr_request * req)
{
char buf[4 * 1024];
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
int reply;
char *tmpfile = tempnam(NULL, "tmp0000");
parse_menu = 1;
if (fp == NULL) {
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
perror(tmpfile);
xfree(tmpfile);
#else
return 1;
}
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
while ((reply=recv(s, buf , sizeof(buf), 0)) > 0)
fwrite(buf, 1, reply, fp);
}
fclose(fp);
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
remove(tmpfile);
xfree(tmpfile);
cachemgr_request *req;
now = time(NULL);
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
Win32SockInit();
atexit(Win32SockCleanup);
else
return NULL;
-#if _SQUID_MSWIN_
+#if _SQUID_WINDOWS_
if (strlen(buf) == 0 || strlen(buf) == 4000)
#else