Elliott Hughes bb46afd6c4 Revert "Revert "Remove __sinit and __sdidinit.""
This reverts commit c8bae05f3ff9f1c736f7be70fa17d02795d748bb.

We were breaking init (ueventd) because we initialize system properties
before we initialize stdio. The new system property implementation uses
stdio to read from /property_contexts, so we end up touching stdio data
structures before they've been initialized.

This second attempt takes things further by removing the stdio initialization
function altogether. The data structures for stdin/stdout/stderr can be
statically initialized as data, and -- since we already had to give the
atexit implementation a backdoor for stdio -- we can just admit that we
need to clean up stdio, and that we always do so last.

This patch also removes the 17 statically pre-allocated file structures,
so the first fopen will now allocate a block of 10 (the usual overflow
behavior). I did this just to make my life simpler, but it's not actually
necessary to remove it if we want it back.

Change-Id: I936b2eb5e88e4ebaf5516121872b71fc88e5609c
2015-12-05 07:30:59 -08:00
..
2015-02-09 18:01:45 +00:00
2014-04-07 16:41:53 -07:00
2014-04-07 16:41:53 -07:00
2014-04-07 16:41:53 -07:00
2014-07-14 12:05:16 -07:00
2015-10-09 17:36:05 -07:00
2014-06-06 16:49:39 -07:00
2014-05-29 10:51:22 -07:00
2014-12-29 13:29:50 -08:00
2014-11-26 17:14:50 -08:00
2015-04-23 08:41:45 -07:00
2014-07-14 15:48:02 -07:00
2014-08-22 11:05:48 -07:00
2015-01-26 14:28:41 -08:00
2015-02-24 13:40:43 -08:00
2014-06-20 09:06:57 -07:00
2015-06-01 13:22:57 -07:00
2014-11-21 19:27:28 -08:00
2013-08-08 17:52:06 -07:00
2014-06-20 09:06:57 -07:00
2014-06-02 10:32:55 -07:00
2015-11-06 13:14:43 -08:00
2014-12-29 13:29:50 -08:00
2015-10-28 20:04:59 -07:00
2015-07-28 08:51:17 -07:00
2015-07-28 16:46:06 -07:00
2014-08-22 10:23:12 -07:00
2014-08-22 10:23:12 -07:00
2014-10-23 19:10:54 -07:00
2015-02-02 10:21:39 -08:00
2014-09-11 08:45:46 -07:00
2014-12-04 11:01:28 -08:00
2015-11-18 17:51:21 -08:00
2014-07-16 16:07:10 -07:00
2014-12-29 13:29:50 -08:00
2014-04-30 14:30:15 +01:00
2014-01-02 12:05:50 -08:00
2013-10-09 17:35:36 -07:00
2013-10-09 17:35:36 -07:00
2015-10-30 17:10:47 -07:00
2015-05-18 11:29:20 -07:00
2015-08-26 09:59:29 -07:00
2014-08-28 16:37:09 -07:00
2014-04-16 16:09:41 -07:00
2015-09-22 13:33:17 -07:00
2014-02-12 19:04:27 -08:00
2015-07-28 16:46:06 -07:00
2015-09-29 17:49:37 -07:00
2015-01-26 14:28:41 -08:00
2014-12-29 13:29:50 -08:00
2014-10-07 11:28:47 -07:00
2014-05-13 10:14:22 -07:00
2014-12-29 13:29:50 -08:00
2014-06-13 16:04:41 -07:00