[pulseaudio-discuss] [PATCH v2] netbsd: Replace nonstandard __WORDSIZE with a more portable solution

Kamil Rytarowski n54 at gmx.com
Wed Dec 16 01:06:44 PST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 15.12.2015 12:58, Andrey Semashev wrote:
> On 2015-12-15 14:47, Kamil Rytarowski wrote:
>> There is no way to check CPU type in a portable way across ABIs. 
>> Checking for sizeof(void*) is reasonable since most platforms
>> will report correct values. One exception is x32, but since it's
>> halfbaked never finished and almost not needed any more - we can
>> ignore it.
> 
> I'm sorry, but where the premise of x32 being halfbaked comes from?
> It seems supported in Linux, at least in Debian and derivatives. I
> can see x32 packages in Kubuntu repos.
> 

I base my statement on the incompatible system call interface (with
standards) between Linux and glibc, at least in in March of this year.

https://sourceware.org/ml/libc-alpha/2015-03/msg00573.html

This doesn't mean that we aren't able to bootstrap more or less
functional distribution, but it won't protect from misbehavior.

> BTW, here are some ways to detect x32:
> 
> https://wiki.debian.org/X32Port
> 

Actually NetBSD supports at the moment 70 archs, I'm looking for a
solution to cover them all, not just X86 variants.

I will try to make a new patch without these checks.

Thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWcSmgAAoJEEuzCOmwLnZsL80QAIjB97chc2zkNs7XQefhea91
0hDbIEHQOZQqwOeTIZg++8/yf+a5pFBrWQZaxBPq9LSgQnKls3vHLQW3kMzFCOmc
ueo4ButA+lPdyLRVqnQ2JebwG8tEkB6v1OKc1c2/hln3dBm/BGXbxdEgsRY0Z8Bh
UeSih4/CNTGNXA6XGOt2KnA0p1MPH6WVAFjj+W2DIm/z0PgX+zZsziIfwTpr3v96
uPlVKwSh+sV3jYnMHdiP0Xv0q2TSLDeJvK3kWra80MXCSUNxxMe/jCsiEH3QYDsz
Du2PcOzaoNmExmMZzpMMmL8xtlCPdsRnYU2eMF60f/T0aaLRErDmYItG6PiLdBi5
JiSnBIiHzbNKGJCPAvVX83VNL46mQIss/zWBkXrkj33nZte1LVllY0eW/kQ1Ruq1
sHWPKAa1BKKcXkjEqS0Oo+nNH2Lcvy9GFtUavVm49vQK+1pImJyf8+/Nfyy5QBmC
sVT6GpuX/vIkcq/cyUE16rFTK/7hPDHuKpaYHMP2gYx7e+wAVxz+iF5qXe1xMnQ7
QxVgDWXVHbDOmaeYtsoD41bGbrsGc4OZ2QV71/LzPRdsv5FwQ11kbO7I3NeqcofE
Po77kaU0dZ1DZ6lR0E/oIgD0CfmS3Tsrk20TAL1yceQTkxRun1/U3F3zMeshirjw
Gk+T7ngcUQ9rWokD4Y1S
=drJu
-----END PGP SIGNATURE-----


More information about the pulseaudio-discuss mailing list