User: Password:
|
|
Subscribe / Log in / New account

A sys_poll() ABI tweak

A sys_poll() ABI tweak

Posted Mar 5, 2012 23:45 UTC (Mon) by landley (subscriber, #6789)
Parent article: A sys_poll() ABI tweak

No, int and long _aren't_ the same size on "most" architectures. They're the same size on 32 bit architectures, different on 64 bit. There's a standard for this, which Linux follows (and MacOS X, and most other unix variants):

http://www.unix.org/whitepapers/64bit.html

Here's the rationale:

http://www.unix.org/version2/whatsnew/lp64_wp.html

And here's the insane legacy reasons Windows decided to do something else instead:

http://blogs.msdn.com/b/oldnewthing/archive/2005/01/31/36...

Rob


(Log in to post comments)

A sys_poll() ABI tweak

Posted Mar 6, 2012 7:03 UTC (Tue) by khim (subscriber, #9252) [Link]

No, int and long _aren't_ the same size on "most" architectures.

Of course they are!

They're the same size on 32 bit architectures, different on 64 bit.

Not always and anyway: number of 32 bit architectures dwarfs the number of 64 bit architectures, so what's your point?

A sys_poll() ABI tweak

Posted Mar 7, 2012 10:39 UTC (Wed) by sdalley (subscriber, #18550) [Link]

The quality of posts does vary, doesn't it.

After reading landley's GP, and the references he supplied, I understand the subtleties of the actual situation.

After reading khim's post, I am left completely uninformed, and with the strong impression that the poster is an arrogant twerp. It's only an impression, though, and I could be wrong ...


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds