1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2017/10/15 bernard the first version 9 */ 10 11 #ifndef __POSIX_STDIO_H__ 12 #define __POSIX_STDIO_H__ 13 14 #include <rtconfig.h> 15 #include <stdio.h> 16 #include <sys/types.h> 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 int rt_posix_stdio_init(void); 23 int rt_posix_stdio_get_console(void); 24 int rt_posix_stdio_set_console(const char* device_name, int mode); 25 ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream); 26 ssize_t getline(char **lineptr, size_t *n, FILE *stream); 27 28 #ifdef __cplusplus 29 } 30 #endif 31 32 #endif /* __POSIX_STDIO_H__ */ 33