unlinkd.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9/* DEBUG: section 02 Unlink Daemon */
10
11#ifndef SQUID_UNLINKD_H_
12#define SQUID_UNLINKD_H_
13
14#if USE_UNLINKD
15bool unlinkdNeeded(void);
16void unlinkdInit(void);
17void unlinkdClose(void);
18void unlinkdUnlink(const char *);
19#else /* USE_UNLINKD */
20
21#if HAVE_UNISTD_H
22#include <unistd.h>
23#endif
24inline bool unlinkdNeeded(void) { return false; }
25inline void unlinkdInit(void) { return; }
26inline void unlinkdClose(void) { return; }
27inline void unlinkdUnlink(const char * path) { ::unlink(path); }
28#endif /* USE_UNLINKD */
29
30#endif /* SQUID_UNLINKD_H_ */
31
void unlinkdUnlink(const char *)
Definition: unlinkd.cc:37
bool unlinkdNeeded(void)
Definition: unlinkd.cc:178
void unlinkdClose(void)
Definition: unlinkd.cc:131
void unlinkdInit(void)
Definition: unlinkd.cc:191

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors