]>
Commit | Line | Data |
---|---|---|
b6b42084 | 1 | /* |
bf95c10a | 2 | * Copyright (C) 1996-2022 The Squid Software Foundation and contributors |
b6b42084 | 3 | * |
bbc27441 AJ |
4 | * Squid software is distributed under GPLv2+ license and includes |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
b6b42084 FC |
7 | */ |
8 | ||
bbc27441 AJ |
9 | /* DEBUG: section 02 Unlink Daemon */ |
10 | ||
11 | #ifndef SQUID_UNLINKD_H_ | |
12 | #define SQUID_UNLINKD_H_ | |
13 | ||
b6b42084 | 14 | #if USE_UNLINKD |
8a648e8d FC |
15 | bool unlinkdNeeded(void); |
16 | void unlinkdInit(void); | |
17 | void unlinkdClose(void); | |
18 | void unlinkdUnlink(const char *); | |
b6b42084 FC |
19 | #else /* USE_UNLINKD */ |
20 | ||
21 | #if HAVE_UNISTD_H | |
22 | #include <unistd.h> | |
23 | #endif | |
24 | inline bool unlinkdNeeded(void) { return false; } | |
25 | inline void unlinkdInit(void) { return; } | |
26 | inline void unlinkdClose(void) { return; } | |
27 | inline void unlinkdUnlink(const char * path) { ::unlink(path); } | |
28 | #endif /* USE_UNLINKD */ | |
29 | ||
30 | #endif /* SQUID_UNLINKD_H_ */ | |
f53969cc | 31 |