{
std::string devFrontend = str( boost::format(
"/dev/dvb/adapter%d/frontend%d") % adapter % device);
- int fd = open(devFrontend.c_str(), O_RDONLY | O_NONBLOCK);
- if (fd < 0)
- throw SystemException(errno);
- body().fd(fd);
+ int f = open(devFrontend.c_str(), O_RDONLY | O_NONBLOCK);
+ if (f < 0)
+ throwErrno();
+ fd(f);
}
prefix_ unsigned senf::DVBFrontendProtocol::available()
prefix_ void senf::DVBFrontendProtocol::signalStrength(int16_t *strength)
const
{
- if (::ioctl(body().fd(), FE_READ_SIGNAL_STRENGTH, strength) < 0)
- throw SystemException(errno);
+ if (::ioctl(fd(), FE_READ_SIGNAL_STRENGTH, strength) < 0)
+ throwErrno();
}
///////////////////////////////cc.e////////////////////////////////////////