Merge "support _POSIX_REALTIME_SIGNALS"

This commit is contained in:
Yabin Cui
2014-12-09 20:10:19 +00:00
committed by Gerrit Code Review
17 changed files with 403 additions and 24 deletions

View File

@@ -69,7 +69,7 @@
#define _POSIX_PRIORITIZED_IO -1 /* not implemented */
#define _POSIX_RAW_SOCKETS 200809L
#define _POSIX_READER_WRITER_LOCKS 200809L
#define _POSIX_REALTIME_SIGNALS -1 /* for now, this is not supported */
#define _POSIX_REALTIME_SIGNALS 200809L
#define _POSIX_REGEXP 1
#define _POSIX_RE_DUP_MAX 255
#define _POSIX_SAVED_IDS 1 /* saved user ids is a Linux feature */

View File

@@ -32,6 +32,7 @@
#include <asm/sigcontext.h>
#include <errno.h>
#include <limits.h>
#include <linux/time.h>
#include <machine/pthread_types.h>
#include <string.h>
#include <sys/cdefs.h>
@@ -133,6 +134,10 @@ extern void psignal(int, const char*);
extern int pthread_kill(pthread_t, int);
extern int pthread_sigmask(int, const sigset_t*, sigset_t*);
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*);
__END_DECLS
#endif /* _SIGNAL_H_ */