Commit graph

7297 commits

Author SHA1 Message Date
Elliott Hughes
5da438bc3b Merge "Remove declaration of pthread_cond_timedwait_relative_np." am: 366164da10
am: a7e53c57e6

* commit 'a7e53c57e62cf8ef557ccf2172539e5830831be0':
  Remove declaration of pthread_cond_timedwait_relative_np.

Change-Id: I27ade05e72541dd20ad328a0ab5525294601d193
2016-05-10 20:05:18 +00:00
Elliott Hughes
f5fd82eb26 Merge "Remove pthread_mutex_lock_timeout_np from <pthread.h>." am: d2f3ce9c89
am: 209b22ae69

* commit '209b22ae691390fefb269b0458accd1d6322a448':
  Remove pthread_mutex_lock_timeout_np from <pthread.h>.

Change-Id: I8d95b44a0ec3a23481aca3c3d81ab6feec43042d
2016-05-09 20:37:54 +00:00
Elliott Hughes
3efddd4b9e Merge "Generalize the clone function slightly." am: 0155995e8d
am: 6c8de255ec

* commit '6c8de255ec0db2005d4d55ef4c8d307ceedb5fa1':
  Generalize the clone function slightly.

Change-Id: I643485333465b6731e045f8824a1de0052721b12
2016-05-09 20:37:53 +00:00
Elliott Hughes
e2f25831eb Remove declaration of pthread_cond_timedwait_relative_np.
It's been deprecated long enough, and nothing left in the tree (except
code that isn't even built) is still using it.

Bug: http://b/27918161
Change-Id: Ibf824c1063d49484037de5c03b98bec5bdd4dcf6
2016-05-09 13:29:26 -07:00
Elliott Hughes
d2f3ce9c89 Merge "Remove pthread_mutex_lock_timeout_np from <pthread.h>." 2016-05-09 20:15:50 +00:00
Elliott Hughes
0155995e8d Merge "Generalize the clone function slightly." 2016-05-09 20:14:50 +00:00
Elliott Hughes
3164ab733c Remove pthread_mutex_lock_timeout_np from <pthread.h>.
It's been deprecated long enough, and nothing left in the tree (except
code that isn't even built) is still using it.

Bug: http://b/27918161
Change-Id: I1786f5e2528a23c17b3f7298f4ba5fc7761a26c5
2016-05-06 17:46:48 -07:00
Elliott Hughes
138480339e Merge "End all lists in check-symbols-glibc.py with a ,." am: 1a26db8448
am: eb8d8241a0

* commit 'eb8d8241a02b9b613dba2d13323ed3f53d199fe3':
  End all lists in check-symbols-glibc.py with a ,.

Change-Id: I403e1956201a426c9b2b23d92f2143b746657d50
2016-05-06 23:53:06 +00:00
Elliott Hughes
e104a2edf3 Generalize the clone function slightly.
* Allow clone where both the child function and stack are null. It's
obviously wrong to ask to call a function without a stack, but it's not
necessarily wrong to supply no stack if you're also not supplying a
function.

* Reimplement fork in terms of the clone function, rather than using the
clone system call directly.

This is intended as a step towards enabling use of pid namespaces.

Change-Id: I03c89bd1dc540d8b4ed1c8fdf6644290744b9e91
2016-05-06 16:37:00 -07:00
Elliott Hughes
026295c35d Merge "Remove a duplicate declaration, improve check-symbols-glibc.py." am: 5ac45a2add
am: 58df16b0b4

* commit '58df16b0b42ec00b5cda08a9d6863a2e7e5971d6':
  Remove a duplicate declaration, improve check-symbols-glibc.py.

Change-Id: I12c8e036c8900c861a1c48e6fd6734f670653369
2016-05-06 22:57:32 +00:00
Elliott Hughes
2adde7bef5 End all lists in check-symbols-glibc.py with a ,.
Change-Id: I85f591c51e32fa001e611a035e2e51305c837d22
2016-05-06 15:44:26 -07:00
Treehugger Robot
5ac45a2add Merge "Remove a duplicate declaration, improve check-symbols-glibc.py." 2016-05-06 22:42:11 +00:00
Dan Albert
482e042200 Merge "Remove --exclude-libs ldflags." am: 96029e30ce
am: 4bdac0d684

* commit '4bdac0d68418ad995fa869fd36e38e18281af2f5':
  Remove --exclude-libs ldflags.

Change-Id: I8ee199154ac8e2f3ee1d028fc6ccea106b65f956
2016-05-06 21:58:15 +00:00
Elliott Hughes
21788265da Remove a duplicate declaration, improve check-symbols-glibc.py.
Change-Id: I97a98dfc8acaa93172386b4475487a05a35a9337
2016-05-06 14:43:50 -07:00
Dan Albert
e29e99c514 Remove --exclude-libs ldflags.
This is now done by default in the build system.

The comments say don't do this, but we have linker scripts that
protect the few symbols we have to actually keep now.

Bug: http://b/24166967
Change-Id: Iff1beeb0f54f80b23fb1561f37a39f208e0bf676
2016-05-06 13:18:59 -07:00
Dan Albert
3d4973f96d Merge "Use clang\'s nullability instead of nonnull." am: 98ac6f415f
am: 34c417f2a5

* commit '34c417f2a5abb53486a54b6b6ab800c0621f9cd7':
  Use clang's nullability instead of nonnull.

Change-Id: Ibed696d2f74ecb0c7bd36ca8c22ba792e50090a8
2016-05-06 02:44:10 +00:00
Treehugger Robot
98ac6f415f Merge "Use clang's nullability instead of nonnull." 2016-05-06 02:27:18 +00:00
Dan Albert
baa2a973bd Use clang's nullability instead of nonnull.
http://clang.llvm.org/docs/AttributeReference.html#nonnull

_Nonnull is similar to the nonnull attribute in that it will instruct
compilers to warn the user if it can prove that a null argument is
being passed. Unlike the nonnull attribute, this annotation indicated
that a value *should not* be null, not that it *cannot* be null, or
even that the behavior is undefined. The important distinction is that
the optimizer will perform surprising optimizations like the
following:

    void foo(void*) __attribute__(nonnull, 1);

    int bar(int* p) {
      foo(p);

      // The following null check will be elided because nonnull
      // attribute means that, since we call foo with p, p can be
      // assumed to not be null. Thus this will crash if we are called
      // with a null pointer.
      if (src != NULL) {
        return *p;
      }
      return 0;
    }

    int main() {
      return bar(NULL);
    }

Note that by doing this we are no longer attaching any sort of
attribute for GCC (GCC doesn't support attaching nonnull directly to a
parameter, only to the function and naming the arguments
positionally). This means we won't be getting a warning for this case
from GCC any more. People that listen to warnings tend to use clang
anyway, and we're quickly moving toward that as the default, so this
seems to be an acceptable tradeoff.

Change-Id: Ie05fe7cec2f19a082c1defb303f82bcf9241b88d
2016-05-05 17:11:54 -07:00
Elliott Hughes
33063dbfbb Merge "Remove <sys/atomics.h>." am: 5e2342f970
am: bcb41f4b03

* commit 'bcb41f4b03b94000bbd26f2f4e1489d8727d0739':
  Remove <sys/atomics.h>.

Change-Id: I78b1b4eb4078c9c8e65901bd91122fd671f3bc95
2016-05-06 00:08:15 +00:00
Elliott Hughes
5e2342f970 Merge "Remove <sys/atomics.h>." 2016-05-05 23:55:04 +00:00
Chih-hung Hsieh
ab9dac6fb6 Merge "Fix google-explicit-constructor warnings." am: 9f0aab88a8
am: 00975937b4

* commit '00975937b48b7ef3d50aac14afa72d41ee925904':
  Fix google-explicit-constructor warnings.

Change-Id: I7987cd4126e397cf1f4610f20b7bd62439d92aa7
2016-05-04 00:53:48 +00:00
Chih-hung Hsieh
9f0aab88a8 Merge "Fix google-explicit-constructor warnings." 2016-05-04 00:37:58 +00:00
Colin Cross
49490bfec3 Merge "Update strip property format" am: 0f93237db7
am: eac1faede3

* commit 'eac1faede3fd3f50d9bceed6806b95795d841327':
  Update strip property format

Change-Id: Iecfc273ae057c3d941db26ab2b2062c05dda4055
2016-05-03 21:34:32 +00:00
Colin Cross
0f93237db7 Merge "Update strip property format" 2016-05-03 21:20:43 +00:00
Christopher Ferris
45c126b68d Merge "Update documentation to work with gitiles." am: 2ab69ccf10
am: 9fa7b87802

* commit '9fa7b87802360d419486c592389b147add2e91f6':
  Update documentation to work with gitiles.

Change-Id: I3027dff2d336d8d9afe2ae5452af62323df7b951
2016-05-03 19:57:44 +00:00
Christopher Ferris
2ab69ccf10 Merge "Update documentation to work with gitiles." 2016-05-03 19:47:47 +00:00
Chih-Hung Hsieh
62e3a078aa Fix google-explicit-constructor warnings.
Bug: 28341362
Change-Id: I84effbdfa1b9b39328a909b7f70fe17e7ee316c8
2016-05-03 12:08:05 -07:00
Elliott Hughes
54e38cbdb3 Merge "Move <machine/endian.h> somewhere more private." am: 9ee905f12f
am: 19da0526bc

* commit '19da0526bca0f441da6085eae2cc10efa52c6775':
  Move <machine/endian.h> somewhere more private.

Change-Id: Ia9e2d579798f645e7da19558deb1d56ded7968f9
2016-05-03 01:04:39 +00:00
Elliott Hughes
9ee905f12f Merge "Move <machine/endian.h> somewhere more private." 2016-05-03 00:45:38 +00:00
Colin Cross
2ffa600c9a Merge "Update Android.bp to match Android.mk" am: 45d3cf9f0f
am: 24c1e2df1c

* commit '24c1e2df1ce40583561946ebdb7552e88451bc12':
  Update Android.bp to match Android.mk

Change-Id: Ie50fd99a246e583869433866ff112fc1ffb64cea
2016-05-02 23:34:51 +00:00
Treehugger Robot
45d3cf9f0f Merge "Update Android.bp to match Android.mk" 2016-05-02 23:19:20 +00:00
Elliott Hughes
ed507636c0 Remove <sys/atomics.h>.
It's no longer used in the platform (including vendor code), and everyone
should be using <stdatomic.h> anyway.

Change-Id: Ic1ad743625ffb15b4837ff6ccb91dcd840d19ec2
2016-05-02 16:04:57 -07:00
Elliott Hughes
2e1177fcdc Merge "Move glibc-syscalls.h into bits/." am: 3338ee5257
am: 4ce2c90739

* commit '4ce2c9073974b7837b9e97f9f55c555f21204ccf':
  Move glibc-syscalls.h into bits/.

Change-Id: If515c3f4b7fa8791a84e534bb626d3690d12e10a
2016-05-02 23:04:43 +00:00
Elliott Hughes
3d125175d7 Move <machine/endian.h> somewhere more private.
Bug: http://b/28519060
Change-Id: I1c7811f95f46c65d4152bcf509b6e048c45bc28b
2016-05-02 15:44:56 -07:00
Elliott Hughes
3338ee5257 Merge "Move glibc-syscalls.h into bits/." 2016-05-02 22:41:34 +00:00
Elliott Hughes
680e7fd49f Merge "Remove <sys/utime.h>." am: 3fb1b37bba
am: d616ea2081

* commit 'd616ea2081097b6c5a10dbb1e0d27c0a593c2361':
  Remove <sys/utime.h>.

Change-Id: I4030dc76eaf83a690a3f81f17a37e8d7c42f22f1
2016-05-02 21:52:38 +00:00
Elliott Hughes
cd8266a4bd Merge "Move the IEEE fp header out of the public headers." am: d3b4166b5b
am: 4146ea5a68

* commit '4146ea5a685bfef5b4c799c16241085d583e3c51':
  Move the IEEE fp header out of the public headers.

Change-Id: I64b594d96c8b25610ba15ffdc31e05eeecfbdce4
2016-05-02 21:41:35 +00:00
Elliott Hughes
3fb1b37bba Merge "Remove <sys/utime.h>." 2016-05-02 21:35:14 +00:00
Elliott Hughes
d3eed62477 Merge "Move nsswitch.h into libc/dns/include." am: eb9b0a1819
am: 95915bdab9

* commit '95915bdab9dd3f43ebd4db7f33a3de214e348afe':
  Move nsswitch.h into libc/dns/include.

Change-Id: I047b4b4e5a0c8edf5b4f79f12d1656c503c4c3f5
2016-05-02 21:31:03 +00:00
Elliott Hughes
c6355f7f4c Merge "Remove <net/if_ieee1394.h>." am: af5afdba34
am: acb5ffc6b3

* commit 'acb5ffc6b37415efd582db61df6d94d813eb13c8':
  Remove <net/if_ieee1394.h>.

Change-Id: I6a742a40004f77c4ed3df6c8f4210fd403ad0cde
2016-05-02 21:31:01 +00:00
Elliott Hughes
83bdc795d0 Merge "Remove <sys/ioctl_compat.h>." am: 5ab6f6c3bd
am: ca9953a31a

* commit 'ca9953a31a889e19ee88eddf994dd361ee4af3e4':
  Remove <sys/ioctl_compat.h>.

Change-Id: I061d26e0a6d188b8a289b9369a1547efec0546dd
2016-05-02 21:31:00 +00:00
Elliott Hughes
d3b4166b5b Merge "Move the IEEE fp header out of the public headers." 2016-05-02 21:22:32 +00:00
Elliott Hughes
eb9b0a1819 Merge "Move nsswitch.h into libc/dns/include." 2016-05-02 21:11:30 +00:00
Elliott Hughes
af5afdba34 Merge "Remove <net/if_ieee1394.h>." 2016-05-02 21:11:10 +00:00
Elliott Hughes
5ab6f6c3bd Merge "Remove <sys/ioctl_compat.h>." 2016-05-02 21:07:13 +00:00
Elliott Hughes
fd75024866 Merge "Remove unused <sys/socketcalls.h> header." am: d3f51a482f
am: f016491373

* commit 'f016491373b5ece75377fb20227d8824f9c757c4':
  Remove unused <sys/socketcalls.h> header.

Change-Id: Ie2b5979fc142e7feb9b574e9813994f1a34908fd
2016-05-02 20:19:35 +00:00
Elliott Hughes
e10ff49ec3 Remove <sys/utime.h>.
As far as I can tell, this is a Windows-ism.

Bug: http://b/28519060
Change-Id: I28ca39ba799aaae81695eff3ce57eacb326e941c
2016-05-02 13:13:49 -07:00
Elliott Hughes
d3f51a482f Merge "Remove unused <sys/socketcalls.h> header." 2016-05-02 20:03:53 +00:00
Elliott Hughes
64959d2b7f Remove <sys/ioctl_compat.h>.
This is all legacy BSD stuff (legacy even on BSD!) that's meaningless on Linux.

Bug: http://b/28519060
Change-Id: I92d317ede844ebd50b48368021fa2ad036e2b0c1
2016-05-02 12:53:00 -07:00
Elliott Hughes
8aabbd7f63 Move glibc-syscalls.h into bits/.
Bug: http://b/28519060
Change-Id: I0de1ba16b16eb7b780de89954d3fa45cca2f5295
2016-05-02 12:47:58 -07:00