mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
setvbuf: Add support for configuration of line buffering.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* drivers/syslog/syslog_emergtream.c
|
||||
*
|
||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2016-2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -109,8 +109,6 @@ static void emergstream_putc(FAR struct lib_outstream_s *this, int ch)
|
||||
void emergstream(FAR struct lib_outstream_s *stream)
|
||||
{
|
||||
stream->put = emergstream_putc;
|
||||
#ifdef CONFIG_STDIO_LINEBUFFER
|
||||
stream->flush = lib_noflush;
|
||||
#endif
|
||||
stream->nput = 0;
|
||||
}
|
||||
|
||||
@@ -109,8 +109,6 @@ static void syslogstream_putc(FAR struct lib_outstream_s *this, int ch)
|
||||
void syslogstream(FAR struct lib_outstream_s *stream)
|
||||
{
|
||||
stream->put = syslogstream_putc;
|
||||
#ifdef CONFIG_STDIO_LINEBUFFER
|
||||
stream->flush = lib_noflush;
|
||||
#endif
|
||||
stream->nput = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user