<p></p>
<p>Sure, here is the content of <code>/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/socket.h</code></p>
<div class="highlight highlight-source-c"><pre><span class="pl-c"><span class="pl-c">/*</span>***************************************************************************</span>
<span class="pl-c"> ****************************************************************************</span>
<span class="pl-c"> ***</span>
<span class="pl-c"> ***   This header was automatically generated from a Linux kernel header</span>
<span class="pl-c"> ***   of the same name, to make information necessary for userspace to</span>
<span class="pl-c"> ***   call into the kernel available to libc.  It contains only constants,</span>
<span class="pl-c"> ***   structures, and macros generated from the original header, and thus,</span>
<span class="pl-c"> ***   contains no copyrightable information.</span>
<span class="pl-c"> ***</span>
<span class="pl-c"> ***   To edit the content of this header, modify the corresponding</span>
<span class="pl-c"> ***   source file (e.g. under external/kernel-headers/original/) then</span>
<span class="pl-c"> ***   run bionic/libc/kernel/tools/update_all.py</span>
<span class="pl-c"> ***</span>
<span class="pl-c"> ***   Any manual change here will be lost the next time this script will</span>
<span class="pl-c"> ***   be run. You've been warned!</span>
<span class="pl-c"> ***</span>
<span class="pl-c"> ****************************************************************************</span>
<span class="pl-c"> ***************************************************************************<span class="pl-c">*/</span></span>
#<span class="pl-k">ifndef</span> _UAPI_LINUX_SOCKET_H
#<span class="pl-k">define</span> <span class="pl-en">_UAPI_LINUX_SOCKET_H</span>
#<span class="pl-k">define</span> <span class="pl-en">_K_SS_MAXSIZE</span> <span class="pl-c1">128</span>
<span class="pl-k">typedef</span> <span class="pl-k">unsigned</span> <span class="pl-k">short</span> <span class="pl-c1">__kernel_sa_family_t</span>;
<span class="pl-k">struct</span> sockaddr_storage {
  <span class="pl-k">union</span> {
    <span class="pl-k">struct</span> {
      <span class="pl-c1">__kernel_sa_family_t</span> ss_family;
      <span class="pl-k">char</span> __data[_K_SS_MAXSIZE - <span class="pl-k">sizeof</span>(<span class="pl-k">unsigned</span> <span class="pl-k">short</span>)];
    };
    <span class="pl-k">void</span> * __align;
  };
};
#<span class="pl-k">endif</span></pre></div>
<p>I guess files mentioned in comments are:</p>
<ul>
<li><a href="https://android.googlesource.com/platform/external/kernel-headers/+/master/original/uapi/linux/socket.h" rel="nofollow">https://android.googlesource.com/platform/external/kernel-headers/+/master/original/uapi/linux/socket.h</a></li>
<li><a href="https://android.googlesource.com/platform/bionic/+/master/libc/kernel/tools/update_all.py" rel="nofollow">https://android.googlesource.com/platform/bionic/+/master/libc/kernel/tools/update_all.py</a></li>
</ul>
<p>Looking into scripts of bionic, I found a file that seems to replace <code>__kernel_sockaddr_storage</code> with <code>sockaddr_storage</code>: <a href="https://android.googlesource.com/platform/bionic/+/master/libc/kernel/tools/defaults.py#93" rel="nofollow">https://android.googlesource.com/platform/bionic/+/master/libc/kernel/tools/defaults.py#93</a></p>
<div class="highlight highlight-source-python"><pre>    <span class="pl-c"># In this case the kernel tries to keep out of our way, but we're happy to use its definition.</span>
    <span class="pl-s">"__kernel_sockaddr_storage"</span>: <span class="pl-s">"sockaddr_storage"</span>,</pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/strace/strace/issues/174#issuecomment-781299630">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTR2X46AJ7WELEMFCTSTS7T7UFANCNFSM4XZVGTKQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AOVBTR2R2XZASPYRH6E56KTS7T7UFA5CNFSM4XZVGTK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF2I27LQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/strace/strace/issues/174#issuecomment-781299630",
"url": "https://github.com/strace/strace/issues/174#issuecomment-781299630",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>