[PATCH] More baud rates for stty
Alessandro Rubini
rubini at gnudd.com
Thu Feb 14 21:40:06 UTC 2008
Hello.
> sorry to see you do all this work, but it isnt acceptable.
No problem. I had to do it anyways for my machine.
> you cannot assume the value of any B* define as they are not the
> same across all architectures.
Yes, I know that. Actually, I only assume that if B921600 exists, it
means 921600 bits per second. I don't assume what the value is. I'm
not insisting, though, only clarifying what I've done.
Out of curiosity, I got the occurences of the names in a somewhat
recent kernel (but there's not only linux out there, I know):
% grep -h 'define.*B[0-9]' include/asm-*/termbits.h | awk '{print $2}' | \
sort | uniq -c | sort -rn
21 B9600
21 B921600
21 B75
21 B600
21 B57600
21 B50
21 B4800
21 B460800
21 B38400
21 B300
21 B2400
21 B230400
21 B200
21 B19200
21 B1800
21 B150
21 B134
21 B1200
21 B115200
21 B110
21 B0
20 B576000
20 B500000
20 B4000000
20 B3500000
20 B3000000
20 B2500000
20 B2000000
20 B1500000
20 B1152000
20 B1000000
2 B76800
2 B614400
2 B307200
2 B153600
1 B6250000
1 B1843200
1 B12500000
So the numbers I used may be common out there.
Thanks for your feedback.
/alessandro
More information about the busybox
mailing list