bionic/libc/unistd
Elliott Hughes 61e699a133 Clean up abort.
* A dlmalloc usage error shouldn't call abort(3) because we want to
  cause a SIGSEGV by writing the address dlmalloc didn't like to an
  address the kernel won't like, so that debuggerd will dump the
  memory around the address that upset dlmalloc.

* Switch to the simpler FreeBSD/NetBSD style of registering stdio
  cleanup. Hopefully this will let us simplify more of the stdio
  implementation.

* Clear the stdio cleanup handler before we abort because of a dlmalloc
  corruption error. This fixes the reported bug, where we'd hang inside
  dlmalloc because the stdio cleanup reentered dlmalloc.

Bug: 9301265
Change-Id: Ief31b389455d6876e5a68f0f5429567d37277dbc
2013-06-12 14:14:53 -07:00
..
alarm.c libc: update alarm() implementation to return 0 on error. 2010-07-08 17:20:29 -07:00
charclass.h fnmatch.c: Update to version in OpenBSD HEAD 2012-03-21 09:53:05 -07:00
exec.c execvp: bcopy() is deprecated. Use memcpy() instead 2012-01-14 11:22:36 +08:00
fnmatch.c fnmatch.c: Update to version in OpenBSD HEAD 2012-03-21 09:53:05 -07:00
getopt_long.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
syslog.c __progname should be const char*, not char*. 2013-02-07 12:06:44 -08:00
system.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
time.c am 2be3f09f: Merge "time: Improve C99 compliance" 2011-06-23 10:01:11 -07:00