1#ifndef ZYPP_BASE_LINUXHELPERS_P_H_DEFINED
2#define ZYPP_BASE_LINUXHELPERS_P_H_DEFINED
6#include <zypp-core/zyppng/core/ByteArray>
17 return std::string(
strBuf.data() );
34 template<
typename Fun,
typename RestartCb,
typename... Args >
49 template<
typename Fun,
typename... Args >
51 return eintrSafeCallEx( std::forward<Fun>(function), [](){}, std::forward<Args>(args)... );
75 static std::optional<Pipe>
create (
int flags = 0 );
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
std::enable_if< std::is_member_pointer< typenamestd::decay< Functor >::type >::value, typenamestd::result_of< Functor &&(Args &&...)>::type >::typ invoke)(Functor &&f, Args &&... args)
bool blockAllSignalsForCurrentThread()
bool trySocketConnection(int &sockFD, const SockAddr &addr, uint64_t timeout)
auto eintrSafeCallEx(const Fun &function, const RestartCb &restartCb, Args &&... args)
bool blockSignalsForCurrentThread(const std::vector< int > &sigs)
auto eintrSafeCall(Fun &&function, Args &&... args)
int64_t bytesAvailableOnFD(int fd)
void renumberFd(int origfd, int newfd)
std::string strerr_cxx(const int err=-1)
AutoDispose<int> calling ::close
static std::optional< Pipe > create(int flags=0)