mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
stdio: remove depends on setbuf setvbuf
N/A Cause the function realize will handle this Change-Id: I154c21c7a40667afae423bb0ebb67de8f5fc42fd Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -76,10 +76,8 @@ namespace std
|
||||
using ::fwrite;
|
||||
using ::gets;
|
||||
using ::gets_s;
|
||||
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
|
||||
using ::setbuf;
|
||||
using ::setvbuf;
|
||||
#endif
|
||||
using ::ungetc;
|
||||
|
||||
// Operations on the stdout stream, buffers, paths, and the whole printf-family
|
||||
|
||||
@@ -164,10 +164,8 @@ FAR char *gets(FAR char *s);
|
||||
FAR char *gets_s(FAR char *s, rsize_t n);
|
||||
void rewind(FAR FILE *stream);
|
||||
|
||||
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
|
||||
void setbuf(FAR FILE *stream, FAR char *buf);
|
||||
int setvbuf(FAR FILE *stream, FAR char *buffer, int mode, size_t size);
|
||||
#endif
|
||||
|
||||
int ungetc(int c, FAR FILE *stream);
|
||||
|
||||
|
||||
@@ -62,15 +62,12 @@ CSRCS += lib_stdsostream.c lib_perror.c lib_feof.c lib_ferror.c
|
||||
CSRCS += lib_rawinstream.c lib_rawoutstream.c lib_rawsistream.c
|
||||
CSRCS += lib_rawsostream.c lib_remove.c lib_rewind.c lib_clearerr.c
|
||||
CSRCS += lib_scanf.c lib_vscanf.c lib_fscanf.c lib_vfscanf.c lib_tmpfile.c
|
||||
CSRCS += lib_setbuf.c lib_setvbuf.c
|
||||
|
||||
endif
|
||||
|
||||
CSRCS += lib_tempnam.c lib_tmpnam.c
|
||||
|
||||
ifneq ($(CONFIG_STDIO_DISABLE_BUFFERING),y)
|
||||
CSRCS += lib_setbuf.c lib_setvbuf.c
|
||||
endif
|
||||
|
||||
# Other support that depends on specific, configured features.
|
||||
|
||||
# Add the stdio directory to the build
|
||||
|
||||
Reference in New Issue
Block a user