Re: [PATCH] ldattach(8)

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

 



On Wednesday 06 February 2008, Tilman Schmidt wrote:
> >> +	case 's':
> >> +	    if ((speed = lookup_speed(optarg)) == B0) {
> >> +		fprintf(stderr, "%s: bad speed: %s\n", prog, optarg);
> >> +		exit(EXIT_FAILURE);
> >> +	    }
> >
> > hmm, this doesnt seem right ... this does not allow for arbitrary baud
> > rates which newer versions of linux now supports.
>
> I must have missed that. Do you have a pointer? Is there a replacement
> for cfsetspeed() which accepts a numeric speed value instead of the Bx
> constants?

the replacement is to not use any of the speed funcs :)

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)

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

any other questions, feel free to ask !
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


[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