This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new f6ed54350f6 libs/libc: Add getpid, gettid and putchar to libc.csv.
f6ed54350f6 is described below
commit f6ed54350f6b43c0d08f5769943beb12abac5f81
Author: raiden00pl <[email protected]>
AuthorDate: Wed Nov 18 12:08:36 2026 +0100
libs/libc: Add getpid, gettid and putchar to libc.csv.
getpid(), gettid() and putchar() are libc functions but were missing
from the system symbol table, so an ELF program that calls them failed
to load with CONFIG_EXECFUNCS_SYSTEM_SYMTAB.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: raiden00pl <[email protected]>
---
libs/libc/libc.csv | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libs/libc/libc.csv b/libs/libc/libc.csv
index 0f58865bd8a..bc18ab6e94f 100644
--- a/libs/libc/libc.csv
+++ b/libs/libc/libc.csv
@@ -130,6 +130,7 @@
"getopterrp","unistd.h","","FAR int *"
"getoptindp","unistd.h","","FAR int *"
"getoptoptp","unistd.h","","FAR int *"
+"getpid","unistd.h","","pid_t"
"getpriority","sys/resource.h","","int","int","id_t"
"getpass","unistd.h","","FAR const char *","FAR char *"
"getpwnam_r","pwd.h","","int","FAR const char *","FAR struct passwd *","FAR
char *","size_t","FAR struct passwd **"
@@ -137,6 +138,7 @@
"getrandom","sys/random.h","!defined(CONFIG_BUILD_KERNEL)","ssize_t","FAR void
*","size_t","unsigned int"
"gets","stdio.h","defined(CONFIG_FILE_STREAM)","FAR char *","FAR char *"
"gettext","libintl.h","defined(CONFIG_LIBC_LOCALE_GETTEXT)","FAR char *","FAR
const char *"
+"gettid","unistd.h","","pid_t"
"gettimeofday","sys/time.h","","int","FAR struct timeval *","FAR struct
timezone *"
"getusershell","unistd.h","defined(CONFIG_FILE_STREAM)","FAR char *"
"getwc","wchar.h","defined(CONFIG_FILE_STREAM)","wint_t","FAR FILE *"
@@ -284,6 +286,7 @@
"pthread_spin_trylock","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) &&
defined(CONFIG_PTHREAD_SPINLOCKS)","int","FAR pthread_spinlock_t *"
"pthread_spin_unlock","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) &&
defined(CONFIG_PTHREAD_SPINLOCKS)","int","FAR pthread_spinlock_t *"
"pthread_yield","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","void"
+"putchar","stdio.h","","int","int"
"putenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","int","FAR char *"
"puts","stdio.h","defined(CONFIG_FILE_STREAM)","int","FAR const IPTR char *"
"putwc","wchar.h","defined(CONFIG_FILE_STREAM)","wint_t","wchar_t","FAR FILE *"