提交 ea1d4aec 编写于 作者: W w00349915 提交者: public tcshversion

TicketNo:AR000E0QAB

Description:c musl delete print
Team: OTHERS
Feature or Bugfix:Feature
Binary Source:No
PrivateCode(Yes/No):No

Change-Id: I53029c21fad973f20e6efed2f3164e2a5e05d007
Reviewed-on: http://mgit-tm.rnd.huawei.com/10577995Tested-by: Npublic jenkins <public_jenkins@notesmail.huawei.com>
Reviewed-by: Nchenwei 00346986 <chenwei26@huawei.com>
Reviewed-by: Njianghan 00316535 <jianghan2@huawei.com>
Reviewed-by: Nshenwei 00579521 <denny.shenwei@huawei.com>
上级 c415a6f2
......@@ -2,14 +2,12 @@
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <unsupported_api.h>
static void dummy(char *old, char *new) {}
weak_alias(dummy, __env_rm_add);
int unsetenv(const char *name)
{
unsupported_api(__FUNCTION__);
size_t l = __strchrnul(name, '=') - name;
if (!l || name[l]) {
errno = EINVAL;
......
#include <string.h>
#include <locale.h>
#include <unsupported_api.h>
#include "locale_impl.h"
/* collate only by code points */
size_t __strxfrm_l(char *restrict dest, const char *restrict src, size_t n, locale_t loc)
{
unsupported_api(__FUNCTION__);
size_t l = strlen(src);
if (n > l) strcpy(dest, src);
return l;
......
#include <unsupported_api.h>
#include "pthread_impl.h"
int pthread_attr_destroy(pthread_attr_t *a)
{
unsupported_api(__FUNCTION__);
return 0;
}
......@@ -3,48 +3,41 @@
int pthread_attr_getdetachstate(const pthread_attr_t *a, int *state)
{
unsupported_api(__FUNCTION__);
*state = a->_a_detach;
return 0;
}
int pthread_attr_getguardsize(const pthread_attr_t *restrict a, size_t *restrict size)
{
unsupported_api(__FUNCTION__);
*size = a->_a_guardsize;
return 0;
}
int pthread_attr_getinheritsched(const pthread_attr_t *restrict a, int *restrict inherit)
{
unsupported_api(__FUNCTION__);
*inherit = a->_a_sched;
return 0;
}
int pthread_attr_getschedparam(const pthread_attr_t *restrict a, struct sched_param *restrict param)
{
unsupported_api(__FUNCTION__);
param->sched_priority = a->_a_prio;
return 0;
}
int pthread_attr_getschedpolicy(const pthread_attr_t *restrict a, int *restrict policy)
{
unsupported_api(__FUNCTION__);
*policy = a->_a_policy;
return 0;
}
int pthread_attr_getscope(const pthread_attr_t *restrict a, int *restrict scope)
{
unsupported_api(__FUNCTION__);
*scope = PTHREAD_SCOPE_PROCESS;
return 0;
}
int pthread_attr_getstack(const pthread_attr_t *restrict a, void **restrict addr, size_t *restrict size)
{
unsupported_api(__FUNCTION__);
if (!a->_a_stackaddr)
return EINVAL;
*size = a->_a_stacksize;
......@@ -54,7 +47,6 @@ int pthread_attr_getstack(const pthread_attr_t *restrict a, void **restrict addr
int pthread_attr_getstacksize(const pthread_attr_t *restrict a, size_t *restrict size)
{
unsupported_api(__FUNCTION__);
*size = a->_a_stacksize;
return 0;
}
......@@ -68,7 +60,6 @@ int pthread_barrierattr_getpshared(const pthread_barrierattr_t *restrict a, int
int pthread_condattr_getclock(const pthread_condattr_t *restrict a, clockid_t *restrict clk)
{
unsupported_api(__FUNCTION__);
*clk = a->__attr & 0x7fffffff;
return 0;
}
......@@ -102,7 +93,6 @@ int pthread_mutexattr_getrobust(const pthread_mutexattr_t *restrict a, int *rest
int pthread_mutexattr_gettype(const pthread_mutexattr_t *restrict a, int *restrict type)
{
unsupported_api(__FUNCTION__);
*type = a->__attr & 3;
return 0;
}
......
#include <unsupported_api.h>
#include "pthread_impl.h"
int pthread_getcpuclockid(pthread_t t, clockid_t *clockid)
{
unsupported_api(__FUNCTION__);
*clockid = (-t->tid-1)*8U + 6;
return 0;
}
#include <unsupported_api.h>
#include "pthread_impl.h"
#include "lock.h"
......@@ -6,7 +5,6 @@ int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *par
{
int r;
unsupported_api(__FUNCTION__);
if (policy != SCHED_RR && policy != SCHED_FIFO) {
return EINVAL;
}
......
#include <unistd.h>
#include "syscall.h"
#include <unsupported_api.h>
int dup(int fd)
{
unsupported_api(__FUNCTION__);
return syscall(SYS_dup, fd);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册