Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756907AbYC0LXV (ORCPT ); Thu, 27 Mar 2008 07:23:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753701AbYC0LXL (ORCPT ); Thu, 27 Mar 2008 07:23:11 -0400 Received: from mail.phnxsoft.com ([195.227.45.4]:4438 "EHLO posthamster.phnxsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752905AbYC0LXL (ORCPT ); Thu, 27 Mar 2008 07:23:11 -0400 Message-ID: <47EB839C.8070605@imap.cc> Date: Thu, 27 Mar 2008 12:23:08 +0100 From: Tilman Schmidt User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.11) Gecko/20071128 SeaMonkey/1.1.7 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: LKML , linux-serial@vger.kernel.org Subject: struct termios/termios2 rationale and usage X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3F1510D7D1A7C5B57634EB22" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1870 Lines: 49 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3F1510D7D1A7C5B57634EB22 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable I'm currently trying to conceive of a way to portably use the "new" (relatively) way of setting serial line bit rates via BOTHER and c_ispeed/c_ospeed from a userspace utility. (ldattach(1), to be included in the next release of util_linux_ng, in case you're interested.) I notice that most architectures have introduced new ioctls (TCGETS2 etc.) and struct termios2 for that, while some (eg. powerpc) have integrated the c_ispeed/c_ospeed fields in struct termios and supposedly get/set them via the old "non-2" ioctls. What's the rationale behind this? What is the recommended usage for a Linux userspace program wanting to use the BOTHER speed setting mechanism on a variety of architectures? Thanks, Tilman --=20 Tilman Schmidt E-Mail: tilman@imap.cc Bonn, Germany Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Unge=F6ffnet mindestens haltbar bis: (siehe R=FCckseite) --------------enig3F1510D7D1A7C5B57634EB22 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH64OcQ3+did9BuFsRAhX7AJ99jD9gZBfz4jMi6TyjeNwvJEtWvwCfd3iU EMveIuIZ8TDfqFl+VhiUpYE= =bd46 -----END PGP SIGNATURE----- --------------enig3F1510D7D1A7C5B57634EB22-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/