Re: [PATCH] ldattach(8)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 06.02.2008 23:23 schrieb Mike Frysinger:
hmm, this doesnt seem right ... this does not allow for arbitrary baud
rates which newer versions of linux now supports.
[...]
ive documented the current way of doing it here:
http://docs.blackfin.uclinux.org/doku.php?id=faq
(see the question at the bottom about custom/high speeds)

Great! Thanks.

since this is relatively new, you may have to wrap the code in something like:
#ifdef BOTHER
 < new way >
#else
 < old cfsetspeed way >
#endif

Ok. Now, being curious I poked around in the current kernel for
that termios2 structure, and I couldn't help noticing that some
architectures (including the very first one, alpha) do not have
it, but instead integrate the c_ispeed and c_ospeed fields in
struct termios. Do I have to handle that case? Would something
like

#ifndef TCGETS2
#define termios2 termios
#define TCGETS2 TCGETS
#define TCSETS2 TCSETS
#endif

do the trick? Or is that difference already hidden from userspace
by some clever device?

Thanks,
Tilman

--
Tilman Schmidt                          E-Mail: tilman@xxxxxxx
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits.
Ungeöffnet mindestens haltbar bis: (siehe Rückseite)

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux