Put back inline definitions if using an old API.
All these inlines were turned in to out of line definitions in L. This brings us a step closer to being able to just use the current bionic headers for the NDK, rather than having many old versions of them. Change-Id: Ie010bc727d78d3742abc577c70f6578db2e68625
This commit is contained in:
@@ -105,15 +105,15 @@ struct sigaction {
|
||||
|
||||
extern int sigaction(int, const struct sigaction*, struct sigaction*);
|
||||
|
||||
extern sighandler_t signal(int, sighandler_t);
|
||||
_BIONIC_NOT_BEFORE_21(extern sighandler_t signal(int, sighandler_t);)
|
||||
|
||||
extern int siginterrupt(int, int);
|
||||
|
||||
extern int sigaddset(sigset_t*, int);
|
||||
extern int sigdelset(sigset_t*, int);
|
||||
extern int sigemptyset(sigset_t*);
|
||||
extern int sigfillset(sigset_t*);
|
||||
extern int sigismember(const sigset_t*, int);
|
||||
_BIONIC_NOT_BEFORE_21(extern int sigaddset(sigset_t*, int);)
|
||||
_BIONIC_NOT_BEFORE_21(extern int sigdelset(sigset_t*, int);)
|
||||
_BIONIC_NOT_BEFORE_21(extern int sigemptyset(sigset_t*);)
|
||||
_BIONIC_NOT_BEFORE_21(extern int sigfillset(sigset_t*);)
|
||||
_BIONIC_NOT_BEFORE_21(extern int sigismember(const sigset_t*, int);)
|
||||
|
||||
extern int sigpending(sigset_t*) __nonnull((1));
|
||||
extern int sigprocmask(int, const sigset_t*, sigset_t*);
|
||||
@@ -136,6 +136,10 @@ extern int sigqueue(pid_t, int, const union sigval);
|
||||
extern int sigtimedwait(const sigset_t*, siginfo_t*, const struct timespec*);
|
||||
extern int sigwaitinfo(const sigset_t*, siginfo_t*);
|
||||
|
||||
#if __ANDROID_API__ < 21
|
||||
#include <android/legacy_signal_inlines.h>
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* _SIGNAL_H_ */
|
||||
|
||||
Reference in New Issue
Block a user