site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On 11 jan 2005, at 11:20, Parav Pandit wrote: 32 bit Similar as Panther, as I understand it. 8.0? (I don't have a Tiger seed)
From the page above: #ifdef __LP64__ int getattrlist(const char*,void*,void*,size_t, unsigned int); #else /*__LP64__*/ int getattrlist(const char*,void*,void*,size_t, unsigned long); #endif
Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... (1) Is Panther 10.3.3 User space is 32-bit or 64-bit or both? (2) Panther 10.3.3 xnu kernel is 32-bit, am I rigtht? The kernel is mostly 32 bit, but its VM system is 64 bit aware, so the kernel can address more than 4GB of ram. (3) Tiger User space is 64-bit by default, but we can compile and run 32-bit code. right? No, it's still 32 bit. Only certain user space libraries (libSystem/libc and a few others) are available as 64 bit variants. None of the GUI libraries (except possibly X11?) are. See http://developer.apple.com/macosx/tiger/64bit.html (4) Tiger kernel space is 32-bit or 64-bit or both? (5) What is the xnu/ darwin version on Tiger? How can I know whether my user space and kernel space is 32-bit or 64-bit? To conditionally compile 64-bit code or define 64-bit APIs, you can use the __LP64__ and __ppc64__ macros. For example, the following shows a function prototype defined two different ways depending on whether the code is being compiled as a 64-bit executable or not: This email sent to site_archiver@lists.apple.com