Re: Simple serial question...

From: Grant Edwards (grante_at_visi.com)
Date: 11/08/05


Date: Tue, 08 Nov 2005 19:41:48 -0000

On 2005-11-08, Alain Mosnier <alain.mosnier@chello.se> wrote:

> Be aware of the byte ordering issue though: your source and
> destination might order the bytes differently. This is not a
> problem if both source and destination are Linux, which is
> always little-endian, as far as I know

Wha?

There are plenty of big-endian architectures running Linux:

  SPARC
  PPC
  68000
  IBM-370 (and I presume z-series),
  H8/300
  ARM
  etc.

I suspect that the majority of Linux-supporting architectures
are big-endian, even though most Linux machines are
little-endian.

>> NB: Don't use the Linux serial programming HOWTO.
>
> Just out of curiosity, why is that? Anything specific that
> would be wrong in that HOWTO?

Yes. Mainly the code used to open devices. I have vague
recollections of problems with the way some of the termios
stuff is done too, but I can't remember the details. There are
also large amounts of stuff that's just not there (e.g.
accessing modem control/status lines).

> I'm rather using the "Serial Programming Guide for POSIX
> Operating Systems" which is more recent myself, but I would
> still be interested to hear what's wrong in that HOWTO.

You're the only one, then. Corrections and entirely new
chapters have been submitted but have been ignored.

-- 
Grant Edwards                   grante             Yow!  The PINK SOCKS were
                                  at               ORIGINALLY from 1952!! But
                               visi.com            they went to MARS around
                                                   1953!!


Relevant Pages

  • Re: Simple serial question...
    ... >>destination might order the bytes differently. ... >>problem if both source and destination are Linux, ... at my first Google search about Linux serial programming (actually, ... UNIX programming" and "UNIX network programming", ...
    (comp.os.linux.embedded)
  • Re: Vista Briefcase worse than XP?!
    ... pointing at a destination linux rsyncd. ... Pulling from the NAS is quicker - 6meg/second. ... The Apples and the Linux box get 20-40meg/second to the NAS. ... by default for local syncs, and going over gigabit Ethernet is more like ...
    (uk.comp.homebuilt)
  • Re: NETWORKING: Executing a Move operation within MAC from LINUX
    ... > In a Linux - Macintosh network, I want to transfer a file from one ... > destination of a Mac Machine to another destination of that same Mac ... This process should be executed from a Linux Machine. ... > brief executing a move operation in a Mac Machine from a Linux Machine ...
    (comp.os.linux.networking)
  • Re: CD writing in future Linux (stirring up a hornets nest)
    ... Yet another insult. ... and check the destination address. ... This is CD writing on Linux, and it you who is still failing to provide ...
    (Linux-Kernel)
  • Re: And now for something completely different (revised)
    ... Linux can provide both print and file server services. ... The latest-and-greatest Linux 2.4|5|6 kernels have firewall support ... hardware devices can sometimes be a problem in the Linux world. ... See the "Linux Hardware Compatibility HOWTO" for ...
    (alt.os.linux.redhat)