15#include <linux/cdrom.h>
20#include <zypp-core/base/LogControl.h>
21#include <zypp-core/ExternalProgram.h>
28#define EJECT_TOOL_PATH "/bin/eject"
49 <<
"' (" << ::strerror(
errno ) <<
")" << std::endl;
54 <<
" failed (" << ::strerror(
errno ) <<
")" << std::endl;
57#if defined(EJECT_TOOL_PATH)
67 for(std::string out(
eject.receiveLine());
68 out.length(); out =
eject.receiveLine())
73 if(
eject.close() != 0)
75 WAR <<
"Eject of " <<
device_r <<
" failed." << std::endl;
82 MIL <<
"Eject of " <<
device_r <<
" successful." << std::endl;
90 WAR <<
"Unable to open '" <<
device_r <<
"' (" << ::strerror(
errno ) <<
")" << std::endl;
96 WAR <<
"Close tray " <<
device_r <<
" failed (" << ::strerror(
errno ) <<
")" << std::endl;
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Execute a program and give access to its io An object of this class encapsulates the execution of an ...