Dan Albert
67afc421f3
am 731f9273: am 2d94ee29: Merge "Revert "Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64."""
...
* commit '731f9273134b861b86ef65f785f4811c2f17b5be':
Revert "Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64.""
2014-07-07 16:25:28 +00:00
Elliott Hughes
4d763df324
Merge "Fix a broken boolean test found by clang."
2014-07-05 03:01:43 +00:00
Elliott Hughes
29edbfd64f
Fix a broken boolean test found by clang.
...
This was only on the failure case, so this probably never caused
any real trouble.
Change-Id: Id983689772102cbb9171693b927e544fb0b584fb
2014-07-07 09:45:15 -07:00
Nick Kralevich
80d877d6c3
am e6ef1977: am f95964c9: Merge "libc_logging: Set SOCK_CLOEXEC on socket"
...
* commit 'e6ef19779f35bfc1e49b50dd6d3189ab393328f1':
libc_logging: Set SOCK_CLOEXEC on socket
2014-07-03 16:09:56 +00:00
Elliott Hughes
ca771fc396
am bebe8de7: am 1f262b35: Merge "Fix recv.cpp so it can build with clang."
...
* commit 'bebe8de7e2d2df2605fe96f7426f26ecbcd7d251':
Fix recv.cpp so it can build with clang.
2014-07-03 00:13:14 +00:00
Elliott Hughes
cda4006cc7
am 2a70aba8: am ab4fc823: Merge "Fix all resolv warnings and turn on -Werror."
...
* commit '2a70aba8460eff1bfb1417c271c6a5a53c560afa':
Fix all resolv warnings and turn on -Werror.
2014-07-02 23:54:12 +00:00
Dmitriy Ivanov
e9fa0de5b0
am 8551bfb0: am 950a435f: Merge "Load library using file handle."
...
* commit '8551bfb04385781c3b8c68afaf9c055c22a4e985':
Load library using file handle.
2014-07-02 23:13:56 +00:00
Elliott Hughes
f5bd675225
am 9ff95c47: am 99e2a2f0: Merge "Switch to upstream OpenBSD mktemp.c."
...
* commit '9ff95c4763bcbc44d25092510fde299f0ba0be7f':
Switch to upstream OpenBSD mktemp.c.
2014-07-02 23:13:47 +00:00
Elliott Hughes
6917e6c2ae
Fix recv.cpp so it can build with clang.
...
Change-Id: Iac3e676aa256837333240219bcadbdc31985b5dd
2014-07-02 16:46:34 -07:00
Elliott Hughes
ab4fc82315
Merge "Fix all resolv warnings and turn on -Werror."
2014-07-02 21:12:58 +00:00
Elliott Hughes
37b1b5bbcd
Fix all resolv warnings and turn on -Werror.
...
The res_init.c changes bring us a bit closer to upstream too, though
there's still work to be done there. Some of the remaining differences
look like bugs we'd want to fix, so we should definitely try to come
back to that.
Change-Id: I50baa148e967c90d55d711e9904ad54c7d724d4d
2014-07-02 16:27:20 -07:00
Nick Kralevich
bae5b1dbd8
libc_logging: Set SOCK_CLOEXEC on socket
...
Socket file descriptors remain open across exec unless
SOCK_CLOEXEC is set. Enable this option, to avoid leaking
file descriptors.
In practice, this isn't a big deal, since the socket only remains
open for a very short period to write a message. However, this
socket might leak for for multithreaded programs if an exec occurs
between the open and close.
Change-Id: Ica2e71fe28657c32d56de1431c8f7f1f5c7b7c58
2014-07-02 22:39:14 -07:00
Dmitriy Ivanov
950a435fc0
Merge "Load library using file handle."
2014-07-02 20:52:43 +00:00
Dan Albert
2d94ee29f4
Merge "Revert "Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64."""
2014-07-02 20:51:20 +00:00
Elliott Hughes
1ee1bfdeec
Merge "Use __unused rather than self assignment for unused parameters."
2014-07-02 20:49:53 +00:00
Elliott Hughes
668da74ef1
Use __unused rather than self assignment for unused parameters.
...
Clang, reasonably enough, doesn't like self assignment.
Change-Id: Ie5843287802949dad148a1a815231035678e1306
2014-07-07 09:46:54 -07:00
Elliott Hughes
2b2916d154
Merge "Remove some dead data."
2014-07-02 20:49:42 +00:00
Elliott Hughes
920d831ba1
Remove some dead data.
...
Clang doesn't like dead data, and this is just an LP32 compatibility turd.
Change-Id: I3832748a4e773b254877f4438b5340e7d4c1ce70
2014-07-07 09:46:11 -07:00
Elliott Hughes
db42a9f5a3
Merge "Fix three clang complaints about the DNS code."
2014-07-02 20:49:42 +00:00
Elliott Hughes
68c2755d71
Fix three clang complaints about the DNS code.
...
These are all already fixed upstream in the same way.
Change-Id: I2881b6d0fbd0237fffc0f00563bc14750dcce0d9
2014-07-07 09:44:17 -07:00
Dmitriy Ivanov
04dc91ae76
Load library using file handle.
...
* This patch enables dlopen by file descriptor
instead of path/name.
Bug: 15984217
Change-Id: Ib39051e00567fb97070bf96d8ce63993877c0a01
2014-07-02 13:20:47 -07:00
Elliott Hughes
6593597931
Switch to upstream OpenBSD mktemp.c.
...
Almost all of our stdio is actually OpenBSD, so although this isn't
really a core part of stdio (it doesn't touch struct FILE, for example)
it probably makes sense for it to come from the same upstream. My
actual motivation though is that it's the only FreeBSD file we have
compiler warnings from.
This patch moves us over to -Werror by default, with only the DNS code
having -Wno-error.
Change-Id: Id244a5b445cba41b0a1ca30298ca7b1ed177810c
2014-07-02 11:22:26 -07:00
Elliott Hughes
a230741e47
am e20fcb2d: am e9975987: Merge "Quiten warnings in semaphore.c."
...
* commit 'e20fcb2d70af950cff4ae5df8038d800630e39be':
Quiten warnings in semaphore.c.
2014-07-02 00:46:18 +00:00
Elliott Hughes
dc615691c9
am d103c98b: am f2102f54: Merge "Quiten warnings in fts.c."
...
* commit 'd103c98be845e060d86463a895c2e33aa8256839':
Quiten warnings in fts.c.
2014-07-02 00:46:17 +00:00
Dan Albert
c492450147
am 30c958f7: am 42a5a177: Merge "Revert "Revert "Prevent symbols from libgcc from being reexported."""
...
* commit '30c958f7f5dfd712f11026c5caa78aa7d67f082d':
Revert "Revert "Prevent symbols from libgcc from being reexported.""
2014-07-01 22:57:06 +00:00
Dan Albert
f79ee064b6
Revert "Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64.""
...
This reverts commit 715242fd0f69e73a6aca19e32b8979fa0f384788.
Change-Id: Ia9892fa3b03287129aa72a49974cef9fd94ae735
2014-07-01 22:41:50 +00:00
Dmitriy Ivanov
4d8f3c4d99
am 51c812cd: am 442d41fc: Merge "Write message to stderr on __libc_fatal()"
...
* commit '51c812cd220cd9f493d61df98ca77dd0b5f000da':
Write message to stderr on __libc_fatal()
2014-07-01 22:10:25 +00:00
Elliott Hughes
eae0d91dd5
am 94f8beb7: am dc42d7ff: Merge "Fix a warning in if_indextoname.c."
...
* commit '94f8beb7e3450204bb117ca2301c1769a9b76dc2':
Fix a warning in if_indextoname.c.
2014-07-01 19:39:38 +00:00
Elliott Hughes
ec67cded1d
Quiten warnings in fts.c.
...
Also bring us closer to upstream. Sadly the Linux and BSD dirent
structs don't match, so we'll never be completely in sync (and I don't
think we can hide the difference with macro trickery).
Change-Id: Ief4275856116cd1d5b5e0f9166db1ead9439515c
2014-07-01 17:20:06 -07:00
Elliott Hughes
e997598790
Merge "Quiten warnings in semaphore.c."
2014-07-01 19:22:04 +00:00
Elliott Hughes
95d3cd0b85
Quiten warnings in semaphore.c.
...
Change-Id: I30aff82174f789ab407d2282c07e6207123d4d5b
2014-07-01 17:07:43 -07:00
Elliott Hughes
ff7d2d0920
am 56d0f8ca: am f573a52c: Merge "Silence time64.c build warnings."
...
* commit '56d0f8ca50900edca67e24cfdcfb33824551b0c2':
Silence time64.c build warnings.
2014-07-01 18:25:16 +00:00
Dmitriy Ivanov
12bf3bcdee
Write message to stderr on __libc_fatal()
...
Change-Id: Ia8d6e256768fa51786d0139d3f3b6e9e4bebe027
2014-07-01 14:46:03 -07:00
Elliott Hughes
49eb761306
Fix a warning in if_indextoname.c.
...
Change-Id: Ib6afe2a5452022f5c98ec28fd110d6b910dccdad
2014-07-01 11:13:25 -07:00
Dan Albert
42a5a177e9
Merge "Revert "Revert "Prevent symbols from libgcc from being reexported."""
2014-07-01 14:58:20 +00:00
Christopher Ferris
f1be48d4c2
am 4ba40564: am 4ec3bc83: Merge "Add optimized stpcpy."
...
* commit '4ba40564c62bbd6ac52e53aad003bb424f1e8f10':
Add optimized stpcpy.
2014-07-01 02:57:13 +00:00
Nick Kralevich
b18a1c3d19
am e844f27a: am bcf77b5d: Merge "add CLOEXEC to various DNS related code"
...
* commit 'e844f27a05b32b7bf2fd68b1bd69e450040c1e24':
add CLOEXEC to various DNS related code
2014-06-30 23:23:47 +00:00
Elliott Hughes
dd9efcbab6
am c5f1504e: am 6cdab387: Merge "Restore <nsswitch.h> which is BSD API, not private."
...
* commit 'c5f1504e3db3a39bb951bf01e2d0d758ca93cc44':
Restore <nsswitch.h> which is BSD API, not private.
2014-06-30 23:16:01 +00:00
Christopher Ferris
4ec3bc83c6
Merge "Add optimized stpcpy."
2014-06-30 22:26:48 +00:00
Nick Kralevich
bcf77b5dff
Merge "add CLOEXEC to various DNS related code"
2014-06-30 22:26:48 +00:00
Elliott Hughes
a311704103
Restore <nsswitch.h> which is BSD API, not private.
...
Also make nsdispatch non-hidden. Firefox uses it.
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1030899
Change-Id: Iaccc1ec813d196ec91ac475fcc4ae9dca756861d
2014-06-30 14:15:34 -07:00
Christopher Ferris
753eb7f07e
Add optimized stpcpy.
...
Change-Id: Ifed38f92a54fef4488fd0ed26a1569059a054574
2014-06-30 12:48:13 -07:00
Elliott Hughes
71ee128e0c
am e1047515: am f72c56d6: Merge "Switch to upstream NetBSD nsap_addr.c."
...
* commit 'e104751566da6e8ef340926781d5ef120bf1d801':
Switch to upstream NetBSD nsap_addr.c.
2014-06-30 19:44:47 +00:00
Elliott Hughes
a210cae724
Switch to upstream NetBSD nsap_addr.c.
...
These symbols should be public (and Firefox uses them), and we'd also probably
rather have the upstream thread-safe implementation.
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1030899
Change-Id: I2a5888fbb3198546848398f576fd2195ff3fe00c
2014-06-30 12:03:43 -07:00
Nick Kralevich
1781ed7774
add CLOEXEC to various DNS related code
...
Occasionally file descriptors seem to be leaking across execs
from DNS related calls. Set close-on-execute for the various
sockets / file to prevent file descriptor leakage.
Change-Id: I4724b47bc7236f40c29518a6075598a9bba48b0a
2014-06-29 20:46:17 -07:00
Elliott Hughes
066eb0b06d
Silence time64.c build warnings.
...
Change-Id: Ibc5672480ee5e72eedf2bc29e420315b5346b0df
2014-07-01 10:48:23 -07:00
Christopher Ferris
29642e8ec6
am d1bf0706: am 2e249c2e: Merge "Add optimized 64 bit strcpy."
...
* commit 'd1bf0706425d7ee4b6fd99fbda7653b788c1eb6f':
Add optimized 64 bit strcpy.
2014-06-27 22:40:14 +00:00
Elliott Hughes
26c69d6438
am 5d4cb156: am ec97c3f0: Merge "asm/sigcontext.h is required to build unwind-dw2.c in gcc-4.9."
...
* commit '5d4cb15610e91c99b062589e6297d423ed2e1176':
asm/sigcontext.h is required to build unwind-dw2.c in gcc-4.9.
2014-06-27 21:30:20 +00:00
Christopher Ferris
35cf5c59b9
am 627a8096: am a4a28d90: Merge "Add optimized neon strchr implementation based on newlib"
...
* commit '627a8096ea34a4dfe790a1a85617136e58e0ba4a':
Add optimized neon strchr implementation based on newlib
2014-06-27 19:52:09 +00:00
Elliott Hughes
ec97c3f024
Merge "asm/sigcontext.h is required to build unwind-dw2.c in gcc-4.9."
2014-06-26 18:34:59 +00:00