No description
Find a file
David 'Digit' Turner c30396f5f2 libc: Fix alphasort() signature (and implementation).
The declaration for alphasort() in <dirent.h> used the deprecated:

  int alphasort(const void*, const void*);

while both Posix and GLibc use instead:

  int alphasort(const struct dirent** a, const struct dirent** b);

See: http://pubs.opengroup.org/onlinepubs/9699919799/functions/alphasort.html

This patch does the following:

- Update the declaration to match Posix/GLibc
- Get rid of the upstream BSD code which isn't compatible with the new
  signature.
- Implement a new trivial alphasort() with the right signature, and
  ensure that it uses strcoll() instead of strcmp().
- Remove Bionic-specific #ifdef .. #else .. #endif block in
  dirent_test.cpp which uses alphasort().

Even through strcoll() currently uses strcmp(), this does the right
thing in the case where we decide to update strcoll() to properly
implement locale-specific ordered comparison.

Change-Id: I4fd45604d8a940aaf2eb0ecd7d73e2f11c9bca96
2012-10-29 07:44:27 -07:00
libc libc: Fix alphasort() signature (and implementation). 2012-10-29 07:44:27 -07:00
libdl Make the dlfcn mutex static. 2012-10-12 10:50:21 -07:00
libm Enclosed functions in fenv.h with __BEGIN_DECLS/__END_DECLS 2012-08-21 15:41:34 +08:00
libstdc++ Regenerate all NOTICE files with the latest version of the script. 2012-08-15 15:43:13 -07:00
libthread_db Add dependencies on all the makefiles. 2012-08-13 14:06:05 -07:00
linker Workaround g++ 4.7 compfail 2012-10-25 17:58:45 +04:00
tests libc: Fix alphasort() signature (and implementation). 2012-10-29 07:44:27 -07:00
.gitignore Merge memory checking functionality from sandbox 2010-02-16 11:43:18 -08:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:11:41 -07:00
CleanSpec.mk Add an empty CleanSpec.mk 2010-03-08 18:04:02 -08:00