libc/sysconf: add _SC_REALTIME_SIGNALS
pass ltp case: open_posix_testsuite/conformance/interfaces/sigwait/7-1.c Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
This commit is contained in:
parent
d1825a7acb
commit
2bf434214e
|
@ -45,7 +45,6 @@
|
|||
#define POSIX_VERSION
|
||||
#undef _POSIX_SAVED_IDS
|
||||
#undef _POSIX_JOB_CONTROL
|
||||
#define _POSIX_REALTIME_SIGNALS 1
|
||||
#define _POSIX_MESSAGE_PASSING 1
|
||||
#undef _POSIX_MAPPED_FILES
|
||||
#undef _POSIX_SHARED_MEMORY_OBJECTS
|
||||
|
@ -65,6 +64,7 @@
|
|||
#define _POSIX_PRIORITIZED_IO _POSIX_VERSION
|
||||
#define _POSIX_CPUTIME _POSIX_VERSION
|
||||
#define _POSIX_THREAD_CPUTIME _POSIX_VERSION
|
||||
#define _POSIX_REALTIME_SIGNALS _POSIX_VERSION
|
||||
#define _POSIX_THREAD_PRIORITY_SCHEDULING _POSIX_VERSION
|
||||
|
||||
#ifdef CONFIG_FS_AIO
|
||||
|
|
|
@ -227,6 +227,8 @@ long sysconf(int name)
|
|||
return _POSIX_CPUTIME;
|
||||
case _SC_THREAD_CPUTIME:
|
||||
return _POSIX_THREAD_CPUTIME;
|
||||
case _SC_REALTIME_SIGNALS:
|
||||
return _POSIX_REALTIME_SIGNALS;
|
||||
case _SC_CLK_TCK:
|
||||
return CLOCKS_PER_SEC;
|
||||
|
||||
|
|
Loading…
Reference in New Issue