stub_fd.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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 
16 fde *fde::Table = nullptr;
17 
18 int fdNFree(void) STUB_RETVAL(-1)
19 void fd_open(int, unsigned int, const char *) STUB
20 void fd_close(int) STUB
21 void fd_bytes(int, int, IoDirection) STUB
22 void fd_note(int, const char *) STUB
24 
void fd_bytes(const int fd, const int len, const IoDirection direction)
Definition: fd.cc:226
void fd_note(int fd, const char *s)
Definition: fd.cc:216
int unsigned const char *STUB void fd_close(int) STUB void fd_bytes(int
Definition: minimal.cc:21
#define STUB_RETVAL(x)
Definition: STUB.h:42
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
Definition: fde.h:51
IoDirection
distinguishes reading/importing I/O operations from their writing/exporting counterparts
Definition: fd.h:15
#define STUB
macro to stub a void function.
Definition: STUB.h:34
void fdAdjustReserved(void)
Definition: fd.cc:288
int fdNFree(void) STUB_RETVAL(-1) void fd_open(int
Definition: fd.cc:267

 

Introduction

Documentation

Support

Miscellaneous