pipe.h
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 #ifndef SQUID_COMPAT_PIPE_H
10 #define SQUID_COMPAT_PIPE_H
11 
12 #if _SQUID_WINDOWS_ || _SQUID_MINGW_
13 inline int
14 pipe(int pipefd[2])
15 {
16  return _pipe(pipefd, 4096, _O_BINARY);
17 }
18 
19 #else /* _SQUID_WINDOWS_ || _SQUID_MINGW_ */
20 
21 #if HAVE_UNISTD_H
22 #include <unistd.h>
23 #endif
24 
25 #endif /* _SQUID_WINDOWS_ || _SQUID_MINGW_ */
26 
27 #endif /* SQUID_COMPAT_PIPE_H */

 

Introduction

Documentation

Support

Miscellaneous