提交 4a514c87 编写于 作者: O openharmony_ci 提交者: Gitee

!62 从Make编译切换到GN编译

Merge pull request !62 from Caoruihong/build_gn
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
# conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
# of conditions and the following disclaimer in the documentation and/or other materials
# provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used
# to endorse or promote products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
MUSLPORTINGDIR = get_path_info(".", "abspath")
MUSL_SRC_COMMON = [
"$MUSLPORTINGDIR/src/ctype/__ctype_get_mb_cur_max.c",
"$MUSLPORTINGDIR/src/ctype/isalpha.c",
"$MUSLPORTINGDIR/src/ctype/isdigit.c",
"$MUSLPORTINGDIR/src/ctype/islower.c",
"$MUSLPORTINGDIR/src/ctype/isspace.c",
"$MUSLPORTINGDIR/src/ctype/isupper.c",
"$MUSLPORTINGDIR/src/ctype/isxdigit.c",
"$MUSLPORTINGDIR/src/ctype/tolower.c",
"$MUSLPORTINGDIR/src/ctype/toupper.c",
"$MUSLPORTINGDIR/src/env/getenv.c",
"$MUSLPORTINGDIR/src/errno/errno.c",
"$MUSLPORTINGDIR/src/errno/strerror.c",
"$MUSLPORTINGDIR/src/exit/abort.c",
"$MUSLPORTINGDIR/src/exit/assert.c",
"$MUSLPORTINGDIR/src/exit/exit.c",
"$MUSLPORTINGDIR/src/fenv/fenv.c",
"$MUSLPORTINGDIR/src/internal/floatscan.c",
"$MUSLPORTINGDIR/src/internal/intscan.c",
"$MUSLPORTINGDIR/src/internal/shgetc.c",
"$MUSLPORTINGDIR/src/linux/stime.c",
"$MUSLPORTINGDIR/src/locale/__lctrans.c",
"$MUSLPORTINGDIR/src/locale/__mo_lookup.c",
"$MUSLPORTINGDIR/src/locale/c_locale.c",
"$MUSLPORTINGDIR/src/locale/langinfo.c",
"$MUSLPORTINGDIR/src/locale/locale_map.c",
"$MUSLPORTINGDIR/src/malloc/malloc.c",
"$MUSLPORTINGDIR/src/math/__cos.c",
"$MUSLPORTINGDIR/src/math/__cosdf.c",
"$MUSLPORTINGDIR/src/math/__cosl.c",
"$MUSLPORTINGDIR/src/math/__expo2.c",
"$MUSLPORTINGDIR/src/math/__expo2f.c",
"$MUSLPORTINGDIR/src/math/__fpclassify.c",
"$MUSLPORTINGDIR/src/math/__fpclassifyf.c",
"$MUSLPORTINGDIR/src/math/__fpclassifyl.c",
"$MUSLPORTINGDIR/src/math/__invtrigl.c",
"$MUSLPORTINGDIR/src/math/__math_divzero.c",
"$MUSLPORTINGDIR/src/math/__math_divzerof.c",
"$MUSLPORTINGDIR/src/math/__math_invalid.c",
"$MUSLPORTINGDIR/src/math/__math_invalidf.c",
"$MUSLPORTINGDIR/src/math/__math_oflow.c",
"$MUSLPORTINGDIR/src/math/__math_oflowf.c",
"$MUSLPORTINGDIR/src/math/__math_uflow.c",
"$MUSLPORTINGDIR/src/math/__math_uflowf.c",
"$MUSLPORTINGDIR/src/math/__math_xflow.c",
"$MUSLPORTINGDIR/src/math/__math_xflowf.c",
"$MUSLPORTINGDIR/src/math/__polevll.c",
"$MUSLPORTINGDIR/src/math/__rem_pio2.c",
"$MUSLPORTINGDIR/src/math/__rem_pio2_large.c",
"$MUSLPORTINGDIR/src/math/__rem_pio2f.c",
"$MUSLPORTINGDIR/src/math/__rem_pio2l.c",
"$MUSLPORTINGDIR/src/math/__signbit.c",
"$MUSLPORTINGDIR/src/math/__signbitf.c",
"$MUSLPORTINGDIR/src/math/__signbitl.c",
"$MUSLPORTINGDIR/src/math/__sin.c",
"$MUSLPORTINGDIR/src/math/__sindf.c",
"$MUSLPORTINGDIR/src/math/__sinl.c",
"$MUSLPORTINGDIR/src/math/__tan.c",
"$MUSLPORTINGDIR/src/math/__tandf.c",
"$MUSLPORTINGDIR/src/math/__tanl.c",
"$MUSLPORTINGDIR/src/math/acos.c",
"$MUSLPORTINGDIR/src/math/acosf.c",
"$MUSLPORTINGDIR/src/math/acosh.c",
"$MUSLPORTINGDIR/src/math/acoshf.c",
"$MUSLPORTINGDIR/src/math/acoshl.c",
"$MUSLPORTINGDIR/src/math/acosl.c",
"$MUSLPORTINGDIR/src/math/asin.c",
"$MUSLPORTINGDIR/src/math/asinf.c",
"$MUSLPORTINGDIR/src/math/asinh.c",
"$MUSLPORTINGDIR/src/math/asinhf.c",
"$MUSLPORTINGDIR/src/math/asinhl.c",
"$MUSLPORTINGDIR/src/math/asinl.c",
"$MUSLPORTINGDIR/src/math/atan.c",
"$MUSLPORTINGDIR/src/math/atan2.c",
"$MUSLPORTINGDIR/src/math/atan2f.c",
"$MUSLPORTINGDIR/src/math/atan2l.c",
"$MUSLPORTINGDIR/src/math/atanf.c",
"$MUSLPORTINGDIR/src/math/atanh.c",
"$MUSLPORTINGDIR/src/math/atanhf.c",
"$MUSLPORTINGDIR/src/math/atanhl.c",
"$MUSLPORTINGDIR/src/math/atanl.c",
"$MUSLPORTINGDIR/src/math/cbrt.c",
"$MUSLPORTINGDIR/src/math/cbrtf.c",
"$MUSLPORTINGDIR/src/math/cbrtl.c",
"$MUSLPORTINGDIR/src/math/ceil.c",
"$MUSLPORTINGDIR/src/math/ceilf.c",
"$MUSLPORTINGDIR/src/math/ceill.c",
"$MUSLPORTINGDIR/src/math/copysign.c",
"$MUSLPORTINGDIR/src/math/copysignf.c",
"$MUSLPORTINGDIR/src/math/copysignl.c",
"$MUSLPORTINGDIR/src/math/cos.c",
"$MUSLPORTINGDIR/src/math/cosf.c",
"$MUSLPORTINGDIR/src/math/cosh.c",
"$MUSLPORTINGDIR/src/math/coshf.c",
"$MUSLPORTINGDIR/src/math/coshl.c",
"$MUSLPORTINGDIR/src/math/cosl.c",
"$MUSLPORTINGDIR/src/math/erf.c",
"$MUSLPORTINGDIR/src/math/erff.c",
"$MUSLPORTINGDIR/src/math/erfl.c",
"$MUSLPORTINGDIR/src/math/exp.c",
"$MUSLPORTINGDIR/src/math/exp10.c",
"$MUSLPORTINGDIR/src/math/exp10f.c",
"$MUSLPORTINGDIR/src/math/exp10l.c",
"$MUSLPORTINGDIR/src/math/exp2.c",
"$MUSLPORTINGDIR/src/math/exp2f.c",
"$MUSLPORTINGDIR/src/math/exp2f_data.c",
"$MUSLPORTINGDIR/src/math/exp2l.c",
"$MUSLPORTINGDIR/src/math/exp_data.c",
"$MUSLPORTINGDIR/src/math/expf.c",
"$MUSLPORTINGDIR/src/math/expl.c",
"$MUSLPORTINGDIR/src/math/expm1.c",
"$MUSLPORTINGDIR/src/math/expm1f.c",
"$MUSLPORTINGDIR/src/math/expm1l.c",
"$MUSLPORTINGDIR/src/math/fabs.c",
"$MUSLPORTINGDIR/src/math/fabsf.c",
"$MUSLPORTINGDIR/src/math/fabsl.c",
"$MUSLPORTINGDIR/src/math/fdim.c",
"$MUSLPORTINGDIR/src/math/fdimf.c",
"$MUSLPORTINGDIR/src/math/fdiml.c",
"$MUSLPORTINGDIR/src/math/finite.c",
"$MUSLPORTINGDIR/src/math/finitef.c",
"$MUSLPORTINGDIR/src/math/floor.c",
"$MUSLPORTINGDIR/src/math/floorf.c",
"$MUSLPORTINGDIR/src/math/floorl.c",
"$MUSLPORTINGDIR/src/math/fma.c",
"$MUSLPORTINGDIR/src/math/fmaf.c",
"$MUSLPORTINGDIR/src/math/fmal.c",
"$MUSLPORTINGDIR/src/math/fmax.c",
"$MUSLPORTINGDIR/src/math/fmaxf.c",
"$MUSLPORTINGDIR/src/math/fmaxl.c",
"$MUSLPORTINGDIR/src/math/fmin.c",
"$MUSLPORTINGDIR/src/math/fminf.c",
"$MUSLPORTINGDIR/src/math/fminl.c",
"$MUSLPORTINGDIR/src/math/fmod.c",
"$MUSLPORTINGDIR/src/math/fmodf.c",
"$MUSLPORTINGDIR/src/math/fmodl.c",
"$MUSLPORTINGDIR/src/math/frexp.c",
"$MUSLPORTINGDIR/src/math/frexpf.c",
"$MUSLPORTINGDIR/src/math/frexpl.c",
"$MUSLPORTINGDIR/src/math/hypot.c",
"$MUSLPORTINGDIR/src/math/hypotf.c",
"$MUSLPORTINGDIR/src/math/hypotl.c",
"$MUSLPORTINGDIR/src/math/ilogb.c",
"$MUSLPORTINGDIR/src/math/ilogbf.c",
"$MUSLPORTINGDIR/src/math/ilogbl.c",
"$MUSLPORTINGDIR/src/math/j0.c",
"$MUSLPORTINGDIR/src/math/j0f.c",
"$MUSLPORTINGDIR/src/math/j1.c",
"$MUSLPORTINGDIR/src/math/j1f.c",
"$MUSLPORTINGDIR/src/math/jn.c",
"$MUSLPORTINGDIR/src/math/jnf.c",
"$MUSLPORTINGDIR/src/math/ldexp.c",
"$MUSLPORTINGDIR/src/math/ldexpf.c",
"$MUSLPORTINGDIR/src/math/ldexpl.c",
"$MUSLPORTINGDIR/src/math/lgamma.c",
"$MUSLPORTINGDIR/src/math/lgamma_r.c",
"$MUSLPORTINGDIR/src/math/lgammaf.c",
"$MUSLPORTINGDIR/src/math/lgammaf_r.c",
"$MUSLPORTINGDIR/src/math/lgammal.c",
"$MUSLPORTINGDIR/src/math/llrint.c",
"$MUSLPORTINGDIR/src/math/llrintf.c",
"$MUSLPORTINGDIR/src/math/llrintl.c",
"$MUSLPORTINGDIR/src/math/llround.c",
"$MUSLPORTINGDIR/src/math/llroundf.c",
"$MUSLPORTINGDIR/src/math/llroundl.c",
"$MUSLPORTINGDIR/src/math/log.c",
"$MUSLPORTINGDIR/src/math/log10.c",
"$MUSLPORTINGDIR/src/math/log10f.c",
"$MUSLPORTINGDIR/src/math/log10l.c",
"$MUSLPORTINGDIR/src/math/log1p.c",
"$MUSLPORTINGDIR/src/math/log1pf.c",
"$MUSLPORTINGDIR/src/math/log1pl.c",
"$MUSLPORTINGDIR/src/math/log2.c",
"$MUSLPORTINGDIR/src/math/log2_data.c",
"$MUSLPORTINGDIR/src/math/log2f.c",
"$MUSLPORTINGDIR/src/math/log2f_data.c",
"$MUSLPORTINGDIR/src/math/log2l.c",
"$MUSLPORTINGDIR/src/math/log_data.c",
"$MUSLPORTINGDIR/src/math/logb.c",
"$MUSLPORTINGDIR/src/math/logbf.c",
"$MUSLPORTINGDIR/src/math/logbl.c",
"$MUSLPORTINGDIR/src/math/logf.c",
"$MUSLPORTINGDIR/src/math/logf_data.c",
"$MUSLPORTINGDIR/src/math/logl.c",
"$MUSLPORTINGDIR/src/math/lrint.c",
"$MUSLPORTINGDIR/src/math/lrintf.c",
"$MUSLPORTINGDIR/src/math/lrintl.c",
"$MUSLPORTINGDIR/src/math/lround.c",
"$MUSLPORTINGDIR/src/math/lroundf.c",
"$MUSLPORTINGDIR/src/math/lroundl.c",
"$MUSLPORTINGDIR/src/math/modf.c",
"$MUSLPORTINGDIR/src/math/modff.c",
"$MUSLPORTINGDIR/src/math/modfl.c",
"$MUSLPORTINGDIR/src/math/nan.c",
"$MUSLPORTINGDIR/src/math/nanf.c",
"$MUSLPORTINGDIR/src/math/nanl.c",
"$MUSLPORTINGDIR/src/math/nearbyint.c",
"$MUSLPORTINGDIR/src/math/nearbyintf.c",
"$MUSLPORTINGDIR/src/math/nearbyintl.c",
"$MUSLPORTINGDIR/src/math/nextafter.c",
"$MUSLPORTINGDIR/src/math/nextafterf.c",
"$MUSLPORTINGDIR/src/math/nextafterl.c",
"$MUSLPORTINGDIR/src/math/nexttoward.c",
"$MUSLPORTINGDIR/src/math/nexttowardf.c",
"$MUSLPORTINGDIR/src/math/nexttowardl.c",
"$MUSLPORTINGDIR/src/math/pow.c",
"$MUSLPORTINGDIR/src/math/pow_data.c",
"$MUSLPORTINGDIR/src/math/powf.c",
"$MUSLPORTINGDIR/src/math/powf_data.c",
"$MUSLPORTINGDIR/src/math/powl.c",
"$MUSLPORTINGDIR/src/math/remainder.c",
"$MUSLPORTINGDIR/src/math/remainderf.c",
"$MUSLPORTINGDIR/src/math/remainderl.c",
"$MUSLPORTINGDIR/src/math/remquo.c",
"$MUSLPORTINGDIR/src/math/remquof.c",
"$MUSLPORTINGDIR/src/math/remquol.c",
"$MUSLPORTINGDIR/src/math/rint.c",
"$MUSLPORTINGDIR/src/math/rintf.c",
"$MUSLPORTINGDIR/src/math/rintl.c",
"$MUSLPORTINGDIR/src/math/round.c",
"$MUSLPORTINGDIR/src/math/roundf.c",
"$MUSLPORTINGDIR/src/math/roundl.c",
"$MUSLPORTINGDIR/src/math/scalb.c",
"$MUSLPORTINGDIR/src/math/scalbf.c",
"$MUSLPORTINGDIR/src/math/scalbln.c",
"$MUSLPORTINGDIR/src/math/scalblnf.c",
"$MUSLPORTINGDIR/src/math/scalblnl.c",
"$MUSLPORTINGDIR/src/math/scalbn.c",
"$MUSLPORTINGDIR/src/math/scalbnf.c",
"$MUSLPORTINGDIR/src/math/scalbnl.c",
"$MUSLPORTINGDIR/src/math/signgam.c",
"$MUSLPORTINGDIR/src/math/significand.c",
"$MUSLPORTINGDIR/src/math/significandf.c",
"$MUSLPORTINGDIR/src/math/sin.c",
"$MUSLPORTINGDIR/src/math/sincos.c",
"$MUSLPORTINGDIR/src/math/sincosf.c",
"$MUSLPORTINGDIR/src/math/sincosl.c",
"$MUSLPORTINGDIR/src/math/sinf.c",
"$MUSLPORTINGDIR/src/math/sinh.c",
"$MUSLPORTINGDIR/src/math/sinhf.c",
"$MUSLPORTINGDIR/src/math/sinhl.c",
"$MUSLPORTINGDIR/src/math/sinl.c",
"$MUSLPORTINGDIR/src/math/sqrt.c",
"$MUSLPORTINGDIR/src/math/sqrtf.c",
"$MUSLPORTINGDIR/src/math/sqrtl.c",
"$MUSLPORTINGDIR/src/math/tan.c",
"$MUSLPORTINGDIR/src/math/tanf.c",
"$MUSLPORTINGDIR/src/math/tanh.c",
"$MUSLPORTINGDIR/src/math/tanhf.c",
"$MUSLPORTINGDIR/src/math/tanhl.c",
"$MUSLPORTINGDIR/src/math/tanl.c",
"$MUSLPORTINGDIR/src/math/tgamma.c",
"$MUSLPORTINGDIR/src/math/tgammaf.c",
"$MUSLPORTINGDIR/src/math/tgammal.c",
"$MUSLPORTINGDIR/src/math/trunc.c",
"$MUSLPORTINGDIR/src/math/truncf.c",
"$MUSLPORTINGDIR/src/math/truncl.c",
"$MUSLPORTINGDIR/src/multibyte/internal.c",
"$MUSLPORTINGDIR/src/multibyte/mbtowc.c",
"$MUSLPORTINGDIR/src/multibyte/wcrtomb.c",
"$MUSLPORTINGDIR/src/multibyte/wctomb.c",
"$MUSLPORTINGDIR/src/network/htonl.c",
"$MUSLPORTINGDIR/src/network/htons.c",
"$MUSLPORTINGDIR/src/network/ntohl.c",
"$MUSLPORTINGDIR/src/network/ntohs.c",
"$MUSLPORTINGDIR/src/prng/rand.c",
"$MUSLPORTINGDIR/src/prng/random.c",
"$MUSLPORTINGDIR/src/sched/sched_yield.c",
"$MUSLPORTINGDIR/src/stdio/__fdopen.c",
"$MUSLPORTINGDIR/src/stdio/__fmodeflags.c",
"$MUSLPORTINGDIR/src/stdio/__lockfile.c",
"$MUSLPORTINGDIR/src/stdio/__overflow.c",
"$MUSLPORTINGDIR/src/stdio/__stdio_close.c",
"$MUSLPORTINGDIR/src/stdio/__stdio_read.c",
"$MUSLPORTINGDIR/src/stdio/__stdio_seek.c",
"$MUSLPORTINGDIR/src/stdio/__stdio_write.c",
"$MUSLPORTINGDIR/src/stdio/__stdout_write.c",
"$MUSLPORTINGDIR/src/stdio/__toread.c",
"$MUSLPORTINGDIR/src/stdio/__towrite.c",
"$MUSLPORTINGDIR/src/stdio/__uflow.c",
"$MUSLPORTINGDIR/src/stdio/fclose.c",
"$MUSLPORTINGDIR/src/stdio/feof.c",
"$MUSLPORTINGDIR/src/stdio/fflush.c",
"$MUSLPORTINGDIR/src/stdio/fgetc.c",
"$MUSLPORTINGDIR/src/stdio/fopen.c",
"$MUSLPORTINGDIR/src/stdio/fprintf.c",
"$MUSLPORTINGDIR/src/stdio/fputc.c",
"$MUSLPORTINGDIR/src/stdio/fputs.c",
"$MUSLPORTINGDIR/src/stdio/fread.c",
"$MUSLPORTINGDIR/src/stdio/fseek.c",
"$MUSLPORTINGDIR/src/stdio/ftell.c",
"$MUSLPORTINGDIR/src/stdio/fwrite.c",
"$MUSLPORTINGDIR/src/stdio/ofl.c",
"$MUSLPORTINGDIR/src/stdio/ofl_add.c",
"$MUSLPORTINGDIR/src/stdio/perror.c",
"$MUSLPORTINGDIR/src/stdio/printf.c",
"$MUSLPORTINGDIR/src/stdio/puts.c",
"$MUSLPORTINGDIR/src/stdio/remove.c",
"$MUSLPORTINGDIR/src/stdio/setvbuf.c",
"$MUSLPORTINGDIR/src/stdio/snprintf.c",
"$MUSLPORTINGDIR/src/stdio/sprintf.c",
"$MUSLPORTINGDIR/src/stdio/stderr.c",
"$MUSLPORTINGDIR/src/stdio/stdout.c",
"$MUSLPORTINGDIR/src/stdio/ungetc.c",
"$MUSLPORTINGDIR/src/stdio/vfprintf.c",
"$MUSLPORTINGDIR/src/stdio/vprintf.c",
"$MUSLPORTINGDIR/src/stdio/vsnprintf.c",
"$MUSLPORTINGDIR/src/stdio/vsprintf.c",
"$MUSLPORTINGDIR/src/stdlib/abs.c",
"$MUSLPORTINGDIR/src/stdlib/atoi.c",
"$MUSLPORTINGDIR/src/stdlib/strtod.c",
"$MUSLPORTINGDIR/src/stdlib/strtol.c",
"$MUSLPORTINGDIR/src/string/bzero.c",
"$MUSLPORTINGDIR/src/string/memchr.c",
"$MUSLPORTINGDIR/src/string/memcmp.c",
"$MUSLPORTINGDIR/src/string/memcpy.c",
"$MUSLPORTINGDIR/src/string/memmove.c",
"$MUSLPORTINGDIR/src/string/memrchr.c",
"$MUSLPORTINGDIR/src/string/memset.c",
"$MUSLPORTINGDIR/src/string/stpcpy.c",
"$MUSLPORTINGDIR/src/string/stpncpy.c",
"$MUSLPORTINGDIR/src/string/strcasecmp.c",
"$MUSLPORTINGDIR/src/string/strcasestr.c",
"$MUSLPORTINGDIR/src/string/strcat.c",
"$MUSLPORTINGDIR/src/string/strchr.c",
"$MUSLPORTINGDIR/src/string/strchrnul.c",
"$MUSLPORTINGDIR/src/string/strcmp.c",
"$MUSLPORTINGDIR/src/string/strcpy.c",
"$MUSLPORTINGDIR/src/string/strcspn.c",
"$MUSLPORTINGDIR/src/string/strdup.c",
"$MUSLPORTINGDIR/src/string/strerror_r.c",
"$MUSLPORTINGDIR/src/string/strlcat.c",
"$MUSLPORTINGDIR/src/string/strlcpy.c",
"$MUSLPORTINGDIR/src/string/strlen.c",
"$MUSLPORTINGDIR/src/string/strncasecmp.c",
"$MUSLPORTINGDIR/src/string/strncat.c",
"$MUSLPORTINGDIR/src/string/strncmp.c",
"$MUSLPORTINGDIR/src/string/strncpy.c",
"$MUSLPORTINGDIR/src/string/strndup.c",
"$MUSLPORTINGDIR/src/string/strnlen.c",
"$MUSLPORTINGDIR/src/string/strpbrk.c",
"$MUSLPORTINGDIR/src/string/strrchr.c",
"$MUSLPORTINGDIR/src/string/strsep.c",
"$MUSLPORTINGDIR/src/string/strspn.c",
"$MUSLPORTINGDIR/src/string/strstr.c",
"$MUSLPORTINGDIR/src/string/strtok.c",
"$MUSLPORTINGDIR/src/string/strtok_r.c",
"$MUSLPORTINGDIR/src/time/__month_to_secs.c",
"$MUSLPORTINGDIR/src/time/__secs_to_tm.c",
"$MUSLPORTINGDIR/src/time/__tm_to_secs.c",
"$MUSLPORTINGDIR/src/time/__tz.c",
"$MUSLPORTINGDIR/src/time/__year_to_secs.c",
"$MUSLPORTINGDIR/src/time/asctime.c",
"$MUSLPORTINGDIR/src/time/asctime_r.c",
"$MUSLPORTINGDIR/src/time/ctime.c",
"$MUSLPORTINGDIR/src/time/ctime_r.c",
"$MUSLPORTINGDIR/src/time/gmtime.c",
"$MUSLPORTINGDIR/src/time/gmtime_r.c",
"$MUSLPORTINGDIR/src/time/localtime.c",
"$MUSLPORTINGDIR/src/time/localtime_r.c",
"$MUSLPORTINGDIR/src/time/mktime.c",
"$MUSLPORTINGDIR/src/time/strftime.c",
"$MUSLPORTINGDIR/src/time/strptime.c",
"$MUSLPORTINGDIR/src/time/time.c",
]
MUSL_SRC_ARM = [
"$MUSLPORTINGDIR/src/math/arm/fabs.c",
"$MUSLPORTINGDIR/src/math/arm/fabsf.c",
"$MUSLPORTINGDIR/src/math/arm/fma.c",
"$MUSLPORTINGDIR/src/math/arm/fmaf.c",
"$MUSLPORTINGDIR/src/math/arm/sqrt.c",
"$MUSLPORTINGDIR/src/math/arm/sqrtf.c",
]
#include "stdio_impl.h"
#include <unistd.h>
#ifndef LOSCFG_FS_VFS
#define close(...) (-1)
#endif
int __stdio_close(FILE *f)
{
return close(f->fd);
......
......@@ -54,4 +54,9 @@ off_t __stdio_seek(FILE *f, off_t off, int whence)
off_t result = 0;
return __stdio_lseek64(f->fd, off>>32, off, &result, whence) ? -1 : result;
}
#else
off_t __stdio_seek(FILE *f, off_t off, int whence)
{
return 0;
}
#endif
#include "stdio_impl.h"
#include <sys/uio.h>
#ifndef LOSCFG_FS_VFS
#define writev(...) (-1)
#endif
size_t __stdio_write(FILE *f, const unsigned char *buf, size_t len)
{
struct iovec iovs[2] = {
......
#include "stdio_impl.h"
#include <sys/ioctl.h>
#ifndef LOSCFG_FS_VFS
static int _ioctl (int fd, int cmd, ...)
{
return -1;
}
#define ioctl _ioctl
#endif
size_t __stdout_write(FILE *f, const unsigned char *buf, size_t len)
{
struct winsize wsz;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册