From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <40707a306f2cb1caf97b21f639f8a9f5@brasstown.quanstro.net> References: <40707a306f2cb1caf97b21f639f8a9f5@brasstown.quanstro.net> Date: Sun, 23 Mar 2014 20:47:59 +0100 Message-ID: From: Gorka Guardiola To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] usb/serial control open Topicbox-Message-UUID: ce98995a-ead8-11e9-9d60-3106f5b1d025 > > so if i do this > > echo l7>/dev/eiaU6/eiaUctl > cat /dev/eiaU6/eiaUctl > > that's two opens, isn't it? then isn't l reset to 8 by the second > open? > It has been a while and I don=B4t have the code at hand now, but once it is at a known state, it shouldn=B4t set it again, that is probably a bug= . It should be something like: if(!setonce){ setonce =3D 1; serialctl(p, "l8 i1"); /* default line parameters */ } G.