chao.an
b1a042734f
style/Document: remove unnecessary trailing whitespace
...
N/A
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:30 +01:00
chao.an
c56785bd0d
style/Makefile: remove unnecessary trailing whitespace
...
N/A
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:30 +01:00
YAMAMOTO Takashi
a2a30c8813
libs/libnx/nxfonts/nxfonts_cache.c: Fix syslog formats
...
Note: the width of nxgl_mxpixel_t depends on configuration.
2020-11-27 05:18:57 -06:00
Xiang Xiao
d6c24312aa
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-26 18:42:18 -03:00
Xiang Xiao
afb0e33138
libc/machine/arch: Support armv8-m relocation
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-26 18:42:18 -03:00
Xiang Xiao
74ab69af62
libs/libc/machine/arm: Rename armv8 to armv8-m
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-26 18:42:18 -03:00
Xiang Xiao
edca49fb5f
libc/machine/arm: Use the correct arch Kconfig for variant check
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-26 18:42:18 -03:00
Xiang Xiao
baabe5e08a
libs/libc/machine: Remove ARCH_CORTEXM33 dependence from LIBM_ARCH_xxx
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-26 18:42:18 -03:00
Alin Jerpelea
9f6a43d0b0
libs: audio: libsamplerate: drop local patches
...
The needed patches were accepted upstream and now there is no need to
carry local patches.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-11-24 10:54:57 -08:00
YAMAMOTO Takashi
5566d9ad03
libs/libc/netdb/lib_dnsquery.c: Fix a syslog format
2020-11-23 05:00:10 -08:00
YAMAMOTO Takashi
c1f9d8adb1
libs/libc/machine/risc-v/rv64/arch_elf.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
Matias N
d5b6ec450f
Parallelize depend file generation
2020-11-22 09:02:59 -03:00
YAMAMOTO Takashi
42a218dabb
libs/libc/machine/arm/armv7-m/arch_elf.c: Fix syslog formats
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
04f2542cc2
libs/libc/machine/arm/armv7-m/arch_elf.c: Appease nxstyle
...
The following errors are intentionally left.
They are a part of tables which are not trivial to fix.
libs/libc/machine/arm/armv7-m/arch_elf.c:230:94: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:232:89: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:240:94: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:242:89: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:403:94: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:405:91: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:413:94: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:415:91: error: Long line found
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
34cd44f8d7
libs/libc/modlib/modlib_symbols.c: Fix syslog formats
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
6bdca69a32
libs/libc/modlib/modlib_bind.c: Fix syslog formats
2020-11-21 19:38:32 -08:00
Xiang Xiao
759b63d4be
libc: implement getopt_long partially
...
only the short option is supported now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-21 07:01:08 -06:00
Xiang Xiao
af53bdb048
libc: Add opterr global variable
...
defined here:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/getopt.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-21 07:01:08 -06:00
YAMAMOTO Takashi
8a70c6bf47
libs/libnx/nxfonts/nxfonts_cache.c: Fix syslog formats
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
07a67c7b96
libs/libnx/nxmu/nx_eventhandler.c: Fix syslog formats
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
aa653fef63
libs/libnx/nxglib/nxglib_splitline.c: Fix syslog formats
...
Note: b16_t is int32_t.
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
02b92c5ad9
libs/libc/pthread/pthread_attr_setstacksize.c: Fix a syslog format
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
efe8e24fe7
libs/libnx/nxmu/nx_eventhandler.c: Appease nxstyle
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
6d8ccccbb0
libs/libnx/nxglib/nxglib_splitline.c: Appease nxstyle
2020-11-20 22:22:53 -08:00
Alin Jerpelea
48e6f2051d
audio: libsamplerate: add initial audio Sample Rate Converter
...
Add audio sample rate conversion library from
http://www.mega-nerd.com/SRC/index.html
Source:
https://github.com/libsndfile/libsamplerate
Add needed patches for NuttX OS and embedded boards.
NOTE:
We must use master branch until next stable release
2020-11-19 18:05:47 -08:00
YAMAMOTO Takashi
bc4780b8ba
libs/libc/uuid/lib_uuid_from_string.c: Fix scanf format warnings
2020-11-18 00:44:55 -08:00
liuhaitao
fd94a32468
sysconf: add _SC_PAGESIZE sysconf support
...
Also implement getpagesize() based on sysconf(_SC_PAGESIZE).
Change-Id: I812eb8f34ed602f7bc12c4cafafcebc0d98fd136
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-11-17 02:03:23 -08:00
YAMAMOTO Takashi
1b4f65c7f2
libs/libc/uuid/lib_uuid_to_string.c: Fix a printf format warning
2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
9c08c53e81
libs/libc/time/lib_strftime.c: Fix a printf format warning
2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
2342b929e7
libs/libc/time/lib_strftime.c: Appease nxstyle
2020-11-16 05:46:53 -08:00
Xiang Xiao
b827565396
[libc++] Move the toolchain's macros undefinition to Make.defs
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-15 08:28:36 -03:00
Xiang Xiao
8bc4a5b08a
[libc++] Cherry pick patches from mainline to fix warnings
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-15 08:28:36 -03:00
Peter Bee
1f5786f5ea
libc/stdlib: Fix range check in strtoul(l)
...
The previous implementation of strtoul(l) is flawed. The range check
assumed that when overflow happens, the truncated value is smaller than
the original value. As a counter example, passing "10000000000" to
strtol will not trigger ERANGE, but return a truncated value. This patch
adds more accurate range checks.
Change-Id: I239e034e390b4974157ed6efa17110f2e74904cf
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2020-11-12 06:01:33 -08:00
Xiang Xiao
84b90e00f0
libc/stdio: Preallocate the stdin, stdout and stderr
...
to handle the uninitialized stdin/stdout/stderr gracefully
report here:
https://github.com/apache/incubator-nuttx/issues/2203
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-11 09:56:10 -08:00
YAMAMOTO Takashi
f307d999e6
lib_libvsprintf.c: Implement "t" modifier for printf
...
Introduced by C99 for ptrdiff_t.
2020-11-10 00:03:06 -08:00
Xiang Xiao
b23bca5cb3
libcxx: Update 0001-libcxx-Port-to-NuttX-https-nuttx.apache.org-RTOS.patch
...
All changes come from:
from YAMAMOTO Takashi <yamamoto@midokura.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-08 13:04:43 -03:00
Xiang Xiao
e160bffe28
Remove all fclose with stdin, stdout and stderr
...
since it is wrong to close the builtin stream and specially note
https://pubs.opengroup.org/onlinepubs/9699919799/functions/fclose.html :
Since after the call to fclose() any use of stream results in
undefined behavior, fclose() should not be used on stdin, stdout,
or stderr except immediately before process termination (see XBD
Process Termination), so as to avoid triggering undefined behavior
in other standard interfaces that rely on these streams. If there
are any atexit() handlers registered by the application, such a
call to fclose() should not occur until the last handler is
finishing. Once fclose() has been used to close stdin, stdout, or
stderr, there is no standard way to reopen any of these streams.
and it is also unnecessary because the stream always get flushed.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-29 20:43:50 +09:00
Yoshinori Sugino
c13f869432
Modify SIGSTP to SIGTSTP
...
Follow the POSIX description.
SIGTSTP should be sent when the Ctrl-Z characters is encountered, not SIGSTP.
Testing:
Built with hifive1-revb:nsh (CONFIG_SERIAL_TERMIOS=y, CONFIG_SIG_DEFAULT=y and CONFIG_TTY_SIGTSTP=y)
2020-10-29 01:12:43 -07:00
YAMAMOTO Takashi
ff3fa805a4
libxx: Use Kconfig "choice" to specify an implemenetation
...
It doesn't make sense to enable both of LIBCXX and UCLIBCXX.
This commit reflects it to Kconfig.
2020-10-28 14:10:30 -03:00
Yoshinori Sugino
079737dd0c
libs/libc/signal/sig_pause.c: Fix a comment
2020-10-28 07:12:46 +01:00
Xiang Xiao
2b9282d5ee
libc: Skip close stdin/stdout/stderr in fclose
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-26 22:16:53 -07:00
ligd
b69c587dc9
stdio: remove depends on setbuf setvbuf
...
N/A
Cause the function realize will handle this
Change-Id: I154c21c7a40667afae423bb0ebb67de8f5fc42fd
Signed-off-by: ligd <liguiding1@xiaomi.com>
2020-10-26 22:12:02 -07:00
YAMAMOTO Takashi
07fc24ba99
libxx: Suppress -Wmissing-exception-spec on operator new
2020-10-26 22:08:40 -07:00
YAMAMOTO Takashi
4c7bf29e35
libxx: Add exception specifier to operator delete
...
CXX: libxx_delete.cxx
libxx_delete.cxx:52:6: error: 'operator delete' is missing exception
specification 'throw()' [-Werror,-Wmissing-exception-spec]
void operator delete(FAR void *ptr)
^
throw()
1 error generated.
2020-10-26 22:08:40 -07:00
YAMAMOTO Takashi
6aef245523
libxx: Stop mentioning libs not integrated with this version of libxx
2020-10-26 22:07:39 -07:00
YAMAMOTO Takashi
caf67c817f
libxx: Update README
...
This doc seems a bit outdated to me.
This commit is my best attempt to update it.
2020-10-26 22:07:39 -07:00
YAMAMOTO Takashi
df812d09a2
math: Make this friendly with libcxx
...
- Turn some macros into functions
- Implement some type-agnostic functions.
(Just use __builtin_xxx)
- Add some missing function prototypes
(Just prototypes, not actually implemented in this commit)
2020-10-25 07:30:14 -07:00
Yoshinori Sugino
7b3cb0a23b
libs/libc/string/lib_strsignal.c: Fix a comment
2020-10-25 08:49:44 -03:00
dongjiuzhu
2b5be56bd0
serial/termios: support custom baud rate setting
...
N/A
Change-Id: I0cc00f6d0fda852533bd4a38ea6fc39e0d0059da
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-10-21 10:11:21 -07:00
Xiang Xiao
eb4121ce38
Change all 'Nuttx' to 'NuttX'
...
Unify the naming convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-20 01:45:06 -07:00