OSDN Git Service

Clean up sys_signame and sys_siglist a little.
authorElliott Hughes <enh@google.com>
Wed, 12 Feb 2014 03:57:06 +0000 (19:57 -0800)
committerElliott Hughes <enh@google.com>
Thu, 13 Feb 2014 01:09:25 +0000 (17:09 -0800)
commitaa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9
treee0fa3c926172fbc3e4b1a43950ae2a7ea662deb7
parent9e572ca4163e42bcd053df2cb8557e4b61ad064d
Clean up sys_signame and sys_siglist a little.

We don't need quite so much duplication because we already have a way
to get the signal number from its name, and that already copes with the
fact that the mips/mips64 numbers are different from everyone else's.

Also remove sys_signame from LP64. glibc doesn't have this BSD-ism.

Change-Id: I6dc411a3d73589383c85d3b07d9d648311492a10
libc/Android.mk
libc/bionic/strerror_r.cpp
libc/bionic/sys_siglist.c [moved from libc/bionic/siglist.c with 91% similarity]
libc/bionic/sys_signame.c [moved from libc/bionic/signame.c with 90% similarity]
libc/include/signal.h
libc/include/sys/_sigdefs.h
tests/signal_test.cpp