From 07507669ba5766c6793f090c219f68c087e14277 Mon Sep 17 00:00:00 2001 From: zhuanglin Date: Tue, 19 Mar 2024 09:41:49 +0800 Subject: [PATCH] libc.csv: Add more missing interface libc.csv adds the strlcpy, getrandom, task_tls_alloc, and fork interfaces Signed-off-by: zhuanglin --- libs/libc/libc.csv | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/libc/libc.csv b/libs/libc/libc.csv index 1374e6714b..7abee30e04 100644 --- a/libs/libc/libc.csv +++ b/libs/libc/libc.csv @@ -70,6 +70,7 @@ "flockfile","stdio.h","!defined(CONFIG_FILE_STREAM)","void","FAR FILE *" "fnmatch","fnmatch.h","","int","FAR const char *","FAR const char *","int" "fopen","stdio.h","defined(CONFIG_FILE_STREAM)","FAR FILE *","FAR const char *","FAR const char *" +"fork","unistd.h","!defined(CONFIG_BUILD_KERNEL) && defined(CONFIG_ARCH_HAVE_FORK)","pid_t" "fprintf","stdio.h","defined(CONFIG_FILE_STREAM)","int","FAR FILE *","FAR const IPTR char *","..." "fputc","stdio.h","defined(CONFIG_FILE_STREAM)","int","int","FAR FILE *" "fputs","stdio.h","defined(CONFIG_FILE_STREAM)","int","FAR const IPTR char *","FAR FILE *" @@ -106,6 +107,7 @@ "getpriority","sys/resource.h","","int","int","id_t" "getpwnam_r","pwd.h","","int","FAR const char *","FAR struct passwd *","FAR char *","size_t","FAR struct passwd **" "getpwuid_r","pwd.h","","int","uid_t","FAR struct passwd *","FAR char *","size_t","FAR struct passwd **" +"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 *" "gettimeofday","sys/time.h","","int","FAR struct timeval *","FAR struct timezone *" @@ -292,6 +294,7 @@ "strerror","string.h","","FAR char *","int" "strerror_r","string.h","","int","int","FAR char *","size_t" "strftime","time.h","","size_t","FAR char *","size_t","FAR const char *","FAR const struct tm *" +"strlcpy","string.h","","size_t","FAR char *","FAR const char *","size_t" "strlen","string.h","","size_t","FAR const char *" "strncasecmp","strings.h","","int","FAR const char *","FAR const char *","size_t" "strncat","string.h","","FAR char *","FAR char *","FAR const char *","size_t" @@ -320,6 +323,8 @@ "swprintf","wchar.h","","int","FAR wchar_t *","size_t","FAR const wchar_t *","..." "sysconf","unistd.h","","long","int" "syslog","syslog.h","","void","int","FAR const IPTR char *","..." +"task_testcancel","sched.h","defined(CONFIG_CANCELLATION_POINTS)","void" +"task_tls_alloc","nuttx/tls.h","!defined(CONFIG_BUILD_KERNEL) && CONFIG_TLS_TASK_NELEM > 0","int","tls_dtor_t" "task_tls_get_value","nuttx/tls.h","CONFIG_TLS_TASK_NELEM > 0","uintptr_t","int" "task_tls_set_value","nuttx/tls.h","CONFIG_TLS_TASK_NELEM > 0","int","int","uintptr_t" "tcflush","termios.h","","int","int","int"