minimal.cc File Reference
#include "squid.h"
#include "comm.h"
#include "debug/Stream.h"
#include "fd.h"
Include dependency graph for minimal.cc:

Go to the source code of this file.

Functions

void fd_open (const int fd, unsigned int, const char *description)
 
void fd_close (const int fd)
 
void commSetCloseOnExec (int)
 

Function Documentation

◆ commSetCloseOnExec()

void commSetCloseOnExec ( int  fd)

On platforms where FD_CLOEXEC is defined, close the given descriptor during a function call from the exec(3) family. Otherwise, do nothing; the platform itself may close-on-exec by default (e.g., MS Win32 is said to do that at https://devblogs.microsoft.com/oldnewthing/20111216-00/?p=8873); other platforms are unsupported. Callers that want close-on-exec behavior must call this function on all platforms and are not responsible for the outcome on platforms without FD_CLOEXEC.

Definition at line 27 of file minimal.cc.

Referenced by Comm::TcpAcceptor::acceptInto(), file_open(), ipcCreate(), DiskThreadsDiskFile::openDone(), and DebugFile::reset().

◆ fd_close()

void fd_close ( const int  fd)

◆ fd_open()

 

Introduction

Documentation

Support

Miscellaneous