| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
aio_error: fix ret of aio_error function A call to aio_error()may return -1 and set errno to EINVAL if aiocbp does not refer to an operation whose return status has not yet been retrieved. A call to aio_read() and aio_write() may return -1 and set errno to EINVAL if the criteria is not met. And in aio_read() and aio_write(), aio_result should be set so that aio_error() function can query correctly. Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com> | 2 个月前 | |
assert: avoid syscall when system is not ready If system crashed before irq is initialized, the syscall may cause PC jump to wrong place. In this patch, we check the os init state and call _assert directly. Signed-off-by: xuxingliang <xuxingliang@xiaomi.com> | 2 个月前 | |
fix compile error Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
builtin.h:remove userspace.h to avoid circular dependency use forward declare to prevent circular dependency Signed-off-by: yangao1 <yangao1@xiaomi.com> | 2 个月前 | |
libcxx: fix compile error from ServiceManager.cpp:17: /home/ligd/platform/dev/apps/external/android/frameworks/native/libs/binder/ndk/include_cpp/android/binder_to_string.h:71:24: error: expected nested-name-specifier before numeric constant 71 | template <typename _U> | ^~ /home/ligd/platform/dev/apps/external/android/frameworks/native/libs/binder/ndk/include_cpp/android/binder_to_string.h:71:24: error: expected ‘>’ before numeric constant In file included from /home/ligd/platform/dev/apps/external/android/frameworks/native/libs/binder/aidl/android/os/ConnectionInfo.h:3, from /home/ligd/platform/dev/apps/external/android/frameworks/native/libs/binder/aidl/android/os/IServiceManager.h:3, from /home/ligd/platform/dev/apps/external/android/frameworks/native/libs/binder/aidl/android/os/BnServiceManager.h:4: /home/ligd/platform/dev/apps/external/android/frameworks/native/libs/binder/ndk/include_cpp/android/binder_to_string.h:72:56: error: no matching function for call to ‘declval<1>()’ 72 | static auto _test(int) -> decltype(std::declval<_U>().toString(), std::true_type()); | ~~~~~~~~~~~~~~~~^~ In file included from /home/ligd/platform/dev/nuttx/include/libcxx/__type_traits/is_convertible.h:18, Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Renaming "modlib" to "libelf" is more in line with the implementation content, which makes it easier for individual developers to understand the capabilities of this module. CONFIG_LIBC_MODLIB -> CONFIG_LIBC_ELF Signed-off-by: chao an <anchao.archer@bytedance.com> | 2 个月前 | |
elf_fixup.py:hack tasking phdr Because the data copy generated by tasking does not conform to the ELF standard, we will not use the original ELF phdr. Instead, we will generate the corresponding phdr based on the section. [.section.symbol] is used to record the PhysAddr of the section. It needs to be copied to the address of the .section; this address will be used as the VirtAddr. If there are sections that can be merged, we will merge them. Signed-off-by: anjiahao <anjiahao@xiaomi.com> | 2 个月前 | |
env_unsetenv.c: fix coverity issue info is checked whether NULL after it has been used in nxrmutex_lock Signed-off-by: liaoao <liaoao@xiaomi.com> | 2 个月前 | |
libs/libc: add bmp support Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
fix compile error Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
gnssutils: Add Android.bp to android-trunk Signed-off-by: zhangbo56 <zhangbo56@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
stream_getc: use lib_stream_eof instead of EOF Will case scanftest break #14778, at " %4c%n" case. Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
fix compile error Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
nuttx/atomic: use toolchain builtin atomic function The reason for using builtin atomic is that in C++, when include <atomic> in <nuttx/atomic.h> easily conflicts with third-party function libraries. We wanted to completely separate the implementation of <nuttx/atomic.h>. There are two points: 1. use builtin function directly. 2. Without the standard library implementation, need implement "atomic_fetch_xxx", leading conflicts with the standard library used by third-party programs, introducing redefinition issues and requiring name changes. Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> | 2 个月前 | |
libc/instrument: add recursion guard for instrument callbacks Add g_instrument_in_progress flag to prevent infinite recursion when instrumented functions are called from within the instrument callbacks (e.g., perf_gettime). This provides a safety net in case any function in the callback chain is accidentally instrumented. Signed-off-by: yezhonghui <yezhonghui@xiaomi.com> | 2 个月前 | |
fix compile error Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
fix compile error Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
stream: reduce int use, handle FS_LARGEFILE correctly. offset int -> offset, len int -> size_t, ret int -> ssize_t Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
(libc/pthread): rename proto to prio in pthread_mutexattr_s Signed-off-by: ganjing <ganjing@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
romfs:extend romfs to enable write part1 change romfs_cachenode to find all headers Signed-off-by: guohao15 <guohao15@xiaomi.com> | 2 个月前 | |
libc/regex: Resolve problems found by code scanning Logical dead code at line 2295 and line 2468 of regcomp.c Signed-off-by: yukangzhi <yukangzhi@xiaomi.com> | 2 个月前 | |
perf: add perf_setup() support backtrace: 0 0x006212d2 in spin_lock_notrace (lock=0x405d8108 <g_perf+24>) at /home/wangzhi/disk/project/specific product-rc04/nuttx/include/nuttx/spinlock.h:161 1 spin_lock_irqsave_notrace (lock=0x405d8108 <g_perf+24>) at /home/wangzhi/disk/project/specific product-rc04/nuttx/include/nuttx/spinlock.h:420 2 spin_lock_irqsave (lock=0x405d8108 <g_perf+24>) at /home/wangzhi/disk/project/specific product-rc04/nuttx/include/nuttx/spinlock.h:468 3 perf_gettime () at clock/clock_perf.c:91 4 0x00619958 in nxsched_critmon_csection (tcb=0x402977d0 <g_idletcb>, state=true, caller=caller@entry=0x61f653 <wd_start_abstick+82>) at sched/sched_critmonitor.c:269 5 0x00613274 in enter_critical_section () at irq/irq_csection.c:121 6 0x0061f652 in wd_start_abstick (wdog=wdog@entry=0x405d80f0 <g_perf>, ticks=<optimised out>, wdentry=0x6213d1 <perf_update>, arg=1079869680) at wdog/wd_start.c:292 7 0x0061f8d6 in wd_start (wdog=wdog@entry=0x405d80f0 <g_perf>, delay=<optimised out>, wdentry=wdentry@entry=0x6213d1 <perf_update>, arg=1079869680) at wdog/wd_start.c:390 8 0x006213b0 in perf_gettime () at clock/clock_perf.c:103 9 0x0063876e in note_common (tcb=tcb@entry=0x402977d0 <g_idletcb>, note=note@entry=0x410a9f70, length=length@entry=26 '\032', type=type@entry=1 '\001') at note/note_driver.c:212 10 0x006389d2 in sched_note_start (tcb=tcb@entry=0x402977d0 <g_idletcb>) at note/note_driver.c:752 11 0x00611ef2 in nx_start () at init/nx_start.c:813 Resolve: let the perf_gettime() don't call wd_start() Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
sem_open:add check for args(name) A call to sem_open() when the operation is not supported for name shall return SEM_FAILED and set errno to EINVAL. https://man7.org/linux/man-pages/man7/sem_overview.7.html: A named semaphore is identified by a name of the form /somename; that is, a null-terminated string of up to NAME_MAX-4 (i.e., 251) characters consisting of an initial slash, followed by one or more characters, none of which are slashes. And CONFIG_SEM_NAME_REQUIRE_LEADING_SLASH was also implemented to ensure compatibility because many parts of the project used non-standard name parameters. Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com> | 2 个月前 | |
siglongjmp: change the siglongjmp implementation to non-inline according to the POSIX standard, all POSIX funtion prototype should not have parameter name declared, so if we keep the siglongjmp implemetnation as inline function, an error will report by ANSI.hdr setjmp{13} testcase: Illegal parameter name in prototype: env Illegal parameter name in prototype: val in order to fix this issue, we change the implementation from inline to C source code implementation Signed-off-by: guoshichao <guoshichao@xiaomi.com> | 2 个月前 | |
libc/spawn: redefine scheduling policy parameter bounds Change details: - Old bounds: SCHED_OTHER to SCHED_SPORADIC (inclusive) - New bounds: SCHED_FIFO to SCHED_OTHER (inclusive) Signed-off-by: ganjing <ganjing@xiaomi.com> | 2 个月前 | |
libc/stdio: Fix flockfile/funlockfile usage bugs Two critical bugs fixed that could cause deadlock: 1. lib_puts.c: flockfile/funlockfile variable mismatch - puts() was locking 'stream' but unlocking 'stdout' - Although they usually point to the same object, this inconsistency can cause lock count mismatch in edge cases, leading to deadlock - Fixed to consistently use 'stream' for both lock and unlock 2. lib_fputws.c: incorrect funlockfile in _unlocked function - fputws_unlocked() should not call funlockfile() per its semantics - When fputws() calls fputws_unlocked(), the error path would cause double unlock (once in fputws_unlocked, once in fputws) - Removed the funlockfile() call from fputws_unlocked() These bugs were identified while debugging a deadlock on port 20819 where Thread 26 held stdout lock and waited for Thread 989, while Thread 989 was blocked trying to acquire the same lock in puts(). Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 | |
Revert "libs/libc/stdlib/lib_exit.c: fix multiple definition of __dso_handle in msys2" This reverts commit 8f96e59aee9cd0c5bbb82e01044d109f8588fec2. The implementation of __dso_handle is independent of the HOST OS but dependent on the specific compiler. Therefore, this patch will cause compilation failures for other cross-compilers on the Windows platform, such as arm-none-eabi-gcc and aarch64-none-elf-gcc. Constraints should be applied to compiler target rather than compiler host. Signed-off-by: Shanmin Zhang <zhangshanmin@xiaomi.com> | 2 个月前 | |
nuttx_header: add nuttx header file for dfxd Signed-off-by: yezhonghui <yezhonghui@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
tls: split tls.h to tls.h and tls_task.h Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
libs/libc/time: fix syslog recursion in gmtsub timezone loading Set g_gmt_isset before calling gmtload() to prevent infinite recursion. When CONFIG_SYSLOG_TIMESTAMP is enabled, syslog calls gmtime_r() to format timestamps. gmtime_r() -> gmtsub() -> gmtload() -> tzload() tries to open the timezone file. If the file doesn't exist on romfs, romfs_open() calls ferr() which expands to syslog(), causing infinite recursion since g_gmt_isset is still 0. By setting g_gmt_isset = 1 before gmtload(), any recursive syslog call during timezone loading will skip the gmtload path and use the partially initialized state for timesub(), avoiding stack overflow. Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 | |
libc/tls: Fix NULL pointer dereference in task_tls_get_value() Add NULL check for task_get_info() return value to prevent crash when TLS info is unavailable during task cleanup or when stack info retrieval fails. Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com> | 2 个月前 | |
move readv/writev to the kernel currently, nuttx implements readv/writev on the top of read/write. while it might work for the simplest cases, it's broken by design. for example, it's impossible to make it work correctly for files which need to preserve data boundaries without allocating a single contiguous buffer. (udp socket, some character devices, etc) this change is a start of the migration to a better design. that is, implement read/write on the top of readv/writev. to avoid a single huge change, following things will NOT be done in this commit: * fix actual bugs caused by the original readv-based-on-read design. (cf. https://github.com/apache/nuttx/pull/12674) * adapt filesystems/drivers to actually benefit from the new interface. (except a few trivial examples) * eventually retire the old interface. * retire read/write syscalls. implement them in libc instead. * pread/pwrite/preadv/pwritev (except the introduction of struct uio, which is a preparation to back these variations with the new interface.) | 2 个月前 | |
libc/unistd:fix null pointer dereference in getpass() Signed-off-by: yangao1 <yangao1@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
libc: Refine the arc4random_buf implementation fill the buffer with getrandom instead random pool and move the implementation to from crypto to libc Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
sched/wqueue: Improve performance of the work_queue. This commit improve the performance of the work_queue by reducing unnecessary wdog timer setting. Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Renaming "modlib" to "libelf" is more in line with the implementation content, which makes it easier for individual developers to understand the capabilities of this module. CONFIG_LIBC_MODLIB -> CONFIG_LIBC_ELF Signed-off-by: chao an <anchao.archer@bytedance.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Renaming "modlib" to "libelf" is more in line with the implementation content, which makes it easier for individual developers to understand the capabilities of this module. CONFIG_LIBC_MODLIB -> CONFIG_LIBC_ELF Signed-off-by: chao an <anchao.archer@bytedance.com> | 2 个月前 | |
environ: move the environ from sched/environ to libc/environ change the environ implementation from sched/environ to libc/environ, thus we can access the environ related API can vai libc directl, which could improve the access speed in kernel build. And in order to support this modification, we change the struct task_info_s's ta_lock from nxmutex_t to nxrmutex_t, this is because the env_*-related APIs require the ta_lock to be reentrant. If recursive locks are not supported, it may lead to deadlocks in certain scenarios. For example, during initialization on the qemu-miwear platform, it is necessary to call getenv while already holding the ta_lock. To support such cases, we need to change the ta_lock from nxmutex_t to nxrmutex_t. Signed-off-by: guoshichao <guoshichao@xiaomi.com> | 2 个月前 | |
add pthread_cond APIs to libc.csv Signed-off-by: yangkun27 <yangkun27@xiaomi.com> | 2 个月前 | |
libc:use long long to improve libc function speed Signed-off-by: anjiahao <anjiahao@xiaomi.com> | 2 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 |