From owner-freebsd-hardware Fri Jan 12 8:12:36 2001 Delivered-To: freebsd-hardware@freebsd.org Received: from osiris.ipform.ru (osiris.ipform.ru [212.158.165.98]) by hub.freebsd.org (Postfix) with ESMTP id 4504C37B6A4 for ; Fri, 12 Jan 2001 08:12:13 -0800 (PST) Received: from wp2 (localhost.ipform.ru [127.0.0.1]) by osiris.ipform.ru (8.11.1/8.11.1) with SMTP id f0CGBxS63088 for ; Fri, 12 Jan 2001 19:12:00 +0300 (MSK) (envelope-from matrix@ipform.ru) Message-ID: <007001c07cb2$65357900$0c00a8c0@ipform.ru> From: "Artem Koutchine" To: Subject: Detecting CD by polling Date: Fri, 12 Jan 2001 19:11:58 +0300 Organization: IP Form MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello! I am writing a C programm which must detected a moment, when a user inserts a cd into thr drive. open() on /dev/acd0c is always successful read() of /dev/acd0c also always successful How do i check if a disk is inserted more or less easily? Please, reply to my email too, since i am not subsribed to hardware (i am flooded with other lists already). Artem To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message