From owner-freebsd-questions@FreeBSD.ORG Thu Mar 26 21:53:10 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB6AB1065672 for ; Thu, 26 Mar 2009 21:53:10 +0000 (UTC) (envelope-from tobias.rehbein@web.de) Received: from fmmailgate02.web.de (fmmailgate02.web.de [217.72.192.227]) by mx1.freebsd.org (Postfix) with ESMTP id 355C08FC20 for ; Thu, 26 Mar 2009 21:53:10 +0000 (UTC) (envelope-from tobias.rehbein@web.de) Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id A42CAFC1FA1E for ; Thu, 26 Mar 2009 22:21:09 +0100 (CET) Received: from [95.88.231.111] (helo=sushi.pseudo.local) by smtp05.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #277) id 1Lmx0e-0002XM-00 for freebsd-questions@freebsd.org; Thu, 26 Mar 2009 22:21:08 +0100 Received: from sushi.pseudo.local (localhost [127.0.0.1]) by sushi.pseudo.local (8.14.3/8.14.3) with ESMTP id n2QLKjDN005981 for ; Thu, 26 Mar 2009 22:20:45 +0100 (CET) (envelope-from tobi@sushi.pseudo.local) Received: (from tobi@localhost) by sushi.pseudo.local (8.14.3/8.14.3/Submit) id n2QLKjG0005980 for freebsd-questions@freebsd.org; Thu, 26 Mar 2009 22:20:45 +0100 (CET) (envelope-from tobi) Date: Thu, 26 Mar 2009 22:20:45 +0100 From: Tobias Rehbein To: freebsd-questions@freebsd.org Message-ID: <20090326212045.GB3134@sushi.pseudo.local> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zx4FCpZtqtKETZ7O" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Sender: tobias.rehbein@web.de X-Sender: tobias.rehbein@web.de X-Provags-ID: V01U2FsdGVkX1/6ng85shcWikRshng69kFGRnAslw9Dfe+SYRF6 BOefLR7LTmrqJMVh9uwLxGCxxezoseqJvKE0v9ofxt/MWgeA2Y ArWUCejkuPdBHj3B+syA== Subject: [perl] sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2009 21:53:11 -0000 --zx4FCpZtqtKETZ7O Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all. I have a perl script which seems to work fine under Linux but fails on Free= BSD. The Problem is the line: sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) After this line the following evaluates to true: $! eq "No such file or directory." /dev/cd0 is readable and writable for me. I rebooted multiple times and tri= ed with and without atapicam.=20 sysopen(CD, "/dev/acd0", O_RDONLY | O_NONBLOCK) fails either. So what's up here? Is sysopen a linuxism? Any help is greatly appreciated. Regards Tobias --=20 Tobias Rehbein PGP key: 4F2AE314 server: keys.gnupg.net fingerprint: ECDA F300 1B6E 9B87 8524 8663 E8B6 3138 4F2A E314 --zx4FCpZtqtKETZ7O Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAknL8a0ACgkQ6LYxOE8q4xSqIACgv6j2NXnUG63dprhTK/vnuenm qdgAnA+CN/PVph3N/b/LscYfPibxe48x =KpC4 -----END PGP SIGNATURE----- --zx4FCpZtqtKETZ7O--