Logo Search packages:      
Sourcecode: k9copy version File versions  Download package

void K3bDevice::Device::close (  )  const

Close the files descriptor.

See also:
open()

Definition at line 1569 of file k3bdevice.cpp.

Referenced by discSize(), diskInfo(), getDataMode(), getIndex(), indexScan(), init(), isEmpty(), open(), readCdText(), readRawToc(), and readToc().

{
#ifdef Q_OS_FREEBSD
  if( d->cam ) {
    cam_close_device(d->cam);
    d->cam = 0;
  }
#endif
#ifdef Q_OS_LINUX
  if( d->deviceFd != -1 ) {
    ::close( d->deviceFd );
    d->deviceFd = -1;
  }
#endif
}


Generated by  Doxygen 1.6.0   Back to index