You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/11/29 17:18:50 UTC

[incubator-nuttx] branch master updated: include/stdio:add setlinebuf marco Signed-off-by: anjiahao

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

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


The following commit(s) were added to refs/heads/master by this push:
     new c2bcef4  include/stdio:add setlinebuf marco Signed-off-by: anjiahao <an...@xiaomi.com>
c2bcef4 is described below

commit c2bcef4db82c2680322dd69fe0dc764f5004f4d8
Author: anjiahao <an...@xiaomi.com>
AuthorDate: Fri Nov 26 17:52:57 2021 +0800

    include/stdio:add setlinebuf marco
    Signed-off-by: anjiahao <an...@xiaomi.com>
---
 include/stdio.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/stdio.h b/include/stdio.h
index 0643b8a..6379072 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -96,6 +96,8 @@
 #  define fsetpos64 fsetpos
 #endif
 
+#define setlinebuf(stream)   setvbuf(stream, NULL, _IOLBF, 0)
+
 /****************************************************************************
  * Public Type Definitions
  ****************************************************************************/