From owner-freebsd-questions@FreeBSD.ORG Thu Mar 26 21:56:33 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 84ACD1065670 for ; Thu, 26 Mar 2009 21:56:33 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 1A5AA8FC14 for ; Thu, 26 Mar 2009 21:56:32 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by ewy19 with SMTP id 19so757061ewy.43 for ; Thu, 26 Mar 2009 14:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=xfoKy7jUESJu/9L9x7ySP4kEjcuK8xZhzjDtLMjl2pk=; b=clcGWPMuR9Pk8FKNTKiRQ9CszY7ijogyBylGSl9PDCuGfWGjjVAFPFxOwVuk6HrqDO ZJa9/aPfNBMMgJCqJP30P79MeetazAnvqQNrVcAn95lMfqspx/DYpyswa6T2SZMu1MGg Cd+lutsMjDLq9I12O6jmEuc1z0BIqxZbtByaU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=OCNTxFEzzW1B8FrxOFSnd7Eo10sZ2Nu4kKA5W5xzmCfDUuz4EEpaOYtlmDlXxYIK76 BmsaNahy4w82hgsSWjB2pkjj4KH6UoZ6aga08Pq7HEXXWR0HG3DXmLXZLl4G3sWXXhc+ OSH1ZPFcvY17P+rACAhBmBViKCkJ8NeEhbSAw= MIME-Version: 1.0 Received: by 10.210.92.11 with SMTP id p11mr250526ebb.2.1238104591992; Thu, 26 Mar 2009 14:56:31 -0700 (PDT) In-Reply-To: <20090326212045.GB3134@sushi.pseudo.local> References: <20090326212045.GB3134@sushi.pseudo.local> Date: Thu, 26 Mar 2009 17:56:31 -0400 Message-ID: <4ad871310903261456g2924d8cai6569e4cd739c1c49@mail.gmail.com> From: Glen Barber To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Thu, 26 Mar 2009 21:56:33 -0000 On Thu, Mar 26, 2009 at 5:20 PM, Tobias Rehbein wro= te: > Hi all. > > I have a perl script which seems to work fine under Linux but fails on Fr= eeBSD. > The Problem is the line: > > =A0 =A0 =A0 =A0sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) > > After this line the following evaluates to true: > > =A0 =A0 =A0 =A0$! eq "No such file or directory." > I may be wrong, but shouldn't that be '/dev/acd0' ? > /dev/cd0 is readable and writable for me. I rebooted multiple times and t= ried > with and without atapicam. > > =A0 =A0 =A0 =A0sysopen(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 Glen Barber