CharacterDevice.cpp 348 B

1234567891011121314151617181920
  1. #include "CharacterDevice.h"
  2. #include <LibC/errno_numbers.h>
  3. CharacterDevice::~CharacterDevice()
  4. {
  5. }
  6. RetainPtr<FileDescriptor> CharacterDevice::open(int& error, int options)
  7. {
  8. return VFS::the().open(*this, error, options);
  9. }
  10. void CharacterDevice::close()
  11. {
  12. }
  13. int CharacterDevice::ioctl(Process&, unsigned, unsigned)
  14. {
  15. return -ENOTTY;
  16. }