You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/06/03 13:46:12 UTC

[incubator-nuttx] branch master updated (29f9d97 -> 3c4fec8)

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git.


    from 29f9d97  libc: Call vdprintf in printf/vprintf for CONFIG_NFILE_STREAMS == 0
     new 4029706  libc: tmpfile shouldn't hardcode the folder to /tmp
     new c76443f  libc: Remove CONFIG_LIBC_TMPDIR definition from lib_mkstemp.c
     new 3c4fec8  libc: Fix warning: implicit declaration of function ‘strnlen’

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 libs/libc/stdio/lib_tmpfile.c    | 2 +-
 libs/libc/stdlib/lib_mkstemp.c   | 4 ----
 libs/libc/wchar/lib_mbsnrtowcs.c | 1 +
 3 files changed, 2 insertions(+), 5 deletions(-)


[incubator-nuttx] 01/03: libc: tmpfile shouldn't hardcode the folder to /tmp

Posted by gn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 40297065838f1bf9ba7c110333379770cc402990
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Wed Jun 3 11:25:07 2020 +0800

    libc: tmpfile shouldn't hardcode the folder to /tmp
    
    use P_tmpdir macro instead
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 libs/libc/stdio/lib_tmpfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/libc/stdio/lib_tmpfile.c b/libs/libc/stdio/lib_tmpfile.c
index 5c27de8..1965c09 100644
--- a/libs/libc/stdio/lib_tmpfile.c
+++ b/libs/libc/stdio/lib_tmpfile.c
@@ -32,7 +32,7 @@
 
 FAR FILE *tmpfile(void)
 {
-  char path[L_tmpnam] = "/tmp/XXXXXX.tmp";
+  char path[L_tmpnam] = P_tmpdir "/XXXXXX.tmp";
   FAR FILE *fp = NULL;
   int fd;
 


[incubator-nuttx] 02/03: libc: Remove CONFIG_LIBC_TMPDIR definition from lib_mkstemp.c

Posted by gn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit c76443f456bc332738727a148222fd493088fe42
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Wed Jun 3 10:17:21 2020 +0800

    libc: Remove CONFIG_LIBC_TMPDIR definition from lib_mkstemp.c
    
    since this file doesn't use this macro at all
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
    Change-Id: I6042316a2568e35ed1b3dd0ab1b974ca5d23f02f
---
 libs/libc/stdlib/lib_mkstemp.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libs/libc/stdlib/lib_mkstemp.c b/libs/libc/stdlib/lib_mkstemp.c
index 5b6e5dd..feb95d8 100644
--- a/libs/libc/stdlib/lib_mkstemp.c
+++ b/libs/libc/stdlib/lib_mkstemp.c
@@ -38,10 +38,6 @@
  * Pre-processor definitions
  ****************************************************************************/
 
-#ifndef CONFIG_LIBC_TMPDIR
-#  define CONFIG_LIBC_TMPDIR "/tmp"
-#endif
-
 #define MAX_XS        6
 #define MIN_NUMERIC   0    /* 0-9:   Numeric */
 #define MAX_NUMERIC   9


[incubator-nuttx] 03/03: libc: Fix warning: implicit declaration of function ‘strnlen’

Posted by gn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 3c4fec80f876c1bde053108b1b11381d792f2fc1
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Wed Jun 3 17:14:01 2020 +0800

    libc: Fix warning: implicit declaration of function ‘strnlen’
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
    Change-Id: Ib2094a2ef0c3910e9b30685e73fc7012bf23a35f
---
 libs/libc/wchar/lib_mbsnrtowcs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libs/libc/wchar/lib_mbsnrtowcs.c b/libs/libc/wchar/lib_mbsnrtowcs.c
index 4bd5ecf..b1f133f 100644
--- a/libs/libc/wchar/lib_mbsnrtowcs.c
+++ b/libs/libc/wchar/lib_mbsnrtowcs.c
@@ -38,6 +38,7 @@
  ****************************************************************************/
 
 #include <sys/types.h>
+#include <string.h>
 #include <wchar.h>
 
 #ifdef CONFIG_LIBC_WCHAR