Squid Web Cache master
Loading...
Searching...
No Matches
stub_fd.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 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#include "squid.h"
10#include "fd.h"
11#include "fde.h"
12
13#define STUB_API "fd.cc"
14#include "tests/STUB.h"
15
16fde *fde::Table = nullptr;
17
18int fdNFree(void) STUB_RETVAL(-1)
19void fd_open(int, unsigned int, const char *) STUB
20void fd_close(int) STUB
21void fd_bytes(int, int, IoDirection) STUB
22void fd_note(int, const char *) STUB
24
#define STUB
macro to stub a void function.
Definition STUB.h:34
#define STUB_RETVAL(x)
Definition STUB.h:42
Definition fde.h:52
static fde * Table
global table of FD and their state.
Definition fde.h:103
void fd_open(const int fd, unsigned int, const char *description)
Definition minimal.cc:15
void fd_note(int fd, const char *s)
Definition fd.cc:211
void fdAdjustReserved(void)
Definition fd.cc:283
void fd_bytes(const int fd, const int len, const IoDirection direction)
Definition fd.cc:221
IoDirection
distinguishes reading/importing I/O operations from their writing/exporting counterparts
Definition fd.h:15
int unsigned const char *STUB void fd_close(int) STUB void fd_bytes(int
Definition minimal.cc:21
int fdNFree(void) STUB_RETVAL(-1) void fd_open(int
Definition fd.cc:262