[Rxtx] termios.h defines ... JNA related
Steffen.DETTMER at ingenico.com
Thu Aug 26 05:52:12 MDT 2010
* Kustaa Nyholm wrote on Wed, Aug 18, 2010 at 20:45 +0300:
> On Mac OS X B19200 has the value on 19200 where as on one Linux
> it has the value of 16.
> How much the different Linux constants differ or can we assume
> that across Linux:es they are the same?
On my linuxes B19200 has the value of 14 (16 octal), did you mean
0000016 (typo) or do you have really 16?
> The size of some fields in 'struct termios' is size_t according
> to POSIX, which makes them depend on architecture.
Not sure if I understand correctly. Also size of int etc depend
on architecture. Hum, and who knows what the non-POSIX-compliant
> Is it conceivable that the values are different depending on
> architecture (on the same OS)?
> Like Mac OS X has i386 (32 bit) ppc (32 bit) and x86_64 (64
> bit) architecture and I presume the size of for example c_flags
> in termios struct is different depending on the architecture
> (maybe it is not?)
I would assume this could happen (often this is a motivation to
define and use dedicated data types like tcflag_t to allow
implementations to use something appropriate).
ILP32 has int, long int and pointer types with 32 bits long;
and on LP64 (linux x86_64) long int and pointers are 64 bits, and
int are 32 bits. Don't know if any ILP64 OS is supported by rxtx
(don't even know such an OS, would SPARC64 be an example?).
Isn't it possible to find out sizeof(int) etc with JNA?
About Ingenico: Ingenico is a leading provider of payment solutions, with over 15 million terminals deployed in more than 125 countries. Its 2,850 employees worldwide support retailers, banks and service providers to optimize and secure their electronic payments solutions, develop their offer of services and increase their point of sales revenue. More information on http://www.ingenico.com/.
This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.
P Please consider the environment before printing this e-mail
More information about the Rxtx