|
|
Log in / Subscribe / Register

A sys_poll() ABI tweak

A sys_poll() ABI tweak

Posted Mar 5, 2012 23:45 UTC (Mon) by landley (guest, #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


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


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