From owner-freebsd-questions@FreeBSD.ORG Fri Mar 27 18:59:08 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 3BC53106566B for ; Fri, 27 Mar 2009 18:59:08 +0000 (UTC) (envelope-from tobias.rehbein@web.de) Received: from fmmailgate01.web.de (fmmailgate01.web.de [217.72.192.221]) by mx1.freebsd.org (Postfix) with ESMTP id B2C908FC17 for ; Fri, 27 Mar 2009 18:59:07 +0000 (UTC) (envelope-from tobias.rehbein@web.de) Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate01.web.de (Postfix) with ESMTP id 4109AFF12377; Fri, 27 Mar 2009 19:59:06 +0100 (CET) Received: from [95.88.231.222] (helo=sushi.pseudo.local) by smtp05.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #277) id 1LnHGj-0001F9-00; Fri, 27 Mar 2009 19:59:06 +0100 Received: from sushi.pseudo.local (localhost [127.0.0.1]) by sushi.pseudo.local (8.14.3/8.14.3) with ESMTP id n2RIxC9o004965; Fri, 27 Mar 2009 19:59:12 +0100 (CET) (envelope-from tobi@sushi.pseudo.local) Received: (from tobi@localhost) by sushi.pseudo.local (8.14.3/8.14.3/Submit) id n2RIxCpm004933; Fri, 27 Mar 2009 19:59:12 +0100 (CET) (envelope-from tobi) Date: Fri, 27 Mar 2009 19:59:12 +0100 From: Tobias Rehbein To: Bruce Cran Message-ID: <20090327185912.GA77908@sushi.pseudo.local> Mail-Followup-To: Bruce Cran , freebsd-questions@freebsd.org References: <20090326212045.GB3134@sushi.pseudo.local> <20090326221128.3a6d648f@gluon.draftnet> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline In-Reply-To: <20090326221128.3a6d648f@gluon.draftnet> User-Agent: Mutt/1.4.2.3i Sender: tobias.rehbein@web.de X-Sender: tobias.rehbein@web.de X-Provags-ID: V01U2FsdGVkX1+5Wc3C74l49/xefNUnTXPqAQsBtzGf5J0aLHK0 YH1slW8FKP7os8T6QHq+vOtYGK1W0N2x0kGaUZLABuN/k/vx5A ofGZ2k3GyIZEvvxymYEg== Cc: freebsd-questions@freebsd.org Subject: Re: [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: Fri, 27 Mar 2009 18:59:08 -0000 --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am Thu, Mar 26, 2009 at 10:11:28PM +0000 schrieb Bruce Cran: >=20 > sysopen certainly works on FreeBSD: >=20 > > perl > use POSIX; > sysopen(CD,"/dev/acd0", O_RDONLY|O_NONBLOCK) || perror("sysopen") >=20 > and before I fixed the permissions: >=20 > > perl > use POSIX; > sysopen(CD,"/dev/acd0", O_RDONLY|O_NONBLOCK) || perror("sysopen") > sysopen: Permission denied Hm. Tried this and got ineresting results: > use POSIX; > sysopen(CD,"/dev/cd0", O_RDONLY|O_NONBLOCK) || perror("sysopen") works fine, but > use POSIX; > sysopen(CD,"/dev/cd0", O_RDONLY|O_NONBLOCK) > print "$!" prints "No such file or directory" Well, I think I'll have to accept that sysopen works but $! does not... Aft= er all sysopen is more important to me ;) Regards Tobias --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAknNIf8ACgkQ6LYxOE8q4xTxbgCeMivgVE0JsYcPBwixqH8xzVMY 2tYAoMOd5RfMpP1zVJThVkH6vc7uICNT =SU+y -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--