How to know cd tray position

From: Ken (kenji_matsumoto_at_mail.goo.ne.jp)
Date: 06/08/04


Date: 8 Jun 2004 02:10:40 -0700

Hi,

I want to know if cd tray is opened or closed in the state of
 not putting media on.
I've already checked ioctl(CDROM_DRIVE_STATUS) but
 it returns CDS_TRAY_OPEN even tray is closed.
Is there any solution for this?

Thanks,
Kenji