diff options
| author | bernard <[email protected]> | 2014-03-11 16:05:14 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2014-03-11 16:05:14 +0800 |
| commit | 09bb7393b2f8265e281da785925f89b4964f1be7 (patch) | |
| tree | e7f8a30c39900cd4b1d6d6ce64a09319ad22698a /components/pthreads/pthread_attr.c | |
| parent | 33a5abbbf85683297a1efdc290786ffe455a3b5d (diff) | |
[Pthreads] fix compiling warning
Diffstat (limited to 'components/pthreads/pthread_attr.c')
| -rw-r--r-- | components/pthreads/pthread_attr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/pthreads/pthread_attr.c b/components/pthreads/pthread_attr.c index 9b84935a83..3e0f7b1e4c 100644 --- a/components/pthreads/pthread_attr.c +++ b/components/pthreads/pthread_attr.c @@ -151,7 +151,7 @@ int pthread_attr_setstackaddr(pthread_attr_t *attr, void *stack_addr) { RT_ASSERT(attr != RT_NULL); - return ENOTSUP; + return EOPNOTSUPP; } RTM_EXPORT(pthread_attr_setstackaddr); @@ -159,7 +159,7 @@ int pthread_attr_getstackaddr(pthread_attr_t const *attr, void **stack_addr) { RT_ASSERT(attr != RT_NULL); - return ENOTSUP; + return EOPNOTSUPP; } RTM_EXPORT(pthread_attr_getstackaddr); @@ -191,12 +191,12 @@ RTM_EXPORT(pthread_attr_getstack); int pthread_attr_setguardsize(pthread_attr_t *attr, size_t guard_size) { - return ENOTSUP; + return EOPNOTSUPP; } int pthread_attr_getguardsize(pthread_attr_t const *attr, size_t *guard_size) { - return ENOTSUP; + return EOPNOTSUPP; } RTM_EXPORT(pthread_attr_getguardsize); @@ -205,7 +205,7 @@ int pthread_attr_setscope(pthread_attr_t *attr, int scope) if (scope == PTHREAD_SCOPE_SYSTEM) return 0; if (scope == PTHREAD_SCOPE_PROCESS) - return ENOTSUP; + return EOPNOTSUPP; return EINVAL; } |
