Dobby  3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
Public Member Functions | List of all members
DobbyDevNullStream Class Reference

Stream that just redirects all the input to /dev/null. More...

#include <DobbyStream.h>

Inheritance diagram for DobbyDevNullStream:
Inheritance graph
[legend]
Collaboration diagram for DobbyDevNullStream:
Collaboration graph
[legend]

Public Member Functions

int dupWriteFD (int newFd, bool closeExec) const override
 Returns a dup'd file descriptor for the write side of the stream. More...
 

Detailed Description

Stream that just redirects all the input to /dev/null.

This simply returns the fd for /dev/null in the dupWriteFD call.

Member Function Documentation

◆ dupWriteFD()

int DobbyDevNullStream::dupWriteFD ( int  newFd,
bool  closeExec 
) const
overridevirtual

Returns a dup'd file descriptor for the write side of the stream.

If the file descriptor newfd was previously open, it is silently closed before being reused. If newFd is -1 then the lowest-numbered unused file descriptor number is used.

Parameters
[in]newFdThe number to give the new file descriptor.
[in]closeExecIf true the O_CLOEXEC flag is set on the new fd
Returns
the new file descriptor, on error -1.

Implements IDobbyStream.


The documentation for this class was generated from the following files: