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 
<[email protected]>
c2bcef4 is described below

commit c2bcef4db82c2680322dd69fe0dc764f5004f4d8
Author: anjiahao <[email protected]>
AuthorDate: Fri Nov 26 17:52:57 2021 +0800

    include/stdio:add setlinebuf marco
    Signed-off-by: anjiahao <[email protected]>
---
 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
  ****************************************************************************/

Reply via email to